This example demonstrates the usage of the POK modules. The example shows how to listen for POK error events using the ESM, and also forcing an error in order to demonstrate application notification of overvoltage and undervoltage events.
The example demonstrates:
* Undervoltage event detection * Overvoltage event detection
Use Case | Description |
---|---|
UC-0 | An under-voltage POK instance is configured to a threshold value that will force the undervoltage |
event.Error event is triggered and application is notified of the event. UC-1 | An over-voltage POK instance is configured to a threshold value that will force the overvoltage event. Error event is triggered and application is notified of the event.
Parameter | Value |
---|---|
CPU + OS | m4fss0-0 nortos |
r5ss0-0 nortos | |
Toolchain | ti-arm-clang |
Board | am64x-evm |
Example folder | examples/sdl/pok/ |
Shown below is a sample output when the application is run,