43.2. Trace Recorder RT-Thread

43.2.1. Overview

This project demonstrates the task scheduling function of Trace Recorder for tracking FreeRTOS.

43.2.2. Hardware Setup

  • Only stream mode using JLink is supported.

43.2.3. Operation Steps

43.2.3.1. Prepare the config file

Copy the “RTThread-psf.xml” in the “middleware\trace_recorder\kernelports\rtthread-nano\config” and the “RTThread-v1.0.0.xml” in the same path to the “cfg” folder within the installation directory of Tracealyzer.

43.2.3.2. Stream mode

Add “set(CONFIG_TRACE_RECORDER_STREAM_MODE “JLink RTT”)” to CMakeLists.txt to enable stream mode. Only stream mode is supported in RT-Thread.

43.2.3.2.2. Host computer software configuration

First, open the Tracealyzer4 software, open stream mode, switch to the JLink interface, and select the target chip in the JLink configuration. Configure the RTT control block address and the RTT channel sequence number (default is 1). In the control interface, start data capture. Click buttons “Reset, Reconnect, Start Session” in order.

43.2.4. Running the example

Data can be viewed dynamically without halting the cpu.