This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
TMS320F28069F: A question on the Linker Command File
Part Number: TMS320F28035
Tool/software: TI C/C++ Compiler
Can anyone help me to understand this linker file section?
progRAM : origin = 0x008000, length = 0x001400 /* on-chip RAM (L0-L2)*/ OTP : origin = 0x3D7800, length = 0x000400 /* on-chip OTP */ FLASHH : origin = 0x3E8000, length = 0x008000 /* on-chip FLASH */
/* Allocate program areas: */ /* Initalized sections go in Flash */ /* For SDFlash to program these, they must be allocated to page 0 */ .econst : > FLASHH PAGE = 0 .switch : > FLASHH PAGE = 0
/* Allocate IQ math areas: */ IQmath : > FLASHH PAGE = 0 /* Math Code */
.cinit : > FLASHH, PAGE = 0 .pinit : > FLASHH, PAGE = 0 //.text : > FLASHH, PAGE = 0 /*For CRC tables */ .TI.crctab : > APPCRC, PAGE=0 .text : > FLASHH, PAGE=0, crc_table(_linkerCRC,algorithm=CRC32_PRIME )
codestart : > BEGIN PAGE = 0 ramfuncs : LOAD = FLASHH, RUN = progRAM, LOAD_START(_RamfuncsLoadStart), LOAD_END(_RamfuncsLoadEnd), RUN_START(_RamfuncsRunStart), PAGE = 0
Here my entire code is in FLASHH. I defined .cinit., .init as part of the FLASHH.
I have some functions which need to be run from RAM. So I defined those as ramfuncs.
Is there anything wrong with this?
"ramfuncs : LOAD = FLASHH" what does this mean? Does it place entire FLASHH on ram?
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Ozino Odharo:
What is wrong if I have .cinit and ramfuncs are in the same flash memory?
In reply to Patel:
I combined other sectors to form a big sector.
FLASHH : origin = 0x3E8000, length = 0x008000 /* on-chip FLASH */// FLASHG : origin = 0x3EA000, length = 0x002000 /* on-chip FLASH */// FLASHF : origin = 0x3EC000, length = 0x002000 /* on-chip FLASH */// FLASHE : origin = 0x3EE000, length = 0x002000 /* on-chip FLASH */
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. 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.