2015-06-29 12:13 AM
Stm32f429 dma data width change on the fly
2015-06-29 06:02 AM
I'd expect you'd have to stop it, and then restart it with the new settings you want.
2015-06-29 09:56 PM
clive1,
Thanks, looks like my msg got cut off, but that is the answer I was looking for. Does this look good as far as reconfiguring the tx stream. Thanks void dmareconfig(uint32_t PeriphDataAlignment,uint32_t MemDataAlignment){ __HAL_DMA_DISABLE(SpiHandle.hdmatx); __HAL_SPI_DISABLE(&SpiHandle); static DMA_HandleTypeDef hdma_tx = SpiHandle.hdmatx; hdma_tx.Init.PeriphDataAlignment = PeriphDataAlignment; hdma_tx.Init.MemDataAlignment = MemDataAlignment; __HAL_SPI_ENABLE(&SpiHandle); __HAL_DMA_ENABLE(SpiHandle.hdmatx); }