Skip to main content
Explorer
October 23, 2024
Solved

Bug in STM32H7 OSPI HAL Drivers RX DMA code

  • October 23, 2024
  • 1 reply
  • 805 views

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

    This topic has been closed for replies.
    Best answer by KDJEM.1

    Hello @hknief ,

     

    Thank you for sharing this issue.

    This issue is already reported in this post

    The problem has been identified and resolved internally. The fix is now available on GitHub and will be included in the upcoming release. 

    Thank you for your contribution.

    Internal ticket number: 179252 (This is an internal tracking number and is not accessible or usable by customers).

     

    Thanks and best regards,

    Kaouthar

    1 reply

    KDJEM.1Answer
    Technical Moderator
    October 23, 2024

    Hello @hknief ,

     

    Thank you for sharing this issue.

    This issue is already reported in this post

    The problem has been identified and resolved internally. The fix is now available on GitHub and will be included in the upcoming release. 

    Thank you for your contribution.

    Internal ticket number: 179252 (This is an internal tracking number and is not accessible or usable by customers).

     

    Thanks and best regards,

    Kaouthar