Logging problems with nRF52840-DK

I'm using the Nordic nRF52840-DK. I'm having a hard time with logging using RTT. Sometimes it works, sometimes it does not. Usually I get a few runs where it works, then it stops. At that point I usually have to restart VSCode and maybe it will start working again, or it may take a few restarts of VSCode and/or the device, I really don't know what exactly gets it working again. I never have problems logging with the regular Dongle. Anyone have any idea why the logging works sometimes but not others? It's making development extremely difficult. Thanks 

  • Hi Tim,

    Which sample are you working with? Also, which SDK version?

    The Dongle prints over UART, which is independent of J-Link, but he DK’s RTT goes through the on-board J-Link OB and so any J-Link driver/firmware/process weirdness shows up sometimes as “no logs.”

    I would suggest you to not open the RTT Viewer and VSCode RTT terminal together, i.e. try using only one host tool at a time. Also, try to keep your JLink updated.

    -Priyanka

Related