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.

Issues encountered while porting over a project with CCS

Other Parts Discussed in Thread: MSP430BT5190

Goo day everyone,

I am trying out CCS for the first time and I am porting over a project that was previously made (by someone else) in IAR.

I have encountered some IAR nomenclature that I cannot find like: static __root uint8_t? If anyone knows any place where I can find the counterpart I would greatly appreciate it.

But the main issue I have had is that I have, currently 2 files (main.c, and accelerometer.c) using the same header file (accelerometer.h), but one one file can access the header (main can access header, accelerometer cannot). Has anyone encountered this issue? If so how did you resolve it or can you point me in the direction to find this solution?

Cordially,

  • Hello,

    I have encountered some IAR nomenclature that I cannot find like: static __root uint8_t? If anyone knows any place where I can find the counterpart I would greatly appreciate it.

    What device are you using?

    But the main issue I have had is that I have, currently 2 files (main.c, and accelerometer.c) using the same header file (accelerometer.h), but one one file can access the header (main can access header, accelerometer cannot). Has anyone encountered this issue?

    Please provide the exact build output in the build console for both main.c and accelerometer.c. 

    Thanks

    ki

  • For the device I am using it is the MSP430BT5190 and MSP430F5418AIPNR.

    I think I resolved the issue of the multiple *.c files referencing a header. I had to add the path to the header file to every *.c file. I was just stunned that it was not done automatically. Or if there is a way to have the header directory automatically added to all new *.c files to be added. 

  • You can add include seach paths to the project. This will tell the compiler to look in these directories for header files when compiling the project:

  • I have encountered some IAR nomenclature that I cannot find like: static __root uint8_t?

    static is keyword in the C programming language.  __root is specific to the IAR compiler.  Search IAR documentation for it.  uint8_t is a type from from the C standard header file stdint.h.  

    For general background on the MSP430 compiler from TI, please see the MSP430 compiler manual.

    Thanks and regards,

    -George