cancel
Showing results for 
Search instead for 
Did you mean: 

USB and DMA transfer

lkolaszewski9
Associate II
Posted on June 22, 2009 at 12:12

USB and DMA transfer

4 REPLIES 4
lkolaszewski9
Associate II
Posted on May 17, 2011 at 13:03

Hi,

I'm trying to use DMA Memory2Memory feature to transfer USB data from endpoint buffer to user buffer. Instead of PMAToUserBufferCopy() function from library. I seems to be working but in very strenght way. Data from USB buffer is copied as 32bit value but ''older'' 16bits are always set to zero. Does anybody have any idea with this ? My question to ST support is: ''How to perform this such of transfer? (DMA instead of manual copying )''

Best regards,

Lukas

lkolaszewski9
Associate II
Posted on May 17, 2011 at 13:03

Problem solved, thanks to everyone for help :)

brunoalltest
Associate II
Posted on May 17, 2011 at 13:03

Please explain how the problem was solved.

jlee
Associate
Posted on May 17, 2011 at 13:03

Hi STM32 User,

Does someone else find a solution to use DMA Memory2Memory to transfer to USB Endpoint Buffer? We have the exact same problem as Lukas when we configure the DMA to transfer 32bits to 32bits. The lower part is always set to zero. We try almost all type of DMA configuration without the right result. Is there a trick with pointer for USB Endpoint Buffer? :-?

Best Regard