Hello, I'm using uVision2 2.40a tool with a Cypress FX2LP cpu. Inside my project I've a global declaration of a 256 byte buffer but when I try to using it something happen and the cpu often hangs like this buffer overlaps other memory area. The code is like the following:
BYTE xdata I2CBuff[256]; . . . for(i=0; i<256; i++) I2CBuff[i] = 0x00; //the upper line hangs!!
Here's my guess: i is an 8-bit variable. Great guess Ever so often one can not see the forest for the trees. Erik