How could I view the logs outputted via NRF_LOG_INFO? Do I really have to set up the UART connection for it which means having UART driver in place?
How could I view the logs outputted via NRF_LOG_INFO? Do I really have to set up the UART connection for it which means having UART driver in place?
Hi,
How could I view the logs outputted via NRF_LOG_INFO? Do I really have to set up the UART connection for it which means having UART driver in place?
It supports two backends to be defined in sdk_config.h:
NRF_LOG_BACKEND_RTT_ENABLED
or:
NRF_LOG_BACKEND_UART_ENABLED
By setting NRF_LOG_BACKEND_RTT_ENABLED to '1' (and disabling the UART backend), you can use JLink RTT Viewer to see your prints.
Kind regards,
Håkon
After setting the flags in sdk_config, I still don't see any prints in the RTT viewer with these settings
Any idea?
The sdk_config.h looks good.
Did you try other examples with similar settings for RTT?
Kind regards,
Håkon
Yes I have. Is there anything wrong I'm doing with RTTViewer itself? Please guide
I am not sure why it does not work, your configuration should be good.
Q1: Are you testing on a nRF52840-DK? If not, can you try on a DK?
Q2: Does the firmware running on the nRF run as expected at this point in time?
Q3: If you enter debug mode, is it stuck somewhere?
Kind regards,
Håkon