Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


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

France

Hi Alfredo,

Yes, when you create a custom board, we use a generic interrupt vector table so, for now, you have to create it, either manually or by looking in a similar evaluation board and copying the startup.s file.

Best regards,

Bernard


Hi Bernard,

What about make my own templates, Is it possible to define a template for a custom board?.


Thx in advance

Alfredo


 

Newest Forum Posts

  1. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  2. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  3. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  5. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  6. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  8. Build a project in "release" mode by tang, 2025-02-20 10:36
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35
  10. Fail to debug in Win 11 C/C++ by mortenlund, 2024-12-26 20:27

Last-Modified Blogs