Posted on July 27, 2015 at 11:09
I am using an STM32L1 on a Nucleo-L152RE board. I have to devices I control through serial running at rather high baudrates, so I am trying to enable DMA on the USART. With the code below I can launch one Rx DMA,...
Posted on July 28, 2015 at 18:16In another sort of things, if I configure the UART with RTS/CTS flow contol, does the DMA controller set/check the CTS and RTS pins or do I need to handle them myself?
Posted on July 28, 2015 at 12:42 Hi Mayla. It turned out to be a different problem. You can see the solution https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/L...
Posted on July 28, 2015 at 12:40You were right. I was using either breakpoints on the interrupt routing or calling printf from there. After I stopped doing that, the DMA seems to work well. Thanks a lot for your support.
Posted on July 27, 2015 at 16:41Thanks for the suggestions. I 'm now checking the source of the interrupt, but still no luck. The USART seems to work well in Tx mode using DMA and interrupts.
Posted on July 27, 2015 at 16:21I am experiencing a similar issue here. I am using an STM32L152. In my case, the first DMA Rx succeeds and the interrupt fires once, but never works a second time. Did you manage to address your problem?