Post Go back to editing

LDF problem on adsp-21584


I'm new to the LDF format for ADSP-21584.

I have an object "DataGlobal" that compiles without problems.

I would like to load this object in a shared memory block accessible from SHARC1 and SHARC2.

I've tried to create a SHARED_MEMORY segment in the LDF file

$EXTERNAL_OBJECTS = Common/DataGlobal.doj;

and below the MEMORY block I've added:



} > mem_L2B1P3_bw

And inside PROCESSOR 21584_CORE_1 I've added:


This is obviously not enough since the linker still reports:

[Warning li2060] The following input section(s) that contain program code
and/or data have not been placed into the executable for processor '21584_CORE_1'
as there are no relevant commands specified in the LDF:


Followed by [Error li1060]  The following symbols are referenced, but not mapped...

What am I missing?

Ideally I would like to create my own memory block inside the MEMORY block, something like 

MSData           { TYPE(BW RAM) START(0x20090000) END(0x20097fff) WIDTH(8) } 

But this only results in similar error codes.

Please advice on which steps are necessary to successfully map objects into memory - and how to enable sharing of memory segments between SHARC1 and SHARC2 on ADSP-21584.


Parents Reply
  • Hi,

    Please refer the 'SHARED_MEMORY{}' section in the below CCES Linker and Utilities Manual:

    Also can you please confirm when you're trying to call the variable defined in a one core project in the other core. Are you defining the shared variables/ functions with the extern keyword in your second core project?

    Please find the attached example project, which is a small ADSP-21584 example that shows how to use RESOLVE to satisfy symbol definitions from Core2 using the Core1 DXE. For more information about the project, please refer Readme.txt file in the project.

    If you are still facing the issues, please share us the example project with the steps to reproduce your issue. This will help us to assist you further.