Other Parts Discussed in Thread: SYSBIOS
Tool/software: Code Composer Studio
Hi,
I want to reserve memory in DDR and after that need to declare a variable in that reserved memory. So that i can access the same in software.
I tried the below method,
Added following lines in .cfg file
Program.sectMap[".reserve0"] = new Program.SectionSpec();
Program.sectMap[".reserve0"].loadAddress = 0xa0000000;
Added below line in source code
int passlist_data[32768] __attribute__ ((aligned (64))) __attribute__ ((section ("reserve0")));//32K words
After compiling the code , i observed a line .reserve0 : AT (0xa0000000) {*(.reserve0)} in linker.cmd file
But during execution of the software i found the address of passlist_data is something else other than 0xa0000000.
So i need few clarification
Whether am i following the correct procedure for reserving the memory in DDR?
If it is correct, Why the variable passlist_data is not created in reserved memory region?
How should i mention amount of memory that to be reserved in .cfg file?