Question
STM32L476RCT6 – HAL_Delay and UART Blocking Issue on Custom Board
- April 29, 2026
- 2 replies
- 236 views
Hi ST Support Team,
I am working with the STM32L476RCT6 on a custom-designed board for an NFC reader project.
I am facing a critical issue during basic bring-up:
Issue Description
- The MCU appears to hang when using HAL_Delay() and HAL_UART functions
- The code runs only during debug (step-over execution), but not in normal run mode
- In normal execution:
- HAL_Delay() blocks indefinitely
- UART transmit functions also get stuck
- In debug mode:
- Code executes correctly step-by-step
- GPIO (LED toggle) works as expected
What I Have Verified
- Firmware is successfully flashed
- Minimal project (only GPIO toggle, no complex logic)
- Using default CubeMX-generated initialization
- System clock configured to HSI (no external crystal)
- Issue persists even in a very simple project
Observations
- Behavior suggests a possible issue with:
- SysTick / time base not running
- Interrupts not functioning correctly
- Or clock configuration problem
Request
Could you please help identify:
- Why HAL_Delay() is blocking in normal execution but works during debug?
- What could cause SysTick or interrupts to fail only outside debug mode?
- Any known issues with STM32L4 series related to this behavior?
Attachments
- Project source code
- Clock configuration screenshots
This issue is blocking further development (NFC functionality), so any guidance would be highly appreciated.
Best regards,
Sathish