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.

using iostream in ccsv4 causes debugger to hang in boot.asm

Other Parts Discussed in Thread: UNIFLASH

Hi,

I am trying to run a simple hello world program on the Stellaris LM3S9B96 development board.  The main function is as follows.  After loading the .out file via the debugger, the device thread appears to get stuck in some infinite loop while running the _c_int00 () at boot.asm.  Thus the debugger never makes it to the main function.  If I remove the #include iostream reference, the debugger loads the .out file with no issues and the program halts at the start of main.  I seen a similar post on this issue but there wasn't any responses posted from TI.  Can someone tell me if I have something misconfigured or if I need to add something to the linker command file. 

#include <stdio.h>

#include <iostream.h>

int main() {

  printf("\r\nHello World");

  fflush(stdout);

  return 0; }

  • David,

    I tried duplicating this issue with a similar code example to what you have shown but did not have trouble getting to main. After adding iostream.h, I did have to increase the stack and heap sizes to get it to print out the "Hello World" properly, but other than that I didn't have to make any other changes.

    Basically I created a new CCS project for LM3S9B96, added the source file hello.cpp, and modified the stack and heap sizes in Linker options. I have attached my test project. Could you import it into your workspace and check if it works for you?

    0741.hello_9b96.zip

  • Hi,

    I have RDK-IDM-L35 - Stellaris.

    I can load example programs by ccs v5.1.1 program.

    I can load example programs by ccs uniflash program.

    I can not load example programs by ccs v 6.0 program.

    When I push reset buton on the board the display  stay  black on the board.

    When I click on c_int00() at boot.asm:217 0x00004752 (c_int00 does not contain frame information,

    appears note on the computer  window :

    "Can't find a source file at "/tmp/TI_MKLIBl3yPak/SRC/boot.asm" .
    Locate the file or edit the source lookup path to include its location.

    What can I do?

    Andrzej M.