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

No serial output through RTT (target device: Thingy)

Hey Dev zone,

I flashed my application onto my Nordic Thingy board (through Onboard Jlink debugger present on nrf52840 dev board), and can see some pretty colors (LEDs lighting up.). I want to use SEGGER RTT to view some serial output. In my main.c, I have the following:

int main() { ... NRF_LOG_INIT(NULL); NRF_LOG_WARNING(NRF_LOG_COLOR_CODE_GREEN"===== Thingy started! =====\r\n"); ... for (;;) { ... SEGGER_RTT_WriteString(0, "Hello World!\r\n"); ... } // I expect to see Hello World! in my RTT terminal

In my .../project/pca20020_s132/config/sdk_config.h, I have the following settings: NRF_LOG_ENABLED 1 NRF_LOG_DEFAULT_LEVEL 3 // I increased the level to see info messages too NRF_LOG_BACKEND_SERIAL_USES_RTT 1

I opened a cmd prompt terminal in my Windows machine, and did following config: Jlink.exe -device nRF52832_XXAA -speed 4000 -if SWD

and in another terminal, I have JLinkRTTClient.exe running.

I see no output from my code at all. Are there any settings missing?? I atleast expect to see the direct SEGGER_writeString() output. I'm using the latest version of J-Link (5.12), and my Nordic Thingy fw is also the latest as of 2 days back.

Thanks and regards, Shubhangi

Related