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,

    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 

  • I tried to use both, but now only printf is working but this solves my issue and every thing is working as intended. Thank you very much for your help 

  • cyrine said:
    I tried to use both, but now only printf is working but this solves my issue and every thing is working as intended.

    Just to make sure, when you say that you tried to use both you mean that you tried both separately, and not at the same time, correct?
    If you would like, you could send me your project folder and I may take a look at why the nrf_log_info is not displaying on RTT properly.

    cyrine said:
    Thank you very much for your help 

    No problem at all, I am happy to help!

    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