[SOLVED] RTT - What's the purpose of the 3 Up buffers?

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

  • [SOLVED] RTT - What's the purpose of the 3 Up buffers?

    Hi,

    I'm trying to better understand the RTT architecture and I can't find the information on the wiki.
    It seems RTT is configured to have 3 aUp buffers and 3 aDown buffers. What is the purpose of those 3 buffers?


    I would like my CLI application on terminal 0 (in and out), and my logging to terminal 1 (out).
    What settings configuration would you recommend to achieve those requirements?



    Thanks

    Regards,
    Gabriel
    Images
    • Ucg0UWCg7y.png

      4.09 kB, 316×194, viewed 412 times
    • PcEvKC7fSZ.png

      17.76 kB, 407×465, viewed 479 times
  • Hi,

    wiki.segger.com/RTT
    wiki.segger.com/J-Link_RTT_Viewer#The_Terminal_Tabs

    1 buffer on target side per “channel”.
    n terminals may share 1 buffer.
    Terminals are a memory saving way of having multiple tasks doing output that should be visually distinuishable.
    Pro: Only requires 1 buffer on the target side
    Con: Requires locking to make sure tasks do not access buffer concurrently
    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.