How to disable HardwareTimers

Post here first, or if you can't find a relevant section!
Post Reply
JimEli
Posts: 20
Joined: Sat Apr 17, 2021 11:33 pm

How to disable HardwareTimers

Post by JimEli »

I am trying to use HAL TIM2 features on an STM32F405 board with STM Core 2.0.0.

But I keep getting multiple definitions for TIM2_IRQHandler and the HAL_TIM_PeriodElapsedCallback. I try to disable it via build_opt.h file with "-DHAL_TIM_MODULE_ONLY", but they are still included in the core. I know my build options are recognized because if I include "-DHAL_TIM_MODULE_DISABLED" the modules are completely removed.

What am I doing wrong?
JimEli
Posts: 20
Joined: Sat Apr 17, 2021 11:33 pm

Re: How to disable HardwareTimers

Post by JimEli »

Disregard. I believe it is associated with needing to restart the IDE so the system forces a complete rebuild.

So, now my question is, how can you force the rebuild without restarting the IDE?
User avatar
fpiSTM
Posts: 1754
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: How to disable HardwareTimers

Post by fpiSTM »

JimEli wrote: Sun Aug 22, 2021 5:03 pm
So, now my question is, how can you force the rebuild without restarting the IDE?
Changing one options in the menu seems force the rebuild, even if you change it and restore it back. Anyway, in case of any doubt I advise to restart the IDE.
Post Reply

Return to “General discussion”