freertos_message_buffers
Overview
The FreeRTOS Message Buffers multicore project is a simple demonstration program that uses the MCUXpresso SDK software and the Message Buffers component of FreeRTOS.
It shows how to implement lightweight core to core communication using FreeRTOS Message Buffers, which are lockless circular buffers that can pass data packets of varying sizes from a single sender to a single receiver.
The primary core releases the secondary core from the reset and then the inter-core communication is established then. Once the Message Buffers are initialized on both cores 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. The Message Buffer is deinitialized at the end.
NXP Multicore Manager (MCMGR) component is used for several purposes in this example:
it releases the secondary core from the reset (starts the secondary code)
it registers and use the application event for init handshaking (the secondary core application signals to the primary core it is ready to communicate)
it registers and use the FreeRtosMessageBuffersEvent for inter-core interrupts triggering and interrupts handling