AnsweredAssumed Answered

Template bug in startup_stm32f030x8.s file (v1.6.0)

Question asked by croci_candiani.g.001 on Sep 29, 2016
Latest reply on Jun 27, 2017 by Imen D
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                ; TIM6

Also, 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 (folder STM32Cube_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).

Outcomes