We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Dear Sir,
I am using LPC 2144 for Flash Memory Programming. I am able to write on flash RAM area using command code 51. But how to retrieve or read data back from the flash RAM. Kindly suggest.
Thanks.
Vikas Goel
Its depends you from where you want to read data back from flash? 1) Weather from your application? (IAP) (IAP = In Application Programming)
2) Weather from External Programming environment (ISP = In System Programming)
a) If you want to go for option 2, Then U-link and other ISP flash utilities can help you.
b) If you want to read data from your application. Follow methods below...
In ARM processors generally - there is contigious memory map, and you can directly reads contents of specific memory location, where ever the location is (e.g. RAM, Flash , Other..)
so if you want to read data from memory location
0x20001000
Sample psudo code: /***********************/
unsigned char *MemoryPointer; /*Pointer to flash memory location*/
ungsigned char Buffer[50]; /* Read data of flash in this buffer */ int i; /* Counter */
for(i=0;i<50;i++) { Buffer[i] = *MemoryPointer; /*Read data from this location*/ }