cancel
Showing results for 
Search instead for 
Did you mean: 

Bugs in F7 Examples - STM32Cube_FW_F7_V1.9.0

Posted on February 21, 2018 at 18:46

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)

...

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
1 REPLY 1
Imen.D
ST Employee
Posted on February 26, 2018 at 15:25

Hello

Turvey.Clive.002

Thank you for posting this bug and bringingit to our attention..

I raised this issue to our development team for fix.

Best Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen