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/F28M35H52C: Frustration Getting cpu_timer_c28 to run on my hardware

Part Number: F28M35H52C


Tool/software: Code Composer Studio

I have a PCB that (unfortunately) uses a different pinout to the ControlCard and I'm tasked with writing code that runs on it.  I'm looking at various examples and have some of them running.  A common issue I run into is to adapt the pins used in the example programs.  Today I tried to adapt and run the example cpu_timer_c28.c program.  The ONLY change I'm trying to make is that GPIO29 is my output pin instead of GPIO70.  It doesn't work.

I changed lines 52-55 as follows

InitGpio(); // Skipped for this example
EALLOW;
GpioG1CtrlRegs.GPADIR.bit.GPIO29 = 1; //set PE5_GPIO29 as output
EDIS;

And then changed the code in the timer0 interrupt as follows

__interrupt void cpu_timer0_isr(void)
{
CpuTimer0.InterruptCount++;

//Toggle pin GPIO29 for visual confirmation of timer operation - NB 'GPADAT' does NOT refer to port A
if(GpioG1DataRegs.GPADAT.bit.GPIO29 == 0) {
GpioG1DataRegs.GPASET.bit.GPIO29 = 1;
}else{
GpioG1DataRegs.GPACLEAR.bit.GPIO29 = 1;
}

// Acknowledge this interrupt to receive more interrupts from group 1
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
}

My LED connected to GPIO29 does nothing and I see that pin at 0 all the time.  What am I doing wrong?