Skip to main content
lkolaszewski9
Associate II
June 22, 2009
Question

USB and DMA transfer

  • June 22, 2009
  • 4 replies
  • 968 views
Posted on June 22, 2009 at 12:12

USB and DMA transfer

    This topic has been closed for replies.

    4 replies

    lkolaszewski9
    Associate II
    May 17, 2011
    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

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

    Please explain how the problem was solved.

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

    Problem solved, thanks to everyone for help :)

    jlee
    Visitor II
    May 17, 2011
    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