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

NRF log RTT small buffer size when device is disconnected

When I reset the device and in some time connect it to JLinkRTTViewer, it shows only 11-12 first messages after the reset. Which parameter I should change to increase number of messages? I use in-place processing, RTT backend and NRF_LOG_ALLOW_OVERFLOW are turned on.

Parents
  • Hello, I have found parameter in sdk_config.h which response for buffer size: SEGGER_RTT_CONFIG_BUFFER_SIZE_UP .

    But RTT behavior if the buffer is full supports next modes(Parameter SEGGER_RTT_CONFIG_DEFAULT_MODE):

    SKIP  - Do not block, output nothing.
    TRIM  - Do not block, output as much as fits.
    BLOCK - Wait until there is space in the buffer.

    How to use NRF_LOG_ALLOW_OVERFLOW, I don`t know.

Reply
  • Hello, I have found parameter in sdk_config.h which response for buffer size: SEGGER_RTT_CONFIG_BUFFER_SIZE_UP .

    But RTT behavior if the buffer is full supports next modes(Parameter SEGGER_RTT_CONFIG_DEFAULT_MODE):

    SKIP  - Do not block, output nothing.
    TRIM  - Do not block, output as much as fits.
    BLOCK - Wait until there is space in the buffer.

    How to use NRF_LOG_ALLOW_OVERFLOW, I don`t know.

Children
Related