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


Bootloader Erased when Application is programmed

Hi

Finally found here a solution which works for me:
https://www.tablix.org/~avian/blog/archives/2012/11/gnu_linker_and_elf_program_header/Question

While in application project

Goto Project -> Properties -> C/C++ Build -> Settings -> Tab "Tool Settings" -> MCU GCC Linker -> klick add symbol for "Other options (-XLinker [option]" -> write --nmagic


The objdump -x produces this output now:

/array_data01/STM32-34/mini-sys/Debug/mini-sys.elf:     file format elf32-littlearm
/array_data01/STM32-34/mini-sys/Debug/mini-sys.elf
architecture: arm, flags 0x00000012:
EXEC_P, HAS_SYMS
start address 0x0800fb61

Program Header:
    LOAD off    0x00000098 vaddr 0x08004000 paddr 0x08004000 align 2**3
         filesz 0x000110d8 memsz 0x000110d8 flags rwx
    LOAD off    0x00011170 vaddr 0x20000000 paddr 0x080150d8 align 2**3
         filesz 0x00000408 memsz 0x00002db8 flags rw-
    LOAD off    0x00011578 vaddr 0x20002db8 paddr 0x080154e0 align 2**0
         filesz 0x00000000 memsz 0x00000600 flags rw-
private flags = 5000200: [Version5 EABI] [soft-float ABI]

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .isr_vector   0000010c  08004000  08004000  00000098  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  1 .text         0000e5c8  08004110  08004110  000001a8  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
...


Dieter

 

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