How to reset the system from within an MQX Application

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to reset the system from within an MQX Application

ソリューションへジャンプ
1,966件の閲覧回数
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,014件の閲覧回数
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,015件の閲覧回数
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,014件の閲覧回数
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 件の賞賛
返信