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


Running bootloader + application solution

i run custom bootloader at defautl reset handler that then jump to app reset vector located after in flash
is that what you trying to do ?
i can debug and load the app over eclipse/ac6 without bootloader overwrite
but reset and boot will go by the bootloader (that can be debug also )
I did this on a f407 but the same can aply to any cpu until you relocate vector handler

for this to work your app ld neeed to be addapted and app vector table changed

basiclay in ld file change the app “FLASH” to start after where you boot loader is
fo ex say 128K loader at flash origin
FLASH (rx)  : ORIGIN = 0x8000000, LENGTH = 1024K
come =>
FLASH (rx)  : ORIGIN = 0x8002000, LENGTH = 896K // origin+128K 1size 024K-128K

in the CMSIS driver look at /Drivers/CMSIS/system_stm32f4xx.c or yoru cpu xxxx.c

  1. define VECT_TAB_OFFSET 0x20000 /*!< Vector Table base offset field. */


As your app is offset so does your vector table it need to be relocated to where the app handler are

if shall work ! you boto load must ensure to relad teh proper app reset handler and also disbae irq before to jump on app

eclispe opencocd wil only program the flash that is the in app not the bootlaoder.

 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  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. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs