Hi
BIOS 6
What .cfg file syntax do I use to put certain obj and libraries into DDR versus L2?
Cheers
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.
Hi,
Please check the forum thread below:
http://e2e.ti.com/support/embedded/f/355/p/70600/256093.aspx#256093
Cheers,
Rafael
Hi
The forum thread you suggested was very helpful. The BIOS Users Guide it referenced showed how to move sections like .text, .cio, .cinit, etc. to different memory segments by using
Program.sectMap[".cinit"] = L2RAM;
And it also showed how to move a particular function to a different memory section by using
Program.sectMap[".text:_ti_sysbios_knl_Swi_post__F"]
= new Program.SectionSpec();
Program.sectMap[".text:_ti_sysbios_knl_Swi_post__F"] = "IRAM";
But I'm still not sure how you can move a particular .obj from say L2RAM to SL2RAM or DDR2?
Cheers
Hi Eddie,
You have to use linker directives to place an object file in a particular region of memory. This will require you have to create a special linker command file and include it in your project.
Please review http://rtsc.eclipse.org/docs-tip/Memory_Management#User_Defined_Linker_Command_Files for more details.
Your linker file may look something like the following:
SECTIONS
{
.appSect:
{
app.obj
}
load >> IRAM
}
This fragment creates an output section called .appSect which comprises of all the section in the object app.obj and places it in IRAM.
You can review Chapter 7 of the TMS320C6000 Assembly Language Tools User Guide for all the options provided by the linker to manage the layout of your application.
Regards
Amit