Skip to main content
giocc
Visitor II
September 29, 2016
Solved

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

  • September 29, 2016
  • 1 reply
  • 870 views
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
This topic has been closed for replies.
Best answer by Imen.D
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

1 reply

Technical Moderator
September 29, 2016
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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Imen.DBest answer
Technical Moderator
June 27, 2017
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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks