I have also experienced this behaviour when debugging, getting stuck at the exact same line. Writing 0 to the DBGPAUSE register of the system timer seems to "fix" the problem. This can be done by adding the following to the top of the main function:However, when I get to the sleep_ms(1000) part, it never returns, and seems to be stuck in the while loop linked above.
Code:
timer_hw->dbgpause = 0;Statistics: Posted by ConfuSomu — Fri Aug 15, 2025 9:35 pm