RTT Output fails

I am using SDK V1.8 and have noticed that RTT output will run for a short time then stop.

Debug is still running because breakpoints can be set, just no printk output or other log data, it is happening regardless of which processor I am using say nRF9160 and nRF52840

RTT has been initiated withing prj.conf using : 

CONFIG_UART_CONSOLE=n
CONFIG_RTT_CONSOLE=y
CONFIG_USE_SEGGER_RTT=y

Any help would be vey much appreciated

  • Hello,

    do you have CONFIG_LOG_IMMEDIATE=y enabled in the prj.conf?

  • No it wasn't enabled and when I did enable it, I received the above error.

  • To try and help explain what I'm seeing, here is some log output.

    It will start to drop messages and then give up sending any data to RTT.

    Clock Pulse : 087F035BE5EE, 190
    Relaying MAC : DFACE4DF75F9
    TTL : 2
    RSSI : 59
    Turning RGB's Magenta:
    Turning off RGB's :
    Advert Status : Created
    Actual Tx Power : 8
    Advert Status : Set
    Advert Status : Coded PHY
    Advert Status : Started
    Advert Status : Stopped
    Turning RGB's Green:
    Turning off RGB's :
    Clock Pulse : 087F035BE5EE, 191
    --- 1 messages dropped ---
    Relaying MAC : DFACE4DF75F9
    TTL : 2
    RSSI : 62
    Turning RGB's Magenta:
    Turning off RGB's :
    Advert Status : Created
    Advert Status : Set
    Advert Status : Coded PHY
    Advert Status : Started
    Advert Status : Stopped
    Turning RGB's Green:
    Turning off RGB's :
    Duplicate Clock found, ignoring it :
    ______________________________________
    Clock Pulse : 8C056CA1CACB, 191
    Relaying MAC : DFACE4DF75F9
    TTL : 2
    RSSI : 58
    Turning RGB's Magenta:
    Advert Status : Started
    --- 4 messages dropped ---
    Advert Status : Stopped
    Turning RGB's Green:
    Turning off RGB's :
    ______________________________________
    Clock Pulse : 5E5E92D906DD, 191
    Relaying MAC : 52487E0E2DE3
    TTL : 2
    RSSI : 71
    Turning RGB's Magenta:
    Turning off RGB's :
    Advert Status : Created
    Advert Status : Set
    Advert Status : Coded PHY
    Advert Status : Started
    Advert Status : Stopped
    --- 28 messages dropped ---
    Turning RGB's Green:
    Turning off RGB's :
    ______________________________________
    Clock Pulse : DFACE4DF75F9, 190
    Relaying MAC : 8C056CA1CACB
    TTL : 1
    RSSI : 55
    Turning RGB's Magenta:
    Turning off RGB's :
    Advert Status : Created
    Advert Status : Set
    Advert Status : Coded PHY
    Advert Status : Started
    Advert Status : Stopped

  • I tried changing some values in log_backend_rtt.c and it improved things a bit, as in it failed a bit later than it usulayy did. However I'm most certainmly not comfortable trying to modify any part of the SDK.

Related