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.

tms470 work wrong without debugger

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

  • Are you using the TMS470MF6607? If you set the pull disable and set the pull select on an output pin, it actually disables the output. Leave the pull disable bit cleared. When a pin is configured as an output the pull is automatically turned off.