cancel
Showing results for 
Search instead for 
Did you mean: 

HRTIM restart after DEBUG

DrDro
Associate III

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?

1 ACCEPTED SOLUTION

Accepted Solutions
AScha.3
Super User

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).

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
AScha.3
Super User

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).

If you feel a post has answered your question, please click "Accept as Solution".
kkemper
Associate

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?