2022-02-01 02:42 PM
For some reason, CubeMX won't let me disable the DMA IRQ in the ADC configuration panel.
The ability to deactivate ISR is important when the ADC is configured in continuous mode.
Because my ADC conversion is small, the ISR are generated at a very high frequency; completely choking the CPU.
How do you disable ADC DMA interrupts in cubeMX?
---
Build info
STM32CubeIDE
Version: 1.8.0
Build: 11526_20211125_0815 (UTC)
OS: Windows 10, v.10.0, x86_64 / win32
Java version: 11.0.11
Solved! Go to Solution.
2022-02-02 06:10 AM
Dear Gabriel,
There is an option in System Core - NVIC called Force DMA channels Interrupts. Please unchecked this option and you can now disable DMA interrupt from NVIC settings in ADC1 menu or directly in NVIC menu.
Best regards,
Gwénolé
2022-02-02 12:41 AM
Hello @GBert.2
Can you share with me the product you use and also the CubeMX version.
I will try to reproduce on my side.
For now, you can easily disable generated IRQ by commenting HAL_NVIC_EnableIRQ in your code located in MX_DMA_Init function.
Best Regards,
Gwénolé
2022-02-02 05:57 AM
Hi Gwénolé,
Thanks for your support.
> Can you share with me the product you use and also the CubeMX version.
Here it is:
CubeMX is 6.4.0.
> For now, you can easily disable generated IRQ by commenting HAL_NVIC_EnableIRQ in your code located in MX_DMA_Init function.
Yeah. But, as you know, this will break every time I regenerate the project.
Regards,
Gabriel
2022-02-02 06:10 AM
Dear Gabriel,
There is an option in System Core - NVIC called Force DMA channels Interrupts. Please unchecked this option and you can now disable DMA interrupt from NVIC settings in ADC1 menu or directly in NVIC menu.
Best regards,
Gwénolé
2022-02-02 06:47 AM
Dear Gwénolé,
Thanks for your help.
This is exactly what I needed.
I'm not sure why this would be set by default ¯\_(ツ)_/¯
Thanks again.
Regards,
Gabriel