2016-09-29 01:20 AM
After some debug work (erratic but constant jumps to the Hard Fault ISR), I discovered an error in one of the .s template files contained in the STM32Cube_FW_F0_V1.6.0 package:
The ISR vector for Timer6 is missing.The correction is pretty straightforward.Line 111, marked in the following snippet:...
DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare DCD 0 ; Reserved DCD TIM3_IRQHandler ; TIM3>>> DCD 0 ; Reserved DCD 0 ; Reserved DCD TIM14_IRQHandler ; TIM14 ...should be replaced with: DCD TIM6_IRQHandler ; TIM6Also, after line 180 following line should be added:EXPORT TIM6_IRQHandler [WEAK]
and after line 207 add:
TIM6_IRQHandler
The file affected is just the one for Keil MDK projects (folderSTM32Cube_FW_F0_V1.6.0\Drivers\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm
); the other project styles (\gcc
and\iar
) are correct.Hope this helps (and will be corrected in the next release). #stm32f030-cubemx-template-bugSolved! Go to Solution.
2017-06-27 03:49 AM
Hi
,Please update the last version of STM32CubeF0, as the missing
TIM6_IRQHandler is added in the CubeF0 version 1.7.0.
Regards
Imen
2016-09-29 01:55 AM
Dear User,
Thanks for highlighting this issue. It is reported internally to be fixed in coming versions.
Best Regards
STM32.forum
2017-06-27 03:49 AM
Hi
,Please update the last version of STM32CubeF0, as the missing
TIM6_IRQHandler is added in the CubeF0 version 1.7.0.
Regards
Imen