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

nRF52 RTT debug problem

I'm developing an embedded application using the nRF52 device. I am using GCC to build the C software and a segger flash device to program the nRF52, all using linux. I wish to generate debug information during the execution of my code and up until present I have used the UART.

I have had no luck in getting the UART to work whilst in the bootloader and so I have decided to use RTT.

I have defined NRF_LOG_USES_RTT and set its value to 1, at the start of my main function I call app_trace_init and I send text output using app_trace_log.

The problem is that I can only see the debug output (using JLinkRTTclient) when programming the nrf52. After the programming has completed I get a connection closed message and no more debug output.

If I reset my target, still no output. I appear to get output only when erasing and flash the softdevice.

I'm new the the nrf52 devices and Nordic in general and I'm a little lost. Could anyone please explain what I may be doing wrong?

Thanks in advance

Related