How to disable HardwareTimers
Posted: Sun Aug 22, 2021 4:48 pm
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?
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?