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

CPU hangs using xdata buffer

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!!
If the above buffer is less or equal to 64 bytes everything goes right ...
Any idea?
Thanks

Parents Reply Children