Introduction
The example demonstrates the PMIC IN ESM level mode, where in the first instance delay1 and delay2 ESM errors are configured to generate an interrupt, and in the second instance delay2 error is configured to device transitions to RESET-MCU state, when the ESM_IN pin of the PMIC is low.
Supported Combinations
| Parameter | Value |
| CPU + OS | r5fss0-0 freertos |
| r5fss0-0 nortos |
| Toolchain | ti-arm-clang |
| Boards | am263px-cc |
| Example folder | examples/drivers/pmic/pmic_esm_level_mode |
Steps to Run the Example
Sample Output
Shown below is a sample output when the application is run,
Starting ESM level mode example !!
Interrupt: Setting ESM Delay1 and Delay2 error config to generate Interrupt
Generating error from MCU to PMIC
Error generated from MCU.. Waiting for the PMIC interrupt...
Received interrupt for PMIC ESM error !!
Cleared PMIC ESM error states and ESM error from MCU
Reset: Setting ESM Delay2 error config to device transitions to RESET-MCU state
Generating error from MCU to PMIC
Error generated from MCU..
All tests have Passed!! MCU will reset once reset ocuurs from PMIC