Add a binary header and a sbsfu segment to an elf file
I have a problem with merge SBSFU .elf file and application .elf.
I prepared:
- SBSFU.elf - addresses in linker script: 0x08000000 - 0x08020000
- application.elf - 0x08020400 - 0x081FFFFF
- header.bin - size: 1024B
So I suppose, that like in SBSFU example header.bin will jump into space between SBSFU and application (0x08020000 - 0x08020400), but in my case result .elf file is corrupted. After merge application begin from 0x08020034 and header is placed at the end of application.
I use command:
STM32_Programmer_CLI -ms application.elf header.bin SBSFU.elf
