- Packs
- RTT
RTT
8.58.0-
Pack Type
Software Pack
SEGGER Real Time Transfer (RTT)
-
Add to CMSIS Solution
packs:- pack: SEGGER::RTT@8.58.0
Add with cpackget
> cpackget add SEGGER::RTT@8.58.0
Download
SEGGER.RTT.8.58.0.packRepository
RTTSEGGER Real Time Transfer
SEGGER's Real Time Transfer (RTT) is the proven technology for system monitoring and interactive user I/O in embedded applications. It combines the advantages of SWO and semihosting at very high performance.
For more information refer to
Usage
This package contains the RTT Target Sources. It can be used directly, either by including the Git Repository as a submodule, or by Download of the latest package, or as an CMSIS-Pack in CMSIS development tools.
General Usage and Configuration
To include RTT into a project, add
RTT/SEGGER_RTT.cto the project sources andRTTas include directory.RTT/SEGGER_RTT_ASM_ARMv7M.Sis optional and can be added as additional source file for an assembly-optimized implementation of RTT functions. This file is compatible with ARMv7M and ARMv8M processors and most toolchains.RTT can be configured through
SEGGER_RTT_Conf.h. In most cases the default configuration is sufficient andSEGGER_RTT_Conf.hcan be left untouched. In this case,Configcan be added as include directory. If additional configuration is required, it is recommended to copySEGGER_RTT_Conf.hto the project's configuration directory and make changes to the copy. That way, configuration does not get overwritten by an update of the package. In that case, do not addConfigas include directory.Additional Modules
The RTT Target Sources contain additional modules for printf-like output.
SEGGER_RTT_Printf.cprovides a simple implementation of "printf" to write formatted strings directly via RTT.Syscalls/SEGGER_RTT_Syscalls_*.cprovides low-level retargeting functions forprintf()to RTT with different toolchains.Examples
The
Examplesdirctory includes some simple example and test applications to demonstrate RTT. Some examples can be run as bare-metal applications, some examples require additional modules, such as an RTOS.Main_RTT_InputEchoApp.c- Example application which echoes input on Channel 0.Main_RTT_MenuApp.c- Example application to demonstrate RTT bi-directional functionality.Main_RTT_PrintfTest.c- Example application to test RTT's simple printf implementation.Main_RTT_SpeedTestApp.c- Example application to measure RTT performance. (Requires embOS)
NOTE: The examples are not included in the CMSIS-Pack.
CMSIS-Pack
The CMSIS-Pack enables easy integration of RTT into CMSIS-based projects.
To use RTT in a csolution project add
pack: SEGGER::RTTandcomponent: SEGGER:RTT. The RTE directory is the project's config directory and contains the local copy ofSEGGER_RTT_Conf.hfor additional configuration.