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/CCSTUDIO: Free run greyed out

Part Number: CCSTUDIO

Tool/software: Code Composer Studio

I finally managed to load and run some programs on my device, so this is a huge step forward.

I have flashed a program to the device so it gives me a fast blinky LED when I connect the device to power (i.e. no CCS/debugger). I'm totally clueless how I managed that, by the way.

Now the problem is I have a new program and the end result is a slower blinky LED on the new version. This works fine and dandy in the debugger, but when I connect power outside of the debugger, I'm back to the original program (as indicated by the fast blinking LED). Since I dont know how I got the program on the device in the first place, I have no idea how to overwrite it.

"Free Run" is greyed out and I haven't found any current info on that for CCS 7.4.

How do I load the code into the device so that it will run without the debugger? I know its possible in CCS because clearly I already loaded a program on the device.

  • Hello

    spanky said:
    I have flashed a program to the device so it gives me a fast blinky LED when I connect the device to power (i.e. no CCS/debugger). I'm totally clueless how I managed that, by the way.

    Where the code is loaded to is determined by the linker command file. You likely used one that places the code in flash. If flashed to the correct location, the code would the run when the device is powered

    For more information on linker command files, see:

    http://processors.wiki.ti.com/index.php/Linker_Command_File_Primer

    spanky said:
    Now the problem is I have a new program and the end result is a slower blinky LED on the new version. This works fine and dandy in the debugger, but when I connect power outside of the debugger, I'm back to the original program (as indicated by the fast blinking LED). Since I dont know how I got the program on the device in the first place, I have no idea how to overwrite it.

    Your new program likely uses a different liker command file that loads to RAM instead of flash. Hence the device will only run the code in flash without the debugger on power up.

    spanky said:
    How do I load the code into the device so that it will run without the debugger? I know its possible in CCS because clearly I already loaded a program on the device.

    Please check your linker command files. And again, I recommend reading the link on linker command files that I mentioned earlier

    Thanks

    ki