Question:
Does SDRAM memory reserved for SHARC1 DDR-A part7 is usable in SHARC0 itself? Is it possible to use both DDR-A part6(112MB) & DDR-A part7 (128MB) memory for SHARC0/Core1 itself?
The DDR SDRAM memory partitions as follows in ldf file:
256MB DMC0 DDR SDRAM memory is partioned as follows:
DDR-A part1 : SHARC0 NW code, 3MB
DDR-A part2 : SHARC1 NW code, 3MB
DDR-A part3 : SHARC0 data, 4MB
DDR-A part4 : SHARC0 VISA code, 3MB
DDR-A part5 : SHARC1 VISA code, 3MB
DDR-A part6 : SHARC0 data, 112MB
DDR-A part7 : SHARC1 data, 128MB
Answer:
Yes. Memory can be re-partitioned as per the need.
However, since this involves parts of the generated LDF that are not enclosed in $VDSG tags used to mark user-modifiable chunks, any changes to them are liable to be overwritten by the Startup/LDF add-in.
Therefore we’d suggest the following process to switch to a custom LDF
Configure the LDF as closely to as per need as the add-in allows and save the settings.
Move the generated app.ldf file from the system/startup_ldf folder to the src folder of project.
Remove the Startup/LDF add-in from the system.svc.
Point the ‘Custom LDF’ setting in the on the Linker/General page of the tool settings at the moved LDF.
Start editing the LDF.
Also ensure that the memory ranges assigned to core 1 and 2 do not overlap. There is no error checking for this so overlaps would likely result in unexpected behaviour at runtime.