STM32H563 gets stuck, and unstuck when connecting the debugger
Hello everyone,
I’ve encountered some strange behaviour with my PCB using an STM32H563VGI MCU.
The setup includes an array of 10 LEDs, where one additional LED turns on every 2 minutes. Initially, the system worked fine, but after about 10 minutes, I noticed the LED sequence stopped progressing, it got stuck at LED 2.
To investigate, I connected a SEGGER J-Link debugger. Surprisingly, as soon as it was connected, the system resumed normal operation: the MCU printed all messages correctly, and the LED array advanced to LED 5, which was the expected state at that moment. It’s as if simply connecting the debugger “unstuck” the MCU.
I’m using ThreadX as the RTOS.
Has anyone experienced similar behavior? Any ideas what could be causing this?
Thanks in advance for your help!
