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

No RTT Viewer output if no call to nrf_pwr_mgmt_run()

Hi!

I've based a new project for the nRF52840/S140/Preview-DK on ble_central/ble_app_uart_c.

I use the NRF_LOG_XXXX macros for debug and they print fine in RTT Viewer.

However, I do not need any powersave in my app but when I remove the call to nrf_pwr_mgmt_run() in the main loop I do not get any printout in RTT Viewer anymore?

I've tested this several times.

If I call the RTT functions directly, e.g. SEGGER_RTT_WriteString() etc. it works fine no matter if I call nrf_pwr_mgmt_run().

Maybe somebody knows what causes this and how to fix it? I have no idea what Nordic does in the underlying functions of the NRF_LOG_XXXX macros and how it is dependent on nrf_pwr_mgmt_run().

I may also add that I'm running the project in the Keil5 uVision debugger.

Thanks!

Related