SPRADE8A November 2023 – April 2024 F29H850TU , F29H859TU-Q1 , TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1
The EEPROM_Write() function provides the functionality for programming the data to Flash. It leverages the Flash API directly and makes several function calls within to prepare for data programming. The functions called are listed below:
EEPROM_UpdatePageData()
Each of the above functions are described in detail in their respective sections. To begin, the current EEPROM bank and page are found. After the current EEPROM bank and page are found, the page status of the previous page is updated and the EEPROM bank status is updated if a new EEPROM bank is being used. Next, the actual programming occurs during the EEPROM page data update.
EEPROM_GetValidBank(); // Find Current Bank and Current Page
EEPROM_UpdatePageStatus(); // Update Page Status of previous page
EEPROM_UpdateBankStatus(); // Update Bank Status of current and previous bank
EEPROM_UpdatePageData(); // Update Page Data of current page