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:
int adcReadings[100];
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