Question
STM32CubeMX possible bug
Posted on October 30, 2016 at 18:46
But after code generation file MX_Device.h hasn't defines to enable DMA for SPI.
I use STM32CubeMX v 4.0 to configure CMSIS SPI Driver. I believe I do right DMA configuration:
But after code generation file MX_Device.h hasn't defines to enable DMA for SPI.
/* DMA Configuration */
/* DMA SPI2_TX */
/* DMA SPI2_RX */
So, I have to modify it to enable DMA:
/* DMA Configuration */
/* DMA SPI2_TX */
#define MX_SPI2_TX_DMA_Instance DMA1_Stream4
/* DMA SPI2_RX */
#define MX_SPI2_RX_DMA_Instance DMA1_Stream3
#stm32cubemx #dma #bug