2024-05-26 10:30 PM
I am implementing sbsfu on stm32h745 chipset.
Ported 2images from stm32h753 sbsfu examples.
Among slots 1 and 2, slot 1 is intended to be used by cm7 and slot 2 by cm4.
Although cm7 is operating normally, I created a separate cm4 package, created an sfb file, and confirmed that the cm4 firmware was installed in dwl_slot2. However, the firmware needs to be moved to active slot 2, but I have no idea how to do it. How to solve this?
mapping_fwimg.ld
2024-05-27 01:11 AM
Hello @yolominwoo;,
the SBSFU should recognize the firmware in download slot 2 as a "slot 2" firmware.
For this, you need to provide this slot number in the postbuild command the generates the sfb file. This is the parameter that is just before the version number.
You can see the result in the header of SFB file : First 4 bytes should be SFU2 instead of SFU1
Please not that it is possible to create only one download slot for the 2 firmwares. In that case, you will be able to update one by one and not both at the same time.
Best regards
Jocelyn
2024-05-28 06:13 PM
I'm get a Error message.
prepareimage.exe enc -k ../../../2_Images_SECoreBin/STM32CubeIDE/../Binary/OEM_KEY_COMPANY2_key_AES_CBC.bin -i ../../../2_Images_SECoreBin/STM32CubeIDE/../Binary/iv.bin ../UserApp.bin ..//../Binary/UserApp.sfu : failed
2024-05-29 11:26 AM
Hello @yolominwoo
the error tells you what is the issue: you need to have other set of keys to encrypt and sign the image.
Keys are located in SECoreBin\Binary
Best regards
Jocelyn
2024-06-19 10:00 PM
I finally made SFU2 Image but cm4 can't boot...
SBSFU | 0x08000000 | 0x0801FFFF |
CORE_CM7 Active | 0x08020000 | 0x0803FFFF |
CORE_CM7 Active | 0x08040000 | 0x0805FFFF |
CORE_CM7 Active | 0x08060000 | 0x0807FFFF |
CORE_CM7 Active | 0x08080000 | 0x0809FFFF |
CORE_CM7 Dwl | 0x080A0000 | 0x080BFFFF |
CORE_CM7 Dwl | 0x080C0000 | 0x080DFFFF |
CORE_CM7 Dwl | 0x080E0000 | 0x080FFFFF |
CORE_CM7 Dwl | 0x08100000 | 0x0811FFFF |
SWAP | 0x08120000 | 0x0813FFFF |
0x08140000 | 0x0815FFFF | |
0x08160000 | 0x0817FFFF | |
CORE_CM4 Active | 0x08180000 | 0x0819FFFF |
CORE_CM4 Dwl | 0x081A0000 | 0x081BFFFF |
0x081C0000 | 0x081DFFFF | |
0x081E0000 | 0x081FFFFF |
I'm setting like this so I can Download in 0x081A0000 for cm4 firmware but can't Active.