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.

CC Studio 6.0.1, Could not open file

Other Parts Discussed in Thread: CCSTUDIO, EK-TM4C123GXL

Hello

I just got my Stellaris Launchpad Board and I have installed all things I need.

I want to use the Tutorials from TI to learn, how to program with CCStudio, because I only have programmed in AVR Studio.

I do everything, as shown in the Video Lab2.

https://www.youtube.com/watch?v=-FIq0KShy1U&spfreload=10

So I copied the Code from the PDF and wanted to Debug the project with the Stellaris Launchpad plugged in.

But I get the Message: 

CORTEX_M4_0: GEL: Encountered a problem loading file: C:\StellarisWare\boards\MyLaunchPadBoard\Lab2\ccs\Debug\Lab2.out Could not open file

If I looked into this folder the file "Lab2.out" isn't there, so the CCStudio isn't creating this file.

Can you tell me why CCStudio isn't creating this file and how I can solve this problem??

Thank you for your help

Marcel

  • Marcel,

    If you build the project are any errors displayed in the problems view?

    John

  • No I don't get any Problems or Advice's.

    I only get the message if I press the Debug Button, that CCS can't open the file.

    Because CCS doesn't create the file.

  • When you build the project CCS will create that .out file.  Did you build the project?  At 21:17 in the video Scott says to click the debug button to build and download the lab2 project.  I suspect that your build is failing.  If you click the hammer button instead this will just build your project.  It will show the raw output from the compiler and linker in the console view and the errors and warnings in the problems view.

  • Marcel de Vries said:
    I do everything, as shown in the Video Lab2.

    This video was made years ago and for the earlier version of Tiva Launchpad and Tivaware. 

    From what I know, you need to make some changes at project settings to make it work.

    - kel

  • Yes I build the project.

    I am currently not home so I can't look at the raw output from the compiler, I will do this tomorrow.

    What do I have to change at the project settings??

  • I just build the project and this is the output from the compiler:

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

    "c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 

    'Building file: ../lm4f120h5qr_startup_ccs.c'

    'Invoking: ARM Compiler'

    "c:/ti/ccsv6/tools/compiler/arm_5.1.9/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.9/include" --preinclude="C:/StellarisWare" -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:/StellarisWare": 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

    'Building file: ../main.c'

    'Invoking: ARM Compiler'

    "c:/ti/ccsv6/tools/compiler/arm_5.1.9/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.9/include" --preinclude="C:/StellarisWare" -g --gcc --define="ccs" --define=PART_LM4F120H5QR --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="main.pp"  "../main.c"

    Fatal error #1966: cannot open source file "C:/StellarisWare": Invalid argument

    1 catastrophic 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/ccsv6/tools/compiler/arm_5.1.9/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.9/include" --preinclude="C:/StellarisWare" -g --gcc --define="ccs" --define=PART_LM4F120H5QR --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="startup_ccs.pp"  "../startup_ccs.c"

    Fatal error #1966: cannot open source file "C:/StellarisWare": Invalid argument

    1 catastrophic 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 ****

    Does anyone know what curses these problems?

    I don't know what to do.

  • Marcel de Vries said:
    define=PART_LM4F120H5QR

    Marcel de Vries said:
    1 catastrophic error detected in the compilation of "../lm4f120h5qr_startup_ccs.c".

    These above are outdated for the current Tiva Launchpad and Tivaware.

    What you can do is use example programs at Tivaware as base program for lab 2. Then append code that was used in lab 2.

    As you can see example programs like hello build without errors. If you inspect the project properties predefined symbols are different to what is mentioned at lab2. The startup file for these example programs are different from what is mentioned at lab2.

    - kel

  • Thank you.

    I couldn't find a Hello World program that works with CCS v6.

    Can you maybe upload one??

  • Create a new project using the project wizard and select your Tiva device.  Select the template for an empty project with main.c

    Update main.c to look like this.

    /*
    * main.c
    */

    #include <stdio.h>


    int main(void) {

    printf("hello\n");

    return 0;
    }

    By default the heap size is set to 0 on a lot of Tiva devices.  Go to the project properties.  Go to the linker section.  Under the basic options add a heap.  For me I made it 400.

    Regards,

    John

  • Now I can build the project and copy it on the Stellaris Board.

    But I can't see the Test "hello" in the Console0 - Window.

    Why that?

    And I couldn't find a place where I can change the heap size. I tried to search it, but with no result.

    And how, can I now use the GPIO-Classes, I2C or sue the three color LED. (I know i have to set the three output's that are connected with it.)

  • Typically I don't see the output if my heap or stack are not big enough.

    Also ensure you are looking at the correct console.  The console view should switch to the correct output stream if output is detected.  However the name of the view you listed doesn't seem correct.  Here is what mine looks like.  HelloStellaris232 is the name of my project so that is why you see that name.  But you should see CIO in the places indicated.

    As for how to use items on the device you will need to post in the Tiva forum.  We don't have much expertise on that here.

    Regards,

    John

  • Thank you for your fast answers.

    But I can't find the option the change the size of the heap.

    Can you maybe post a picture of the window, where I i can change that?

  • Here is the place

  • Marcel de Vries said:

    'Building file: ../lm4f120h5qr_startup_ccs.c'

    'Invoking: ARM Compiler'

    "c:/ti/ccsv6/tools/compiler/arm_5.1.9/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.9/include" --preinclude="C:/StellarisWare" -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:/StellarisWare": Invalid argument

    There are a couple of problems with your original lab project which caused the build to fail.

    The first is that the path to Stellarisware should be added to the --include_path compiler option and not to --preinclude as shown in your build. The second is that there are two start up files in the project lm4f120h5qr_startup_ccs.c and startup_ccs.c when there should only be one or the other.

    A better starting point may be to import one of the example projects from Stellarisware. Also as mentioned by Markel, these softwares are outdated so you may want to consider updating to a more current Tiva launchpad and TivaWare whenever possible.

  • Marcel de Vries said:
    I couldn't find a Hello World program that works with CCS v6.

    It is in the Tivaware for Tiva Launchpad "C:\EK-TM4C123GXL-KEIL-753\examples\boards\ek-tm4c123gxl\hello".

    - kel

  • I have changed the heap to 400 now.

    But if run the program I get to this window.

    Then i press resume.

    But nothing happens there in the Console - Window.

    I have also checked, if I got the right Console - Window.

    Why do I have no output?

  • You may need to increase the heap even more. Try setting the heap size to 800.

  • Okay, thank your very much.

    It worked!!!

    I thank all of you for your great help.