Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

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