This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

On Flash



hi,

       i am currently working on the flash in the tm4c123gh6pge board .the main thing is,i want to read data from flash .so, what is the API for reading data from flash.

example:

for writing in to flash API is FlashProgram(unsigned int *pulData, unsigned int ulAddress, unsigned int ulCount);

for reading from flash API is...............................what?

  • for reading from flash API is...............................what?

    unsigned int    *pWordAddress;

    unsigned short  *pHWordAddress;

    unsigned char   *pCharAddress;

     

  • Hello Ravi,

    The flash is readable using the method f.m. has suggested or using HWREG(FLASH_ADDRESS) where FLASH_ADDRESS is value between 0x0-0x3FFFC

    Regards
    Amit
  • I could have been more clear, but wanted the OP to think about it. An experienced person is aware of the "asymmetrical" nature of Flash/EEPROM. While erasing/writing requires relatively huge hardware and software efforts (hence the requirement of an API), reading is usually as simple as accessing a certain address. Some background knowledge does never hurt ...