Part 1
요약·해설
5개 exact build/debug block과 host·remote output을 보존합니다.
static vrings
5 dual-core boards
115200 8N1
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
C22AE77B29AACAF422A730B5FA6E03246B1349383B0C8D2840F2F87E050AD823
.. zephyr:code-sample:: ipc-static-vrings
:name: IPC service: static vrings backend
:relevant-api: ipc
Send messages between two cores using the IPC service and static vrings backend.
Overview
********
This application demonstrates how to use IPC Service and the static vrings
backend with Zephyr. It is designed to demonstrate how to integrate it with
Zephyr both from a build perspective and code.
Building the application for nrf5340dk/nrf5340/cpuapp
*****************************************************
.. zephyr-app-commands::
:zephyr-app: samples/subsys/ipc/ipc_service/static_vrings
:board: nrf5340dk/nrf5340/cpuapp
:goals: debug
:west-args: --sysbuild
Building the application for lpcxpresso55s69/lpc55s69/cpu0
**********************************************************
.. zephyr-app-commands::
:zephyr-app: samples/subsys/ipc/ipc_service/static_vrings
:board: lpcxpresso55s69/lpc55s69/cpu0
:goals: debug
:west-args: --sysbuild
Building the application for mimxrt1160_evk/mimxrt1166/cm7
**********************************************************
.. zephyr-app-commands::
:zephyr-app: samples/subsys/ipc/ipc_service/static_vrings
:board: mimxrt1160_evk/mimxrt1166/cm7
:goals: debug
:west-args: --sysbuild
Building the application for mimxrt1170_evk/mimxrt1176/cm7
**********************************************************
.. zephyr-app-commands::
:zephyr-app: samples/subsys/ipc/ipc_service/static_vrings
:board: mimxrt1170_evk/mimxrt1176/cm7
:goals: debug
:west-args: --sysbuild
Building the application for mimxrt1170_evk@B/mimxrt1176/cm7
************************************************************
.. zephyr-app-commands::
:zephyr-app: samples/subsys/ipc/ipc_service/static_vrings
:board: mimxrt1170_evk@B/mimxrt1176/cm7
:goals: debug
:west-args: --sysbuild
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
*** Booting Zephyr OS build zephyr-v3.1.0-2383-g147aee22f273 ***
IPC-service HOST [INST 0 - ENDP A] demo started
IPC-service HOST [INST 0 - ENDP B] demo started
IPC-service HOST [INST 1] demo started
HOST [1]: 1
HOST [1]: 3
HOST [1]: 5
HOST [1]: 7
HOST [1]: 9
...
.. code-block:: console
*** Booting Zephyr OS build zephyr-v3.1.0-2383-g147aee22f273 ***
IPC-service REMOTE [INST 0 - ENDP A] demo started
IPC-service REMOTE [INST 0 - ENDP B] demo started
IPC-service REMOTE [INST 1] demo started
REMOTE [1]: 0
REMOTE [1]: 2
REMOTE [1]: 4
REMOTE [1]: 6
REMOTE [1]: 8
...
Part 3
한국어 전문 번역
개요
Zephyr에서 IPC Service와 static vrings backend를 사용해 두 core 사이에 message를 보내는 application입니다. Build 구성과 source code 관점에서 static vrings backend를 통합하는 방법을 보여 줍니다.
nrf5340dk/nrf5340/cpuapp용 빌드
# From the root of the zephyr repository
west build -b nrf5340dk/nrf5340/cpuapp --sysbuild samples/subsys/ipc/ipc_service/static_vrings
west debug
lpcxpresso55s69/lpc55s69/cpu0용 빌드
# From the root of the zephyr repository
west build -b lpcxpresso55s69/lpc55s69/cpu0 --sysbuild samples/subsys/ipc/ipc_service/static_vrings
west debug
mimxrt1160_evk/mimxrt1166/cm7용 빌드
# From the root of the zephyr repository
west build -b mimxrt1160_evk/mimxrt1166/cm7 --sysbuild samples/subsys/ipc/ipc_service/static_vrings
west debug
mimxrt1170_evk/mimxrt1176/cm7용 빌드
# From the root of the zephyr repository
west build -b mimxrt1170_evk/mimxrt1176/cm7 --sysbuild samples/subsys/ipc/ipc_service/static_vrings
west debug
mimxrt1170_evk@B/mimxrt1176/cm7용 빌드
# From the root of the zephyr repository
west build -b mimxrt1170_evk@B/mimxrt1176/cm7 --sysbuild samples/subsys/ipc/ipc_service/static_vrings
west debug
모든 target은 --sysbuild로 core image를 함께 구성하고 west debug를 실행합니다. Serial terminal은 115200 baud, 8 data bits, parity None, 1 stop bit로 설정합니다.
Reset 뒤 host와 remote의 대응 serial port에 log가 나타납니다. 두 쪽 모두 instance 0의 endpoint A와 endpoint B, 그리고 instance 1을 시작합니다. Host의 instance 1은 1·3·5 같은 홀수를, remote는 0·2·4 같은 짝수를 받습니다.
*** Booting Zephyr OS build zephyr-v3.1.0-2383-g147aee22f273 ***
IPC-service HOST [INST 0 - ENDP A] demo started
IPC-service HOST [INST 0 - ENDP B] demo started
IPC-service HOST [INST 1] demo started
HOST [1]: 1
HOST [1]: 3
HOST [1]: 5
HOST [1]: 7
HOST [1]: 9
...
*** Booting Zephyr OS build zephyr-v3.1.0-2383-g147aee22f273 ***
IPC-service REMOTE [INST 0 - ENDP A] demo started
IPC-service REMOTE [INST 0 - ENDP B] demo started
IPC-service REMOTE [INST 1] demo started
REMOTE [1]: 0
REMOTE [1]: 2
REMOTE [1]: 4
REMOTE [1]: 6
REMOTE [1]: 8
...
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.