I cannot get the NRF_LOG messages via RTT to the debug terminal in SES or RTT Viewer. My setup:HW: PCA10040 1.2.4SDK: 15.3Project: \nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_hrs\pca10040\s132\ses\ ble_app_hrs_pca10040_s132.emProjectSES: 4.16
My project compiles and it runs. I can see the Nordic_HRM device from my phone when the app is running (in debug mode and by downloading the app). I can set and hit breakpoints.
I expect to see this line printed to the integrated Debug Terminal in SES but I do not.
My modifications to sdk_config.h:
NRF_LOG_BACKEND_RTT_ENABLED 1NRF_LOG_BACKEND_UART_ENABLED 0NRF_LOG_ENABLED 1NRF_LOG_DEFERRED 0 (tried both 0 and 1)
I can very rarely see the log output with RTT Viewer with the following settings:
and the following log tab:
It seems to log once if immediately after starting the RTT Viewer if a new instance of SES is running. After that, I can restart the board, the app, start a new debug session, etc and I will never see another line of output.
I confirmed I have the correct target device selected for debugger.
Any other ideas or support? Many thanks in advance.
It is fixed with this:You need to change a line in your sdk_config.h from#define NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 1to#define NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0devzone.nordicsemi.com/f/nordi…dded-studio/182906#182906
#define NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 1
#define NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0
Confirmed! Many thanks, Remo. And thanks for pointing to the issue where the details of this issue are documented. I appreciate it.
Confirmed it works . SDK 15.3