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
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
if you aren't sure, please assign this ticket to someone more senior perhaps? Also your replies are super late
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
Hi,
Are you also seeing issues if you try to use nrfjprog directly?
nrfjprog --program <hex file> --sectorerase --verify --reset -f nrf52
If it still fails, could you also try calling nrfjprog with "--log"?
nrfjprog --recover -f nrf52 --log
Kind regards,
Håkon