RTEMS | bsp/stm32h7: fix DMA allocator IRQ handling and stream boundary check (!1196)

Mohamed Ayman (@mohamedayman23) gitlab at rtems.org
Fri Apr 10 13:01:28 UTC 2026



Mohamed Ayman created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1196

Project:Branches: mohamedayman23/rtems:fix-DMA-allocator_IRQ to rtems/rtos/rtems:main
Author:   Mohamed Ayman



bsp/stm32h7: fix DMA allocator IRQ handling and stream boundary check

- Guard rtems_interrupt_entry_remove() in stm32h7_dma_free_nolock() behind an irq_installed flag to prevent an \_Assert failure when freeing a channel whose IRQ entry was never installed (e.g. on rtems_interrupt_entry_install() failure).
- Fix DMA2 stream detection in stm32h7_dma_free_nolock() to use= DMA2_Stream0_BASE instead of \> DMA2_BASE. 
- The old check would misclassify DMA2_Stream0 as a DMA1 stream, producing a wrong channel index and bitmask on free.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1196
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260410/baabcfd4/attachment.htm>


More information about the bugs mailing list