how to identify different reset type

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
guxiang
Offline
Last seen:2 weeks 13 hours ago
加入:2017-05-12 04:18
how to identify different reset type

hi ,dialog
we found some unexpected resets on the device.
Is there any way to identify different reset type ( POR , BOD reset , watch dog reset ,...)?

Device:
MT_dialog
Offline
Last seen:1 month 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi guixiang,

Hi guixiang,

There is no standard procedure or any api that implements this functionallity, in case of the BOD a POR signal is set and you can check upon the new start up the BOD_STATUS_REGISTER (Brown Out Detection status register) in order to check which state of the BOD triggered the POR. Regarding Hardfault and NMI resets, both of the handlers are storing info in the retained section of the RAM area, so you should be able to store any custom indications and check upon a reset any flags that you have set, if no debugger is available for attaching.

Thanks MT_dialog

guxiang
Offline
Last seen:2 weeks 13 hours ago
加入:2017-05-12 04:18
According to the datasheet ,

According to the datasheet , the BOD_STATUS_REGISTER should be 0 after reset . But I found it is 0x15. The power voltage is above 3V.
what does that mean?

MT_dialog
Offline
Last seen:1 month 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi guxiang,

Hi guxiang,

如果你是referring on table 16 on the datasheet, in the "RESET by POR only" column that the BOD_STATUS_REG should be set to zero after reset, this is a mistake on the datasheet and will be corrected in future releases. The BOD_STATUS_REG is not being reset by POR.

Thanks MT_dialog