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/MSP430G2553: How to import Grace generated files into CCS v7

Part Number: MSP430G2553


Tool/software: Code Composer Studio

Grace is no longer a native plugin to CCS. I am running the standalone version of Grace and using it to generate source files.

How do I get these into CCS? I tried just copying them into the /workspace_v7/project_name/ directory but I get error "grace.h not found"

The Grace generated file CSL_init.c contain this include:

#include <ti/mcu/msp430/Grace.h>

But no such file, or even directory, exists.

  • Does your Grace installation have a folder named grace_2_xx_xx_xx? If so, there should be a packages folder in there that should then take you down to ti/mcu/msp430/Grace.h.

    To resolve the error in this case, you would need to add the root path to the packages folder to the compiler's include path options.
    In the CCS project, go to Project Properties->Build->Compiler->Include Options, and add the path to the --include_path option.

  • Update,
    Took an educated guess and created a Grace.h with prototype:
    void Grace_init(void);
    Then modified CSL_init.c to use this and it compiles now.

    Why wouldn't Grace have created this file if it was needed? Anything else need to be in that file?
    Very uneasy that I am on day 2 of this project and having to resort to hacking.

    Does this mean that no one uses Grace on new projects with current versions of CCS??
  • Thanks AartiG, I updated the thread before reading your response.