Difference between revisions of "RTT in Embedded Studio"
(Created page with "SEGGER [https://wiki.segger.com/Embedded_Studio/ Embedded Studio] provides [https://wiki.segger.com/rtt/ RTT] <code>printf();</code> functionality automatically. To use more R...") |
|||
Line 1: | Line 1: | ||
+ | [[Category:Embedded Studio]] |
||
SEGGER [https://wiki.segger.com/Embedded_Studio/ Embedded Studio] provides [https://wiki.segger.com/rtt/ RTT] <code>printf();</code> functionality automatically. |
SEGGER [https://wiki.segger.com/Embedded_Studio/ Embedded Studio] provides [https://wiki.segger.com/rtt/ RTT] <code>printf();</code> functionality automatically. |
||
To use more RTT functions, the full RTT target package needs to be added to the current Embedded Studio Project. |
To use more RTT functions, the full RTT target package needs to be added to the current Embedded Studio Project. |
Latest revision as of 13:31, 16 May 2024
SEGGER Embedded Studio provides RTT printf();
functionality automatically.
To use more RTT functions, the full RTT target package needs to be added to the current Embedded Studio Project.
The following Tutorial will show how to implement the RTT target package to an Embedded Studio project.
Get the RTT Target Package
The RTT Target Package is included in the J-Link Software and Documentation Pack.
- Download the J-Link Software and Documentation Pack from the link below.
- Open the downloaded file and start the installation process.
- Open the installation directory of the J-link Software and Documentation Pack in the file explorer.
- Example on Windows:
C:\Program Files\SEGGER\JLink
- Example on Windows:
- Go to
Samples/RTT
- The RTT Target Package can be found in the .zip file.
Add the RTT Target Package to the Embedded Studio Project
- Open the Solution Directory in the file explorer.
- Copy the folders
Config
andRTT
from the RTT Target Package into the solution directory.- Embedded Studio (version 6.20 or newer) does not require Syscalls to retarget printf(). Do not copy the Syscalls folder!
- In Embedded Studio open the Project Settings and select the "Common" configuration to be edited.
- Select
Preprocessor -> User Include Directories
and add the paths to the folders copied into the solution.- Example:
$(ProjectDir)/RTT
and$(ProjectDir)/Config
- Example:
- In the Project Explorer create two folders in the project
Config
andRTT
. - Add the Files from the solution Directory to those two folders in the Project Explorer.
If everything is installed correctly, the project should look like this in the solution directory and in Embedded Studio:
The RTT functions can now be used in the project to print output. Embedded Studio directly supports RTT and prints the output to the Debug Terminal. Other tools, such as RTT Viewer can be used, too.