Here is a FreeRTOS SMP demo based on S32K389 EVB.
Key Features:
1. FreeRTOS SMP is running on the S32K389 with all cores active.
2. DTCM is used as the task stack.
3. The hardware semaphore (SEMA42) is enabled in FreeRTOS.
4. XRDC is enabled so that each core has a unique core ID for semaphore operations.
5. CAN0 runs on Core0, and CAN4 runs on Core2.
6. LPUART11 is used to print debug information. All cores can output their own messages via LPUART11.
7. Three LEDs are controlled by the three cores.