From aa7ac54ea579190129c8bdf004c5a5997e0cd9af Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 7 Mar 2021 12:30:38 +0000 Subject: [PATCH] Fixed bug #1147. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_20.3.x@14065 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/LLD/QUADSPIv1/hal_wspi_lld.c | 4 ++++ readme.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/os/hal/ports/STM32/LLD/QUADSPIv1/hal_wspi_lld.c b/os/hal/ports/STM32/LLD/QUADSPIv1/hal_wspi_lld.c index 678339a02..64f2522f1 100644 --- a/os/hal/ports/STM32/LLD/QUADSPIv1/hal_wspi_lld.c +++ b/os/hal/ports/STM32/LLD/QUADSPIv1/hal_wspi_lld.c @@ -95,6 +95,10 @@ static void wspi_lld_serve_interrupt(WSPIDriver *wspip) { while (dmaStreamGetTransactionSize(wspip->dma) > 0U) ; + /* Clearing DMA interrupts here because the DMA ISR is not called on + transfer complete.*/ + dmaStreamClearInterrupt(wspip->dma); + /* Handling of errata: Extra data written in the FIFO at the end of a read transfer.*/ if (wspip->state == WSPI_RECEIVE) { diff --git a/readme.txt b/readme.txt index bd6ac299a..88941efad 100644 --- a/readme.txt +++ b/readme.txt @@ -74,6 +74,7 @@ ***************************************************************************** *** 20.3.4 *** +- FIX: Fixed STM32 QUADSPI driver problem when used with DMAv2 (bug #1147). - FIX: Fixed incorrect IRQ vector for PVM (bug #1146) *** 20.3.3 ***