Hell All.
I have a very strange problem.
I have a device with 2 leds connected to spiPort, and button connected to hetport(2)
code from sys_main.c:
int main(){
hetInit();
gioInit();
spiInit();
while(1){
//green led ON
gioSetBit(spiPORT1,0,1);
delay_us(100000);
//green led OFF
gioSetBit(spiPORT1,0,0);
delay_us(100000);
//red light on then button down
if (gioGetBit(hetPORT,2)==1)
gioSetBit(spiPORT1,1,1);
else
gioSetBit(spiPORT1,1,0);
}
}
while debugging all works correct. Green led blinking and red led flashes then button is
pressed. But when i disconnect the debugger button stops working, and green led still blinks, so the program continues to run(current consumption has not changed)
I also tried to use interrupts and got the same result.
I can't understand why it is happening.
I use new XDS100v2 debugger, it may corrupt, I have not tested it yet
Can anyone tell me than I'm doing wrong, or what is happening?
P.S. I have read topic "TMS470 not works without debugger", I think it is not my case