zephyr/samples/subsys/ipc/openamp_performance
Kumar Gala e6357ae160 samples: openamp: Convert to use DEVICE_DT_GET
Update sample to use DEVICE_DT_GET to remove usage of
device_get_binding.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-04 08:38:54 -05:00
..
boards
remote samples: openamp: Convert to use DEVICE_DT_GET 2022-08-04 08:38:54 -05:00
src samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
CMakeLists.txt
common.h samples: openamp: Convert to use DEVICE_DT_GET 2022-08-04 08:38:54 -05:00
Kconfig samples: openamp: Convert to use DEVICE_DT_GET 2022-08-04 08:38:54 -05:00
prj.conf
README.rst samples: Add missing READMEs 2022-07-25 15:17:48 +02:00
sample.yaml samples: Specify the remote harness 2022-07-25 15:17:48 +02:00

.. _openAMP_performance_sample:

OpenAMP performance Sample Application
######################################

Overview
********

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

Building the application for nrf5340dk_nrf5340_cpuapp
*****************************************************

.. zephyr-app-commands::
   :zephyr-app: samples/subsys/ipc/openamp_performance
   :board: nrf5340dk_nrf5340_cpuapp
   :goals: 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:

.. code-block:: console

   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


.. code-block:: console

   *** Booting Zephyr OS build zephyr-v3.1.0-2383-g147aee22f273  ***

   OpenAMP[remote] demo started