How to build a port of freeRTOS for MPU with TI Code Composer Studio?

Hi,

I am currently working in TI Code Composer Studio (CCS), and I’ve built a small project using freeRTOS by downloading the freeRTOS kernel source code (v20240601), copying it into the CCS project, and configuring include paths as needed.

When choosing a port of freeRTOS, I chose portable/CCS/ARM_CM4F. This port compiles with the CCS compiler, however, it does not support usage of the MPU. Are there any examples of using freeRTOS on the TI Tiva Series chips and also enabling the MPU?

I have also tried using a port such as portable/GCC/ARM_CM4_MPU, but the kernel code in this port does not compile, since CCS does not use the gcc compiler.

I am using the TM4C129ENCPDT microcontroller, which does have a hardware MPU. Is it true that I must use GCC if I want to use a freeRTOS port which supports the MPU?

Hi @eric-wu
Welcome to the FreeRTOS Community Forums.
We have 2 examples of FreeRTOS for MPU with CCS:

  1. FreeRTOS/FreeRTOS/Demo/CORTEX_MPU_R4F_TI_RM46_HERCULES_GCC at main · FreeRTOS/FreeRTOS · GitHub
  2. FreeRTOS/FreeRTOS/Demo/CORTEX_MPU_R5F_TI_RM57_HERCULES_GCC at main · FreeRTOS/FreeRTOS · GitHub

Both of these demos can be built using CCS and are using the GCC/ARM_CRx_MPU port.
You can look at these for reference and let us know if you have any more questions.

Thanks.

You are right that we do not have a CCS port for Cortex-M4 with MPU support.

Using GCC is one option and I think you can still use the CCS as your IDE. Do you not want to use GCC?.

Ah, thanks.

I was hoping there was some way to use the CCS compiler, since I was having issues installing the GCC add-on in CCS. I have asked on the TI forums for help resolving my GCC install issues.