UART transmission hangs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
 
 
- Labels:
-
STM32L4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
TimerCallback tutorial! | UART and DMA Idle tutorial!
If you find my solution useful, please click the Accept as Solution so others see the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
