Sign in

username or email:

password:



Not a member?
Forgot your password?

Search compdsp



Search tips

Ads

Discussion Groups

Free Online Books

See Also

Embedded SystemsFPGA

Discussion Groups | Comp.DSP | problem with DAT_OPEN

There are 2 messages in this thread.

You are currently looking at messages 1 to .


Is this discussion worth a thumbs up?

0

problem with DAT_OPEN - lilesh - 2007-10-05 07:53:00

Hi all,
I'm trying to write a simple code using edma on dm6446 board. But my
application gets stuck at DAT_WAIT when i try to step over DAT_OPEN. 
I've given the code here. 
Can someone please tell me where is the problem ?

thanx 
lilesh


int main()
{
    int x;
    CSL_init();

    CACHE_enableCaching(CACHE_EMIFA_CE00);
	
    //Configure L2 for 32K Cache mode
    CACHE_setL2Mode(CACHE_32KCACHE);
    
    CACHE_wbInvL2(&a, 4, CACHE_WAIT);
    CACHE_wbInvL2(&b, 4, CACHE_WAIT);	

	EDMA_config(hEdma, &cfgEdma);
	EDMA_enableChannel(hEdma);
						
	DAT_open(DAT_CHA0, DAT_PRI_HIGH, 0);
	DAT_copy(a,b,BUFF_SZ);
	DAT_close();

}


______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: problem with DAT_OPEN - Brad Griffis - 2007-10-05 08:15:00



What library are you using for all those function calls?  That looks 
like CSL code from a 64x device like the 6416 or DM642.  If that's the 
case then it will not work with DM6446.

The recommended library for doing QDMA transactions like DAT_copy on the 
DM6446 would be the ACPY library (actually, it's "ACPY2" or "ACPY3" but 
I don't remember the number off hand).

Brad
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.