I'm perusing this tutorial and read this:
The chip provides only two controllers, yet the article says "We cannot use any arbitrary DMA controller" - this seems to be saying we can't use DMA2 and must use DMA1 - but why?
Thanks
What isn't clear is why we can't equally use DMA2, the reference manual seems to show that DMA2 (see Table 30.) could also be used but that tutorial seems to single out DMA1 as being "special" in some way. DMA2 Stream 6 and channel 5 identifies USART6_TX so why is this not suitable yet USART2_TX is?We cannot use any arbitrary DMA controller. Instead, we need to pick the controller, stream and channel that are connected to the UART2 TX function. This will ensure that the DMA controller will not start transferring another byte until the UART controller is ready to accept it (i.e. has finished physically transmitting the previous one).
The chip provides only two controllers, yet the article says "We cannot use any arbitrary DMA controller" - this seems to be saying we can't use DMA2 and must use DMA1 - but why?
Thanks
Last edited: