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
Hi,
Q1: Which project in the SDK are you testing with?
Q2: Could you please share your sdk_config.h?
Kind regards,
Håkon
0714.sdk_config.h
nRF5_SDK_17.1.0_ddde560
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
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
if you aren't sure, please assign this ticket to someone more senior perhaps? Also your replies are super late
Hi,
Can you please try this file?
This is ble_app_hrs, compiled with RTT backend support:
Output in JLinkRTTViewer:
If it still does not work, I would recommend that you contact Segger and report a bug related to the RTTViewer software.
Kind regards,
Håkon
I can't for some reason use NrfConnect to flash
https://ibb.co/5Y48wBH