Hi Qi,

There are a couple of things you need to do:

1. Update the file \dsplink\config\all\CFG_Davinci.TXT in dsplink to map the 
memory area that you wish to load into by adding a memory entry. Make sure you 
add 1 to MEMENTRIES. This informs the dsplink loader of this memory region at 
load time. Rebuild dsplink on both GPP and DSP sides after doing this.

2. Change your DSP/BIOS configuration file (.tcf) so that it configures the 
memory region of interest as free RAM instead of cache, using the GBL module. 
The DSP/BIOS documentation should be able to help you with this.

After this you should be able to load your code into the memory of interest on 
the DSP.

Aside: I suggest you do not load code into L1P in this manner, as by default it 
is set as cache and DSP/BIOS can only change it to free RAM during 
initialization, potentially trashing some of the loaded contents. If you wish 
to use L1P as free RAM you'll need to DMA the code e.g. from DDR at run time. 
The attached doc shows one technique on how to do this.

Best regards,
Vincent


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of qi huafei
Sent: Tuesday, December 19, 2006 7:26 PM
To: [email protected]
Cc: [EMAIL PROTECTED]
Subject: RE:RE: how to make use of performanceof the davinci's dsp

Dear Dudy,
Thanks for your suggestion.
I have another question.Can your loader load the dsp executeable to the 
dsp's private L1 or L2? Is it necessary to load some section of dsp's 
executeable to the L1 or L2?
It seems that the loader in dsplink can't loader the dsp executeable to the 
dsp's private memory space.
Best regars,
Qi Huafei



>Hello,
>We use our own loader to upload code and start the DSP.
>The code ran but it was very slow - The problem was that
>The Caches (L1D L1P L2) were not enabled. Maybe this could
>be your problem?
>
>Cheers
>Rudy.
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
>] On Behalf Of qi huafei
> > Sent: 18 December 2006 08:58
> > To: [email protected]
> > Subject: how to make use of the performance of davinci's dsp
> >
> > hi,
> >    I use some dsplink APIs to load the dsp executeable file
> > and start executing on dsp.
> >    The problem is that the program running on the dsp side is
> > too slow,but the same program runs much more faster on the
> > DM642.It can decode 24 frames per second on the DM642,but
> > only about 1 frame per second on the davinci.
> >   I don't know how could that happen.Anybody can help me?
> >   Thanks!

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Attachment: DavinciL1PProgramMemory.pdf
Description: DavinciL1PProgramMemory.pdf

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to