I'm using MDK-ARM 4.21 with the ULINK Pro and a LPC1114/302. When I start debugging and the PC points on the "{" of the main routine, the addresses of the arrays NANDElecSignature and NANDElecSignature1 are shown correct in the stack. As soon as I do the first step the adresses in the watch window are changing by 0x10 up and are wrong now. Also the values are shown on the wrong address. The programm works but can not be debugged correctly. Does somebody know this problem?
void CallFunc(unsigned char *hallo) { unsigned int gugus;
gugus = 0; hallo[0] =gugus++; hallo[1] =gugus++; hallo[2] =gugus++; hallo[3] =gugus++; }
/* Main Program */
int main (void) { unsigned char NANDElecSignature[] = {0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88}; unsigned char NANDElecSignature1[8];
SystemInit();
CallFunc(NANDElecSignature); NANDElecSignature1[0] = NANDElecSignature[0]; NANDElecSignature1[1] = NANDElecSignature[1]; NANDElecSignature1[2] = NANDElecSignature[2]; while(1) { } }