OpenAMP performance Sample Application

Overview

This application demonstrates how to measure OpenAMP performance / throughput with Zephyr.

Building the application for nrf5340dk_nrf5340_cpuapp

# From the root of the zephyr repository
west build -b nrf5340dk_nrf5340_cpuapp samples/subsys/ipc/openamp_performance
west debug

Open a serial terminal (minicom, putty, etc.) and connect the board with the following settings:

  • Speed: 115200

  • Data: 8 bits

  • Parity: None

  • Stop bits: 1

Reset the board and the following message will appear on the corresponding serial port, one is host another is remote:

OpenAMP[master] demo started
Δpkt: 6193 (496 B/pkt) | throughput: 24573824 bit/s
Δpkt: 6203 (496 B/pkt) | throughput: 24613504 bit/s
Δpkt: 6203 (496 B/pkt) | throughput: 24613504 bit/s
Δpkt: 6202 (496 B/pkt) | throughput: 24609536 bit/s
Δpkt: 6202 (496 B/pkt) | throughput: 24609536 bit/s
Δpkt: 6202 (496 B/pkt) | throughput: 24609536 bit/s
Δpkt: 6202 (496 B/pkt) | throughput: 24609536 bit/s
*** Booting Zephyr OS build zephyr-v3.1.0-2383-g147aee22f273  ***

OpenAMP[remote] demo started