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.

MSP430 specific .h and .c files

Other Parts Discussed in Thread: MSP430F2410, MSP430WARE, CCSTUDIO

Hello,

I'm trying to compile a project in Code Composer Studio 5.3 which was developed a couple years back in Code Composer Studio 3.1 for a MSP430F2410 device. Some .h and .c files (MSP430 Specific) which were included in the old code cannot be found in Code Composer Studio 5.3. The include files are:

#include <iomacros.h>

#include <msp430/mpy.h>
#include <msp430/gpio.h>
#include <msp430/usart.h>
#include <msp430/timera.h>
#include <msp430/timerb.h>
#include <msp430/basic_clock.h>
#include <msp430/flash.h>
#include <msp430/compa.h>
#include <msp430/adc12.h>

#include <msp430/common.h>

There are also some headers included which I could not be found in the project nor Code Composer Studio 5.3 files but I am not sure if they were included in Code Compose Studio 3.1.

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

Could someone tell me where to find these files or tell me if there are alternative files.

Greetings,

Willem

  • Hi Willem,

    all the specific header  files in v5.3 are found in the following directory

    C:\CCS\5_3\ccsv5\ccs_base\msp430\include

    THere is an msp430ware directory as well with may of the examples and possibly some new versions of the files your are using.

    Regarding the other files.  I would ask a couple things

    - this might be best for the msp430 forum

    - did you import your old project into the new version?  Are you seeing any build errors if so?  I would suggest importing the old project.

    Please keep us informed.

    Best Regards,
    Lisa

  • Hi Willem,

    just thought I would check for any updates to your enquiry.

    Best Regards,

    Lisa

  • Hello Lisa,

    I'm sorry for my non-response.

    I have found the header files that I need which were previously used in an older IDE. Right now I'm trying to include these files in my project. To do this I have changed the paths for the include libraries via:

    Project Properties -> Build -> Include Options

    The only problem is that some header file names from these libraries are matching with the header files from ccstudio_5.3/ccsv5/tools/compiler/msp430_4.1.2/include. I have deleted this path from the include options but when I try to build the project the compiler still uses the files from ccstudio_5.3/ccsv5/tools/compiler/msp430_4.1.2/include. Is there a way to force the compiler to only use the header files I include manually?

     

    Greetings and thanks,

    Willem

     

  • Hello Lisa,

    The msp430ware are not usable for the msp430f24x family and de msp430 include files in the directory: CCS\5_3\ccsv5\ccs_base\msp430\include are not sufficient to compile the project.

    In order to compile the project I need to use the old header files which I'm trying to include at the moment.

    Unfortunately I only posses .c en .h files of the software I'm trying to compile. The old project files were lost in time.

    Greetings and thanks,

    Willem

  • HI Willem,

    would you be able to explain in a bit more detail exactly what you mean?  Is there any reason you do not simply import or migrate your project to the newer version of the compiler/headers/tools etc?

    Best Regards,
    Lisa

  • Hi Lisa,

    The old project is missing the project files. It only consist header files and c files. That's the reason why I cannot import the project.

    Best Regards,

    Willem 

  • Hi Willem,

    is there some reason you can't update to the new header files/tools?  Unfortunately otherwise you get into hacks that I would not recommend.

    Best Regards,

    Lisa