Tool/software: Code Composer Studio
Hi,
I'm using C6678.
I got an application with ccs project app, and App is linked with ort.lib which is built from static library project ort. I want to set the .bss and .neardata of ort.lib to L2 and the .bss and .neardata of app to DDR. So I add these lines below in my linker.cmd of project app.
SECTIONS
{
.localdata :
{
"ort.lib" (.bss)
"ort.lib" (.neardata)
} > L2
}
SECTIONS
{
.bss > DDR
.neardata > DDR
}
After I built the project app,I check the .map file and I see that the sections are mappedd into the places as cmd described. But when I try to print out the address of an initialized local static variable which defined in app's source file with printf("%x",&var); it's not an address like 0x8xxxxxxx, but an address like 0x88xxxx which is a weird. So is there something wrong with my linker.cmd?
How to place some same sections of app and ort.lib to different memory segment(some other sections keep the same in both app and lib)?
Thank you !!