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 REPLY 1
AScha.3
Chief II

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