This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC2138 debug problem

I'm reprograming a customer old PCB's with LPC2138 ARM7 MCU's using Segger jlink with JTAG wires, all OK.
I'm viewing that, If I use global or function static vars debugging is not posible, but in the other hand, I can simulate with no problems.

Look:

int pep = 0;

int main (void) { int cnt;

for(;;){ ++pep;

for(cnt=LOOP_CNT; cnt; cnt--) ;

for(cnt=LOOP_CNT; cnt; cnt--) ;

}
}

the compilation is right and if I compile, debug and follow step by step the assemble the program resets at scatterload_zeroinit.

Anyone was the same problem?

Thank you.