I am trying to write my own F2812 linker command file for aboot-to-RAM application I am transferring to flash underCCSv4. In studying SPRA958 ("Running an Application fromInternal Flash Memory on the TMS320F28xxx DSP"), section 3,I am instructed to locate initialized data:
float const Pi = 3.14159;
to flash, and uninitialized data:
to RAM. This makes sense. I don't see an assignment fordata that has an initial value:
float priceOfGas = 3.799;
but could change at run time. Does this require some kindof special handling in the source or linker command file?
============================================================Gary Lynch printf("lynchg%cstacoenergy%ccom", 55+9, 55-9)============================================================
As long as you place the sections per table 1 in the SPRA958 application note, you should be fine. The .cinit section holds the tables for initialized variables and should be loaded into Flash, while the .bss section holds space for the variable and should be loaded into RAM, so it can still be modified at run time.
If a post answers your question please mark it with the "Verify Answer" button
Search the wikis for common questions: CGT, BIOS, CCSv3, CCSv4Track a known bug with SDOWP. Enter the bug id in the "Find Record ID" box
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.