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

Logging to file?

I need to get quite a lot of logs and quite fast too. How do I do I get the logs into a file?

I tried with Segger RTT logger, but it tends to give up quite quickly. I heard rumors that the RTT logger and debug terminal in the Segger Embedded Studio don't like each other, and that tends to cause problems. How do I get to use only RTT logger and turn debug terminal logging off?

Or are there other means? There are no serial ports left to use.

Parents Reply
  • Hi,

    You could try to increase some buffer sizes, giving the viewer a bit more headroom for fetching the log. I got some partial log messages when increasing the message size, but doubled the NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE setting from 64 to 128 and then all messages went through. For the RTT itself you can increase SEGGER_RTT_CONFIG_BUFFER_SIZE_UP (default value 512). Both of those settings will impact memory usage.

    Regards,
    Terje

Children
Related