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

NRF_LOG_DEFERRED

I have troubles with logs over uart. I'm debuging dfu bootloader secure with SDK 12.2. BLE is used for DFU transport. I set NRF_LOG_DEFERRED 1 as in my another application where logs works fine, and copy rest of defines related to uart and logs from sdk_config.h. I spent lot of time to find where is problem, I debug step by step. I see that uart interrupt is enabled, gpio for uart tx is correct. But uart was silent and understanding source code is very difficult to find problem. Than I try NRF_LOG_DEFERRED 0 and I see logs. What is reason of this problem? I think it's better to use NRF_LOG_DEFERRED 1. I my opinion 1 means fifo using and uart interrupts, and 0 means polling mode. Polling mode is slow and can have affect in some cases.

Parents Reply Children
Related