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


STM32F411VE Incorrect Vector Table in startup_stm32.s

I just created an empty project for the STM32F411E-DISCO board with the STM32F411VE part on it. In the process of porting an old project to this processor, I found my code kept hitting the Default_Handler in startup_stm32.s.

After digging a bit, I found it was my UART TX ISR and then to my dismay the listed vectors from the auto-generated Vector Table for this part was missing many ISR definitions, including all UART ISRs. When comparing the generated vector table to the actual vector table from the STMF411VE datasheet, I see there are many missing.

I’ve attached the startup_stm32.s for the STM32F411VE part, which if compared to Table 37 of the reference manuaQuestionl will show the missing vectors.

Is this a bug, or did I miss some step of configuration when I set up my project (I’m new to OpenSTM32 and ST MCUs)?

Hello,

Yes, it seems a few IT vectors are missing. Needs to be corrected.

It is only in this latest version of SW4STM32 (2.4.0) that it generates the startup file with It vectors for empty project.
Beforehand, there was no it vectors for peripherals for empty project.

You can pick the startup file in the HAL F4 (startup_stm32f411xe.s), it is up to date with all IT vectors.
Or create a project for F411 Disco with HAL, it will copy the startup from HAL.

Rgds,
Laurent


 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  2. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  10. Build a project in "release" mode by tang, 2025-02-20 10:36

Last-Modified Blogs