SDL POK Example

Introduction

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 Cases

Use Case

Description

UC-0

An under-voltage POK instance is configured to a threshold value that will force the undervoltage

UC-0

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.

Supported Combinations

Parameter

Value

CPU + OS

mcu-r5fss0-0 nortos

Toolchain

ti-arm-clang

Board

am62dx-evm

Example folder

examples/sdl/pok/

Steps to Run the Example

See Also

POK

Sample Output

Shown below is a sample output when the application is run,

 POK Test Application

sdlEsmSetupForPOK init: Init WKUP ESM complete


 POK ID = 2 , monitoring set to UV
Waiting for ESM to report the error
 Got the ESM Error Interrupt
Action taken
Safety software Example UC-1 pok for instance 2 PASSED


 POK ID = 2 , monitoring set to OV
Waiting for ESM to report the error
 Got the ESM Error Interrupt
Action taken
Safety software Example UC-2 pok for instance  2 PASSED
Test Name: POR EXAMPLE UC-2  PASSED

 All tests have passed.