SDL MTOG Example
Introduction
The following shows an example of SDL MTOG API usage by the application to set up the TOG module with the usage of the various APIs. Events can be monitored by enabling the events in the associated ESM instance.
Use Cases
Use Case |
Description |
|---|---|
UC-1 |
MAIN INSTANCE |
UC-2 |
WKUP INSTANCE |
Supported Combinations
Parameter |
Value |
|---|---|
CPU + OS |
m4fss0-0 nortos |
Toolchain |
ti-arm-clang |
Board |
am62x-sk |
Example folder |
examples/sdl/mtog/mtog_example/ |
Steps to Run the Example
When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
Launch a CCS debug session and run the executable, see CCS Launch, Load and Run
See Also
Sample Output
Shown below is a sample output when the application is run,
TIMER_ESM_init: Init MCU ESM complete
Starting MTOG test on MCU MTOG0, index 1...
MTOG Reset done
Delta MTOG prep time in micro secs 17
Delta MTOG execution time in micro secs 1490
Delta MTOG restore time in micro secs 2
MTOG complete for MCU MTOG0
Use case 1 passed
Starting MTOG test on WKUP MTOG0, index 2...
MTOG Reset done
Delta MTOG prep time in micro secs 8
Delta MTOG execution time in micro secs 2521
Delta MTOG restore time in micro secs 1
MTOG complete for WKUP MTOG0
Use case 2 passed
All tests have passed.