cancel
Showing results for 
Search instead for 
Did you mean: 

Removing call to HAL_DAC_IRQHandler in TIM6_DAC_IRQHandler

MVele.1
Associate II

Hello,

I am using STM32CubeIDE 1.17.0 to generate code for STM32F746 device. I am using DAC peripherals in non-interrupt mode + the TIM6 in the interrupt mode. When the source code is generated, the TIM6_DAC_IRQHandler contains a call to HAL_DAC_IRQHandler.
MVele1_0-1738248366360.png

As I do not use/care about DAC interrupts, is there a way how to configure the project in STM32CubeIDE to not generate a call to HAL_DAC_IRQHandler? I would like to avoid implementation of own TIM6_DAC_IRQHandler, changing to TIM7, just to use some click here/click there solution if possible :-). I could find anything feasible under NVIC/Code generation or Project Manager/Advanced Settings

Thank you for any hint.

Martin

 

 

 

 

3 REPLIES 3
TDK
Guru

 

NVIC->Code generation has a checkbox to disable both calls. If you just want one, put it in the user code above along with "return".

If you feel a post has answered your question, please click "Accept as Solution".
MVele.1
Associate II

Hello TDK,

thank you for a reply. It would definitely solve the issue but if you agree, I'll keep the question still open/not accepted as solution. The idea is not to touch the source code and use only tool configuration possibilities. The main motivation  (I forgot to write) is to distribute only project .ioc and generate all necessary source code from it (without application logic of course).

Martin

> The idea is not to touch the source code and use only tool configuration possibilities. 

So your goal is to make the IOC and send it to someone else who writes the code? Seems like an unnecessary cog in the machine. Couldn't that person write the two lines of code? Surely they should be the one deciding on implementation details.

 

It's not possible to remove only one of those calls.

 

(Up to you to accept a solution or not. I don't get hung up on it.)

If you feel a post has answered your question, please click "Accept as Solution".