I use SDK12.2, and I have enabled NRF_LOG_BACKEND_SERIAL_USES_RTT and NRF_LOG_ENABLED. But there was nothing show in J-link RTT and don't know why.
I use SDK12.2, and I have enabled NRF_LOG_BACKEND_SERIAL_USES_RTT and NRF_LOG_ENABLED. But there was nothing show in J-link RTT and don't know why.
Do you get any output if you set it to NRF_LOG_BACKEND_SERIAL_USES_UART
? Do you have NRF_LOG_DEFERRED
set? If you do, you need to call NRF_LOG_PROCESS()
or NRF_LOG_FLUSH()
to process the log queue.
I've set NRF_LOG_DEFERRED
and once I called NRF_LOG_PROCESS()
, the chip would reset.
Now I'am using SEGGER_RTT_printf
instead of NRF_LOG_INFO
Have you tried debugging, to see which function is failing, and what error code you get?