I am working on a large development project with the Piccolo (TMS320F28027 and TMS320F28026) and have successfully implement many of the features in SysBios. I am now trying to save/load variables to/from the on-chip Flash, something I thought would be simple, but I am hitting a lot of snags.TI provides a 41 page document on Flash Programming (TMS320F2802x Flash API V2.01) and the application note on emulating EEPROM using the flash SPRAB69. I am having trouble translating TIs example code to my project . My questions are listed below:
- Will the Flash API work with a Sys Bios project? TI does not provide the API source code so I can't tell. The *.cmd file and the API documents link to the PIE Vector Table which is forbidden in a SysBios project. The application notes says that FlashCallbackVar must point to address 0x000D02, which is the memory map for INT1.
UNION run = PIE_VECT, PAGE = 1
{
PieVectTableFile
GROUP
{
EmuKeyVar
EmuBModeVar
FlashCallbackVar
FlashScalingVar
}
}
I replaced PieVectTableFile with .vecs, the PIE vector for SysBios, but CCS gives me:
a run placement fails for object "UNION_1", size 0x6 (page 1). I could really use some help getting the linker setup correctly since I really don't know what the FLASH API and what SysBios needs. - Has anyone ever written a variable to Flash using SysBios, or I am I the only one in the world with this requirement?