How to reset the system from within an MQX Application

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

How to reset the system from within an MQX Application

Jump to solution
1,402 Views
mykepredko
Contributor IV

Hi Folks,

 

I'm trying to reset my system and reboot from my MQX application (when I reach an error condition - caused by external conditions).  Reading the MQX RM, I thought I could do it with the statement:

 

 _mqx_get_initialization());

 

But this just hangs the system (the very result I'm trying to avoid). 

 

Does anybody have any suggestions as what to do?

 

Thanx,

 

myke

0 Kudos
1 Solution
450 Views
LordMark
Contributor IV

You may initialize a watchdog object and then enter in an infinite loop.

 

Or you may simple act directly on the Reset Control Register (RCR).

View solution in original post

0 Kudos
2 Replies
451 Views
LordMark
Contributor IV

You may initialize a watchdog object and then enter in an infinite loop.

 

Or you may simple act directly on the Reset Control Register (RCR).

0 Kudos
450 Views
mykepredko
Contributor IV

Thanx for the pointers Mark. 

 

Using the RCR, I make the RSTO line on the CF Active (low), delay and then reset the processor. 

 

That is exactly what I was looking for.

 

myke

0 Kudos