Hi Avishai,
This warning is showing you the problem I believe. This means that
there is a section in your library (.tables) that is not being placed
explicitly in memory via the linker command file. When it is not
placed, it will be allocated into the first memory area found, which may
not be correct. The fact that you are getting an EDSPLOAD error also
suggests that this is the issue, since the codec engine is telling you
that it could not load the dsp image into appropriate correct memory
areas.
The correct way to fix this is for the package that contributes the
section (.tables) to also provide a linker command file template which
tells the application package how to place this section. Please see
below an example package.xs which implements the getSects() method to
return this template, and a corresponding template file for use in your
library package.
i.e. link.xdt
SECTIONS
{
.tables > DDR
}
And package.xs
/*
* ======== package.xs ========
*
*/
function getLibs(prog)
{
/* "mangle" program build attrs into an appropriate directory name
*/
var name = "lib/<myPackageLibraryName>.a" +
prog.build.target.suffix;
/* return the library name: name.a<arch> */
print(" will link with " + this.$name + ":" + name);
return (name);
}
/*
* ======== getSects ========
*/
function getSects()
{
var template = null;
if (Program.build.target.isa == "64P") {
template = "<pathToMyPackage>/link.xdt";
}
print(" - returning template " + template);
return (template);
}
The short term fix would be to add the content of the link.xdt to your
application linker command file.
Hope this helps,
~Roger
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Avishai Hendel
Sent: 23 March 2007 11:11
To: [email protected]
Subject: Can't open Codec Engine created with .l64P file
Hello all,
I'm trying to use a Codec Engine that utilizes a codec that was shipped
to us by TI.
The library I received is a '.l64P' file. I've followed directions on
both sprued6.pdf to package the library, and directions from spraae7.pdf
to make algorithm package.
Everything seems to compile (although with some warnings, see below),
but when I try to Engine_open() the encoder engine, I get a
Engine_EDSPLOAD error. Other codec engines,
i.e the one supplied with the DVEVM, works just fine.
The contents of the different files needed for the build process (as I
understand it) are attached in the
Contents.txt file. A couple of questions which remain unclear to me - is
the package.xs file used in both the codec and the server build process?
Also note that I get the following warning when building the server:
" >> warning: creating output section .tables without SECTIONS
specifications "
What does that mean and how do I overcome this? (my guess that it has
something to do with the definitions in the MODULE.xdc file, but I can't
get much from that).
Regards,
Avishai.
link.xdt
Description: link.xdt
package.xs
Description: package.xs
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
