rpmsg_lite_pingpong

Overview

The Multicore RPMsg-Lite pingpong project is a simple demonstration program that uses the MCUXpresso SDK software and the RPMsg-Lite library and shows how to implement the inter-core communication between cores of the multicore system.

The primary core releases the secondary core from the reset and then the inter-core communication is established.

Once the RPMsg is initialized and endpoints are created the message exchange starts, incrementing a virtual counter that is part of the message payload.

The message pingpong finishes when the counter reaches the value of 100. Then the RPMsg-Lite is deinitialized and the procedure of the data exchange is repeated again.

Shared memory usage

This multicore example uses the shared memory for data exchange. The shared memory region is defined and the size can be adjustable in the linker file. The shared memory region start address and the size have to be defined in linker file for each core equally. The shared memory start address is then exported from the linker to the application.

Building the application

This shows example how to build application for evkbmimxrt1170 board with cm7 core_id. Change the -b <board> parameter based on board you want to build. Change the -Dcore_id=<core_id> parameter based on board core you want to build. For these parameters please see attribute boards: in primary/example.yml.

west build --sysbuild examples/multicore_examples/rpmsg_lite_pingpong/primary --toolchain armgcc --config debug -b evkbmimxrt1170 -Dcore_id=cm7

Supported Boards