SPRADM0 August   2025 F28E120SC , F29H850TU , F29H859TU-Q1 , TMS320F2800132 , TMS320F2800133 , TMS320F2800135 , TMS320F2800137 , TMS320F2800152-Q1 , TMS320F2800153-Q1 , TMS320F2800154-Q1 , TMS320F2800155 , TMS320F2800155-Q1 , TMS320F2800156-Q1 , TMS320F2800157 , TMS320F2800157-Q1 , TMS320F280021 , TMS320F280021-Q1 , TMS320F280023 , TMS320F280023-Q1 , TMS320F280023C , TMS320F280025 , TMS320F280025-Q1 , TMS320F280025C , TMS320F280025C-Q1 , TMS320F280033 , TMS320F280034 , TMS320F280034-Q1 , TMS320F280036-Q1 , TMS320F280036C-Q1 , TMS320F280037 , TMS320F280037-Q1 , TMS320F280037C , TMS320F280037C-Q1 , TMS320F280038-Q1 , TMS320F280038C-Q1 , TMS320F280039 , TMS320F280039-Q1 , TMS320F280039C , TMS320F280039C-Q1 , TMS320F280040-Q1 , TMS320F280040C-Q1 , TMS320F280041 , TMS320F280041-Q1 , TMS320F280041C , TMS320F280041C-Q1 , TMS320F280045 , TMS320F280048-Q1 , TMS320F280048C-Q1 , TMS320F280049 , TMS320F280049-Q1 , TMS320F280049C , TMS320F280049C-Q1 , TMS320F28075 , TMS320F28075-Q1 , TMS320F28374D , TMS320F28374S , TMS320F28375D , TMS320F28375S , TMS320F28375S-Q1 , TMS320F28376D , TMS320F28376S , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28377S , TMS320F28377S-Q1 , TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S , TMS320F28384D , TMS320F28384S , TMS320F28386D , TMS320F28386S , TMS320F28388D , TMS320F28388S , TMS320F28P550SG , TMS320F28P550SJ , TMS320F28P559SG-Q1 , TMS320F28P559SJ-Q1 , TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. Introduction
  5. Hardware Setup Options
    1. 2.1 Setup #1
    2. 2.2 Setup #2
    3. 2.3 Setup #3
    4. 2.4 Setup #4
  6. Software Layers
  7. GUI Creation
  8. Application Logging
    1. 5.1 Application Logging Walk-through
  9. Transfer Bridge
    1. 6.1 Transfer Bridge Walk-through
  10. Communication Logger
    1. 7.1 Communication Logger Walk-through
  11. Rapid-Time Logger
    1. 8.1 Rapid Time Logging Walk-through
  12. Transfer Examples Overview
  13. 10Summary
  14. 11References

Rapid Time Logging Walk-through

A high level overview of the Rapid Time Logger feature and all the layers involved from Table 3-1 is shown below. The steps to enable the Rapid Time Logger feature on the primary device as well as the enhance Communication Logger feature on the bridge device are described in the following walk-through.

Software Layers

 Rapid-Time Logger Software LayerFigure 8-1 Rapid-Time Logger Software Layer

Sysconfig Configurations

 Rapid-Time Logger SysConfigFigure 8-2 Rapid-Time Logger SysConfig

For this walk-through, two example message structures have been added in the GUI. Under the Log Message Structure view, add two instances. Each instance represents a specific message structure that is designated in the packet. Different message structure definitions can be used for various application specific purposes (for example: message type 0 is sent before some event and message type 1 is sent after some event in the application). For this example, add four variables named a, b, c, and d in the first log message structure definition. In the second log message structure definition, add another variable named e.

Table 8-1 Example Log Variable Settings
VariableVariable Type
a16-bit unsigned integer
b32-bit unsigned integer
c32-bit floating point
dArray of 16-bit unsigned integers

Length of array : 2

eArray of 32-bit floating points

Length of array: 8

 Log Message Structure 0 Definitions

In the above figure, each log variable can have a unique name, variable type, and size. The size is automatically calculated based on the variable type. For this walk-through configure a, b, c, d, and e according to the table for each structure type.

Figure 8-3 Log Message Structure 0 Definitions
 Log Message Structure 1 DefinitionsFigure 8-4 Log Message Structure 1 Definitions

Include Files and Global Variables

//
// Included Files
//
...
#include "logger/rt_log.h"
uint16_t a = 0;
uint32_t b = 6798004;
float c = -189.4934;
uint16_t d[2] = {19872, 290};
float e[8] = {
                   1243.43, -4399.24, -23.392, 0.0213,
                   -2093, 238.4993, -2390.300, 329.401
            };
volatile uint16_t toggle = 0;

Rapid Time Logger Initialization

//
// Logging Inits
//
RTLOG_init();

Add Rapid Time Logs in Application Code

// Insert delay if required for debugging purposes
DEVICE_DELAY_US(1000000);
if (toggle == 0)
{
    RTLOG_writeLog_0(a, b, c, d);
}
else {
    RTLOG_writeLog_1(e);
}
    toggle ^= 1;

Communication Logger Additional Steps

The only steps left are setting up the communication logger feature for the bridge device as described in Section 7.1 and add some additional steps. TI provides a JSON file that contains encodings for all the variables sent over the FSI TX frame that the communication logger uses to decode the Rapid Time Logger messages. The steps below are needed after the primary project has been configured and the steps from the Section 5.1 have been followed on the bridge project.

  1. Select Enable Rapid Time Logger in the MCU Control Center Sysconfig module.
     Enable Rapid Time
                            Logger Figure 8-5 Enable Rapid Time Logger
  2. Search for the rt_log.json file located in the build folder of the Rapid Time Logger project.
    1. For example, <workspace_ccs>/<name_of_project>/<build_folder>/syscfg/logger/rt_log.json
     Navigate to JSON rt_log.json fileFigure 8-6 Navigate to JSON rt_log.json file

Build the Project

Build the communication logger application code, and make sure to follow the steps in Section 4 to generate the GUI inside CCS.

Testing the Real Time Logger Feature

  1. Flash the Communication Logger application project on the bridge device
  2. Connect the communication logging device's FSIRX pins to the real time logging device's FSITX pins
    1. Connect primary device FSITX_CLK to bridge device FSIRX_CLK
    2. Connect primary device FSITX_D0 to bridge device FSIRX_D0
    3. Connect primary device FSITX_D1 to bridge device FSIRX_D1 (Optional - if dual data lane is configured in Frame Configuration)
  3. Connect the bridge device to the PC by using the USB connector
  4. Run the Rapid Time Logger application project on the primary device
  5. Open the generated GUI inside CCS
  6. The final output appears as shown below

Final Output

 View the Rapid-Time Log Data in the PC GUIFigure 8-7 View the Rapid-Time Log Data in the PC GUI