From b5b3bede311c655e77d516de43fbc54e6ce8639f Mon Sep 17 00:00:00 2001 From: "andreas.larsson" Date: Wed, 16 Nov 2016 16:18:16 +0100 Subject: [PATCH] Added tmpisr = regs->ISR; at the end of the while loop to re-evaluate the ISR value --- targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_dma.c b/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_dma.c index df896ff1ee2..b71176bf28c 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_dma.c +++ b/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_dma.c @@ -688,6 +688,7 @@ HAL_StatusTypeDef HAL_DMA_PollForTransfer(DMA_HandleTypeDef *hdma, HAL_DMA_Level /* Clear the Direct Mode error flag */ regs->IFCR = DMA_FLAG_DMEIF0_4 << hdma->StreamIndex; } + tmpisr = regs->ISR; } if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)