cancel
Showing results for 
Search instead for 
Did you mean: 

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

giocc
Associate
Posted on September 29, 2016 at 10:20

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).

#stm32f030-cubemx-template-bug
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on June 27, 2017 at 10:49

Hi 

 ,

Please update the last version of STM32CubeF0, as the missing 

TIM6_IRQHandler is added in the CubeF0 version 1.7.0.

Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

2 REPLIES 2
Imen.D
ST Employee
Posted on September 29, 2016 at 10:55

Dear User,

Thanks for highlighting this issue. It is reported internally to be fixed in coming versions.

Best Regards

STM32.forum

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on June 27, 2017 at 10:49

Hi 

 ,

Please update the last version of STM32CubeF0, as the missing 

TIM6_IRQHandler is added in the CubeF0 version 1.7.0.

Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen