mhc
mhc copied to clipboard
DMA Settings corrupt after on/off cycle.
I was configuring my project but changed a couple of DMA settings on and off. But after that the SPI/UART driver DMA options don't work properly anymore. Turning DMA on and off again corrupt the state of the DMA configuration.
I tried to clear the DMA state by disabling all the SPI/UART DMA options, but the channels don't get freed in the DMA Settings window and leave me with 4 out of 8 channels unusable.
The following image shows that 4 channels are not configurable anymore, while there is not a single module configured to use DMA.
After this the SPI/UART driver DMA options also get confused. If i turn the DMA on for multiple driver instances they all try to take DMA0 for both rx/tx, And the module doens't allow me to manually change the DMA channel see the following image: