5.1.3.1.6. CSL RTI Example

This example application demonstrates the RTI DWWD (Real Time Interrupt Digital Windowed Watchdog) test. RTI Instance selected depends on the Core used for test - MCU uses MCU RTI1 and MPU uses MAIN RTI0. RTI clock source is selected as 32KHz and DWWD window size is set to 100%. DWWD reaction after expiry is set to interrupt mode and its preload value is set for 10sec. DWWD time-out value is specified in “APP_RTI_DWWD_TIMEOUT_VALUE” macro in mili-seconds. DWWD will expire in 10sec and generate interrupt to Core.

5.1.3.1.6.1. Building RTI example

To build the RTI example app in PDK, use the following command:

$ make -s -j8 csl_rti_dwwd_test_app BOARD=<BOARD> CORE=<CORE>

The example app binary file can be found at the following location:

<pdk>/packages/ti/binary/csl_rti_dwwd_test_app/bin/<BOARD>/csl_rti_dwwd_test_app_<CORE>_release.xer5f

This command will build the RTI example app (csl_rti_dwwd_test_app) on baremetal. Adjust the command according to your specific requirements, such as selecting a different board or core if needed. By default, the release mode is built. You can specify build mode by adding BUILD_PROFILE=debug in the instruction.

5.1.3.1.6.2. Supported SOCs

  • j721e

  • j7200

  • j721s2

  • j784s4

5.1.3.1.6.3. Supported cores

  • mcu1_0

  • mpu1_0

5.1.3.1.6.4. Hardware Connections

  • none

5.1.3.1.6.5. Running RTI example

After building the example, follow the given steps to run the test:

  • Launch a CCS debug session, load and run csl_rti_dwwd_test_app_<CORE>_release.xer5f binary file to the respective core for which the binary is built. Alternatively, the example application can be loaded using any other boot method such as MMC/SD.

  • Logs will be printed on the Main UART port 0 or MCU UART port 1 based on which core you are running the example. Below is an example of the log when running csl_rti_dwwd_test_app on J721E on mcu1_0 core:

    Binary: <pdk>/packages/ti/binary/csl_rti_dwwd_test_app/bin/<BOARD>/csl_rti_dwwd_test_app_<CORE>_release.xer5f

     1Board init complete
     2
     3Interrupt config complete
     4CSL RTI APP: DWWD is configured for 10000 ms time-out
     5CSL RTI APP: DWWD will generate interrupt after above time-out period.
     6CSL RTI APP: Wait for 10000 ms for interrupt to be generated by DWWD.
     7CSL RTI APP: Interrupt Generated!!!
     8CSL RTI APP: RTI App completed successfully.
     9
    10All tests have passed.
    11rti_app_dwwd_v1.c:290:test_csl_rti_dwwd_test_app:PASS
    12
    13-----------------------
    141 Tests 0 Failures 0 Ignored
    15OK