What is the best way to do a software restart of a Kinetis running MQX Lite and connected to an I-jet?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What is the best way to do a software restart of a Kinetis running MQX Lite and connected to an I-jet?

614 Views
jvasil
Contributor III

I'd like to reset the Kinetis processor under software control.  Ideally, I'd like to do this in a way that would allow execution to continue whether or not we had an I-jet debugger connected.

We are using MQX Lite but I don't see any system calls for doing this.

I have also tried calling CPU_SystemReset() (in CPU_Init.c) and although this seems to stop the processor, I haven't--in general--seen it restart after this call.  This is true whether I am connected to IAR EWARM via the I-jet or running with the I-jet disconnected.

Any thoughts/suggestions/ideas would be appreciated.

Regards,

James

p.s. I had to say "in general" above because during ONE test run, the processor did seem to restart.  But I haven't been able to repeat this and am not sure what I did differently that time!


0 Kudos
Reply
1 Reply

366 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi James.

the following instruction will reset the MCU

SCB_AIRCR = 0x05FA0004;

It work fines if your device is running stand alone, however I am not sure if this will disconnect the MCU form the debugger.

Regards,

Carlos

0 Kudos
Reply