From 9df2bcbc8eb3f9d330bfc2223ea414d4941e34f8 Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Fri, 9 Aug 2024 09:55:03 +0200 Subject: [PATCH] stm32h7xx_hal driver partial update to v1.11.3 Some changes applied on the stm32h7xx_hal_driver v1.11.3 are reported here. Until the stm32CubeH7 module is updated. Signed-off-by: Francois Ramu --- stm32cube/stm32h7xx/README | 6 ++++++ stm32cube/stm32h7xx/drivers/src/stm32h7xx_hal_ospi.c | 2 +- stm32cube/stm32h7xx/drivers/src/stm32h7xx_ll_delayblock.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/stm32cube/stm32h7xx/README b/stm32cube/stm32h7xx/README index 07fef41bc..d3b32cdbd 100644 --- a/stm32cube/stm32h7xx/README +++ b/stm32cube/stm32h7xx/README @@ -73,4 +73,10 @@ Patch List: Impacted files: drivers/include/Legacy/stm32_hal_legacy.h + *include STM32Cube patch in stm32h7xx_hal_ospi.c: + [HAL][OSPI] Fix wrong parameters passed to HAL_MDMA_Start_IT function + + *include STM32Cube patch in stm32h7xx_ll_delayblock.c: + [LL][DELAYBLOCK] Add a missing define for OSPI to the defgroup DELAYB… + See release_note.html from STM32Cube diff --git a/stm32cube/stm32h7xx/drivers/src/stm32h7xx_hal_ospi.c b/stm32cube/stm32h7xx/drivers/src/stm32h7xx_hal_ospi.c index 46474bfe1..a38e06b30 100644 --- a/stm32cube/stm32h7xx/drivers/src/stm32h7xx_hal_ospi.c +++ b/stm32cube/stm32h7xx/drivers/src/stm32h7xx_hal_ospi.c @@ -1597,7 +1597,7 @@ HAL_StatusTypeDef HAL_OSPI_Receive_DMA(OSPI_HandleTypeDef *hospi, uint8_t *pData } /* Enable the transmit MDMA Channel */ - if (HAL_MDMA_Start_IT(hospi->hmdma, (uint32_t)pData, (uint32_t)&hospi->Instance->DR, hospi->XferSize, 1) == \ + if (HAL_MDMA_Start_IT(hospi->hmdma, (uint32_t)&hospi->Instance->DR, (uint32_t)pData, hospi->XferSize, 1) == \ HAL_OK) { /* Enable the transfer error interrupt */ diff --git a/stm32cube/stm32h7xx/drivers/src/stm32h7xx_ll_delayblock.c b/stm32cube/stm32h7xx/drivers/src/stm32h7xx_ll_delayblock.c index 0ad6a461b..791b29ba5 100644 --- a/stm32cube/stm32h7xx/drivers/src/stm32h7xx_ll_delayblock.c +++ b/stm32cube/stm32h7xx/drivers/src/stm32h7xx_ll_delayblock.c @@ -59,7 +59,7 @@ * @{ */ -#if defined(HAL_SD_MODULE_ENABLED) || defined(HAL_QSPI_MODULE_ENABLED) +#if defined(HAL_SD_MODULE_ENABLED) || defined(HAL_QSPI_MODULE_ENABLED)|| defined(HAL_OSPI_MODULE_ENABLED) /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/