This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to enable J-Link RTT Viewer on nRF5340 using the Enhanced shock burst (esb) sample code?

Hi,

I am trying to get my nrf24L01+ to communicate with nrf5340 using the enhanced shock burst sample code. In the sample code there are LOG_INF, LOG_ERR, LOG_DBG commands available? How do I print them out on the console? I would prefer to use the J-LINK RTT Viewer. I have compiled the code for the cpu_net core.

Tank you so much for your help.

Parents
  • Hi,

    make sure NRF_LOG_BACKEND_RTT_ENABLED and NRF_LOG_ENABLED are 1

    NRF_LOG_DEFAULT_LEVEL should be setted accordingly to get ERROR, DEBUG, INFO outputs

    // <o> NRF_LOG_DEFAULT_LEVEL - Default Severity level

    // <0=> Off
    // <1=> Error
    // <2=> Warning
    // <3=> Info
    // <4=> Debug

Reply
  • Hi,

    make sure NRF_LOG_BACKEND_RTT_ENABLED and NRF_LOG_ENABLED are 1

    NRF_LOG_DEFAULT_LEVEL should be setted accordingly to get ERROR, DEBUG, INFO outputs

    // <o> NRF_LOG_DEFAULT_LEVEL - Default Severity level

    // <0=> Off
    // <1=> Error
    // <2=> Warning
    // <3=> Info
    // <4=> Debug

Children
No Data
Related