Hi to you all,I'm using an LPC4370 (in a link2 probe) to output the data acquired @ 40 MSPS using the USB CDC VCOM driver included in the LPCOPEN Libraries. I can output an array of uint32_t elements and read it properly in Matlab at the host side.Unfortunately though I'm having troubles with arrays declared as follows: I read some strange numbers, not the ones I stored into the array.
__DATA(RAM3) static uint32_t multiChannel[BINS];
Since the application I'm working on has some real time requirements I need to keep the array allocated into RAM and not in flash.To output the array right now I'm passing it to the write method of the driver using a cast to uint8_t and specifying the array length, like:
write(uint8_t*)multiChannel, sizeof(multiChannel));
Hi 42Bastian Schick, yesterday I figured it out.I had a problem because my project has a lot of critical data sections which I put in different RAM slots. The RAM3 (which I was trying to use) had already other variables and therefore some interference during read cycles occurred and my data were constantly corrupted... I don't even know why this should happen, not to mention that it actually started after implementing the USB driver for LPCOpen. Re-ordinating everything (now I use 4 RAM sections out of 7 available), solved the issue. It wuould be really interesting to dig more into the thing and fully understand what happened here..