Hello,
(I am using SDK 15.1 on a linux system)
I will breakdown the question in two parts -
- when do we get fatal ? - i know one or two cases for example when softdevice doesn't have enough memory to execute the given operation but are there certain known scenarios/cases when we get it?
- second question is about generic error handling - i would like to know what people generally follow to avoid fatal conditions again i might know a few (probably not so good ways).
- for example - when your call required a system packet to be sent out but queue is full so you loop the call till it returns NRF_SUCCESS etc.
- or when our debug flag is not set and the APP_ERROR_CHECK calls its handler and it eventually calls to reset the the system.
These questions are mainly from the point of view of putting devices into production.
Thanks
EDIT :
3. referring this error module link
and the file attached below,
- I was not able to find where DEBUG is defined
- Also whenever it prints "fatal error" according to the file it should also print "System Reset" and do a system reset - neither of which happens.
What am I missing or where am I going wrong ?