Skip to main content
RBack.1
Associate III
Oct 6, 2021 2:47 PM UTC
Solved

How do you single step STM32F746 when debugging? After using MX to enable FreeRTOS and specify TIM14 as the SYS Timebase Source, trying to single step in debug mode never leaves the TIM14 ISR.

..

This topic has been closed for replies.
RBack.1
RBack.1Best answer
Associate III
Oct 12, 2021 1:45 PM UTC

Huh...that's strange. Calling __HAL_DBGMCU_FREEZE_TIM14() did seem to work, however.

5 replies

TDK
Oct 7, 2021 1:00 AM UTC

It's possible the timer is continuing to run when the core is halted, which would cause it to reenter the ISR every time you resume. Look at the DBG_TIM14_STOP bit.

Just a guess.

"If you feel a post has answered your question, please click ""Accept as Solution""."
RBack.1
RBack.1Author
Associate III
Oct 7, 2021 4:27 PM UTC

This bit seemed to work. Thanks.

Tesla DeLorean
Guru
Oct 11, 2021 12:00 PM UTC

If one needs to single step ones code to understand how it works​ you might need to consider doing so on a newer core (see F722 or F767)

​

C​onsider also the output of diagnostic and/or telemetry data so the interaction and flow dynamics can be understood. Review and evaluate data via static analysis of code.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..