Startup code and Interrupt handlers.
Hi everyone,
I’m having a problem creating a basic project for an STM32F103VC using Wizard.
I’ve defined my own board which uses an F1 High Density microcontroller. After, I spawn a new project with Standard pheriperal drivers using defined board.
The problem comes when I want to use interrupts as the startup code (startup_stm32.s) does not define any symbols at the interrupt vector table besides these:
.word _estack
.word Reset_Handler
.word NMI_Handler
.word HardFault_Handler
.word MemManage_Handler
.word BusFault_Handler
.word UsageFault_Handler
.word 0
.word 0
.word 0
.word 0
.word SVC_Handler
.word DebugMon_Handler
.word 0
.word PendSV_Handler
.word SysTick_Handler
Any other interrupts symbols, such as USARTs Timers etc, are missing.
If I create a project using, for example a STM32F072B-DISCO board, the startup code (startup_stm32f072.s) the interrupts symbols are included. Ex:
.word WWDG_IRQHandler
.word PVD_VDDIO2_IRQHandler
.word RTC_IRQHandler
.word FLASH_IRQHandler
.word RCC_CRS_IRQHandler
.word EXTI0_1_IRQHandler
It looks like is using a generic startup code for the stm32 microcontrollers.
My question:
Is there any way to configure startup code and Linker script for a custom board?
Can I make my own template when defining a board?
Thanks in advance
Alfredo Castro