Skip to main content
Graduate
September 16, 2024
Solved

HRTIM restart after DEBUG

  • September 16, 2024
  • 2 replies
  • 786 views

Hallo,

for security reason I have to stop HRTIM generating 3-phase signal for PMSM motor.

It works as described in RM0433 (37.3.23) with DBG_HRTIM_STOP = 1: when debugger stops MCU predefined "FaultLevel" appears on outputs as expected. HRTIM goes into STOP mode. So far very good but...

 

The problem is: "This is permanently maintained even if the MCU exits the halt mode."

How can I leave FAULT state of HRTIM on leaving debugger halt without writting debugger script?

    This topic has been closed for replies.
    Best answer by AScha.3

    Hi,

    i think, the way is to do it in your program:

    you should have some reaction on a fault condition : why fault ? -> over current, under voltage...or nothing (then debug halt was the reason) , then restart with needed safe start values (motor stopped now, so debug cannot know, what to do with your motor/drive now).

    2 replies

    AScha.3Answer
    Super User
    September 16, 2024

    Hi,

    i think, the way is to do it in your program:

    you should have some reaction on a fault condition : why fault ? -> over current, under voltage...or nothing (then debug halt was the reason) , then restart with needed safe start values (motor stopped now, so debug cannot know, what to do with your motor/drive now).

    Explorer
    July 29, 2025

    The debugger doesn't seem to trigger the SYSFLT in the HRTIM. Like the original poster mentioned, it seems to enter the fault state but the fault ISR is never triggered and the the SYSFLTE flag in the ISR register isn't set. What are the steps to get the FLT_IRQ to trigger when the debugger disconnects?