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.
Hi, I have started to learn CCSv6 and it was good experience until I got "'cmd' is not recognized as an internal or external command, operable program or batch file" problem. I am creating C/C++ hello world project and follows exact procedure as explained in CCS Getting Started help guide. I am using MinGW compiler. What could be possible solution? please suggest me..
LAXMI KANT TIWARI said:I am creating C/C++ hello world project and follows exact procedure as explained in CCS Getting Started help guide.
Which Guide and procedure are you referring to here? Can you send a link to it so I know the exact process you are following? Or else please describe the exact steps or attach screenshots.
I assume you see the error message when building the project. Please copy and paste the full output of the CCS build console to a text file and attach it here.
Please find the Build Log
10:41:47 **** Incremental Build of configuration Debug for project helloworld ****
Info: Internal Builder is used for build
gcc -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\helloworld.o" "..\\src\\helloworld.c"
gcc -o helloworld.exe "src\\helloworld.o"
10:41:47 Build Finished (took 484ms)
attached figure contain both help manual and ccs error message
LAXMI KANT TIWARI said:10:41:47 Build Finished (took 484ms)
This seems to indicate the build completed without errors. Does the error appear at run time then?
On which target/device are you running the program? It appears that you are running a C/C++ Remote Application debug session so is it your intention to run the app on Linux and debug with CCS? This scenario is mostly used when debugging a linux-hosted executable.
This wiki page talks about how to debug Linux projects from inside CCS but note that the application needs to be already be located on the target filesystem: http://processors.wiki.ti.com/index.php/Linux_Debug_in_CCSv5
The other (more common) scenario is creating and debugging bare-metal CCS projects using either TI or GCC compiler tools.
http://processors.wiki.ti.com/index.php/Debug_Handbook_for_CCS
I am not getting you, what you are talking about Ma'am!!!
It is just simple 'Hello world' C program which I want to print on console. I Just followed help manual but did not get correct output.
please tell me how can I run this Hello World C program
The default type of project in Code Composer Studio is a CCS project. This type of project is specifically targeted towards a TI embedded processor and uses TI compiler/build tools to build the project. The general process most users go through to get started is to create and build a CCS project targeted for a specific TI device (it could be a Hello World or Blink LED type of project) and then load and debug the code on a TI kit. In older versions of CCS (v5) we included simulators on which you could run the code if you did not have access to a hardware kit. In CCSv6 simulators are no longer included due to the availability of many low cost development kits or launchpads, so you would need to have a board/kit to be able to run a program.
The Help section you referred to allows you to create C/C++ Eclipse projects and use an external toolchain such as GCC or MinGW. For a bare-metal program (one without an OS) you would still need to connect to a target board (usually through a JTAG connection) in order to download and run the code.
You can read more about the different types of projects here: http://processors.wiki.ti.com/index.php/Projects_and_Build_Handbook_for_CCS
I am sorry to ask again but help section didn't give solution. just I want to know where am I wrong?
I have MinGW installed and also CCSv6, thats it what I need to run C progra, a compiler and an editor.
can you tell me any specific answer of this this problem.
Thank you so much for your effort.
You are using CCS to compile and debug a native Windows program, rather than a TI embedded device (which is what CCS is designed for).LAXMI KANT TIWARI said:I am sorry to ask again but help section didn't give solution. just I want to know where am I wrong?
In order to debug a native Windows executable I think you need enable "CDT GDB debugging" in CCS as detailed on develop a PC application with CCS
I haven't yet tried to debug a native Windows executable under CCS 6, but enabling "CDT GDB debugging" as per the referenced thread has just allowed me to debug a native Linux executable with CCS 6 running under Linux.