Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52832 Adafruit feather board - DEBUG via serial issue

Hello.
Got such a problem.
I use nrf52832 Adafruit Feather board.
While working with BLE examples (Softdevice and app.), debug via serial works fine.
Can see all the text info via terminal.

But when I use ESB examples (proprietary RF), also can see some debug usage in the code, but no info on my serial...
App is properly working, debugging via SWD is fully ok (Keil v5 IDE). But nothing on serial.

Any suggestions?


All my best.
Ivan.

  • You mean the NRF_LOG_... output?

    These have a choice (sdk_config.h setting) to output either to UART or to RTT.

    Perhaps the ESB example is set to RTT ... ?

  • Hi,

    The logger module is not enabled in the ESB examples. You can enable it in the logging in your sdk_config.h file.

    For example, this is the required settings in esb_prx_pca10040 example for logging on UART:

    // <e> NRF_LOG_BACKEND_UART_ENABLED - nrf_log_backend_uart - Log UART backend
    //==========================================================
    #ifndef NRF_LOG_BACKEND_UART_ENABLED
    #define NRF_LOG_BACKEND_UART_ENABLED 1
    #endif
    
    // <e> NRF_LOG_ENABLED - nrf_log - Logger
    //==========================================================
    #ifndef NRF_LOG_ENABLED
    #define NRF_LOG_ENABLED 1
    #endif

    Since all the log outputs in the example are done using NRF_LOG_DEBUG, you also need to change the log level (or change the logging macro to NRF_LOG_INFO) to see any log output:

    // <o> NRF_LOG_DEFAULT_LEVEL  - Default Severity level
     
    // <0=> Off 
    // <1=> Error 
    // <2=> Warning 
    // <3=> Info 
    // <4=> Debug 
    
    #ifndef NRF_LOG_DEFAULT_LEVEL
    #define NRF_LOG_DEFAULT_LEVEL 4
    #endif

    Best regards,
    Jørgen

  • Great!
    Thanx.
    I 've make proper changes in sdk_config.h Everything is working fine now!

Related