AM62Ax MCU+ SDK  09.00.00
SDL STOG Example


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:

  1. Setting a timeout for TOG instance
  2. Error injection for an TOG instance
  3. 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 mcu-r5fss0-0 nortos
Toolchain ti-arm-clang
Board am62ax-sk
Example folder examples/sdl/stog/

Steps to Run the Example

See Also


Sample Output

TOG Sample Example
Init MCU ESM complete
SDL_TOG_init.timeout complete
SDL_TOG_start complete
SDL_TOG_stop complete
All tests have passed.
int32_t SDL_TOG_setIntrEnable(SDL_TOG_Inst instance, SDL_TOG_IntrSrc intrSrcs, bool enable)
Enable/disable interrupt source(s)
int32_t SDL_TOG_stop(SDL_TOG_Inst instance)
Stop the timer counter.
int32_t SDL_TOG_init(SDL_TOG_Inst instance, const SDL_TOG_config *pConfig)
Initialize TOG module with respect of instance.
int32_t SDL_TOG_start(SDL_TOG_Inst instance)
Start the timer counter.