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

Migrate printk from UART to RTT

Hello,

What are the steps to migrate a SDK sample printk output from UART to RTT please ?

Thank you

  • Hi.

    Have you tried to search for RTT related configurations in menuconfig?

    A good place to start is by enabling CONFIG_USE_SEGGER_RTT. That adds RTT as a logging backend.

    In addition, you could try to enable CONFIG_RTT_CONSOLE to display console messages on RTT.

    Note that these settings do not remove UART as a backend for either the logging or console.

    Also, if your project consists of multiple images (such as MCUBoot or SPM + your application), you have to change the settings for each image you want to change.

    Best regards,

    Didrik

  • Your keywords helped me to find "ncs\zephyr\doc\guides\tools\nordic_segger.rst" and it works.

    Thank you.

  • Hello,

    Is there a way to get all outputs (like modem in LTE Link Monitor) please ?

  • If you are talking about the AT commands going through the at_host library, there is no simple way of getting that output (and input) to RTT, as the library uses UART directly, not Zephyr's console or logging interface.

  • Ok, thank you for your help.