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/MSP430G2001: Fatal error #1965: cannot open source file

Part Number: MSP430G2001
Other Parts Discussed in Thread: MSP430G2211, MSP430WARE

Tool/software: Code Composer Studio

Hi everyone. First of all I am not an engineer nor a program coder. Just doing my hobby and I have a basic electronics and very basic knowledge of coding. Now I am struggling to make a circuit for my geared wooden clock explained in here: 

https://www.instructables.com/id/A-wood-gear-clock-with-a-unique-drive-mechanism/

 

I have MSP430G2211 microcontroller and want to upload the codes given in the instructables page. But I got many errors. I tried CCS V10,V5 and V6 and V6 was the program which I get the less error. Now I am trying to build and debug the codes in Version: 6.1.2.00015 with the grace add-on. Here is the error message when I try to build the codes:

**** Build of configuration Debug for project Clock ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
making ../src/grace/grace.lib ...
gmake[1]: Entering directory `C:/Users/mm/workspace_v6_1/Clock/src/grace'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `C:/Users/mm/workspace_v6_1/Clock/src/grace'
'Building file: ../main.c'
'Invoking: MSP430 Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.5/bin/cl430" -vmsp --abi=eabi --use_hw_mpy=none --include_path="C:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.5/include" --advice:power=all -g --define=__MSP430G2211__ --diag_warning=225 --diag_wrap=off --display_error_number --printf_support=minimal --preproc_with_compile --preproc_dependency="main.pp" --cmd_file="configPkg/compiler.opt" "../main.c""../main.c"
Fatal error #1965: cannot open source file "../main.c/main.c"
1 catastrophic error detected in the compilation of "../main.c/main.c".
Compilation terminated.

>> Compilation failure
gmake: *** [main.obj] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

Please could someone help me to finish this code uploading? I am really stuck in this stage.

  • Serkan,

    The example that the instructor created uses a tool called Grace.  As they noted in their instructions it is not available in newer versions of Code Composer Studio.  You need to use CCSv5.1.0

    There are other Instructables showing how to use the MSP 430 LaunchPad with TI's supplied Code Composer Studio to develop code, so I will not duplicate that here. I'm still using a quite old version of Code Composer Studio, Version 5.1.0.09000. The reason is that I used a plug-in tool called GRACE to configure the peripherals, and this tool was dropped in later versions.

    That version is available here: https://software-dl.ti.com/ccs/esd/documents/ccs_downloads.html

    You mentioned that you tried CCSv5 but there are many versions of v5.  Make sure to use 5.1.0 as that is what the instructor requires.

    Regards,

    John

  • Thanks for the answer John. Yes I downloaded the Version 5.1.0.09000. but it seems not compatible with Windows 10, it gave an error at installation stage. Maybe I should find another pc with win 7

  • What was the error that you got at install time?  Did it allow you to proceed.  There is a good chance that the installer is checking for compatible windows versions.  It likely doesn't recognize Windows 10 as that CCS came out way before windows 10. I thought we just wanted you though and allowed you to proceed.

    Talking to one of my colleagues he has not had issues on windows 10 with his v5 installs.  I am on mac so I can't try this.

    John

  • Here is the error message when I want to install the v5 to my win10 Pro. I can continue to installation but I think the installation is not completed as it should be.

  • I installed Version: 6.1.2.00015 to my win10 pc without any problem and solved some of the errors. But this time I get this error during building process:


    **** Build of configuration Debug for project Clock ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    making ../src/grace/grace.lib ...
    gmake[1]: Entering directory `C:/Users/mm/workspace_v6_1/Clock/src/grace'
    gmake[1]: Nothing to be done for `all'.
    gmake[1]: Leaving directory `C:/Users/mm/workspace_v6_1/Clock/src/grace'
    'Building file: ../main.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.5/bin/cl430" -vmsp --abi=eabi --use_hw_mpy=none --include_path="C:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.5/include" --advice:power=all -g --define=__MSP430G2211__ --diag_warning=225 --diag_wrap=off --display_error_number --printf_support=minimal --preproc_with_compile --preproc_dependency="main.pp" --cmd_file="configPkg/compiler.opt" "../main.c""../main.c"
    Fatal error #1965: cannot open source file "../main.c/main.c"
    1 catastrophic error detected in the compilation of "../main.c/main.c".
    Compilation terminated.

    >> Compilation failure
    gmake: *** [main.obj] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    Also I was able to install the v5 to my daugter's win7 pc without any problem. But it gaves the same error with v5:



    **** Build of configuration Debug for project Clock ****

    C:\ti\ccsv5\utils\bin\gmake -k all
    'Building file: ../main.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_22_04_46/xs" --xdcpath="C:/ti/grace_1_10_00_17/packages;" xdc.tools.configuro -o configPkg -t ti.targets.msp430.MSP430 -p ti.platforms.msp430:MSP430G2211 -r debug -c "C:/ti/ccsv5/tools/compiler/msp430" --compileOptions "--symdebug:dwarf --optimize_with_debug"
    Usage: xs xdc.tools.configuro [--help]
    [-v | -q]
    [-@ optionsfile]
    [-o outdir]
    [-b config_bld | -c codegen_dir | --cb]
    [-t target] [-p platform[:instance]] [-r profile]
    [-Dname=value]
    [-w | -x regexp]
    [--rtsName pkg_name]
    [--cfgArgs args_string]
    [--linkTemplate linker_template]
    [--tcf] [--bios5] [--pkg] [--generationOnly]
    [--compileOptions compile_options_string]
    [--oc compiler.opt] [--ol linker.cmd]
    infile.cfg
    'Finished building: ../main.cfg'
    ' '
    Sistem belirtilen yolu bulam?yor.
    gmake: [../src/makefile.libs] Error 1 (ignored)
    'Building file: ../main.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv5/tools/compiler/msp430/bin/cl430" -vmsp --abi=coffabi -O0 -g --include_path="C:/ti/ccsv5/ccs_base/msp430/include" --include_path="C:/ti/ccsv5/tools/compiler/msp430/include" --define=__MSP430G2211__ --diag_warning=225 --display_error_number --printf_support=minimal --preproc_with_compile --preproc_dependency="main.pp" --cmd_file="./configPkg/compiler.opt" "../main.c""../main.c"
    >> ERROR: Cannot open command file './configPkg/compiler.opt': No such file or directory
    Fatal error #5: could not open source file "../main.c/main.c"
    1 fatal error detected in the compilation of "../main.c/main.c".
    Compilation terminated.

    >> Compilation failure
    gmake: *** [main.obj] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

  • The install seems to have gone ok.

    Building of the Grace config looks like it is failing as the tool does not like the structure of the command being passed to it.  That is my assumption as the tool is showing output on how to pass options to it.

    'Building file: ../main.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_22_04_46/xs" --xdcpath="C:/ti/grace_1_10_00_17/packages;" xdc.tools.configuro -o configPkg -t ti.targets.msp430.MSP430 -p ti.platforms.msp430:MSP430G2211 -r debug -c "C:/ti/ccsv5/tools/compiler/msp430" --compileOptions "--symdebug:dwarf --optimize_with_debug"
    Usage: xs xdc.tools.configuro [--help]
    [-v | -q]
    [-@ optionsfile]
    [-o outdir]
    [-b config_bld | -c codegen_dir | --cb]
    [-t target] [-p platform[:instance]] [-r profile]
    [-Dname=value]
    [-w | -x regexp]
    [--rtsName pkg_name]
    [--cfgArgs args_string]
    [--linkTemplate linker_template]
    [--tcf] [--bios5] [--pkg] [--generationOnly]
    [--compileOptions compile_options_string]
    [--oc compiler.opt] [--ol linker.cmd]
    infile.cfg
    'Finished building: ../main.cfg'
    ' '

    The build command  for the C file also does not look valid.

    "C:/ti/ccsv5/tools/compiler/msp430/bin/cl430" -vmsp --abi=coffabi -O0 -g --include_path="C:/ti/ccsv5/ccs_base/msp430/include" --include_path="C:/ti/ccsv5/tools/compiler/msp430/include" --define=__MSP430G2211__ --diag_warning=225 --display_error_number --printf_support=minimal --preproc_with_compile --preproc_dependency="main.pp" --cmd_file="./configPkg/compiler.opt" "../main.c""../main.c"
    >> ERROR: Cannot open command file './configPkg/compiler.opt': No such file or directory
    Fatal error #5: could not open source file "../main.c/main.c"

    First issue is that it is passing an options file "./configPkg/compiler.opt".  I suspect that it is expecting that to be generated by the grace tool but it is not being generated or is being generated elsewhere.  Looking at the output from the grace build step I would say it is not being generated.

    The second issue is the way the source file is being passed to the compiler.  "../main.c""../main.c".  It leads to the compiler looking for it in the wrong location

    Fatal error #5: could not open source file "../main.c/main.c"

    The grace tool has not been supported for many years.  I can't say if the problem is with the project you are trying to use or something else.  I don;t think it is an issue with using Windows 10 with CCSv5.1.2.

    If you are just getting started with MSP430 I would recommend getting a new LaunchPad kit.  THey are very cheap.  You can then use the latest CCS.  There is an MSP430Ware package that contains all kinds of examples.  There is also a workshop that you can run through to get familiar with CCS on MSP430: https://software-dl.ti.com/ccs/esd/training/workshop/ccsv9/ccs_msp430_fundamentals_workshop.html

    Regards,

    John