2024-03-18 06:47 AM
Hello,
I use the utility STM32_Programmer_CLI to create a large ELF file from the SBSFU application, the firmware header (binary) and the user application.
The call in script (postbuild.sh) looks like this:
STM32_Programmer_CLI -ms application.elf header.bin SBSFU.elf
In my case, the header is not placed in front of the user application, but appended at the end. And the address range assigned to this header starts at 0x20001EDC (outside the flash).
How does STM32_Programmer_CLI know where the header should be positioned?
Does the utility take the information from one of the ELF files?
Or what is the problem?
I would be grateful for any tips.
JP2
2024-09-24 03:40 AM
Hi!
Currently I've the exactly same problem with SBSFU on a STM32G0B0. I've ported the SBSFU to this MCU and everything works fine when flashing the "bigbinary" or only the SBSFU and then load the application via YModem but I cannot debug using the merged elf.
Analysing the output showed that the application is shifted some bytes and the application header is placed on a completely wrong address (beyond the application but in my case still in flash).
Can anybody from ST support with the STM32_Programmer_CLI "-ms" command by either adding information on which basis the tool places the header and application OR update the tool to allow passing the addresses somehow!?
BTW. I'm using STM32CubeProgrammer v2.16.0. (I saw v2.17.0 is out but release notes do not state any change regarding this topic).
BR Markus