Fail to run the IPC Service-icmsg sample on nRF5340 DK

Hi Support team,


I tried to run the IPC Service-icmsg sample(l\zephyr\samples\subsys\ipc\ipc_service\icmsg) on the nRF5340 DK but failed.
I opened the sample in VS code and created build configuration with default settings as below screenshot. Not selecting 'Use sysbuild', and build succeed, two images were generated. After I flashed to the target, only one log was printed on the application console, and nothing on the network console, please see the screenshot below.

My questions are:
1 without using 'Use sysbuild', the remote image also can be generated and flashed to the network core? this is different from the sample of 'Multicore Hello World application', which use the sysbuild to generate a merged image and flash to two cores.
2 How can I run this IPC Service-icmsg sample on nRF5340 DK? need to set something in somewhere?

BTW, I saw a similar tick and no one answered it in the DevZone(devzone.nordicsemi.com/.../ipc-service-sample-with-icmsg-backend-not-working).

Thank you very much.

    

  • Hi again,

    I try to set breakpoints and run the debug. I found the main() in the network core was not starting.
    The main() in the application core went to _sleep after the code k_sem_take(&bound_sem, K_FOREVER), please see the below screenshot.

    Maybe the network core was not brought up before the application core went to sleep? I don't know if this is the reason there is no log printed from the Network core console.

  • I can run the sample successfully now. I'd like to put a summary here:


    1. The project 'icmsg' is for the app-core and has a subdirectory 'remote' for net-core.
    With the default build (without sysbuild) can build two images for two cores. The reason for not using sysbuild and can build two images is that in the CMakeLists.txt, the 'remote' was added as an ExternalProject.
    2. When Flash, in my case, only the app-core image was flashed successfully, we can know this by the 'read' in the tool 'nRF Connect for Desktop'.'Programmer'.
    3. In this situation, I open the 'remote' project separately in the VS code and flash the net-core image separately.

    After that, I can see the traces on the net-core.

Related