Determining how the processor was reset (t104x)

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

Determining how the processor was reset (t104x)

1,175件の閲覧回数
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 返信

1,031件の閲覧回数
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 件の賞賛
返信