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

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

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

Children
Related