Set up Segger RTT in e2Studio?

Hi Forum,

We are using an S5D9 and e2Studio 7.8.0 with SSP 1.7.8.  We're using a PK-S5D9 for initial development until our custom board has been created.

We have been informed that input from the Renesas Debug Virtual Console does not work (or at least not reliably and is very slow), and were recommended to switch to using Segger RTT Viewer.  We need to do both console input (scanf or std::cin) and output (printf or std::cout).  When trying to do input, the console seemed to return garbage characters or null characters frequently.  Output worked OK, but is very slow.  This is just for some testing purposes, and we do not want to use a UART or USB yet.

Unfortunately, no one has been able to provide instructions on how to set Segger RTT up within a Synergy C or C++ project.  Can anyone help with a description of the steps needed to allow debug console I/O using Segger RTT?

Many thanks for your help!

Scott

  • You can't use e2studio to capture output from RTT (or provide input to RTT), you will need to use the Segger RTT client/logger/viewer that is provided in the Segger J-Link Software and Documentation Pack:-

    www.segger.com/.../
  • In reply to Jeremy:

    Hi Jeremy,

    I understand, and it's no problem to use the Segger RTT Viewer. I'm just trying to figure out what files/configuration I have to add to my project to allow my program to input from/output to the RTT Viewer.

    Can you help?

    Thanks for your reply,

    Scott
  • In reply to surrealist14:

    The required files you need to add to a project are supplied in the JLink software and documentation pack :-

     

  • In reply to Jeremy:

    Thanks again. This explains where to find the files, but not how to install them or use them for RTT viewer input and output. Can you elaborate, or is there an application note on this somewhere? The PK-S5D9 has a J-Link "on-board", so it seems like someone has probably been through this before.

    Scott
  • In reply to surrealist14:

    Have a look at the attached project :-

     

    SSP_1_7_8_S5D9_PK_RTT.zip

  • In reply to Jeremy:

    Thanks very much, Jeremy. Had to fiddle around a bit with starting up RTT Viewer to get it to work, but it does the job!

    Hoping this example will help others with the same problem, and sincerely appreciate your help.

    Best regards,

    Scott