From edbd1e3f4422db4728bf334c1230e31f43543dec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1ssio=20Romanin=20de=20Lazaro?= <162123637+cassio-lazaro@users.noreply.github.com> Date: Wed, 7 Aug 2024 13:30:08 +0200 Subject: [PATCH] fix: command sequence for flash spi with dma (#370) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix command sequence for flash spi with dma Co-authored-by: André Jordan <3933856+andjordan@users.noreply.github.com> --- 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)