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.

TM4C1292NCPDT: 14 July 2017

Part Number: TM4C1292NCPDT

Hi,

I am working on a boot code. I have to read some variables and update the variables in my program and according to the variables I have to execute firmware images from my boot code. Which is better, storing variables in flash memory or EPROM? How to read and update variables that are stored in flash or EPROM? Is there any APIs? Please guide me.

Regards

Sandra

  • sandra george78 said:
    Please guide me.

    1. Read the manual
    2. Create a clear description of the problem along with what you have done so far
    3. Create a post with a clear subject that summarizes the question in a few words. Do NOT use the date. You acknowledged it was a mistake last time. It's still a mistake this time.

    sandra george78 said:
    How to read and update variables that are stored in flash or EPROM? Is there any APIs?

    See 1

    sandra george78 said:
    Which is better, storing variables in flash memory or EPROM?

    See 2 and 3. Define what you mean by better. What are the variables to be used for?

    Robert

  • According to the value of variable, my program decides which image to be executed.

  • In TM4C, both the flash memory and what is called "eeprom" memory are physically the same type of memory: flash memory! The only difference is that the eeprom part has some "special internal features" to make it last longer, and also do not require that a complete block is erased before new values are written.

    So, if your variables are not too big, the general answer to your question is: use eeprom.

    Yes, there are api's. Just open the TivaWare user guide and go to the eeprom chapter.

    Bruno
  • Hi Bruno,
     
    Thank you for the reply.
     
    Regards
    Sandra