This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

log issue sdk 17.0.2(Internal)

Hi All,

 

I cannot get the NRF_LOG messages via RTT to the debug terminal in SES or RTT Viewer.

My setup:
HW: PCA10040
SDK: 17.0.2
Project: nRF5_SDK_17.0.2_d674dde\nRF5_SDK_17.0.2_d674dde\examples\ble_central\ble_app_uart_c
SES: 4.50

My project compiles and it runs. ble_central works fine.

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_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0

NRF_LOG_BACKEND_RTT_ENABLED 1
NRF_LOG_BACKEND_UART_ENABLED 0
NRF_LOG_ENABLED 1
NRF_LOG_DEFERRED 0 (tried both 0 and 1)

I can very rarely see the log output with RTT Viewer with the following settings.

Same issue i found on 15.3 it worked, after changing configs.

#define NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 1

to

#define NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0

Please suggest.

Thanks in advance

Pavan s k

Related