Question: I cannot find the EEPROM and EEPROM_PingPong projects, where are they?:
| Device | Build Configurations | Location |
|---|
| F28003x | RAM, FLASH | C2000Ware_6_00_xx_xx > driverlib > f28003x > examples > flash |
| F28P65x | RAM, FLASH | C2000Ware_6_00_xx_xx > driverlib > f28p65x > c28x > examples > flash |
| F28E12x | ROM, FLASH | C2000Ware_6_00_xx_xx > driverlib > f28e12x > c28x > examples > flash |
Question: What are the first things I must
check if the EEPROM project encounters an error?
Answer:
- View the configuration file (EEPROM_Config.h,
EEPROM_PingPong_Config.h) and check the provided options for the following: Device
variation, programming mode (64 bit vs. Page), Flash Bank selection, Flash sector
size, number of Flash sectors, number of EEPROM banks, number of EEPROM pages, data
size of EEPROM pages. Also, check the main program file (EEPROM_Example.c,
EEPROM_PingPong_Example.c) to see if the correct Flash Sector locations are being
used for EEPROM Emulation. If an incorrect first and last sector value are provided,
an error occurs and be seen in the EEPROM_Config_Check function. The EEPROM_Config_Check function provides general information for error
checking.
- Make sure that the protection masks are enabled/disabled for the appropriate
sector(s) selected for EEPROM Emulation for your device, consulting the device's
Flash API reference guide for more information.
- One area of the program to check would be the
linker command file - make sure all flash sections are aligned to 128-bit
boundaries. In SECTIONS, add a comma and "ALIGN(8)" after each line where a section
is allocated to flash.