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

NRF91 - reset device when exception occurs

Hi,

I'm using NRF91.

when an exception occur, the device gets stuck.

in production I would like to reset that device, if it occurs.

i.e. 

                                                                                                                                                               
***** HARD FAULT *****                                                                                                                                                                                      
  Fault escalation (see below)                                                                                                                                                                              
***** BUS FAULT *****                                                                                                                                                                                       
  Precise data bus error                                                                                                                                                                                    
  BFAR Address: 0x50008120                                                                                                                                                                                  
***** Hardware exception *****                                                                                                                                                                              
Current thread ID = 0x2002d1a0                                                                                                                                                                              
Faulting instruction address = 0x15496                                                                                                                                                                      
Fatal fault in ISR! Spinning...         

Parents
  • Firstly I would stress that you never let your production devices ever get firmware that will hit a hard fault.

    Secondly, have you looked at the Watch Dog Timer (WDT). This is designed to handle faults with a reset and from my development testing, I remember it triggering during a Hard Fault when the timer counter expired. Note that this will just reset the device and won't stop the hard fault from occuring again.

Reply
  • Firstly I would stress that you never let your production devices ever get firmware that will hit a hard fault.

    Secondly, have you looked at the Watch Dog Timer (WDT). This is designed to handle faults with a reset and from my development testing, I remember it triggering during a Hard Fault when the timer counter expired. Note that this will just reset the device and won't stop the hard fault from occuring again.

Children
No Data
Related