Hi,all:
I want to allocate my data buf on DDR memory space on C6678 using DATA_SECTION.
But when I see the xx.map it seems that my data buf is not in DDR space but in L2SRAM .
why? Below I post my cmd file, DATA_SECTION and map file.
thanks!
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,all:
I want to allocate my data buf on DDR memory space on C6678 using DATA_SECTION.
But when I see the xx.map it seems that my data buf is not in DDR space but in L2SRAM .
why? Below I post my cmd file, DATA_SECTION and map file.
thanks!
David George,
Please try the below sequence at cmd file for Memory and Sections. Next rewrite Pragma call at your ".C" file.
/* Memory Map */
MEMORY
{
DDR3 (RWX) : org = 0x80000000,len = 0x07000000
}
SECTIONS
{
.testMem > DDR3
}
#pragma DATA_SECTION(input_bgrx32,".testMem");
Hi,Pubesh:
Must I follow the sequence ?
1.Memory
2.Sections
3.Pragma
But in another situation,there is no Sections.If that so I will remember that.
Thank you.
Hi,
In the application linker command file or XDC configuration place the input_bgrx32 (testMem) into external memory.
If using XDC .cfg file to add sections to the linker command file: /*Create our memory map - i.e. this is equivalent to linker.cmd */
Program.sectMap[".testMem"] = new Program.SectionSpec();
Program.sectMap[".testMem"] = "DDR3";
If explicitly placing the input_bgrx32 in the application linker command file:
.testMem > DDR3
Hi,
Please see this wiki article for DATA_SECTION. In this example code used another family TI device, not C66xx. You can take this as a reference.