This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP432P401R: Include FreeRTOS and SDK files in project

Part Number: MSP432P401R

Tool/software: Code Composer Studio

Hi,

I am working in a project. The project uses "FreeRTOS" and some of TI SDK like MSP432P4 SDK 2 and Wfi Plugin SDK.

I want include all those files (FREERTOS and SDK) in my project folder to avoid problems with versions because I have to send in to my reviewer. I tryied but I could not do it working.

Is there any guide to do it?


Best regards,

  • We don't have a specific guide for this, but you could either "add" (ie copy all the necessary source files into your project) or "link" (ie link to the file in its original location) to the files. If you leave the files in their SDK location and link to them, then you would need to include the SDK in the package that you share with your reviewer.

    Each method has its own set of considerations. If you want to keep everything self-contained within the project, in addition to copying all source files you would also need to find and copy every referenced header file, and these may be located in various sub-directories within the SDK. You may also need to update include paths and linker paths depending on where the files are copied to.

    If you link to files in the SDK, any changes you make to the linked files will change it in its original SDK folder which may not be desirable.

    This post talks about a few options for working with your own projects without making unintended modifications to the SDK.

  • I created a folder named libraries and I added FreeRTOS and SKD Files in the parent folder. I've changed FreeRTOS and SDK paths but now I've found if I use a absolute path it is working ok but If I use variables like "FREERTOS_INSTALL_DIR=${PARENT_LOC}/LIBRARIES/FreeRTOSv10.0.0" I get this error: "Errors occurred during the build.
    Errors running builder 'CDT Builder' on project 'freertos_builds_MSP_EXP432P401R_release_ccs'.
    URI is not absolute"
  • Antonio,

    For the example FreeRTOS projects, the variable FREERTOS_INSTALL_DIR needs to be defined as both a Linked Resource Path variable and as a build variable. This is because there are source files linked with paths relative to that variable, and the variable is also used in compiler include options. CCS simplifies the process by letting you define it in just one place (under Window->Preferences->Code Composer Studio->Build->Variables) and it is then set as both a Linked Resource path variable and as a Build variable in the example projects.

    For it to be accepted as a Linked Resource Path variable, it needs to be defined as an absolute path. To verify this, if you try to create a new Linked Resource path variable (from Window->Preferences->General->Workspace->Linked Resources) you will notice a message like this.

    If your custom project is created such that there are no linked resources (ie all source files are physically copied inside the project folder) then the variable would not need to be defined as a Linked Resource Path variable. However for the way the example projects are currently designed this is required to be an absolute path.

    Hope this helps clarify!

  • I got it. I have FreeRTOS is integrated in my project. Now, I will try with SDK libraries.