Introduction
This example demonstrates the usage of the TOG module. The example shows how to listen for TOG error events using the ESM, and also forcing an error in order to demonstrate application notification of a timeout event.
The example demonstrates:
- Setting a timeout for TOG instance
- Error injection for an TOG instance
- Error event detection for a timeout event
Use Cases
- The TOG is programmed with a timeout that is small enough to trigger a timeout event on any access. Error event is triggered and application is notified of the event.
Supported Combinations
Parameter | Value |
CPU + OS | r5fss0-0 nortos |
m4fss0-0 nortos |
Toolchain | ti-arm-clang |
Board | am64x-evm |
Example folder | examples/sdl/stog_r5f/ |
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
- STOG_r5f STOG example for r5f core, First R5F binary should be loaded and run followed by M4F binary.
See Also
STOG
Sample Output
For M4F CORE
TOG Sample Example
Init MCU ESM complete
Init MAIN ESM complete
All tests have passed.
FOR R5F CORE
TOG Sample Example
Init MCU ESM complete
Init MAIN ESM complete
Waiting for reading END_POINT_ACCESS by M4F core...
SDL_TOG_stop complete
All tests have passed.