Skip to main content
Visitor II
June 19, 2021
Question

Keeping PWM running while debugger stopped

  • June 19, 2021
  • 1 reply
  • 1101 views

Hi,

How to enable the PWM to keep running when debugger stopped at brake point in the ST Visual Development. Tell me how to solve this problem.

Regards,

Nishanth M

    This topic has been closed for replies.

    1 reply

    Visitor II
    June 19, 2021

    You can use for example __HAL_UNFREEZE_TIM3_DBGMCU to keep TIM 3 running when debug stops.

    But be warned: If a timer or anything else producing interrupts when the debug stops, you cannot make steps because at every step the ISR will be called.

    NMAuthor
    Visitor II
    June 19, 2021

    Hi,

    I wanted in STM8 MCU series for COSMIC compiler and IDE is ST Visual Development.

    Regards,

    Nishanth M