While getting myself familiar with new SDK12 features I've noticed that when nrf_log
uses deferred logging to RTT NRF_LOG_FINAL_FLUSH()
results in unconditional breakpoint.
This looks like not so good idea because as the documentation states this function should be used just before system reset in error handler. Instead code execution stops regardless if there's debugger connected or not. This could easily lead to situation where the board will hang forever instead resetting on error.
What was rationale of coding it this way? Or maybe I'm doing something wrong?