Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* NOTICE: for transmit with DMA a bug fix was needed, please see file
- * core/src/stm32f7xx_it.c in function DMA2_Stream4_IRQHandler
- * at line ~ 370
- */
- void DMA2_Stream4_IRQHandler(void)
- {
- /* USER CODE BEGIN DMA2_Stream4_IRQn 0 */
- /* BUG FIX --------------------------------------------------------------*/
- /* When using SPI with DMA in direct mode there is a known bug in
- * the hal library - The function HAL_SPI_Transmit_DMA enables fifo error
- * interrupts even when there is NO fifo and thus causing fifo error
- * interrupts to occur with NO fifo
- */
- if(hdma_spi5_tx.Init.FIFOMode != DMA_FIFOMODE_ENABLE)
- {
- /* Disable fifo error interrupt, they shouldn't even be on... */
- __HAL_DMA_DISABLE_IT(&hdma_spi5_tx, DMA_IT_FE);
- }
- /* USER CODE END DMA2_Stream4_IRQn 0 */
- HAL_DMA_IRQHandler(&hdma_spi5_tx);
- /* USER CODE BEGIN DMA2_Stream4_IRQn 1 */
- /* USER CODE END DMA2_Stream4_IRQn 1 */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement