I am working on stm32h753zi sbsfu part. I am facing the swap issue, and attached the log below.
======================================================================
= (C) COPYRIGHT 2017 STMicroelectronics =
= =
= Secure Boot and Secure Firmware Update =
======================================================================
= [SBOOT] SECURE ENGINE INITIALIZATION SUCCESSFUL
= [SBOOT] STATE: CHECK STATUS ON RESET
INFO: A Reboot has been triggered by a Software reset!
INFO: Last execution status before Reboot was:Executing Fw Image.
INFO: Last execution detected error was: No error. Success.
= [SBOOT] STATE: CHECK NEW FIRMWARE TO DOWNLOAD
= [SBOOT] STATE: CHECK USER FW STATUS
New Fw to be installed from slot SLOT_DWL_1
= [SBOOT] STATE: INSTALL NEW USER FIRMWARE
= [SBOOT] RuntimeProtections: 0
612480 bytes of ciphertext decrypted.
Image preparation done.
Swapping the firmware images
= [FWIMG] Swap process failure!
= Installation procedure cannot be finalized!
= [FWIMG] FW installation failed!
= [SBOOT] STATE: HANDLE CRITICAL FAILURE
= [EXCPT] NOT POSSIBLE TO SWAP IMAGES!
= [SBOOT] STATE: REBOOT STATE MACHINE
========= End of Execution ==========
In function : SwapFirmwareImages(ActiveSlot, DwlSlot, pTestHeader)
Both read and write slots are same these condition code was failed.
if (index_dwl_slot_read >= index_dwl_slot_write)
{
return SFU_ERROR;
}
Please give me the guidance for fix this issue.
Thanks,
