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!!
You're right ;-) but the cpu hangs also if i<70 (any value a little bigger than 64 will do ...)
OK, next thing to check: watchdog timers and other things that depend on timing of code. Run your program in the simulator and: 1) check if the problem also occurs there 2) if it does, inspect exactly what happens, machine instruction by instruction
No way ... I'm currently using the fifo buffer of USB interface (the chip is a usb2.0 front-end) to store my data ... dirty but funcioning ...