Stm32f429 dma data width change on the fly
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-06-29 12:13 AM
Posted on June 29, 2015 at 09:13
Stm32f429 dma data width change on the fly
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-06-29 6:02 AM
Posted on June 29, 2015 at 15:02
I'd expect you'd have to stop it, and then restart it with the new settings you want.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-06-29 9:56 PM
Posted on June 30, 2015 at 06:56
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); }