Solved
CubeMX not generating all needed DMA_HandleType inits when Circular SPI transfer is selected?
- December 24, 2024
- 1 reply
- 1629 views
Using STM32H533RE and successfully got SPI1 doing DMA transfers with HAL_SPI_Transmit_DMA() one shot at a time. As soon as I select Circular transfer and re-gen, the above function fails because a bunch of fields in my
DMA_HandleType for that DMA channel are left at 0. I get a bunch of NEW inits for the
DMA_NodeConfTypeDef. I decided to cut and paste the handful of items from the old HAL_SPI_MspInit() when in non-circular mode, and paste them into the circular config re-generated HAL_SPI_MspInit() and voila DMA SPI in circular mode works fine.
Is this a cube MX bug? Or am I missing something?
See attached screenshots
