MCF5211/5213 Watchdog Reset

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

MCF5211/5213 Watchdog Reset

2,907 次查看
foreigner
Contributor I
I would like to have a "hard" reset whenever the watchdog times out.
There is a CWRI bit in the CWCR that is supposed to be used for selecting interrupt or reset whenever the watchdog times out.  If I then look into the bit descriptions of the CWRI bit I find that selecting 0 for interrupt on timeout is OK but selecting 1 states the following: "Reserved. If a one is written undetermined behaviour will result.  Note: If a core reset is required, the watchdog interrupt should set the soft reset bit in the interrupt controller."
 
Has anyone had any success with this approach or is there another way to get the reset of the micro upon watchdog timeout??
 
Thanks,
NM
标签 (1)
0 项奖励
回复
2 回复数

1,532 次查看
SimonMarsden_de
Contributor II
Hi

I think this is a documentation error. Earlier ColdFire processors could be reset by the Core Watchdog Timer, but this is not available for later processors.

An alternative is to force a reset by writing to the Reset Control Register (RCR) in the Reset Controller Module. You could do this from the interrupt handler of the CWT.


Cheers


Simon
0 项奖励
回复

1,532 次查看
foreigner
Contributor I
Thanks for the info Simon!
 
I can do it that way, I'm just not sure how well this would work if the program somehow "got lost".  Will it still get the correct vector for the interrupt and so on?  I know this is not anything that commonly happens but that's kind of the idea for a watchdog right?
I guess an external watchdog is always an option.
 
Thanks,
Nick
0 项奖励
回复