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:
Which version of SYS/BIOS are you using?
My help documentation says Version 18.104.22.168.
I contacted someone familiar with the flash APIs. Here's what they had to say:
"The flash API does require some data to be loaded at the top of the PIE vector table. This is reserved space and not actually used by the PIE (it is just RAM). Because of this we used it as a fixed location for the flash API in the boot ROM to retrieve the information from the user’s application.
To map the variables to these locations in the flash API example we have used the linker command file as shown below. From what he says this is not doable in BIOS – I think its because BIOS auto generates a linker file with the PIE information.
The user could, instead, create a pointers in their application to those fixed locations and populate the data that way. (ie hard code the address instead of letting the linker do it). One is a pointer to a function and the other is a pointer to unsigned long:
extern Uint32 Flash_CPUScaleFactor;
extern void (*Flash_CallbackPtr) (void);
Can you give this a try and see if it helps solve the problem?
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.