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 v6 and Tiva Launchpad Hello world example

Windows 7 SP 1 64 bit

Code Composer Studio 6.0.0.00091

Target Tiva TM4C123H6PM using Stellaris In-Curcuit Debug Interface

I created a new Code Compose Studio project (CCS Project New) using the Basic Examples Hello World template.

When I execute the project and attempt to step over the printf statement, I don't see the console output.  When I press Suspend, it shows execution suspended at the while(1) statement inside FaultISR.

Performing similar steps in CCS Version 5.5.0.00077 works as expected (I see Hello World! and return 0 is highlighted).

  • Hi,

    CCS 6 is still in beta version and is supposed to be used only for evaluation. There might be some bugs that would be solved soon.
     Also, the website alerts you:

    Important!: Please install CCS v6 in a new directory and please ensure that you use a new workspace directory for your evaluation of CCSv6. This approach will minimize impact of CCSv6 on your existing CCS installations.

    Regards,

    Gautam

  • I have them installed in separate directories and I have a fully functional installation of v5.5.

    I realize v6.0 is in beta.  I am not sure if there is a better mechanism to report problems with v6.0 though.

  • Russell Minnich said:

    I created a new Code Compose Studio project (CCS Project New) using the Basic Examples Hello World template.

    When I execute the project and attempt to step over the printf statement, I don't see the console output.  When I press Suspend, it shows execution suspended at the while(1) statement inside FaultISR.

    This is expected behavior because, by default, when creating a new CCS project for Tiva devices the heap size is set to 0. You can check this by going into Project Properties->ARM Linker->Basic Options and look at the --stack_size and --heap_size. Programs such as "Hello world" that use C I/O require quite a bit of heap and stack space. The default stack/heap sizes for Tiva devices are set this way because, in general, "Hello World" type programs are not ideal for microcontrollers with limited memory space. printf is pretty costly in terms of size requirements and could run over the memory capablities of smaller MCUs.

    More info on things to be aware of when using printf is in this wiki page: http://processors.wiki.ti.com/index.php/Tips_for_using_printf

    Russell Minnich said:

    Performing similar steps in CCS Version 5.5.0.00077 works as expected (I see Hello World! and return 0 is highlighted).

    The reason it works in CCS 5.5 is that the new project wizard in CCS 5.5 did not set the heap and stack sizes (due to a bug). As a result they defaulted to a size of 0x800 each which was sufficent to allow printf to work. If you go back to CCS 5.4 you will find that the stack and heap sizes are set the same way as they are in CCSv6.

    If you wish to make "Hello world" example work in CCSv6, change the heap size to a large enough value (I tried 0x400 and it worked).