AnsweredAssumed Answered

Bare-metal app: copy big data from memory to array

Question asked by Thuan Pham on Apr 11, 2013
Latest reply on Jun 12, 2013 by Ioseph Martinez Pelayo
Branched to a new discussion

Hello,

I have an image buffer in the memory and I want to read each frame at one time by using memcpy to copy from memory to an 3 dimensions array with size 82x62x3 but the program stuck at the call of memcpy function.

Here is my code:

Int8U buf[82][62][3];

memcpy(buf, (Int8U *)IMAGE_BUFFER_BASE_ADDRESS, IMAGE_FRAME_SIZE);

(where IMAGE_FRAME_SIZE=82x62x3=15252 bytes)

Could you give me any suggestion?

Thank you.

Outcomes