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/TM4C1290NCPDT: "Hello World" startup anomalies.

Part Number: TM4C1290NCPDT
Other Parts Discussed in Thread: TM4C1294NCPDT, EK-TM4C1294XL

Tool/software: Code Composer Studio

CCS 8.3.1.00004

I created a new "Hello World" project using the builtin New-> CCS Project-> Basic Examples->Hello World.  When I first ran it, started at main() in C code it went to FaultISR(), displayed as C code.  Running it again it halts initially at _c_int00_template(...) in assembly code.  When I press the Run arrow it starts but immediately returns and stops at the same location.

I have no idea about how to go about debugging this.

Thanks, Doug

  • The issue is that the default stack size, 512 bytes, is too small for the CIO printf() function. To increase the stack size you need to change it in two places. First in the build configuration. Right click on the project name and select "Show Build Settings...". Then expand the tabs "CCS "ARM Linker" and "Basic Options". Change the stack size as shown here:

    The second change is in the link command file "tm4c1294ncpdt.cmd" (The actual name may be different if you picked a different device when you started this project.) Line 45 (or close to the end), change:

    __STACK_TOP = __stack + 512;

    to

    __STACK_TOP = __stack + 1024;

    You will probably find it more useful to look at the examples in the TivaWare library. For example, in CCS do "File" -> "Import", "CCS Projects", "Next". Now "Browse" to the examples for your launchpad, for example to "C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c1294xl\hello". This project is a "Hello World" project that outputs the string on UART0. On the launchpad UART0 is connected to a virtual serial port on the PC by USB. You can use the terminal program in CCS to see the output of the UART. 

  • Thanks Bob. This did not solve my issue, the stack size was set to 512 and I upped it to 2048 and it's still the same. The target is not a Launchpad but my own prototype.
  • I have attached a .zip file with a working copy of HelloWorld. Use the Code Composer Studio "File" -> "Import" function to extract this project from the .zip file and add it to your workspace. You should be able to then load and run the "debug\HelloWorld.out" file without recompiling.

    /cfs-file/__key/communityserver-discussions-components-files/81/4130.HelloWorld.zip