• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/04-Jan-2025-360299

remote/04-Jan-2025-620498

src/04-Jan-2025-6748

sysbuild/04-Jan-2025-42

CMakeLists.txtD04-Jan-20251.5 KiB4637

KconfigD04-Jan-2025431 2419

Kconfig.sysbuildD04-Jan-20251.1 KiB2219

README.rstD04-Jan-20251.9 KiB8259

prj.confD04-Jan-202530 32

sample.yamlD04-Jan-20253.5 KiB136128

sysbuild.cmakeD04-Jan-2025980 3224

README.rst

1.. zephyr:code-sample:: mbox
2   :name: MBOX
3   :relevant-api: mbox_interface
4
5   Perform inter-processor mailbox communication using the MBOX API.
6
7Overview
8********
9
10This sample demonstrates how to use the :ref:`MBOX API <mbox_api>`.
11
12Building and Running
13********************
14
15The sample can be built and executed on boards supporting MBOX.
16
17Building the application for nrf5340dk/nrf5340/cpuapp
18*****************************************************
19
20.. zephyr-app-commands::
21   :zephyr-app: samples/drivers/mbox/
22   :board: nrf5340dk/nrf5340/cpuapp
23   :goals: debug
24   :west-args: --sysbuild
25
26Open a serial terminal (minicom, putty, etc.) and connect the board with the
27following settings:
28
29- Speed: 115200
30- Data: 8 bits
31- Parity: None
32- Stop bits: 1
33
34Reset the board and the following message will appear on the corresponding
35serial port, one is the application (APP) core another is the network (NET)
36core:
37
38.. code-block:: console
39
40   *** Booting Zephyr OS build zephyr-v3.1.0-2383-g147aee22f273  ***
41   Hello from APP
42   Pong (on channel 0)
43   Ping (on channel 1)
44   Pong (on channel 0)
45   Ping (on channel 1)
46   Ping (on channel 1)
47   Pong (on channel 0)
48   Ping (on channel 1)
49   Pong (on channel 0)
50   Ping (on channel 1)
51   ...
52
53
54.. code-block:: console
55
56   *** Booting Zephyr OS build zephyr-v3.1.0-2383-g147aee22f273  ***
57   Hello from NET
58   Ping (on channel 0)
59   Pong (on channel 1)
60   Ping (on channel 0)
61   Pong (on channel 1)
62
63
64Building the application for the simulated nrf5340bsim
65******************************************************
66
67.. zephyr-app-commands::
68   :zephyr-app: samples/drivers/mbox/
69   :host-os: unix
70   :board: nrf5340bsim/nrf5340/cpuapp
71   :goals: build
72   :west-args: --sysbuild
73
74Then you can execute your application using:
75
76.. code-block:: console
77
78   $ ./build/zephyr/zephyr.exe -nosim
79   # Press Ctrl+C to exit
80
81You can expect a similar output as in the real HW in the invoking console.
82