iMX6UL reset reason

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX6UL reset reason

Jump to solution
2,232 Views
aermakov
Contributor II

I try to detect last reset reason in u-boot.

I use iMX6UL-evk evaluation board, default configs for u-boot and buildroot for this board.

To test last reason reset feature I folow these steps:

1) Booting in buildroot.

2) Disabling watchdog daemon.

3) Board resets on watchdog timeout.

In U-boot debug I can see reset reason "Reset cause: POR", and it does not change even if the reset occurred due to a watchdog timeout. To detect reset cause u-boot reads  "SRC Reset Status Register (SRC_SRSR)".

I have written u-boot module which reads " Watchdog Reset Status Register (WDOGx_WRSR)", and it tells same (POR reason)

Do I need to do something to detect reset reason?

Labels (1)
0 Kudos
1 Solution
2,006 Views
igorpadykov
NXP Employee
NXP Employee

Hi Alexey

WDOGx_WRSR is only option to know reset reason, however on i.MX6UL EVK

wdog is connected to U708 (UM805RE) SPF-28617.pdf  i.MX6UL EVK schematic,

operating in the same manner as POR and resetting whole board.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

3 Replies
2,007 Views
igorpadykov
NXP Employee
NXP Employee

Hi Alexey

WDOGx_WRSR is only option to know reset reason, however on i.MX6UL EVK

wdog is connected to U708 (UM805RE) SPF-28617.pdf  i.MX6UL EVK schematic,

operating in the same manner as POR and resetting whole board.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

2,006 Views
aermakov
Contributor II

Thank you for answer. And what should I implement in my custom board to use this option?

0 Kudos
2,006 Views
igorpadykov
NXP Employee
NXP Employee

not to reset whole board.