debug_printf and _printf with RTT

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • debug_printf and _printf with RTT

    What is the difference between using the technique described in the SES manual for using the debug_* functions and including the Segger RTT files shipped with EMBOS that seem to implement the regular printf?

    Thanks,

    Kenny
  • Hi,

    The DebugIO functions (e.g. debug_printf) use the configurable library functions in Embedded Studio for I/O.
    The library configuration can be Breakpoint (Semihosting), DCC or Memory Poll.

    The RTT file override printf directly to print via RTT,
    which is faster and does not affect the target system.

    It is recommended to use RTT instead of other I/O mechanisms on all Cortex-M devices.

    Regards
    Johannes
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.