Watch Dog Reset Reason
- group WDT_Reset_Reason
wdg reset reason introduction:
If you want to get reset reason from aon 0x15, dividing three types: a) HW reset: aon reg 0x15 is cleared to 0, magic pattern on ram will change b) SW RESET_ALL: aon reg 0x15 is cleared to 0, but magic pattern on ram not change c) SW RESET_ALL_EXCEPT_AON: obtain reset reason by reading aon reg 0x15.
Attention: don’t use 0x1 as your reset reason when using RESET_ALL_EXCEPT_AON type! Because 0x1 is default value.
Enums
-
enum T_SW_RESET_REASON
Values:
-
enumerator RESET_REASON_HW
-
enumerator RESET_REASON_WDG_TIMEOUT
-
enumerator RESET_REASON_POWERDOWN
-
enumerator SW_RESET_APP_START
-
enumerator SWITCH_HCI_MODE
-
enumerator SWITCH_TEST_MODE
-
enumerator DFU_SWITCH_TO_OTA_MODE
-
enumerator DFU_ACTIVE_RESET
-
enumerator DFU_FAIL_RESET
-
enumerator UPPER_CMD_RESET
-
enumerator SINGLE_TONE_TIMEOUT_RESET
-
enumerator UART_CMD_RESET
-
enumerator RESET_REASON_FACTORY_RESET
-
enumerator RESET_REASON_LPC_TRIGGER
-
enumerator SW_RESET_APP_END
-
enumerator RESET_REASON_HW