Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: 9260 DMA block when EMAC operation?
PostPosted: Mon Apr 18, 2011 5:59 am 
Offline

Joined: Tue Apr 12, 2011 4:26 pm
Posts: 6
Hi all:

Here are a strange problem about DMA. The OS and hardware is vxworks and AT91sam9260

Before I set TSTART bit in EMAC_NCR, I have alloced memory for FD and buffer, and initialize FD's addr with buffer addr. And initialize others registers of EMAC, for example TBQP,RBQP etc.
But when I start DMA transmiting by setting TSTART, the TSR remains 8(TGO),the TBQP plus 8 again original value. So I check the first FD's status word, the highest bit(used bit never set).
which looks like DMA tranmsit blocks, the EMAC can not get data from EBI, and cannot set used bit yet.

So, what will cause this problem?
By the way, the TBQP and RBQP value is set with Physical address.(Because in our OS, the Physical and virtual address is same).

Pls help me, thanks!


Top
 Profile  
 
 Post subject: Re: 9260 DMA block when EMAC operation?
PostPosted: Mon Apr 18, 2011 6:37 am 
Offline

Joined: Tue Apr 12, 2011 4:26 pm
Posts: 6
Or someone know, in which condition, the DMA will block?


Top
 Profile  
 
 Post subject: Re: 9260 DMA block when EMAC operation?
PostPosted: Tue Apr 19, 2011 3:33 am 
Offline

Joined: Thu Apr 19, 2007 10:15 pm
Posts: 204
Location: USA
[quote="copyman39339005"]Or someone know, in which condition, the DMA will block?[/quote]

Hi there

Is DMA not working for just the EMAC, or not at all?

If not at all, then the first thing to verify is the Peripheral Clock Enable register. Is the clock for the DMA controller enabled? Forgetting to enable its clock is almost always the cause of the "peripheral doesn't start/operate" problem (assuming the rest of the initialization is good/complete). The big hint that the clock is not enabled is that the peripheral status registers indicate that everything is ready to go but seems to be waiting for "something"; that something is the clock!

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: