How to reset the system from within an MQX Application

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to reset the system from within an MQX Application

跳至解决方案
1,973 次查看
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 项奖励
回复
1 解答
1,021 次查看
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 项奖励
回复
2 回复数
1,022 次查看
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 项奖励
回复
1,021 次查看
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 项奖励
回复