AM62x MCU+ SDK  11.01.00
Interrupt Latency Benchmark

Introduction

This example shows an application for benchmarking interrupt latency.

In this benchmark application EPWM is configured as a source of interrupt and the GPIO pin is configured for toggling continuously for few iterations.

Whenever the interrupt is triggered by the EPWM ,GPIO toggling will be suspended till interrupt is serviced.

Measuring the idle frame in between the toggling which gives the entire interrupt latency.

Note
These measurements include IRQ entry handling latency + EPWM interrupt clear + IRQ exit handling latency + GPIO toggling overheads in background task

AM62X-SK

  • GPIO Signal can be probed on Pin 22 of User Expansion Connector (J3) on the board.

AM62X-SK-LP

  • GPIO Signal can be probed on Pin 22 of User Expansion Connector (J3) on the board.

AM62X-SK-SIP

  • GPIO Signal can be probed on Pin 22 of User Expansion Connector (J3) on the board.

Supported Combinations

Parameter Value
CPU + OS a53ss0-0 freertos
Toolchain arm.gnu.aarch64-none
Boards am62x-sk, am62x-sip-sk, am62x-sk-lp
Example folder examples/benchmarks/interrupt_latency_benchmark

Steps to Run the Example

Sample output for Interruot Latency benchmark example

Interrupt latency benchmark example started...
Please observe pin (GPIO 14)
If toggling -> Background loop running
If gap/no toggling -> Background loop interrupted. Interrupt routine running
Waiting for few seconds... Done.
Interrupt latency benchmark example completed...