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.

Can't run .exe application by code composer

Other Parts Discussed in Thread: CODECOMPOSER

Dear Sir, 

I wrote this simple program 

#include <stdio.h>


int main(void) {

while(1)
{
printf(" Hello! ");
}
return 0;

}



to create .exe application, by Code Composer version 6 (by right click on the project name --> properties --> GNU linker --> then modified output file to be .exe --> OK).

Then i tried to open this application which located in Debug folder but the following message was appeared 

"This app can't run on your PC, to find a version for your PC, check with the software publisher. "

So how can i solve this problem ?

Thanks in advance

  • Ahmed,

    An .exe is a program that runs on your Windows PC. Code Composer Studio is meant to create applications that run on TI embedded processors. I assume the gcc you are using here is one that came with Code Composer Studio which would mean it is a toolchain that creates programs for either ARM based devices or MSP430 devices. Changing the file extension will not change the type of program that is created.

    Are you looking to create a program that runs on your PC or on a TI embedded device? If a TI device, which one?

    Regards,
    John
  • Dear John,

    Thanks for your reply. All your assumptions are right .

    Now, I need to create a program (.exe runs on windows PC ) runs on my PC not on TI embedded devices .

    For example:

    If you know CodeBlocks program, it creates .exe application runs on windows PC . I want to create like this file to run on my windows PC.

    so how can i do that if it is applicable ?

    Kind Regards,

    Ahmed

  • Ahmed,

    Are you planning on porting your code to run on a TI device?

    There are many different options for PC development tools. A free one would be mingw: http://www.mingw.org/ You could go for something like Microsoft Visual Studio if you want a more professional tools. There is a list of options here: www.technotrice.com/.../ One of the options there is CodeBlocks.

    Regards,
    John
  • Dear John,

    No, I am not planning on porting on TI devices.
    CodeComposer can't be used to create an .exe application runs on windows PC, Right ?

    Kind regards,
    Ahmed
  • Ahmed,

    You need to switch to a PC development environment. Code Composer Studio is not the correct choice for you. If you like the look and feel of it you could go with Eclipse.

    Regards,
    John
  • Dear John,

    Many thanks for you.

    Kind regards,
    Ahmed