I have ported the EKS-LM4F232 blinky project to CCS5.1. I have now made a very simple edit. It has problems. I have phyiscally attached an LEDs to PK0-3. I am now trying to have PK2 follow the blinking of the standard PG2. There are five additional lines of code. Three to set up the port. And two to toggle the output. Here is what happens:
1) launch the debugger
2) start the program, no blinking
3) suspend the program and find yourself at the fault ISR after executing "GPIO_PORTK_DIR_R = 0x0F;" (can also get here be stepping from the beginning)
4) restart the program by using the restart button, get past the above instruction but then hang (and I mean no step instruction does anything, it is as if the debugger does not know what to do with the step command) at the "GPIO_PORTK_DATA_R |= 0x04;" instruction.
5) cannot get past this point
The modified main is below. I suspect that all you would need is the stock EKS to duplicate this issue.
int
main
(void)
{
volatile unsigned long ulLoop;
//
// Enable the GPIO port that is used for the on-board LED.
//
SYSCTL_RCGC2_R = SYSCTL_RCGC2_GPIOG;
//
// Do a dummy read to insert a few cycles after enabling the peripheral.
//
ulLoop = SYSCTL_RCGC2_R;
//
// Enable the GPIO pin for the LED (PG2). Set the direction as output, and
// enable the GPIO pin for digital function.
//
GPIO_PORTG_DIR_R = 0x04;
GPIO_PORTG_DEN_R = 0x04;
// Enable K0-3 as outputs
GPIO_PORTK_AFSEL_R = 0;
GPIO_PORTK_DIR_R = 0x0F;
GPIO_PORTK_DEN_R = 0x0F;
//
// Loop forever.
//
while(1)
{
//
// Turn on the LED.
//
GPIO_PORTG_DATA_R |= 0x04;
GPIO_PORTK_DATA_R |= 0x04;
//
// Delay for a bit.
//
for(ulLoop = 0; ulLoop < 200000; ulLoop++)
{
}
//
// Turn off the LED.
//
GPIO_PORTG_DATA_R &= ~(0x04);
GPIO_PORTK_DATA_R &= ~(0x04);
//
// Delay for a bit.
//
for(ulLoop = 0; ulLoop < 200000; ulLoop++)
{
}
}
}

