https://wiki.segger.com/index.php?title=RTT_in_Embedded_Studio&feed=atom&action=historyRTT in Embedded Studio - Revision history2024-03-29T04:34:50ZRevision history for this page on the wikiMediaWiki 1.31.16https://wiki.segger.com/index.php?title=RTT_in_Embedded_Studio&diff=11640&oldid=prevLucas: 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..."2022-03-01T14:28:49Z<p>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..."</p>
<p><b>New page</b></p><div>SEGGER [https://wiki.segger.com/Embedded_Studio/ Embedded Studio] provides [https://wiki.segger.com/rtt/ RTT] <code>printf();</code> functionality automatically.<br />
To use more RTT functions, the full RTT target package needs to be added to the current Embedded Studio Project.<br />
<br />
The following Tutorial will show how to implement the RTT target package to an Embedded Studio project.<br />
<br />
== Get the RTT Target Package ==<br />
The RTT Target Package is included in the [https://wiki.segger.com/j-link/ J-Link] Software and Documentation Pack.<br />
<br />
# Download the J-Link Software and Documentation Pack from the link below.<br />
#* https://www.segger.com/downloads/jlink<br />
# Open the downloaded file and start the installation process.<br />
# Open the installation directory of the J-link Software and Documentation Pack in the file explorer.<br />
#* ''Example on Windows: <code>C:\Program Files\SEGGER\JLink</code><br />
# Go to ''<code>Samples/RTT</code>''<br />
# The RTT Target Package can be found in the .zip file.<br />
<br />
== Add the RTT Target Package to the Embedded Studio Project ==<br />
<br />
[[File:RTTConfig.png|Project Options|thumb|right]]<br />
<br />
# Open the Solution Directory in the file explorer.<br />
# Copy the folders <code>Config</code> and <code>RTT</code> from the RTT Target Package into the solution directory.<br />
#* Embedded Studio (version 6.20 or newer) does not require Syscalls to retarget printf(). Do not copy the Syscalls folder!<br />
# In Embedded Studio open the Project Settings and select the "Common" configuration to be edited.<br />
# Select <code>Preprocessor -> User Include Directories</code> and add the paths to the folders copied into the solution.<br />
#* ''Example: ''<code>$(ProjectDir)/RTT</code> and <code>$(ProjectDir)/Config</code><br />
# In the Project Explorer create two folders in the project <code>Config</code> and <code>RTT</code>.<br />
# Add the Files from the solution Directory to those two folders in the Project Explorer.<br />
<br />
<br />
If everything is installed correctly, the project should look like this in the solution directory and in Embedded Studio:<br />
<br />
[[File:RTTtargetPackageInstProjectDirectory.png|Project Directory|400px]]<br />
<br />
[[File:VFE.png|Project Explorer|400px]]<br />
<br />
The RTT functions can now be used in the project to print output.<br />
Embedded Studio directly supports RTT and prints the output to the Debug Terminal.<br />
Other tools, such as RTT Viewer can be used, too.<br />
<br />
[[File:RTTMainexample.png|RTT Functions example|400px]]<br />
<br />
[[File:RTTFunctionsoutput.png|RTT Functions example Output in Debug Terminal of ES|400px]]</div>Lucas