toggle quoted messageShow quoted text
From: Boie, Andrew P [mailto:email@example.com]
Sent: 14 August 2017 21:03
To: Scott Nelson <firstname.lastname@example.org>; Cufi, Carles
[mailto:zephyr-users- email@example.com] On Behalf Of
Sent: Monday, August 14, 2017 11:06 AM
The board is one of these:Let me know if there’s any additional info I can provide and thanks for
http://www.waveshare.com/nrf51822-eval-kit.htm I have been flashing
it with STLink + OpenOCD and I’m trying to figure out how I can debug
the chip with that setup + GDB. I am not using the Nordic dev kit.
Is there a way I can override the Zephyr fault hander so that I could,
for example, flash an LED or repeatedly log something to the serial
Yes. _SysFatalErrorHandler is declared __weak just for this purpose.
In your application, implement:
void _SysFatalErrorHandler(unsigned int reason, const NANO_ESF *pEsf)
And implement whatever policy you would like for fatal errors.
The default implementation for ARM is in
Thanks for the clarification Andrew, I actually always set the breakpoint in _NanoFatalErrorHandler() but it's really good to know that there's the user version declared weak.