Commit 37b7caa6 authored by Stanislav Poboril's avatar Stanislav Poboril Committed by Kumar Gala
Browse files

sample: Add MCUX IPM sample application



Add MCUX IPM sample application. It can be run on lpcxpresso54114
board at the moment.

We first build the slave core image out of the remote/ dir than the
primary core image is build which includes the slave core image.

Origin: Original

Signed-off-by: default avatarStanislav Poboril <stanislav.poboril@nxp.com>
Signed-off-by: default avatarKumar Gala <kumar.gala@linaro.org>
parent 5477ee45
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ Debugging
=========

You can debug an application in the usual way. Here is an example for the
:ref:`ipm_mcux` application.
:ref:`ipm-mcux-sample` application.

.. zephyr-app-commands::
   :zephyr-app: samples/subsys/ipc/ipm_mcux
@@ -52,7 +52,7 @@ serial port:

.. code-block:: console

   ***** BOOTING ZEPHYR OS v1.10.99 - BUILD: Feb  7 2018 20:32:27 *****
   ***** Booting Zephyr OS v1.11.0-764-g4e3007a *****
   Hello World from MASTER! arm
   Received: 1
   ...
+10 −0
Original line number Diff line number Diff line
.. _ipc_samples:

IPC Samples
###########

.. toctree::
   :maxdepth: 1
   :glob:

   **/*
+20 −0
Original line number Diff line number Diff line
# Copyright (c) 2017, NXP
#
# SPDX-License-Identifier: Apache-2.0
#
set(BOARD lpcxpresso54114_m4)


include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
include(ExternalProject)

ExternalProject_Add(
  ipm_mcux_remote
  SOURCE_DIR ${APPLICATION_SOURCE_DIR}/remote
  INSTALL_COMMAND ""      # This particular build system has no install command
)

project(NONE)

target_sources(app PRIVATE src/main_master.c)
add_dependencies(core_m0_inc_target ipm_mcux_remote)
+43 −0
Original line number Diff line number Diff line
.. _ipm-mcux-sample:

Sample mailbox application
##########################

Overview
********

The :ref:`lpcxpresso54114` board has two core processors (Cortex-M4F
and Cortex-M0+). This sample application uses a mailbox to send messages
from one processor core to the other.

Requirements
************

- :ref:`lpcxpresso54114` board

Building and Running
********************

.. zephyr-app-commands::
   :zephyr-app: samples/subsys/ipc/ipm_mcux
   :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-764-g4e3007a *****
   Hello World from MASTER! arm
   Received: 1
   ...
   Received: 99
+7 −0
Original line number Diff line number Diff line
CONFIG_PRINTK=y
CONFIG_IPM=y
CONFIG_IPM_MCUX=y
CONFIG_SLAVE_CORE_MCUX=y
CONFIG_SLAVE_IMAGE_MCUX="${ZEPHYR_BINARY_DIR}/../ipm_mcux_remote-prefix/src/ipm_mcux_remote-build/zephyr/zephyr.bin"
CONFIG_TIMESLICE_SIZE=1
CONFIG_MAIN_STACK_SIZE=2048
Loading