cancel
Showing results for 
Search instead for 
Did you mean: 

Changing GPDMA Interrupts

tw1
Associate II

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
tw1
Associate II

Hello,

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

View solution in original post

2 REPLIES 2
Saket_Om
ST Employee

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?

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

Thanks
Omar
tw1
Associate II

Hello,

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