Determining how the processor was reset (t104x)

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

Determining how the processor was reset (t104x)

1,042 次查看
mattweber
Contributor I

Had a question come up related to determining how the processor was reset.  Is there any internal bookkeeping that would allow me to see if a POR caused my reset compared to a hard reset?  We're using an external watchdog what doesn't contain any state information that we can utilize to determine how we reset.

I haven't had any luck finding this in the documentation yet in the TRM.  I figured it wouldn't be in the e5500 arch manual as it seemed to be more specific to the overall processor.

0 项奖励
回复
1 回复

898 次查看
lunminliang
NXP Employee
NXP Employee

To check if a reset is caused by POR or hard reset, please use Core Reset Status Register (DCFG_CCSR_CRSTSR)

A power-on reset of the device causes the following to occur:

• RST_PORST is set

• All other bits are cleared

A hard reset of the device causes the following to occur:

• RST_PORST remains unchanged (PORST resources are not affected by Hard Reset)

• RST_HRST is set

• All other bits are cleared

See Section 7.3.23 in T1040RM.pdf for this.

0 项奖励
回复