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.

CCSv5 fails to debug: missing .out file

Other Parts Discussed in Thread: CODECOMPOSER

Im new to programming microcontrollers and im new to ccs. I need to learn how it works because i am going to program the EK-LM4F120XL board in my masters thesis.

I am following the workshop material for the microcontoller on youtube and through the PDF, but in the second lab when I should debug the program i get an error saying that the .out file cannot be found: 

Load program error.

Encountered a problem loading C\Program Files (x86)\StellarisWare\boards\MyLaunchPadBoard\Lab2\ccs\Lab 2.out

Could not open file.

The thing is that there is no file named "Lab 2.out" in my computer (I have searched for it). Another thing that I find strange is that the file path i choose to create my project in (C\Program Files (x86)\StellarisWare\boards\MyLaunchPadBoard\Lab2\ccs) does not exist in my computer. The folder (C\Program Files (x86)\StellarisWare\boards) exists, but the subfolders (\MyLaunchPadBoard\Lab2\ccs) cannot be seen when im look in my computer. My workspace is (C:\Users\Pontus\CodeComposer\workspace_v5_2).

Someone please help me. Im not sure if I have provided enought info. If not just ask for the things you need to know.

Im running ccs v5.2.1.00018 on windows 8

  • Pontus,

    Hi, let me see if i can help.

    So first things first, the .out file, it's a binary file that is loaded onto the board to execute code. It is generated when you hit the build button. Have you built the code before trying to load/debug it?

    Next:
    I would suggest NOT putting your .out files in the C:/Stellarisware directory as this is a software library, instead try keeping it in your workspace.(Also if the directory doesnt exist on disk then there is no way to load the file, i believe you are generating the .out file to somewhere other then where you're looking)

    When you create the new project in CCS you should put it in your workspace, then add whatever files you want to it. When you BUILD the project a .out file should be generated in your workspace folder. You should then be able to load the program onto the board by hitting the DEBUG button.

    That is about as much help as i can provide without more in depth knowledge about your situation. I would also reccomend checking out Professor Valvano's website since he does a lot with the TI ARM micro controllers in academia.

    Regards,

    -Austin

  • Hi,

    this is clearly an error caused by problems in linking the .obj files generated by the compiler.

    You have to set the build variable to the path where your project is stored and/or where your

    library which has to be linked is stored (Stellarisware or Tivaware installation directory).

    In lab2 instructions go back to the part where the setting of the path and build variables

    are explained and follow exactly the instructions.

    Have fun

    Peter

  • Hi,

    I am following the workbook instructions exacly as they explain them, but what I find wierd is that the search path (C:\Program Files (x86)\StellarisWare\boards\MyLaunchPadBoard\Lab2\ccs) does not excist even though  created it when I entered the project location when creating the project. If  create the directory through the windows explorer there are no files in the search path.

    Here is the console message I get when trying to build the project:


    **** Build of configuration Debug for project Lab2 ****

    C:\Program Files (x86)\ti\ccsv5\utils\bin\gmake -k all
    'Building file: ../main.c'
    'Invoking: ARM Compiler'
    "C:/Program Files (x86)/ti/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/Program Files (x86)/ti/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/Program Files (x86)/StellarisWare" --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
    The current directory is invalid.
    gmake: *** [main.obj] Error 1
    'Building file: ../startup_ccs.c'
    'Invoking: ARM Compiler'
    "C:/Program Files (x86)/ti/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/Program Files (x86)/ti/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/Program Files (x86)/StellarisWare" --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="startup_ccs.pp" "../startup_ccs.c"
    The current directory is invalid.
    gmake: *** [startup_ccs.obj] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

  • Hi,

    If you are logged as an user for Windows, it denies any access to the folder C:/Program Files (x86) - only as administrator you can  make folder or write something. Good old days of XP are gone...

    Try to install CCS in a separate folder - let's say c:\TI or c:\ti-ccs5xx if you expect to install other CCS versions in time. And TivaWare in a separate folder.

    Petrei

  • You both CCS and Stellarisware installed into the wrong folder.

    Solution: Uninstall CCS completely and also delete the Stellarisware folder.

    Then re-install CCS into C:\ti\ and install Stellarisware into C:\Stellarisware.

    As step 3 install the workshop under C:\xxxx  (where xxx is the name

    of the workshop given by its installation file).

    Then follow the instructions in the workbook PDF.

    After that you wont run into trouble any more.

    Regards

    Peter

  • Another tip:

    Do NOT use Stellarisware but TivaWare!

    It has to be installed into C:\ti\. As it is written better

    (more informations about Path and Build variables in Lab2)

    use TivaWare Workshop rather than Stellarisware workshop.

    Peter

  • I reinstalled everyting as you said and it works!  Thank you so much! :D