From 56a1ab369f44308f8945384504c15657c3039b8d Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 16 Mar 2013 09:59:51 +0000 Subject: [PATCH] Fixed bug 3608241. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5438 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/SPIv2/spi_lld.c | 2 +- readme.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/os/hal/platforms/STM32/SPIv2/spi_lld.c b/os/hal/platforms/STM32/SPIv2/spi_lld.c index afc027dfc..c8b733649 100644 --- a/os/hal/platforms/STM32/SPIv2/spi_lld.c +++ b/os/hal/platforms/STM32/SPIv2/spi_lld.c @@ -293,7 +293,7 @@ void spi_lld_start(SPIDriver *spip) { spip->spi->CR1 = 0; spip->spi->CR1 = spip->config->cr1 | SPI_CR1_MSTR | SPI_CR1_SSM | SPI_CR1_SSI; - spip->spi->CR2 = spip->config->cr2 | SPI_CR2_SSOE | + spip->spi->CR2 = spip->config->cr2 | SPI_CR2_FRXTH | SPI_CR2_SSOE | SPI_CR2_RXDMAEN | SPI_CR2_TXDMAEN; spip->spi->CR1 |= SPI_CR1_SPE; } diff --git a/readme.txt b/readme.txt index 89f971f63..aeb3c377d 100644 --- a/readme.txt +++ b/readme.txt @@ -86,7 +86,8 @@ ***************************************************************************** *** 2.5.2 *** -- FIX: Fixed fixed I2C malfunction after fixing bug 3607518 (bug 3607549) +- FIX: Fixed STM32 SPI (V2) driver hangs (bug 3608241). +- FIX: Fixed fixed I2C malfunction after fixing bug 3607518 (bug 3607549). - FIX: Fixed spurious interrupt disabling an STM32 DMA stream (bug 3607518) (backported to 2.4.4). - FIX: Fixed start of any ADC disables VREF and VBAT (bug 3607467)