I am exploring the use of iostream on TivaC Launchpad (TM4C123GH6PM microcontroller) but could not get the program to load for stepping through.
It just loads and automatically runs (hang?) without clicking the run button.
Clicking the suspend button causes a new file to be popped up - "copy_decompress_rle.c" and the following statement highlighted within the file
"while(run_len--) WRITE8_ADV(outbuf, ch);"
Clicking the restart button makes the program run automatically again as before, instead of pausing at "void main(void){".
But if I comment out the statements "#include <iostream.h>" and "cout<<"Hello World!"<<endl;", the program will load and I can then step though the code.
The test program is very simple:
#include <stdint.h>
#include <iostream.h>
void main(void) {
uint16_t ui16Cnt = 0;
ui16Cnt++;
cout<<"Hello World!"<<endl;
while(1){
}
}
The project was created using File>New>CCS Project, and then renaming "main.c" as main.cpp. Code composer studio is version 6.0.1.00040
1. Can anyone advise why the program will load and automatically run? How to prevent auto run so that I can use the debugger?
2. Also, is there a workbook to guide the development of c++ projects in CCS? A workbook similar to the excellent workbook for C projects in CCS will save many of us a lot of trial, error and frustrations.
Thanks in advance,
John