2025-03-05 3:45 AM
When I wrote the code created with CubeMX in the circuit in the attached image and executed it, it hung up at UART transmission.
This is a simple program with one line of additional code.(HAL_UART_Transmit)
What am I doing wrong?
I haven't been able to resolve it for a week.
2025-03-05 4:11 AM
To ensure proper user program start, BOOT0 must be at logic LOW - connected to GND directly or via resistor up to 100k.
2025-03-05 5:41 AM
How do you know it's hung up? What happens when you debug it and step through the code?
2025-03-05 2:25 PM
@SB-RK wrote:When I wrote the code created with CubeMX in the circuit in the attached image and executed it, it hung up at UART transmission.
Very vague. Describe in more detail on what you mean by hung up
2025-03-05 3:39 PM
Thank you everyone.
I solved it by connecting BOOT0 to GND.
I say hang-up because stepping does not return from HAL_UART_Transmit.
It was really helpful.
Thank you very much.