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.

F280xx_EEPROM

Genius 5910 points

Hi,

I need a Flash EEprom implementation. And found this implementation. But I have a couple of questions.

- What is the status of this library?

- How do I write more then 64 byte

- It really looks like when you filled up the FLASH EEPROM bank it Erase everything and hold the controller: 

 part of EEPROM_GetValidBank() function:

    if (Bank_Counter==7 && Page_Counter==7)        // Check for full EEPROM
    {
        EEPROM_Erase();                            // Erase flash sector being used as EEPROM
          RESET_BANK_POINTER;                     // Reset Bank Pointer as EEPROM is empty
           RESET_PAGE_POINTER;                        // Reset Pank Pointer as EEPROM is empty
        asm(" ESTOP0");
    }

 - I added this in my Linker Command File:

      Flash28_API:
   {
    Flash2806_API_V302.lib(.econst)  <-  warning #10068-D: no matching section
    Flash2806_API_V302.lib(.text)   <-  warning #10068-D: no matching section
   } LOAD = FLASH2RAM,
     RUN = RAML0,
     LOAD_START(_Flash28_API_LoadStart),
     LOAD_END(_Flash28_API_LoadEnd),
     RUN_START(_Flash28_API_RunStart),
     PAGE = 0

I have some warnings what do they mean? I have .econst and .text defined.


- And I wonder, why is halting the system a acceptable why of error handling.

Hope you can answer them.

 Thanks.

  • Hi evs,

    I would like to share my views about this library. I've personally used this with F28335, F28069 and F28027. This library is an old implementation and was meant for old versions of devices having different flash structure. Though this library emulated an EEPROM on all the above devices but I did face some issues of EEPROM memory corruption sometimes (totally depends on luck). Writing to a memory address and erasing is very simple by using the ready made function. Yes, I too observed few warnings that I ignored.

    My personal suggestion (from one user to another) : better go for an external EEPROM if the stored data is extremely important :)

    Regards,

    Gautam