Skip to main content
zexx86
Associate III
May 14, 2015
Question

STM32F4 DMA vs F1 DMA

  • May 14, 2015
  • 2 replies
  • 649 views
Posted on May 14, 2015 at 15:51

Hello,

I am migrating code from F103RBT6 to F415RGT6.

The problem is only in DMA part that it seems as a dead code so obviously something is bad there.

Here you can see source code for both F1 and F4:

http://pastebin.com/QcJBc9NX

Basically USART is working, but just DMA for sending the data does not work.

So the problem is most probably in dma_send() function.

There are different versions of STD Libraries for both F1 and F4 so here is the biggest problem. For F1 DMA works very well.

Can somebody tell me what I am missing there? Thank you!

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    May 14, 2015
    Posted on May 14, 2015 at 16:43

    USART2 TX is DMA1 Stream6 Channel4, other random selections won't work. See RM0090 ''DMA1 request mappings''

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    zexx86
    zexx86Author
    Associate III
    May 14, 2015
    Posted on May 14, 2015 at 18:18

    Thank you very much!

    It works very well now.