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

nRF5 SDK v17.0.2: RTT output does not work with specified SES version

After downloading nRF5 SDK v17.0.2, I checked the Release Notes - and they state SES v4.50 has "been used for testing".

So I downloaded & installed SES v4.50

The HID Keyboard example builds & works fine, but RTT logs display in the SES Debug Terminal does not work - it just shows blank lines.

This is a long-standing known issue:

https://devzone.nordicsemi.com/f/nordic-q-a/45985/nrf_log-not-working-on-segger-embedded-studio/181804#181804 - over 2 years ago!

Surely, this should have been fixed in the example by now?

As stated in that thread, the fix is to disable NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED

Parents Reply
  • Hi Andrew

    Fair point, in most terminals there would be no difference if you send CR once or twice...

    The developers investigated this, and found that the runtime overhead of handling the \r\r\n was very minimal. They patched the issue internally, and it should be included in the next SDK release. 

    If anyone wants to test it out before that I have included the patched files here. Just replace the original files in the \nRF5_SDK_17.0.2_d674dde\external\fprintf folder with these:

    6472.fprintf_patched.zip

    Best regards
    Torbjørn

Children
Related