Skip to content

Commit

Permalink
samples: ipc_service: Adjust ipc_service sample for nrf5340 icbmsg
Browse files Browse the repository at this point in the history
Adjust ipc_service sample for icbmsg backend.

Signed-off-by: Dominik Chat <[email protected]>
  • Loading branch information
dchat-nordic committed Oct 28, 2024
1 parent a3d1483 commit 622e234
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,10 @@
/delete-property/ zephyr,bt-hci;
};

reserved-memory {
/delete-node/ memory@20070000;

sram_tx: memory@20070000 {
reg = <0x20070000 0x8000>;
};

sram_rx: memory@20078000 {
reg = <0x20078000 0x8000>;
};
};

ipc0: ipc0 {
compatible = "zephyr,ipc-icmsg";
tx-region = <&sram_tx>;
rx-region = <&sram_rx>;
tx-region = <&cpuapp_cpunet_ipc_shm>;
rx-region = <&cpunet_cpuapp_ipc_shm>;
mboxes = <&mbox 0>, <&mbox 1>;
mbox-names = "tx", "rx";
status = "okay";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,10 @@
/delete-property/ zephyr,ipc_shm;
};

reserved-memory {
/delete-node/ memory@20070000;

sram_rx: memory@20070000 {
reg = <0x20070000 0x8000>;
};

sram_tx: memory@20078000 {
reg = <0x20078000 0x8000>;
};
};

ipc0: ipc0 {
compatible = "zephyr,ipc-icmsg";
tx-region = <&sram_tx>;
rx-region = <&sram_rx>;
tx-region = <&cpunet_cpuapp_ipc_shm>;
rx-region = <&cpuapp_cpunet_ipc_shm>;
mboxes = <&mbox 0>, <&mbox 1>;
mbox-names = "rx", "tx";
status = "okay";
Expand Down
69 changes: 54 additions & 15 deletions samples/ipc/ipc_service/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,31 @@ tests:
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
extra_args:
- FILE_SUFFIX=rpmsg
- SNIPPET=nrf53-legacy-rpmsg
sample.ipc.ipc_service.nrf5340dk_rpmsg_cpuapp_sending:
platform_allow:
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
extra_configs:
- CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=1
extra_args: >
remote_CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=200000000
extra_args:
- FILE_SUFFIX=rpmsg
- remote_CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=200000000
- SNIPPET=nrf53-legacy-rpmsg
sample.ipc.ipc_service.nrf5340dk_rpmsg_cpunet_sending:
platform_allow:
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
extra_configs:
- CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=200000000
extra_args: >
remote_CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=1
extra_args:
- FILE_SUFFIX=rpmsg
- remote_CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=1
- SNIPPET=nrf53-legacy-rpmsg
harness_config:
type: multi_line
ordered: true
Expand All @@ -53,28 +60,60 @@ tests:
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
extra_args: >
FILE_SUFFIX=icmsg
extra_args:
- FILE_SUFFIX=icmsg
sample.ipc.ipc_service.nrf5340dk_icmsg_cpuapp_sending:
platform_allow:
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
extra_configs:
- CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=35
extra_args: >
FILE_SUFFIX=icmsg
remote_CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=200000000
extra_args:
- FILE_SUFFIX=icmsg
- remote_CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=200000000
sample.ipc.ipc_service.nrf5340dk_icmsg_cpunet_sending:
platform_allow:
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
extra_configs:
- CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=200000000
extra_args: >
FILE_SUFFIX=icmsg
remote_CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=1
extra_args:
- FILE_SUFFIX=icmsg
- remote_CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=1
harness_config:
type: multi_line
ordered: true
regex:
- "IPC-service .* demo started"
# there will be only single tranfser from this core
- "Δpkt: (?!0)\\d+ ((?!0)\\d+ B/pkt) | throughput: (?!0)\\d+ bit/s"
- "Δpkt: \\d+ (\\d+ B/pkt) | throughput: \\d+ bit/s"
- "Δpkt: \\d+ (\\d+ B/pkt) | throughput: \\d+ bit/s"
sample.ipc.ipc_service.nrf5340dk_icbmsg_default:
platform_allow:
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
sample.ipc.ipc_service.nrf5340dk_icbmsg_cpuapp_sending:
platform_allow:
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
extra_configs:
- CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=35
extra_args:
- remote_CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=200000000
sample.ipc.ipc_service.nrf5340dk_icbmsg_cpunet_sending:
platform_allow:
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
extra_configs:
- CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=200000000
extra_args:
- remote_CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=1
harness_config:
type: multi_line
ordered: true
Expand All @@ -94,6 +133,6 @@ tests:
- nrf54h20dk/nrf54h20/cpuapp
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
extra_args: >
FILE_SUFFIX=cpuppr
ipc_service_SNIPPET=nordic-ppr
extra_args:
- FILE_SUFFIX=cpuppr
- ipc_service_SNIPPET=nordic-ppr

0 comments on commit 622e234

Please sign in to comment.