In our NRF9160 application, we do not have a UART available and have to implement other means of logging crashes.
We have written our own k_sys_fatal_error_handler but it seems that it is not called upon a null pointer dereference. Instead the implementation from fatal_error.c in the NRF SDK was called.
After adding
CONFIG_RESET_ON_FATAL_ERROR=n
to spm.conf, the weakly referenced standard implementation of k_sys_fatal_error_handler in fatal.c was used.
How can we make sure that our error handler is called upon a secure fault exception?
Best Regards
Martin