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: I have added the header file correctly, but the compilation error cannot open the header file

Tool/software: Code Composer Studio

Hi TI,

As shown below, I have added the header file correctly, but the compilation still reports an error that the header file cannot be opened.

I use CCS10.0 and compile TDA4x.

Invoking: ARM Compiler
"D:/software/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7R5 --code_state=32 --float_support=VFPv3D16 -me -O0 --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/MCAL_BSW/Spi/include" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/Mcu" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/Rtm" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/CanXcp" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/Xcp" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/MCAL_BSW/Adc/src" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/MCAL_BSW/Adc/include" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/MCAL_BSW/Dio/include" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/MCAL_BSW/Dio/src" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/VectorToolGeneral/GenData/include" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/Dem" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/TiPdk" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/TiPdk/ti/drv/ipc/soc" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/MCAL_BSW/CddIpc/include" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/MCAL_BSW/CddIpc/src" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/Mcu/Startup/include" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/Mcu/Startup" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/E2E" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/E2EXf" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/Crc" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/PduR" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/Det" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/VStdLib" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/Com" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/EcuM" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/Os" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/CanSM" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/CanIf" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/CanNm" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/Can_30_Mcan" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/VectorToolGeneral/GenData/Components" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/ComM" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/BswM" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/Mcal_Tda4xx" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/VectorToolGeneral/GenData" --include_path="D:/uidq1196/Desktop/Project/ipu02_AutoSar/vic-tda4x-ipu02/Source/AUTOSAR/ASR_BSW/_Common" --include_path="D:/software/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --define=BRS_PLATFORM_ARM --define=BRS_COMP_TI --define=IPC_EXCLUDE_CTRL_TASKS --define=IPC_EXCLUDE_POLLED_RX --define=IPC_EXCLUDE_INTERRUPT_REG --define=IPC_EXCLUDE_BLOCKING_RX --define=IPC_EXCLUDE_INIT_PARAMS_INIT --define=IPC_ONE_CONTEXT_FOR_HISRGATE_HWIGATE --define=IPC_SUPPORT_SCICLIENT --define=SOC_J721E -g --diag_warning=225 --diag_wrap=off --display_error_number -k --section_sizes=on --obj_directory="Source/AUTOSAR/ASR_BSW/Fee" "../Source/AUTOSAR/ASR_BSW/Fee/Fee.c"

Rgds,

Wenhui

  • Wenhui,

    I am not seeing the include path being passed to the compile.  Looking at the compiler output neither the /ASR_BSW/MemIf or /ASR_BSR/Fee paths are being passed as --include_path options.

    In the project options if you put your mouse over the [...] button to the right of the path does it resolve to the full path.  

    Regards,

    John

  • Hi John,

    This is exactly the problem I encountered. I added this header file path in Include Options, but the compilation did not find it.And I confirm that the added path is correct and the header file does exist.

    Rgds,

    Wenhui

  • Wenhui,

    I just noticed something.  I see an indicator on the Source folder that there are override build options set.

    That little wrench at the top right indicates that there are options set at the folder level.  If you right click on that folder and look at the build options I bet that the required include path is not present.  If it is then check to see if there are file specific options set on the Free_ChunkInfo.c file.

    Regards,

    John

  • Hi John,

    How to check this particular option? How can I cancel this specific option?

    Rgds,

    Wenhui

  • Wenhui,

    Right click on the Source folder and select properties

    You should then see the options that are set at the folder level

    You could either add the missing paths here or click the Restore Defaults button to have the folder use the project level settings.

    Regards,

    John

  • Hi John,

    The project with this small wrench was solved by this method, but I still have a project without this small wrench, but the opening file cannot be opened either:

    Rgds,

    Wenhui

  • Can you go to the CtApTestSwc.c file in the Project Explorer and look at its options.  It is in Source/AUTOSAR/VectorToolGeneral/Source/

    Check to make sure the path is listed in the Include options for that source file.  Could be that it has file specific build options set or one of the folders it is in has them set.

    John