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.

#1965: cannot open sourcefile "inc/hw_memmap.h"

Other Parts Discussed in Thread: TM4C129XNCZAD

Hi,

 I have installed code composer 5.5.0.0 recently and trying to start off with UART code. I have also installed SW-TM4C-2.1.0.12573.exe for TIVA ware drivers.


While compiling the UART POLL code I am getting the below error

#1965: cannot open sourcefile "inc/hw_memmap.h"

When I checked I found this file in c:\ti\TivaWare_C_Series-1.1.\inc folder  but the compiler seems to be refering to c:\ti\ccs5 folder.  

How do I redirect the compiler or what should I do?? pls help

  • Hello Rekha,

    The SW-TM4C-2.1.0.12573.exe would install in the following path

    C:\ti\TivaWare_C_Series-2.1.0.12573

    Please check the Project Settings by Right Clicking your project -> "Show Build Settings" -> Build -> ARM Compiler -> Include Options -> "Add dir to #include search path" and then put "C:\ti\TivaWare_C_Series-2.1.0.12573" as the path

    Regards

    Amit

  • Hi Rekha,

    have you tried adding that path to the compilers include options?

    See this wiki:

    http://processors.wiki.ti.com/index.php/Include_paths_and_options

    Please keep us informed.

    Best Regards,
    Lisa

  • Hi Amit and Lisa,

        Thanks for the reply. I had put  "C:\ti\TivaWare_C_Series-2.1.0.12573\inc" in the include path already. But it was giving errors. Now I removed 'inc' from the path and it started working.

    ie I have given "C:\ti\TivaWare_C_Series-2.1.0.12573"  in the include path and its working.


    Regards,

    Rekha

  • Hi Rekha,

    ok, glad to hear.  Thanks for the update and all the best with development.

    Best Regards,
    Lisa

  • Tried that and I still get the same error. Any ideas?

    I updated the IDE,

    I turned of my anti-virus software

    I included the path mentioned earlier. However, I can't find the include file. so it does look like the IDE would not be able to find it.

    I also made sure that I have full administrative privileges and opened the software as an admin.

  • Hello John,

    Can you send a snapshot of the code, compilation logs?

    Regards

    Amit

  • I'm still getting used to this software, where do I find the compilation logs?

  • Hello John,

    In CCS it is called the Console. You can copy the paste it in a text file and attach it to the post.

    Regards

    Amit

  • Hello Amit,

    Of course, for some reason I thought log and thought you were referring to an error log that gets generated and saved in some directory. I'm used to just referring to that as the console output.

    Here is what was on the console.

    CORTEX_M4_0: GEL Output:
    Memory Map Initialization Complete
    CORTEX_M4_0: GEL: Encountered a problem loading file: C:\Users\me\workspace_v6_0\lab2\Debug\lab2.out Could not open file

    I also reinstated ccs with having my firewall turned off.

  • Hello John,

    The out file is missing in the path mentioned. This could be because there is an error in compilation. Can you simply build the lab and then see if it completes without error. Please do attach the log.

    In the beginning of the post you mentioned that it could not find an include path and now it seems that the out file is missing. Please clarify.

    Regards

    Amit

  • Hello Amit,

    here ya go


    **** Build of configuration Debug for project lab2 ****

    "c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../Lab2Main.c'
    'Invoking: ARM Compiler'
    "c:/ti/ccsv6/tools/compiler/arm_5.1.8/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.8/include" -g --gcc --define="ccs" --define=PART_LM4F120H5QR --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="Lab2Main.pp" "../Lab2Main.c"
    The system cannot find the path specified.
    gmake: *** [Lab2Main.obj] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

  • Hello John,

    it looks to me that the path of the include for TivaWare is incorrect. Can you check the path of TivaWare install and the path specified for includes in CCS?

    Regards

    Amit

  • Ok I just deleted the path to tivaware and put it back, I'm now getting this.


    **** Build of configuration Debug for project lab2 ****

    "c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../Lab2Main.c'
    'Invoking: ARM Compiler'
    "c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" -g --gcc --define="ccs" --define=PART_LM4F120H5QR --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="Lab2Main.pp" "../Lab2Main.c"
    "../Lab2Main.c", line 1: fatal error #1965: cannot open source file "inc/hw_types.h"
    1 catastrophic error detected in the compilation of "../Lab2Main.c".

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

    **** Build Finished ****

  • Hello John,

    What is missing is the include path for the TivaWare. The compilation log should look something like this

    "C:/ti/ccsv5/tools/compiler/arm_5.1.1/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -Ooff -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.1.1/include" --include_path="C:/ti/TivaWare_C_Series-2.1.0.12573/examples/boards/dk-tm4c129x" --include_path="C:/ti/TivaWare_C_Series-2.1.0.12573" --gcc --define=ccs="ccs" --define=PART_TM4C129XNCZAD --define=TARGET_IS_TM4C129_RA1 --diag_warning=225 --display_error_number --diag_wrap=off --gen_func_subsections=on --ual --preproc_with_compile --preproc_dependency="TM4C129_IglooBlinky.pp"  "../TM4C129_IglooBlinky.c"
    'Finished building: ../TM4C129_IglooBlinky.c'

    To add the same, right click on the project => Show Build Settings and then use the snapshot below to add the TivaWare

    Regards

    Amit

  • Added the file path there too and still got this


    **** Build of configuration Debug for project lab2 ****

    "c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../Lab2Main.c'
    'Invoking: ARM Compiler'
    "c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --preinclude="C:/ti/TivaWare_C_Series-2.1.0.12573" -g --gcc --define="ccs" --define=PART_LM4F120H5QR --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="Lab2Main.pp" "../Lab2Main.c"
    Fatal error #1966: cannot open source file "C:/ti/TivaWare_C_Series-2.1.0.12573": Invalid argument
    1 catastrophic error detected in the compilation of "../Lab2Main.c".
    Compilation terminated.

    >> Compilation failure
    gmake: *** [Lab2Main.obj] Error 1
    'Building file: ../lm4f120h5qr_startup_ccs.c'
    'Invoking: ARM Compiler'
    "c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --preinclude="C:/ti/TivaWare_C_Series-2.1.0.12573" -g --gcc --define="ccs" --define=PART_LM4F120H5QR --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="lm4f120h5qr_startup_ccs.pp" "../lm4f120h5qr_startup_ccs.c"
    Fatal error #1966: cannot open source file "C:/ti/TivaWare_C_Series-2.1.0.12573": Invalid argument
    1 catastrophic error detected in the compilation of "../lm4f120h5qr_startup_ccs.c".
    Compilation terminated.

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

    **** Build Finished ****

  • Hello John,

    It has to be an include and not in the preinclude path. Use the lower box to add the same. Secondly, do you have TivaWare installed in the same path as mentioned in the error?

    Regards

    Amit

  • Yes, the files are there and I installed the software. Really stumped on this one.

  • Hello John,

    Please send a snapshot of the TivaWare path as seen in Windows Explorer?

    Regards

    Amit

  • C:\ti\TivaWare_C_Series-2.1.0.12573 

  • Hello John,

    May be we would need to do a debug session, to close this loop. I will send you a Conversation Request to see if we can schedule a session with you

    Regards

    Amit

  • Hi, I am beginer but when I try to compile muy projects ccs6 shows me this error message. 

    gmake: *** No rule to make target `C:/ti/ccsv6/eclipse/TIVAWARE_INSTALL/driverlib/ccs/Debug/driverlib.lib', needed by `Practica5.out'.