Skip to content

Timer Interrupt #2170

Closed Answered by fpistm
ennio64 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ennio64
You have to disable the usage of HAL TIM for Arduino API:
https://github.com/stm32duino/Arduino_Core_STM32/wiki/HAL-configuration#hal-module-only

So define HAL_TIM_MODULE_ONLY thanks the build_opt.h or hal_conf_extra.h.
Then do not forget to add extern "C" before each handler definition, ex:
extern "C" void TIM3_IRQHandler(void) {

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fpistm
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question ❓ Usually converted as a discussion
2 participants