cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX not generating all needed DMA_HandleType inits when Circular SPI transfer is selected?

devinw
Associate III

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
2 REPLIES 2
Ghofrane GSOURI
ST Employee

Hello @devinw 

First let me thank you for posting.

I would appreciate it if you could share your IOC so that I can verify your configuration.

I will be waiting for your feedback.

THX

Ghofrane

Thanks Ghofrane. IOC file is attached!