Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Log after flush

On line 904 of nrf_log_frontend.c there is a log message to indicate the backends are flushed – but this message adds a log to the queue. If auto flush is enabled, this can lead to an infinite loop. Present in SDK 17.0.0

Parents
  • Hi,

    Thank you for reporting this issue. It is highly appreciated! I have made an entry in our internal issue tracker, for the SDK team to look into.

    Regards,
    Terje

  • Has this issue been addressed in SDK 17.0.2?  I believe we are seeing a similar problem in our device using the RTT transport.  We are also using SDK 17.0.2. 

  • Hi,

    This issue is present in SDK 17.0.2.

    The offending line is line 904 in <sdk root>/components/libraries/log/src/nrf_log_frontend.c:

    Fullscreen
    1
    NRF_LOG_WARNING("Backends flushed");
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    If what you see is this issue, then commenting out or removing that line should fix it.

    Regards,
    Terje

  • It could also be this other issue I recently discovered: devzone.nordicsemi.com/.../bug-in-nrf_log_frontend-c

Reply Children
No Data