This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF_LOG is not thread safe

I'm developing in a freeRTOS environment. One thread is sampling the ADC using PPI at 200Hz, which various other threads sample Sensors via SPI and finally I'm using the NRF_LOG thread example from the freertos example.  I've noticed however when I enable logging (either RTT or UART),  the debugger crashes and it seems the FW restarts.  If I disable Logging I don't see any issues.  These leads me to believe that NRF_LOG is in fact not thread safe, even when deferred logs are enabled.  This is especially noticeable when I run the BLE thread.  

Related