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!!
to the best of my recollection the Cypress chips do not have a whole lot of XDATA. Are you sure you use no more than there is? look in the M51 file
This is the summary of M51:
Program Size: data=56.7 xdata=4543 code=3820 LINK/LOCATE RUN COMPLETE. 0 WARNING(S), 0 ERROR(S)