Occasionally, the NRF_LOG output just keep putting out random old log data. I have enabled the timestamp so I know they are old data. Once it happens, it just stuck in an infinite loop. It appears the log entry pointer or length is corrupted for some reason. Normally, I don't output a lot of logs, maybe couple hundred characters max. I tried increasing buffer size, but problem remains.
Below is my configuration:
- Using SDK 15.0.0, Segger Embedded Studio 3.5,
- SEGGER_RTT_CONFIG_BUFFER_SIZE_UP 1024
- NRF_LOG_BACKEND_RTT_ENABLED 1
- NRF_LOG_DEFERRED 1
- NRF_LOG_BUFSIZE 4096
- Stack size is 12K
Other log related defines have default values. Application also use the Gazell library.
Please give me some hints to isolate the problem.