If i want to Placing code in External memory(L3) instead of L1/L2 .and L1 used only for cache, L2 used for data share between Core0/Core1.
How to edit the LDF???
You can see the attached app.ldf .
Changes have been marked as Changes Change (A),Change (B),Change (C) in the file.
You can use the new memory section by using following code, and you can map your data and code using the same
"section("user_mem") " around your code.
section("user_mem") unsigned char ucIntSrcBuff;
Why do you want to edit the LDF for your code placement ?
You can use the section pragma to place your code into different section.
Ex: section("l2_sram") unsigned char ucExtSrcBuff[MAX_SIZE];
You can get more details about the section pragma from the CCES Help menu.
However you need to enable External Memory support in your StartupCode/LDF configuration, available under system.svc in your CCES project.
Hope that helps you
In BF609 I want to use L2_sdram to Data share between Core0/Core1 . but when my project code bigger than 148 K (Core0/Core1 max ),CCES will auto place some code into L2_sdram.
Because it's difficult to edit LDF in CCES than VisualDSP++. So i need help . How to place other code into L3 ? Not L2_sdram.
and i forgot to say . i already add external memory (128Mb) .and i reduce L2_sdram like map.png.
and my code will place into L3 Sdram_bank2.
But in L3 memory code . it doesn't work. i can't understand why ?! it can't work.
A) For your application , Do you need the entire 256KB (L2 SRAM) for share data between L1/L2.
If not then you can divide it and create a user defined section to be used in your code and the CCES will not use this section when you have your code greater then 148KB.
B) Placing code in External Memory (SDRAM) / L3 should work
There is a similar post on Engineer zone where the problem has been resolved.
A) For your application .....
---> Yes , I need the entire 256KB(L2 SRAM) for share data between Core0/Core1
How could i do ? delete L2_sdram all (see ldf_temp.txt) !!
Beside if not , can give me a sample file ,how to edit custom ldf in L2_sdram. i am a Beginner use ADI BF609 .
---> i will try again !
thx for ur help , Finally , i understand how to modify the custom LDF.
But if i wont to use entire L2_sdram ?
how could i do ??
If you want to use the entire L2_sdram as user section, and not use the standard mapping .( which maps both libraries and user code in L2 )
Then at the top of LDF split ldf variable "OBJS_LIBS" as
$OBJS = $OBJECTS
$LIBS = $LIBS
and then modify the entire the LDF to map your code and library in the memory sections you desire.
Retrieving data ...