Forum: System Workbench for STM32

startup_stm32.s is missing all interrupt definitions when selecting Standard_Peripheral_Libraries at project setup

Hello,

I am using an STM32F407 MCU (STM32F4 Discovery bord) and I found an issue with the project manager setup.

When I create a C project and I decide to use the Standard_Peripheral_Libraries, the openstm32 setup generates (or includes) to my sources a wrong or incomplete startup_stm32.s file which misses a lot of interrupt definitions in the g_pfnVectors. Basically it seems it’s missing ALL the external interrupts.
I attach this file as startup_stm32_INCOMPLETE.s

You can see an example of correct startup file is the one located (from Standard_Peripheral_Libraries source code) at:

STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/CMSIS/Device/ST/STM32F4xx/Source/Templates/SW4STM32/startup_stm32f40xx.s

which has all the interrupts definitions.

How to solve this problem without having to copy the correct file every time ? Is this a standard feature of openstm32 ?
Is it possible to solve it from configuration files ?

Thank you in advance.
Regards,
Simon

PS: another similar question was opened two years ago by another user: http://www.openstm32.org/forumthread266Question
PS2: I accidentally attached the file twice and I cannot remove one.