From 1f9eb76e9cce56abc7516d4611709758ff0e3bc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1ssio=20Romanin=20de=20Lazaro?= Date: Tue, 6 Aug 2024 15:47:24 +0000 Subject: [PATCH] fix command sequence for flash spi with dma --- hal_st/stm32fxxx/SpiMasterStmDma.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal_st/stm32fxxx/SpiMasterStmDma.cpp b/hal_st/stm32fxxx/SpiMasterStmDma.cpp index d9e46185..2b0c1312 100644 --- a/hal_st/stm32fxxx/SpiMasterStmDma.cpp +++ b/hal_st/stm32fxxx/SpiMasterStmDma.cpp @@ -131,10 +131,10 @@ namespace hal else std::abort(); + peripheralSpi[spiInstance]->CR1 |= SPI_CR1_SPE; #ifdef SPI_CR1_CSTART peripheralSpi[spiInstance]->CR1 |= SPI_CR1_CSTART; #endif - peripheralSpi[spiInstance]->CR1 |= SPI_CR1_SPE; } void SpiMasterStmDma::SetChipSelectConfigurator(ChipSelectConfigurator& configurator)