Questions tagged [stm32f103]
21 questions
4
votes
2 answers
STM32Fxx VDD/VSS Pairs
I'm reading an reference design app note for the STM32 F10xxxx family MCUs. Regarding decoupling caps for the VDD pins, it says:
6.4 Decoupling
In addition, each power supply pair must be decoupled with filtering ceramic capacitors C (100 nF) and…

jemalloc
- 561
- 9
3
votes
1 answer
STM32F103 custom boot loader hardfaults
I'm contributing to a project that was developed in Coocox CoIDE 2.0.6 for STM32F103RB (128Kb flash). I have to write a custom boot loader using CoIDE that can upgrade the application to the flash via serial. I started writing the boot loader in .c,…

Otto
- 31
- 2
3
votes
2 answers
Can I replace an STM32F105-RBT6 with a STM32F103-RET6? (ie. are they pin compatible?)
I'm using a Gotek Floppy Emulator which uses an STM32F105-RBT6. However, the chip appears to have died and I have a STM32F103-RET6 on-hand. They are both LQFP packages but are they pin compatible?
How likely can I replace the chip and re-flash the…

SofaKng
- 469
- 2
- 6
- 14
2
votes
1 answer
Why doesn't the STM32F103 have the checkbox "Activate Vbus" for USB device mode in CubeMX?
I'm studying a task about STM32F103 interface USB in device mode. I see that the STM32F103 doesn't have the checkbox "Activate Vbus" in CubeMX but STM32f105 and STM32f107 have the checkbox. I know that Vbus is important to detect the USB…

Phạm Tài
- 21
- 3
1
vote
1 answer
STM32F103: TIMER1 (CH3) doesn't work / produces no PWM (using libopencm3)
I use a STM32F103C8T6 with libopencm3 and I'm trying to get timer 1 on channel 3 (PA10) working. The datasheet (pg. 31) lists as alternate function for PA10 (pin #31): USART1_RX / TIM1_CH3.
Based on this and on some code snippets I created this…

mythbu
- 167
- 7
1
vote
0 answers
How to program interrupts with standard peripheral libraries on stm32f103vet6?
I tried to program an interrupt with S2 that is connected to PB1 on my stm32f103vet6 board, but I failed and I don't know why!
The codes here:
#include "stm32f10x.h" // Device header
#include "stm32f10x_exti.h" //…

RedRabbit
- 31
- 3
1
vote
0 answers
How to let the robot car turn between 90 to 360 degrees?
The robot car has 3 motors, the first motor is a stepper motor which controls the 2 wheels in front of the car to tell which direction it is moving. The second and third motor is a dc motor which each motor controls a wheel of the back of the car.…

Zheng Xian
- 119
- 3
1
vote
0 answers
TXE Interrupt is not generated ARM STM32F103C6
I'm trying to write a class to have the possibility of sending data using UART by TXE (TDR is empty) Interrupt. The class uses only USART1. The class has a ring data buffer to send. I have written a similar class for AVR (ATmega) and I would like to…

German
- 11
- 3
1
vote
0 answers
What is the difference between TIMx_IRQHandler and HAL_TIM_PeriodElapsedCallback function?
I am a beginner, I am using the stm32F103 interrupt function TIM1_IRQHandler function to count, but HAL_TIM_PerodElapsedCallback can also achieve accurate counting, which one should I choose to use? What is the difference between these two…

eehongzhijun
- 33
- 6
1
vote
1 answer
Can the HAL_ADC_Start(&hadc1) function be executed only once?
I am using STM32F103C8T6 ADC1 single channel continuous conversion mode to collect the ambient temperature, but I am not very clear about using the function HAL_ADC_Start (& hadc1) because the function is called once before the "while" loop of the…

eehongzhijun
- 33
- 6
1
vote
3 answers
Programming STM32 Black Pill with ST-LINK/V2 dongle
So I recently bought the STM32F103C8T6 "black pill" dev board along with the ST-LINK/V2 dongle (more probably a Chinese clone). After much struggling I figured out that I need to hold down the dev board's reset button for the dongle to detect the…

BdT141
- 98
- 1
- 12
0
votes
1 answer
STM32F103 programming using a USB port and CubeProgrammer
I created a custom board with an STM32F103C8T6 microprocessor and Iwant to use the USB to program the board using the STM32CubeProgrammer. I found out thanks to a user on Stack Exchange that it is not possible to make it work for the STM32F103…

Y-E-Quit
- 111
- 8
0
votes
1 answer
Is using STM32 Blue Pill's TIM1 PWM under Arduino a problem?
I have a question about the use of TIM1 on the STM32 Blue Pill. I want to build a synchronous buck converter using the Blue Pill and need to use PWM on TIM1 ch1..3 together with their complementary outputs and programmable dead time.
I heard someone…

wogoos
- 51
- 5
0
votes
1 answer
How to convert pulse width modulation (PWM) of DC motor to RPM or distance traveled?
I have a DC motor attached to a robot car wheel which can give me the PWM data as the motor is linked with the TB6612FNG H-bridge, but there is no other sensor to measure the RPM of the wheel. The problem is that I need to find out the distance…

Zheng Xian
- 119
- 3
0
votes
1 answer
Problem with Keypad exercise on STM32 (Nucleo-F103RB)
I try to learn STM32 MCU programming and at the beginning I'd like to mark, that't I'm totally begginer in it, so please forgive me some mistakes (also language mistakes).
So I'm using STM32F103RBT6 (Nucleo-64) Board and I wanted to implement an…

ABC
- 51
- 3