Port of the RTOS

Creating a new Project

Create a new project on the CCS. To do it go to File>New>CCS Project. Then select the msp430f5529 and a project with a main.c

After that download the last version of FreeRTOS.

We will use the FreeRTOS non plus version.


Directory structure

At the /FreeRTOS/Source/Portable remove all the folders except the /CCS and /MemMang.

This tutorial will be simple, so no need for complex memory management. The heap1.c is enough. At /MemMang remove the others files. TIP: just rename all to .txt in case you want to use them later.

Then at the /CCS remove all folders except the /MSP430X.

Now we need the config header file. At the FreeRTOS/Demo/MSP430X_MSP430F5438_CCS/Demo_Source copy the FreeRTOSConfig.h to the FreeRTOS/Source/include folder.

You should end with a directory structure like this:

+-Source        
        ¦
        +-include   
        ¦
        +-Portable  
            ¦            
            +-CCS    
            +-MemMang

Finally copy the Source folder to the CCS project folder. TIP: Rename the Source folder to FreeRTOS.


Compiler setup

After all this mess is time to setup the includes options.

In the CCS go to Project -> Properties.

Then expand CCS build and the MSP430 Compiler. Select include options.

At the #include section add the following paths

"${PROJECT_LOC}/FreeRTOS"
"${PROJECT_LOC}/FreeRTOS/include/"
"${PROJECT_LOC}/FreeRTOS/portable/MemMang/"
"${PROJECT_LOC}/FreeRTOS/portable/CCS/MSP430X/"

results matching ""

    No results matching ""