wlpuah Guest
|
problem to retrieve a image store in program memory |
Posted: Wed Jan 21, 2009 2:14 am |
|
|
Compiler PCH v4.039 PIC18F66J60.
I store a large image which is defined
Code: | const char Imag[] = {0x00,0x01, ........}; |
about 2000 element.
Code below can retrieve data in image correctly
Code: | memcpy(cData, Imag, wLen); |
Since I need to access the image not just from the beginning
but code below cannot retrieve data in image correctly even if the addr is 0.
Code: | memcpy(cData, Imag + addr, wLen); |
How can I access the data image ? Thanks in advance. |
|