2015-08-28 01:58 AM
I am trying to run an existing code developed in Eclipse + GCC in IAR workbench. After making all the related changes, the code compiles successfully. Now when I try to run the program, at the point where there is a call to 'Init_TIM' in main.c, which in turn calls HAL_TIM_Base_Start_IT(&TimHandle); This evidently ends up in reaching
/* Enable the Peripheral */ __HAL_TIM_ENABLE(htim); this point in stm32f4xx_hal_tim.c file. After this the program hangs without any further execution. When I break the debugging, I see that the program is currently stuck at TIM3_IRQHandler B TIM3_IRQHandler in the startup_stm32f4xx.s file. I have tried searching online for any help but couldn't find anything. I might be missing something quite simple but I don't realize what it is. #stm2015-08-28 03:13 AM
Hi lieber.sommer,
I think that you miss the definition of your Interrupt Handler in the stm32f4xx_it.cvoid
TIMx_IRQHandler(
void
)
{ ….
}
-Syrine-
2015-08-28 04:11 AM
I figured out that I have the stm32f4xx_it.c in the source directory but I have not included it in my IAR project. So stupid of me. Thanks for the reply Syrine.