Bug in STM32H7 OSPI HAL Drivers RX DMA code
Hi there,
just found out, that there's a severe bug in STM32Cube_FW_H7_V1.11.2, file stm32h7xx_hal_ospi.c at line 1599 (Function HAL_OSPI_Receive_DMA), which prevents the OSPI DMA Receive mode from working correctly:
/* Enable the transmit MDMA Channel */
if (HAL_MDMA_Start_IT(hospi->hmdma, (uint32_t)pData, (uint32_t)&hospi->Instance->DR, hospi->XferSize, 1) == \
HAL_OK)
This code seems to be copied from the HAL_OSPI_Transmit_DMA function and should read
/* Enable the receive MDMA Channel */
if (HAL_MDMA_Start_IT(hospi->hmdma, (uint32_t)&hospi->Instance->DR, (uint32_t)pData, hospi->XferSize, 1) == \
HAL_OK)
for the HAL_OSPI_Receive_DMA function.
Best regards, Heino
