NXP has ported FreeRTOS SMP (V11.1.0) to the S32K389. Many customers are interested in how to enable the FreeRTOS SMP on the S32K3xx. The demo is implemented as a single project with a single linker file and a single ELF file.
Demo SW/HW Environment:
1. S32DS3.6.4
2. RTD7.0
3.SW32K3_FreeRTOS_11.1.0_7.0.0_CD1_HF1_D2511_DesignStudio_updatesite
4. S32K389 EVB
Demo Code 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.
Disclaimer:
The code is provided as demo code. NXP makes no commitment regarding its quality.