QUADSPI MDMA problem
Hello,
I am working on indirect read of quadspi using MDMA. Regular pooling worked fine without any problem.
I have 4 line dual buffer QSPI circuit. I used HAL function
HAL_QSPI_Receive_DMA(&hqspi, data);No data read from qspi. Moreover I have found inside this function (file stm32h7xx_hal_qspi.c) at line 1268:
/* Enable the MDMA transfer by setting the DMAEN bit in the QSPI CR register */
SET_BIT(hqspi->Instance->CR, QUADSPI_CR_DMAEN);This bit is defined as:
#define QUADSPI_CR_DMAEN_Pos (2U)
#define QUADSPI_CR_DMAEN_Msk (0x1U << QUADSPI_CR_DMAEN_Pos) /*!< 0x00000004 */
#define QUADSPI_CR_DMAEN QUADSPI_CR_DMAEN_Msk /*!< DMA Enable */This bit is clearly marked as reserved in reference manual on page 876. It is clearly just copied from stm32f7 which had this bit.
So my question is: Was this function ever tested? Are there any code examples for QUADSPI MDMA read on STM32H7 or usage procedure (what registers to set to program MDMA and QSPI).