zephyr/samples/subsys/ipc/openamp
Kristian Klomsten Skordal 5eb882980d sample: add OpenAMP sample application
This commit adds a sample application using OpenAMP for remote procedure
calls on the LPCXpresso54114. It is adapted from the RPMsg-Lite sample
application added in PR #5960, and uses the IPM driver to provide
interprocessor interrupts.

Signed-off-by: Kristian Klomsten Skordal <kristian.skordal@nordicsemi.no>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-05-19 12:56:36 -05:00
..
platform sample: add OpenAMP sample application 2018-05-19 12:56:36 -05:00
remote sample: add OpenAMP sample application 2018-05-19 12:56:36 -05:00
src sample: add OpenAMP sample application 2018-05-19 12:56:36 -05:00
CMakeLists.txt sample: add OpenAMP sample application 2018-05-19 12:56:36 -05:00
prj.conf sample: add OpenAMP sample application 2018-05-19 12:56:36 -05:00
README.rst sample: add OpenAMP sample application 2018-05-19 12:56:36 -05:00
sample.yaml sample: add OpenAMP sample application 2018-05-19 12:56:36 -05:00

.. _openAMP_sample:

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

Overview
********

This application demostrates how to use OpenAMP with Zephyr. It is designed to
demonstrate how to integrate OpenAMP with Zephyr both from a build perspective
and code.

Building the application
*************************

.. zephyr-app-commands::
   :zephyr-app: samples/subsys/ipc/openamp
   :board: lpcxpresso54114_m4
   :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:

.. code-block:: console

   ***** Booting Zephyr OS v1.11.0-1377-g580b9add47 *****
   Starting application thread!

   OpenAMP demo started
   Primary core received a message: 1
   Primary core received a message: 3
   Primary core received a message: 5
   ...
   Primary core received a message: 101
   OpenAMP demo ended.