cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in STM32H7 OSPI HAL Drivers RX DMA code

hknief
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
KDJEM.1
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
KDJEM.1
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.