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.
Tool/software: Code Composer Studio
After following steps from forum, Compose Studio have a different error.
**** Build of configuration Debug for project lab3 ****"C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 4 all -O
Building file: "../main.c"
Invoking: ARM Compiler
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/bin/armcl" -mv4 --code_state=32 --include_path="C:/Users/MariaClara/workspace_v8/lab3" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include" --preinclude="C:/Users/MariaClara/workspace_v8/lab3" --preinclude="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"
>> Compilation failure
subdir_rules.mk:9: recipe for target 'main.obj' failed
Command-line error #1966: cannot open source file "C:/Users/MariaClara/workspace_v8/lab3": Invalid argument
1 catastrophic error detected in the compilation of "../main.c".
Compilation terminated.
gmake: *** [main.obj] Error 1
gmake: Target 'all' not remade because of errors.
Maria,
Are you working with Tiva TM4C devices? If so, you need to add the path to your TivaWare installation to the project's compiler --include_path option (Project Properties->Build->Compiler->Include Options). Take a look specifically at this post.
Note that the path needs to be added under --include_path and not under --preinclude.
Maria Clara Ferraz Bezerra de Miranda said:"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/bin/armcl" -mv4 --code_state=32 --include_path="C:/Users/MariaClara/workspace_v8/lab3" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include" --preinclude="C:/Users/MariaClara/workspace_v8/lab3" --preinclude="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"
It appears that you have a couple of paths added under the --preinclude option (highlighted above). Delete those. Then add the path to TivaWare under --include_path and rebuild the project.
Let us know if that resolves the issue.