AnsweredAssumed Answered

Bugs in F7 Examples - STM32Cube_FW_F7_V1.9.0

Question asked by Clive One on Feb 21, 2018
Latest reply on Feb 26, 2018 by Imen D

Wrong interrupt name, doesn't match macro, missing DMA_Tx handler

 

STM32Cube_FW_F7_V1.9.0\Projects\STM32F769I-Discovery\Applications\Display\LCD_PicturesFromSDCard\Src\stm32f7xx_it.c (and .h)

 

...

/**
* @brief Handles SDMMC1 DMA Rx transfer interrupt request.
* @retval None
*/
void BSP_SDMMC1_DMA_Rx_IRQHandler(void)
{
HAL_DMA_IRQHandler(uSdHandle.hdmarx);
}

/**
* @brief Handles SD1 card interrupt request.
* @retval None
*/
void BSP_SDMMC1_IRQHandler(void)
{
HAL_SD_IRQHandler(&uSdHandle);
}

...

 

 

Correct defines here, using SDMMC2

STM32Cube_FW_F7_V1.9.0\Drivers\BSP\STM32F769I-Discovery\stm32f769i_discovery_sd.h

...

/* DMA definitions for SD DMA transfer */
#define __DMAx_TxRx_CLK_ENABLE __HAL_RCC_DMA2_CLK_ENABLE
#define SD_DMAx_Tx_CHANNEL DMA_CHANNEL_11
#define SD_DMAx_Rx_CHANNEL DMA_CHANNEL_11
#define SD_DMAx_Tx_STREAM DMA2_Stream5
#define SD_DMAx_Rx_STREAM DMA2_Stream0
#define SD_DMAx_Tx_IRQn DMA2_Stream5_IRQn
#define SD_DMAx_Rx_IRQn DMA2_Stream0_IRQn
#define BSP_SDMMC_IRQHandler SDMMC2_IRQHandler
#define BSP_SDMMC_DMA_Tx_IRQHandler DMA2_Stream5_IRQHandler
#define BSP_SDMMC_DMA_Rx_IRQHandler DMA2_Stream0_IRQHandler
#define SD_DetectIRQHandler() HAL_GPIO_EXTI_IRQHandler(SD_DETECT_PIN)

...

Outcomes