This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Reading Flash RAM

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

  • Connect the uVision debugger via ULINK and use the debug command SAVE to read the memory content into a file.

  • 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*/ }