I am working on integrating the TI Flash2802x_API_V200.lib into some code that will eventually emulate EEPROM on a flash sector. The problem that I am getting is that everything compiles properly but at the end of the linking there is a warning that there is no matching section in my F28027.cmd. The lines which it is complaining about refer to
-lFlash2802x_API_V200.lib(.econst)
-lFlash2802x_API_V200.lib(.text)
in my F28027.cmd file. I've added the Flash2802x_API_V200.lib file to my project. I've followed the instructions in the Flash2802x_API_Readme.pdf by
1) “Incl. Libraries (-l):” field under the Linker/Libraries tab in the Build Options menu is empty"
2) Check the “Resolve Symbols To First Library (-priority)” box under the Linker/Advanced tab in the Build Options menu
3) I've also ordered the linking order to be the V200.lib, followed by the device and peripheral linkers all using the large memory model.
4) My linker also has the following section added:
Flash28_API:
{
-lFlash2802x_API_V200.lib(.econst)
-lFlash2802x_API_V200.lib(.text)
} LOAD = FLASHD,
RUN = PRAML0,
LOAD_START(_Flash28_API_LoadStart),
LOAD_END(_Flash28_API_LoadEnd),
RUN_START(_Flash28_API_RunStart),
PAGE = 0
It's almost as if it is not recognizing the library file sections as I can exclude the library from the build and the warning/compile errors do not change (there are no compiler errors just linker errors). The library is included in the project and was added to the include path in the build options. What needs to be done to remove this error?