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 Reply Children
  • 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 

  • This option should only matter if you are using the latter.

    then why is this option defined immediately in all projects?

    During the time I was trying to understand why, after switching to 15.3.0 (where this option appeared) the logs stopped working, I practically created own logging system.

    A big request, in a future release of SDK, set this option to 0.

  • Hello,

    Are you using Segger Embedded Studios, and if so - which version?
    Please see this ticket's answer by Johannes on the subject., you may also find the links references by Awneil helpful, as to when this change was added to the SES Debug terminal.

    I think you could get around this by using the J-Link RTT Viewer application, rather than the SES debug terminal - but I have not tried this myself.

    Best regards,
    Karl

Related