Hi All,
I am working on CCS5.0 and C6670. I want to place all my memory configuration in cmd file instead of cfg file
The memory section in the project i am working is defined in *.cfg file, whereas i need to place all my memory sections in *.cmd file. Also, i need to create a single 'cmd' file for all the cores. For this activity i have made some changes in my cfg file and cmd file.
I have commented out the ".stack" section in cfg file and placed it in cmd file.
The code below was written in cfg file for the placement of stack section in CORE2_L2SRAM
// Program.sectMap[".stack"] = new prog.SectionSpec();
// Program.sectMap[".stack"].loadSegment = 'CORE2_L2SRAM';
and now the code which i have written in cmd file for the placement of stack section in CORE2_L2SRAM is
MEMORY
{
CORE2_L2SRAM : origin = 0x12800000 len = 0x100000
}
SECTIONS
{
.stack: load >> CORE2_L2SRAM
}
The problem which i am facing is that the stack section is getting placed in L2SRAM i.e. at location 0x00800000 instead of CORE2_L2SRAM.
Kindly suggest me the solution to move the code from cfg file to cmd file for the placement of memory sections
Regards,
Deepain Nayyar