cancel
Showing results for 
Search instead for 
Did you mean: 

SPI DMA on F103 not working (CLK - ok, MOSI - always 3.3v)

ilya molotoff
Associate
Posted on June 26, 2017 at 03:46

Hello.

CubeMX 4.21 + STM32Cube_FW_F1_V1.4.0. 

SPI DMA (SPI1_TX) not working on F103 series. Tested on f103c8t6 and f103rbt6. Result - MCU dont want working. SPI without DMA - all good.

For example:

uint8_t data = 0xDE;

HAL_SPI_Transmit_DMA(&hspi1, &data, 1); â€�? CLK - 3.3v, MOSI - 0v

HAL_SPI_Transmit_DMA(&hspi1, &data, 2); �? CLK - meander (OK), MOSI always 3.3v

HAL_SPI_Transmit(&hspi1, &data, 1, 100); �? MCU sending data correctly.

SPI DMA on other F-series working correctly.

How can I fix this bug? Thanks a lot!

0 REPLIES 0