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.

Error #1966: cannot open source file in CCSv6

Other Parts Discussed in Thread: HALCOGEN

Hello,

I bought the Hercules launchpad RM42 and after several days gathering documentation, I am trying to implement the project 0 (halcogen + ccsv6). I followed the steps in the pdf, but when I give to "build all", it gives me this error:

**** Build of configuration Debug for project the3 ****

"c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../esm.c'
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --preinclude="C:/myRM42workspace/include/" -g --display_error_number --diag_warning=225 --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="esm.pp"  "../esm.c"
Fatal error #1966: cannot open source file "C:/myRM42workspace/include/": Invalid argument
1 catastrophic error detected in the compilation of "../esm.c".
Compilation terminated.

>> Compilation failure
gmake: *** [esm.obj] Error 1
'Building file: ../targetConfigs/esm.c'
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --preinclude="C:/myRM42workspace/include/" -g --display_error_number --diag_warning=225 --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="targetConfigs/esm.pp" --obj_directory="targetConfigs"  "../targetConfigs/esm.c"
Fatal error #1966: cannot open source file "C:/myRM42workspace/include/": Invalid argument
1 catastrophic error detected in the compilation of "../targetConfigs/esm.c".
Compilation terminated.

>> Compilation failure
gmake: *** [targetConfigs/esm.obj] Error 1
'Building file: ../source/esm.c'
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --preinclude="C:/myRM42workspace/include/" -g --display_error_number --diag_warning=225 --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="source/esm.pp" --obj_directory="source"  "../source/esm.c"
Fatal error #1966: cannot open source file "C:/myRM42workspace/include/": Invalid argument
1 catastrophic error detected in the compilation of "../source/esm.c".
Compilation terminated.

>> Compilation failure
gmake: *** [source/esm.obj] Error 1
'Building file: ../source/het.c'
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --preinclude="C:/myRM42workspace/include/" -g --display_error_number --diag_warning=225 --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="source/het.pp" --obj_directory="source"  "../source/het.c"
Fatal error #1966: cannot open source file "C:/myRM42workspace/include/": Invalid argument
1 catastrophic error detected in the compilation of "../source/het.c".
Compilation terminated.

>> Compilation failure
gmake: *** [source/het.obj] Error 1
'Building file: ../source/notification.c'
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --preinclude="C:/myRM42workspace/include/" -g --display_error_number --diag_warning=225 --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="source/notification.pp" --obj_directory="source"  "../source/notification.c"
Fatal error #1966: cannot open source file "C:/myRM42workspace/include/": Invalid argument
1 catastrophic error detected in the compilation of "../source/notification.c".
Compilation terminated.

>> Compilation failure
gmake: *** [source/notification.obj] Error 1
'Building file: ../source/pinmux.c'
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --preinclude="C:/myRM42workspace/include/" -g --display_error_number --diag_warning=225 --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="source/pinmux.pp" --obj_directory="source"  "../source/pinmux.c"
Fatal error #1966: cannot open source file "C:/myRM42workspace/include/": Invalid argument
1 catastrophic error detected in the compilation of "../source/pinmux.c".
Compilation terminated.

>> Compilation failure
gmake: *** [source/pinmux.obj] Error 1
'Building file: ../source/sys_main.c'
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --preinclude="C:/myRM42workspace/include/" -g --display_error_number --diag_warning=225 --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="source/sys_main.pp" --obj_directory="source"  "../source/sys_main.c"
Fatal error #1966: cannot open source file "C:/myRM42workspace/include/": Invalid argument
1 catastrophic error detected in the compilation of "../source/sys_main.c".
Compilation terminated.

>> Compilation failure
gmake: *** [source/sys_main.obj] Error 1
'Building file: ../source/sys_pcr.c'
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --preinclude="C:/myRM42workspace/include/" -g --display_error_number --diag_warning=225 --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="source/sys_pcr.pp" --obj_directory="source"  "../source/sys_pcr.c"
Fatal error #1966: cannot open source file "C:/myRM42workspace/include/": Invalid argument
1 catastrophic error detected in the compilation of "../source/sys_pcr.c".
Compilation terminated.

>> Compilation failure
gmake: *** [source/sys_pcr.obj] Error 1
'Building file: ../source/sys_phantom.c'
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --preinclude="C:/myRM42workspace/include/" -g --display_error_number --diag_warning=225 --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="source/sys_phantom.pp" --obj_directory="source"  "../source/sys_phantom.c"
Fatal error #1966: cannot open source file "C:/myRM42workspace/include/": Invalid argument
1 catastrophic error detected in the compilation of "../source/sys_phantom.c".
Compilation terminated.

>> Compilation failure
gmake: *** [source/sys_phantom.obj] Error 1
'Building file: ../source/sys_selftest.c'
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --preinclude="C:/myRM42workspace/include/" -g --display_error_number --diag_warning=225 --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="source/sys_selftest.pp" --obj_directory="source"  "../source/sys_selftest.c"
Fatal error #1966: cannot open source file "C:/myRM42workspace/include/": Invalid argument
1 catastrophic error detected in the compilation of "../source/sys_selftest.c".
Compilation terminated.

>> Compilation failure
gmake: *** [source/sys_selftest.obj] Error 1
'Building file: ../source/sys_startup.c'
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --preinclude="C:/myRM42workspace/include/" -g --display_error_number --diag_warning=225 --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="source/sys_startup.pp" --obj_directory="source"  "../source/sys_startup.c"
Fatal error #1966: cannot open source file "C:/myRM42workspace/include/": Invalid argument
1 catastrophic error detected in the compilation of "../source/sys_startup.c".
Compilation terminated.

>> Compilation failure
gmake: *** [source/sys_startup.obj] Error 1
'Building file: ../source/sys_vim.c'
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --preinclude="C:/myRM42workspace/include/" -g --display_error_number --diag_warning=225 --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="source/sys_vim.pp" --obj_directory="source"  "../source/sys_vim.c"
Fatal error #1966: cannot open source file "C:/myRM42workspace/include/": Invalid argument
1 catastrophic error detected in the compilation of "../source/sys_vim.c".
Compilation terminated.

>> Compilation failure
gmake: *** [source/sys_vim.obj] Error 1
'Building file: ../source/system.c'
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --preinclude="C:/myRM42workspace/include/" -g --display_error_number --diag_warning=225 --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="source/system.pp" --obj_directory="source"  "../source/system.c"
Fatal error #1966: cannot open source file "C:/myRM42workspace/include/": Invalid argument
1 catastrophic error detected in the compilation of "../source/system.c".
Compilation terminated.

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

**** Build Finished ****

All source files exist .. I suppose there is a directory path error, but I´ve readen lots of texts and I´ve done some changes but the error is still there..

Lots of thanks ^^

  • Ivan Pina said:
    "c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../esm.c'
    'Invoking: ARM Compiler'
    "c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --preinclude="C:/myRM42workspace/include/" -g --display_error_number --diag_warning=225 --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="esm.pp"  "../esm.c"
    Fatal error #1966: cannot open source file "C:/myRM42workspace/include/": Invalid argument
    1 catastrophic error detected in the compilation of "../esm.c".
    Compilation terminated.

    The part in bold is the issue. You are passing in a path to the --preinclude option when it takes a file. I assume you meant to use the --include_path option instead.

    Check your Include Options in your build properties. 

    Thanks

    ki

  • In the project0 of the Hercules launchpad says that we have to use preinclude option to link the libraries... I will continue testing :(
  • Can you show me the PDF you are looking at?
  • I´ve noticed one error....  At the page 17 of the pdf, the preincludes are up and the includes are down..... In the CCSv6, includes are in the upper zone and the preincludes are in the bottom..  this took me to the mistake.

    But a new error appears, please, can you help me?

  • At the end, I´ve must to add manually the folders where the source files are. In addition the .out file must have another problem because after flashing the board, the error led tilts.... buff, please, review the pdf... I´dont want to go back with PIC, I´d like to continue with arm but... too hard ^^

    Thank 4 all