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

RTT Log in SDK V14 not working?

I am porting my code (previously on 51822/SDK V12) to 52/SDK V14.

I have RTT logging working well on 51/SDK v12. In SDK V14 I noticed that the log module now is in experimental_log, and i can not get any output in RTT client. I am using official demos including for testing including ble_cscs, and the simple blinky sample.

So is SDK V14 log support RTT not complete yet?

Parents
  • So i can answer my own question:

    Log module in SDK14 is little different from V12. I put some text here in case others may reference:

    A new Macro function is needed when doing init with either RTT or UART: NRF_LOG_DEFAULT_BACKENDS_INIT();

    That will result in the need for extra sources in Makefile: $(SDK_ROOT)/components/libraries/experimental_log/src/nrf_log_default_backends.c
    $(SDK_ROOT)/components/libraries/experimental_log/src/nrf_log_str_formatter.c \

    and further requires:

    $(SDK_ROOT)/external/fprintf/nrf_fprintf.c
    $(SDK_ROOT)/external/fprintf/nrf_fprintf_format.c \

    Of course it is assumed you have already set other necessary macros as in SDK12 already.

    After that the output text showed up in RTT client.

Reply
  • So i can answer my own question:

    Log module in SDK14 is little different from V12. I put some text here in case others may reference:

    A new Macro function is needed when doing init with either RTT or UART: NRF_LOG_DEFAULT_BACKENDS_INIT();

    That will result in the need for extra sources in Makefile: $(SDK_ROOT)/components/libraries/experimental_log/src/nrf_log_default_backends.c
    $(SDK_ROOT)/components/libraries/experimental_log/src/nrf_log_str_formatter.c \

    and further requires:

    $(SDK_ROOT)/external/fprintf/nrf_fprintf.c
    $(SDK_ROOT)/external/fprintf/nrf_fprintf_format.c \

    Of course it is assumed you have already set other necessary macros as in SDK12 already.

    After that the output text showed up in RTT client.

Children
Related