zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.34k stars 6.33k forks source link

test: ipc: Test from samples/subsys/ipc/rpmsg_service fails on nrf5340dk_nrf5340_cpuapp #31616

Closed PerMac closed 3 years ago

PerMac commented 3 years ago

Describe the bug The test from the title fails on nrf53_cpuapp. The sample is started and hangs after printing: DEVICE: RPMsg Service [master] demo started

To Reproduce Steps to reproduce the behavior:

  1. Have nrf5340dk connected
  2. call /scripts/twister --device-testing -T samples/subsys/ipc/rpmsg_service/ -p nrf5340dk_nrf5340_cpuapp --device-serial /dev/ttyACM2 -v -v
  3. See error

Expected behavior The test passes

Impact Not clear

Logs and console output

DEBUG   - DEVICE: *** Booting Zephyr OS build v2.5.0-rc1-16-g085d2eda8d2b  ***
DEBUG   - DEVICE: Starting application thread!
DEBUG   - DEVICE: 
DEBUG   - DEVICE: RPMsg Service [master] demo started

and then hangs

Environment (please complete the following information):

ioannisg commented 3 years ago

will take a look

ioannisg commented 3 years ago

@PerMac I am not sure this is a bug. For the sample to work one needs to flash the two cores (master and remote), I guess, separately. West build takes care of building both executables, but the images needs to be flashed individually.

KeremSAR commented 1 year ago

I have the same issue, It hangs there for both remote and master application. while (!rpmsg_service_endpoint_is_bound(ep_id)) { k_sleep(K_MSEC(1)); } I flashed the images individually for nrf5340 cores. What could be the issue ?

pauleffect90 commented 6 months ago

Same issue. @KeremSAR. Did you manage to fix it?