Skip to main content
NM_it
Associate III
June 19, 2021
Question

Keeping PWM running while debugger stopped

  • June 19, 2021
  • 2 replies
  • 1863 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.

    2 replies

    Osto
    Senior
    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.

    NM_it
    NM_itAuthor
    Associate III
    June 19, 2021

    Hi,

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

    Regards,

    Nishanth M