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

mesh example debug print

I'm using "nrf5_SDK_for_Mesh_v0.9.2-Alpha".

How can I debug print out to UART print at printf, not RTT ?

Parents
  • Jake,

    in ["mesh/core/api/nrf_mesh_config_core.h"] line 307 you can see that rtt is the default:

    #ifndef LOG_CALLBACK_DEFAULT
    #if defined(NRF51) || defined(NRF52_SERIES)
        #define LOG_CALLBACK_DEFAULT log_callback_rtt
    #else
        #define LOG_CALLBACK_DEFAULT log_callback_stdout
    #endif
    #endif
    

    override this at compile time with a cmake argument.

      cmake .. -G Ninja -DLOG_CALLBACK_DEFAULT=log_callback_stdout
    
Reply
  • Jake,

    in ["mesh/core/api/nrf_mesh_config_core.h"] line 307 you can see that rtt is the default:

    #ifndef LOG_CALLBACK_DEFAULT
    #if defined(NRF51) || defined(NRF52_SERIES)
        #define LOG_CALLBACK_DEFAULT log_callback_rtt
    #else
        #define LOG_CALLBACK_DEFAULT log_callback_stdout
    #endif
    #endif
    

    override this at compile time with a cmake argument.

      cmake .. -G Ninja -DLOG_CALLBACK_DEFAULT=log_callback_stdout
    
Children
Related