Content originally posted in LPCWare by elisiojsj on Tue Sep 24 16:23:08 MST 2013
Hi,
I'm trying to start debugging with LPCXpresso but I'm having some problems.
Have an LPC-Link LPC1769.
Tried this on linux and windows and LPCXpresso 5 and 6 for both plataforms.
I'm able to connect e run a simple program I made just for test, but I can't use watchpoints (that is the most important for me).
My code is below, it works fine, just a led blink.
int main(void)
{
SystemInit();
int a=5;
int b=1;
LPC_GPIO0 ->FIODIR |= (1 << 22);
LPC_GPIO0 ->FIOCLR |= (1 << 22);
while(1)
{
a++;
b++;
LPC_GPIO0 ->FIOCLR |= (1 << 22);
delayMs(1,1000);
a++;
b++;
LPC_GPIO0 ->FIOSET |= (1 << 22);
delayMs(1,1000);
}
}
If I just init the debug the led blinks ok, but if I add an watchpoint with an expression like a==10 (or something else) it stops the execution at any point that there is b++. Even if a delete the watchpoint it continues to do that.
I've already tried to add an Expression but the field value show the message "Error: Target not available".
Can someone help me?
Thanks.