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.

Parents
  • 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.

  • Hello,

    cyrine said:
    NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0

     How are you writing your printout statements - are you using the logger module, with function call NRF_LOG_INFO(" "), or are you using printf()? This option should only matter if you are using the latter. I would recommend that you make use of the NRF logger module functions - since it contains many useful functions and features to make your debugging and application printouts less resource consuming for the application.

    cyrine said:
    now my SES Debug Terminal works fine but the RTT viewer works only after many tries.

    I am glad you got the RTT viewer to work!
    Are you still experiencing any issues, or does this mean that everything now is working as intended?

    Please do not hesitate to open a new ticket if you should encounter any other issues or questions in the future.

    Best regards,
    Karl 

Reply
  • Hello,

    cyrine said:
    NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0

     How are you writing your printout statements - are you using the logger module, with function call NRF_LOG_INFO(" "), or are you using printf()? This option should only matter if you are using the latter. I would recommend that you make use of the NRF logger module functions - since it contains many useful functions and features to make your debugging and application printouts less resource consuming for the application.

    cyrine said:
    now my SES Debug Terminal works fine but the RTT viewer works only after many tries.

    I am glad you got the RTT viewer to work!
    Are you still experiencing any issues, or does this mean that everything now is working as intended?

    Please do not hesitate to open a new ticket if you should encounter any other issues or questions in the future.

    Best regards,
    Karl 

Children
Related