Questions tagged [stm32f1]

STM32 F1 are entry-level ARM Cortex-M3 MCUs from ST Microelectronics.

144 questions
1
vote
0 answers

CubeMX - I2C DMA - help needed - ST32F1

HAL_I2C_Mem_Write_DMA / HAL_I2C_Mem_Read_DMA what is the problem ? Hi I'm trying to run I2C in DMA mode with LIS35 (accelerometer). I wrote simple code as below but each time when I try to run or debug it I'm getting back return "LIS35_ERROR;" which…
frank
  • 223
  • 1
  • 3
  • 14
0
votes
1 answer

PlatformIO compiling error: Not finding map file (STM32)

I want to flash an old STM32 F103CB based flight controller with a simple led blinking program, But I can't get it to work. I get this…
Nunki0
  • 1
0
votes
0 answers

Why does the stm32f103 serial port in freertos not enter the interrupt when I use it to interrupt receiving data?

I had no problem using the serial port interrupt to receive data in bare metal, but when I ported this code to freertos, The interrupt channel is changed from USART1_IRQn to USART1_IRQChannel (because USART1_IRQn is not defined in stm32f10x_lib.h in…
0
votes
0 answers

STM32 proteus simulation doesn't work properly

guys I'm making a simulation for stm32f103c6 the code written on Arduino IDE. I'm testing a simple LED blink on proteus and it's not even working. Arduino Code And this is what happens when I run the simulation I'm sure that I Exported .hex file…
0
votes
1 answer

stm32 - Access to register of unclocked peripheral at 0x40010C10 cause BUS_FAULT [U1_CM3CORE]

I'm working with STM32F103R6, tried to simulate blinking an LED but when I start the simulation Proteus 8 freezes and I got 9706 error messages "Access to register of unclocked peripheral at 0x40010C10 cause BUS_FAULT [U1_CM3CORE]" then simulation…
scroult
  • 1
  • 1
0
votes
0 answers

Stm32f103c8 LEDs blinking using Systick (Registres Programming)

I have an STM32f103c8 with 8Mhz SystemClock i configured My Systick to make delay every 1 seconde , i have a Button Connected to PA1 (Input Pull up) and Two Leds PB8 and PB9 i want when i press first time Button it starts blinking LEDs every 1…
Tchalago
  • 1
  • 1
0
votes
1 answer

Why doesn't my PC recognize STM32 as USB Device when sending data to it through USB?

I want to send Data through USB from STM32. I've written the following bare-metal code to do it. But my PC doesn't recognize USB device when plugged in. #include "stm32f10x.h" void USB_Endpoint_Configure(uint8_t endpoint, uint8_t type, uint8_t dir)…
0
votes
1 answer

How can I get an STM32F103C8 running at 72MHz with ArduinoIDE and HAL library?

How can we get an Stm32f103c8 running 72MHz with Arduino IDE (STM32duino)? We have custom designed a PCB using the chip from the question. We are able to get it running at 72MHz using STM32CubeIDE. The clock configuration is shown below. Clock…
0
votes
1 answer

How to trigger RTC global interrupt on stm32f103 blue pill

I am trying to use the RTC global interrupt for the stm32f103c8t6, but I have had no luck. I am not sure if this is an issue with my configuration, or if the RTC global interrupt handler is not used for the second interrupt at all. I have been…
beyonson
  • 23
  • 1
  • 8
0
votes
0 answers

STM32's USART and freeRTOS tasks cannot coexist

I want to control my corresponding infrared signal emission through my USART input command, use num to refer to, flag indicates whether the USART controls the emission void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { UNUSED(huart); …
KunBoy5240
  • 11
  • 1
0
votes
0 answers

STM32F105 USB Virtual Port Com

I'm having trouble making stm32 work as a communication port over USB. I can't believe it's so difficult to send a string over USB. I created a new project using STM32CubeIDE. I performed the following steps: RCC -> HSE Crystal Enabled…
Ilidam
  • 73
  • 6
0
votes
0 answers

Phase angle speed control of single phase motor

I need help on phase angle controlling speed of single phase motor. My achieved speed control is not smooth, it appeared the motor has only 3 speed levels. I am sure my issue is on the firmware. Circuit description. I am using STM32F103C and I have…
avong
  • 21
  • 4
0
votes
0 answers

How trigge stm32 one pulse mode timer internally

I've used the stm32 one pule mode timer to generate pulse train. one pulse mode generate the pulse train in response of a extranl event originally, but i want to know that is there anyway to trigger the OPM timer internally? for example by writing a…
mohamad
  • 11
  • 2
0
votes
2 answers

STM32F103 - Option Bytes 2nd bit wrong when programming

I am trying to write a piece of data to the option byte at 0x1FFFF804. If the data I want programming is 0x08AE the data written is 0x51AE. Note this is on a copy of an STM32F103 (a MindMotion MM32F103). This is my code below. if (Sleep ==…
0
votes
0 answers

The drawn stm32 PCB is not recognized by stlink

Drew the PCB of stm32, DRC no problem. After soldering on, after stlink connected to the board. The power supply LED can also be displayed normally. But keil shows NO target connected What are the usual reasons why a drawn PCB cannot be…
风正豪
  • 1
  • 1