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

How to enable UART or RTT logging in examples?

I have downloaded nRF5_SDK_12.2.0_f012efa and tried to test logging in examples but without success. Even if I compile an example where NRF_LOG_BACKEND_SERIAL_USES_UART 1 is enabled by default in sdk_config.h I do not get any logs on terminal. I have chmod 666 of /dev/ttyACM0 and set baudrate to default 115200 but still nothing. If I set NRF_LOG_BACKEND_SERIAL_USES_RTT instead of UART I also get nothing on JLinkRRTClient.

Is there anything else that needs to be configured? I compile for pca10028.

Parents Reply
  • Hello Jorgen,

    I can't find NRF_LOG_BACKEND_SERIAL_USES_UART.

    I get the error: undefined reference to `nrf_log_default_backends_init'

    But I have enabled : #ifndef NRF_LOG_BACKEND_UART_ENABLED
                                     #define NRF_LOG_BACKEND_UART_ENABLED 1
                                     #endif

    What could I possibly be missing?

Children
Related