Please wish to request for help. Trying to use STM32F1 syst_tick interrupt. I am using Atollic truestudio 9.3.0.
I have c++ file (tasks.cpp), i declared the interrupts handler in this file and hoping it will overide the default handler since default was has attribute .weak in the startup file.
But funny as it seems, when i compile, i get error: "multiple definition of `SysTick_Handler" this is how i declared it.
extern "C"void SysTick_Handler(void)
{
timeElapsed++;
}
Other interrupts handlers for TIM1, 2,3 ,4 were declared in that same file and they working Ok but syst_tick is NOT. The question, why?
SysTick_Handleris defined in STM files. If you use HAL do not define it yourself. If you want to get the counter value simply use HAL functionHAL_GetTick();and if you want to tun some of your code in the handler define the callback function. The definition is located in the..._it.cfile in your project.