2022-05-27 12:29 AM
======================================================================
= (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,
2022-05-27 06:21 AM
Hi @AFaya.1 ,
the code comment should explain this - the download slot is not large enough to handle this as partial image. Maybe you did not intend to handle the upload as partial image - then the whole slot (7x128k by default) can be used.
See the partial image chapter in the user manual for more info.
BR,
J
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.