SBSFU: Active slot ends up empty after swapping of firmware images
Hello,
I have a setup with two partitions (active + download) and a user application that also acts as a firmware loader.
At the moment, the loader/user application downloads the new firmware to the download slot successfully and after reset the new firmware is identified and the SBSFU initiates the installation of the new firmware. The decryption succeeds and I've verified that the correct image is obtained after decryption. Hence, the installation seems to work up until the swapping phase. During swapping, no firmware data seems to be written to the active slot. After the swapping operation is completed, no firmware is present in the active slot at all. Hence, the swap seems to act more or less act as an erase operation on the active partition. Still, the SBSFU seems to consider the installation successful and complete (no error codes are returned if I check during debug). But after the subsequent reset, it starts to erase the content in the active slot, announcing: "Slot SLOT_ACTIVE_1 not empty: erasing ...".
Do anyone have any idea what could be the problem?
I have verified the flash routines, and they seem to work for all tests I've made.
The SBSFU version is 2.6.2, executing on a STM32F750.
