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.

projectname.out file could not open while debug project



Hello,

         I am suffering with same type of error in many different project.

E.g.I had successfully build the project of inbuilt temperature sensor reading using ADC.

which is  in the stellarisware / board / mylauchPadboard / lab5 ,But i am getting the error like lab5.out file could not open. same type of error in many projects.

  • Hi, 

    Does your file lab5.out exist on your computer? If yes, then where is it loacated? And more, where it should be?

    If not, then why? It means that it is not generated and there must be some mistakes.

    As a suplimentary check, did you followed all steps as in previous Lab chapters? Do you have this macro defined for your project: 

    ${PROJECT_ROOT}/../../../.. 

    Check again.

    Petrei

  • Thank you for the reply,

    But sir i Built the  project  for the blinking the led then it generates binary / blink.out file but i don't know why it's not generated for the lab5.

      I had already done all the setting. 

  • Sir,Here i am see that i was remove the predefines "PART_LM4F120H5QR TARGET_IS_BLIZZARD_RA1" from the lab3 then it's give seven error which are this photo.

    and if i add predefines "PART_LM4F120H5QR TARGET_IS_BLIZZARD_RA1" in the blinky project then it show the error which is blinky.out file could not open.

    Buy This two observation i find this error(.out file could not open) is related to predefines.

    my blinky project is working as i remove the predefine.

    but lab3 is not working.

    now what to do?? 

  • Hi,

    For sure the predifines must be added to each project. 

    Now about your errors: the easiest to overcome may be to prefix each specifierd functions with ROM_ prefix and to add rom_map.h file as includded file. Explanation: the error message means the function is called with declaration but no definition (i.e the code for that function is not found). The cure is to add that, either by specifying to take the code from ROM, either from driverlib library. 

    Petrei

  • Thank you sir,

    I tried that setting,If  i  include ROM_prefix in the preinclude file then those seven error are solve but first original error come again that is lab3.out file could not open means it's not create.it is working same as "PART_LM4F120H5QR TARGET_IS_BLIZZARD_RA1".

    here if i include ROM_prefix in the blinky project then it's give blinky.out could not open.

    sir,Blinky project is already working without that include file.  

  • Hi,

    Hold your breath. For the moment please forgot the existance of blinky program and concentrate on yours.  Compiling and linking of your program is OK? I.e. Look at console window. Are there any error messages? If not, then you must search that file on your computer. How? Use whatever works for you ( for me the windows native tools are not efficient, I recommend to use Total Commander, very useful for programmers). If the .out file is found, note where is it and post the result.

    Blinky is a small demo program which does not need many configurations, so the comparison with that is useless in your case.

    Another solution is to start a new program (the most complicated one you can find for your board, import it , do not make any change, compile, link and then search for all settings. Do not miss any you will find in project | properties. Understand them ,copy them on paper and then do the same for your project.

    Petrei

  • If you post the build log from the console, we can see more of what's going on.

    Then upload the resulting text file (or copy and paste). This will let us see exactly what errors are being generated and possibly missed by the Problem window.

  • Thank you sir for give this kind of responce.

    Here sir i send you the console of the lab5 project.

    **** Build of configuration Debug for project Lab5 ****
    
    C:\ti\ccsv5\utils\bin\gmake -k all 
    'Building file: ../main.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --preinclude="ROM_prefix" --include_path="C:/ti/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/Users" --define=DEBUG --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="main.pp"  "../main.c"
    Fatal error #5: could not open source file "ROM_prefix"
    1 fatal error detected in the compilation of "../main.c".
    Compilation terminated.
    
    >> Compilation failure
    gmake: *** [main.obj] Error 1
    'Building file: ../startup_ccs.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --preinclude="ROM_prefix" --include_path="C:/ti/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/Users" --define=DEBUG --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="startup_ccs.pp"  "../startup_ccs.c"
    Fatal error #5: could not open source file "ROM_prefix"
    1 fatal error detected in the compilation of "../startup_ccs.c".
    Compilation terminated.
    
    >> Compilation failure
    gmake: *** [startup_ccs.obj] Error 1
    gmake: Target `all' not remade because of errors.
    
    **** Build Finished ****

  • --preinclude="ROM_prefix" --include_path="C:/ti/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/Users"

    The preinclude is incorrect, remove it.

    You don't have enough include directives. Compare it to the build that works. Is it the same?

    I would recommend deleting this project and importing again.

    It's possible CCS is having issues with the workspace location, but it's hard to tell. Try importing lab5 again. If it fails, post the build log again and a screen shot of the Includes of your build setting.

  • Build of configuration Debug for project Lab5 ****
    
    C:\ti\ccsv5\utils\bin\gmake -k all 
    'Building file: ../main.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare" --define=DEBUG --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="main.pp"  "../main.c"
    At end of source: warning #97-D: a translation unit must contain at least one declaration
    'Finished building: ../main.c'
    ' '
    'Building file: ../startup_ccs.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare" --define=DEBUG --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="startup_ccs.pp"  "../startup_ccs.c"
    'Finished building: ../startup_ccs.c'
    ' '
    'Building target: Lab5.out'
    'Invoking: ARM Linker'
    "C:/ti/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --define=DEBUG --diag_warning=225 --display_error_number -z --stack_size=256 -m"Lab5.map" --heap_size=0 -i"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/lib" -i"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/include" --reread_libs --warn_sections --display_error_number --rom_model -o "Lab5.out"  "./startup_ccs.obj" "./main.obj" -l"libc.a" -l"C:/StellarisWare/boards/MyLaunchPadBoard/Lab5/ccs/../../../../driverlib/ccs-cm4f/Debug/driverlib-cm4f.lib" "../lm4f120h5qr.cmd" 
    <Linking>
    
     undefined first referenced                                                                        
      symbol       in file                                                                             
     --------- ----------------                                                                        
     main      C:\ti\ccsv5\tools\compiler\tms470_4.9.5\lib\rtsv7M4_T_le_v4SPD16_eabi.lib<args_main.obj>
    
    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "Lab5.out" not built
    gmake: *** [Lab5.out] Error 1
    gmake: Target `all' not remade because of errors.
    
    >> Compilation failure
    
    **** Build Finished ****
    

    Here ,I am sending you the screenshot of many window.

    here if i remove the include ROM_prefix than get the that three error.

  • Is main.c empty?

    You'll want to follow the workbook and add the code. Feel free to post main.c if you run into issues.

  • No,sir main.c is not empty

    Here I delete the whole the data from the workspace and then do the whole process for the beginning.  

    Finally i am getting the required output and lab5.out file also.

    I like your way of talking and helping other person.

    This small photo   for you,