Other Parts Discussed in Thread: C2000WARE
I am trying a simple LED blinking code on the control card.
It is built successfully and I think is flashed also on the device.
The code is simple but doesn't work.
It had worked once (LED L3 was blinking) but when I tried to erase the sectors to load a new code, it stopped working post that.
How to ensure that the code has got flashed correctly.
When I try to use the debugger to step over the code line, the debugger executes correctly, but LED does not blink
Any guidance will be appreciated
main.c
# include "DSP28x_Project.h"
int res = 0;
int main(void)
{
InitSysCtrl();
EALLOW;
GpioCtrlRegs.GPAMUX1.bit.GPIO3 = 0;
GpioCtrlRegs.GPADIR.bit.GPIO3 = 1;
GpioCtrlRegs.GPAPUD.bit.GPIO3 = 0;
EDIS;
while(1)
{
GpioDataRegs.GPATOGGLE.bit.GPIO3 = 1;
res=GpioDataRegs.GPATOGGLE.bit.GPIO3;
DELAY_US(100000);
}
return 0;
}