cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F7 Breakpoints

keaven
Associate II
Posted on September 15, 2015 at 16:47

Hello,

I have a basic breakpoint question.  I am using Keil uVision5 with an ULINK-PRO.  I have a project with Keil RTX RTOS.  I set breakpoints at different places in my code and when the one of them triggered my generated PWM still run on my GPIOs.

Is there anyway a breakpoint can halt also the configured timer or it will always be like that with the Cortex Debug module?

Thank you,

3 REPLIES 3
jpeacock
Associate III
Posted on September 15, 2015 at 19:12

Look at the DBGMCU registers, specifically the DBGMCU_APBx_FZ APB freeze registers for TIM peripherals.

  Jack Peacock

Posted on September 15, 2015 at 20:37

It's important to understand that peripherals like TIM, ADC, DMA all occur autonomously of the core. Consider if there are better ways to manage and understand what your code is doing without jamming things up waiting for user interaction in the debugger.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
keaven
Associate II
Posted on September 15, 2015 at 21:23

Yes I knew that clive1.

In fact , in our case it is best those still run because they are driving a CCD sensor.  I was asking to know if for some reason we need to stall everything how we could do it without stopping the debugging.

Thank you both for your answer.