Skip to main content
keaven
Associate III
September 15, 2015
Question

STM32F7 Breakpoints

  • September 15, 2015
  • 3 replies
  • 964 views
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,

    This topic has been closed for replies.

    3 replies

    jpeacock
    Associate
    September 15, 2015
    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

    Tesla DeLorean
    Guru
    September 15, 2015
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    keaven
    keavenAuthor
    Associate III
    September 15, 2015
    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.