Tool/software: Code Composer Studio
I’m using the EVMK2G and CCS 6.3.1
The following program runs fine on the C66 in debug mode.
#include <stdio.h>
int main(void) {
printf("Program start.\n");
unsigned *GPIO_1_DIR01 = (unsigned*)0x0260A010;
unsigned *GPIO_1_OUT_DATA01 = (unsigned*)0x0260A014;
int i = 24;
while (1)
{
*GPIO_1_OUT_DATA01 = 0x00000000;
*GPIO_1_OUT_DATA01 = 0x1 << i;
}
printf("Program end.\n");
return 0;
}
You can see the GPIO toggling.
Now I set the Build configuration -> set Active -> Release
Since I don’t know any other alternative, I use the Debug button to go to CCS Debug and start the run button, after the GEL is downloaded.
The program only shows the “Program start” hint but no GPIO is toggling.
How can I make the above program run in Release mode ?
Is there any video for it ? TI’s CCS videos only talk about debug mode. I would have expect a video that shows how to run code in Release mode. We are more interested in Release mode.