NCS catch crashing app

Hello,

I'm pretty new to NCS (though an naRFcsdk5 veteran) so bear with me...

I've set up a new app based on peripheral_uart (nus) sample (nrf82540dk, NCS2. 5)

I've added another thread that sends  out a string over UARTE1 (the NUS thread uses UARTE0)

In the new thread I run the very same init code (uart_init) as in the sample's original thread and uart_tx() in the thread's loop.

For some reason the app crashes.

I tried to debug by commenting out the advertising so I can (more) easily breakpoint/single step, for no avail.

What is the best way to catch such a system crash in NCS?

What's NCS' equivalent to nrf sdk5 app_fault_handler (triggered from APP_ERROR_CHECK)?

Thanks

Related