cancel
Showing results for 
Search instead for 
Did you mean: 

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.

RBack.1
Senior
1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

5 REPLIES 5
TDK
Guru

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".

This bit seemed to work. Thanks.

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
Up vote any posts that you find helpful, it shows what's working..

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