cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 DMA vs F1 DMA

zexx86
Associate II
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!

2 REPLIES 2
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
Up vote any posts that you find helpful, it shows what's working..
zexx86
Associate II
Posted on May 14, 2015 at 18:18

Thank you very much!

It works very well now.