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.