Skip to main content
Associate II
April 5, 2025
Solved

Changing GPDMA Interrupts

  • April 5, 2025
  • 2 replies
  • 1176 views

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!

tw1_0-1743819810007.png

 

Best answer by tw1

Hello,

I have solved it using the LL functions. Thank you.

2 replies

Technical Moderator
April 7, 2025

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?

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question.Saket_Om"
tw1AuthorAnswer
Associate II
April 7, 2025

Hello,

I have solved it using the LL functions. Thank you.