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

I can't see NRF_LOG output

Hello,

I am using SES V4.5, SDK 15.2 and the "ble_app_blinky_c" and I was  not able  to see the programme log.

I tried setting up the file "sdk_config.h" to use the RTT, and It doesn't work.

I tried setting up "sdk_config.h" to use UART and still won't show anything.

Even in the Debug Terminal of SES I can't see anything.

What should I do to solve this problem ?

Thank you.

  • Hello,

    I am using SES V4.5, SDK 15.2 and the "ble_app_blinky_c" and I was  not able  to see the programme log.

    Did you attempt to run an unmodified version of the BLE blinky central example, and you then saw nothing on your serial terminal?

    Which serial terminal desktop application are you using?

    I tried setting up the file "sdk_config.h" to use the RTT, and It doesn't work.

    I tried setting up "sdk_config.h" to use UART and still won't show anything.

    The unmodified BLE blinky central example uses the UART backend - you do not need to make any modifications to the example for this to work.
    What settings did you change when you attempted to switch to the RTT backend?

    Even in the Debug Terminal of SES I can't see anything.

    The SES debug terminal uses RTT, if the logger module is not configured to use the RTT backend then nothing will show in the debug terminal.

    Looking forward to resolving this issue together,

    Best regards,
    Karl 

  • thank you for your quick reply.

    1. Yes, I am using an unmodified version of the  BLE blinky central example and I just want to output this message NRF_LOG_INFO("Blinky example started.") 

    2. I used Tera Term 

    3. the modifications in SDK_config.h are :

    #define NRF_LOG_BACKEND_RTT_ENABLED 1

    #define NRF_LOG_BACKEND_UART_ENABLED 0

  • cyrine said:
    thank you for your quick reply.

    No problem at all, I am happy to help.

    cyrine said:
    1. Yes, I am using an unmodified version of the  BLE blinky central example and I just want to output this message NRF_LOG_INFO("Blinky example started.") 
    cyrine said:
    2. I used Tera Term 

    Are you using a nRF52 Development Kit?
    If you have flashed the DK with an unmodified version of the example, then you should see it behave as described in the Blinky central example documentation. Is the LED blinking as described?
    Could you also verify that you have opened the correct COM port, and that your serial terminal has the correct configuration?
    I have no personal experience with using Tera Term, but I assume it is similar to all other serial terminal applications.

    cyrine said:

    3. the modifications in SDK_config.h are :

    #define NRF_LOG_BACKEND_RTT_ENABLED 1

    #define NRF_LOG_BACKEND_UART_ENABLED 0

    This looks correct, but keep in mind that RTT does not show on regular serial terminals. You could either see it in the SES debug terminal or using the J-Link RTT Viewer desktop application.

    Best regards,
    Karl

  • I am using BMD-300 Serie Evaluation Kit witch uses Nordic nrf52832 Arm Cortex-M4F. and the example works exactelly as described. I am also more interested in seeing the log on RTT rather then UART.

    I used J-link RTT Viewer V6.72e

  • I added this configuration in SDK_config.h :  NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0 and now my SES Debug Terminal works fine but the RTT viewer works only after many tries.

Related