Issue with SFBU and EEPROM Firmware Update
Hello,
I'm currently working on a project that involves using the SFBU (Secure Firmware Bootloader Update) due to the limited flash size of the MCU. I've set up an external EEPROM to store the entire firmware before the update process.
I've made necessary modifications to the linker files to accommodate the use of EEPROM. The complete .bin file, containing all the data, successfully boots at SFBU, and after the checks, the main code runs seamlessly.
However, I'm facing an issue when attempting to update from the EEPROM. I encounter a "Fw signature check error" during this process. Upon debugging the BFU (Bootloader Firmware Update) application, I noticed that the C_DigestFinal function returns the wrong pOutputBuffer specifically when updating with a .sfb file. Interestingly, the same function returns the correct tag when we flash both the bootloaded and firmware as one image but still can't make upadate with .sfb file.
Below we see that the fw_tag_output is correct and the installed image pass the check

Now we see that the same application when i send the .sfb file over y-modem for update the kms returns the wrong number.

Both of the images tag are the same and in correct place. All the partitions have been checked and are the correct ones. The same application with the internal flash works ok.
Best regards,
Nikos
