This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Errata 136

Hi,

I have some questions regarding errata 136.

I understand that the workaround is to ignore reset reason bits which are not RESETPIN.

However, I don't understand how ~POWER_RESETREAS_RESETPIN_Msk can help us, as the operation makes pin reset bit 0 and the other bits become 1. Isn't that the opposite from what we want?

In addition, I had some troubles with implementing watchdog, as POWER_RESETREAS_DOG_Msk was always true, until I removed errata 126 fix. Is it possible?

Thanks!

Parents Reply
  • Hi,

     

    The workaround will only be applied if this is true:

    if (NRF_POWER->RESETREAS & POWER_RESETREAS_RESETPIN_Msk){
        NRF_POWER->RESETREAS =  ~POWER_RESETREAS_RESETPIN_Msk;
    }

     

    That should not be true if WDT reset is the only source in RESETREAS. Again, note that this is an accumulate register, meaning that for each reboot, it accumulates and remembers the former reset reason unless the application writes '1' to it.

     

    Kind regards,

    Håkon

Children
Related