Changing GPDMA Interrupts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-04 7:44 PM
Hello,
I would like to enable and disable certain interrupts pertaining to the GPDMAs within my program at times. Particularly the transfer complete interrupt. I would assume that I should be able to simply change the register value with GPDMA2->C0CR &=~GPDMA_C0CR_TCIE; but it appears that im only allowed to reference the SECCGFR, PRIVCFGR, RCFGLOCKR, MISR, and SMISR registers. Why is this the case? What must I do to be able to disable the TCIE interrupt?
I have tried to use __HAL_DMA_DISABLE_IT(&hdma_adc2, DMA_IT_TC); which throws a hard fault.
Thank you!
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-07 9:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-07 6:27 AM
Hello @tw1
Could you please specify the MCU you are using?
Also, could you share your code so that we can assist you more effectively?
Thanks
Omar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-07 9:07 AM
Hello,
I have solved it using the LL functions. Thank you.
