2025-04-01 11:00 PM - edited 2025-04-01 11:23 PM
Hi Team,
I've updated only the UserApp RAM region. I came across a post stating that SBSFU and the application are independent, so I followed that approach. However, after modifying the RAM region and uploading the sbsfu.bin file to the MCU, I get an "No valid FW found in the active slots" debug log and the system enters Local Download mode. When I try to upload from Local Download, I'm encountering a firmware decryption error.
Has anyone faced a similar issue or have suggestions for resolving this?
Regards,
Prakash
Attached the log below: -
= [SBOOT] System Security Check successfully passed. Starting...======================================================================
= (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 Hardware reset!
= [SBOOT] STATE: CHECK NEW FIRMWARE TO DOWNLOAD
= [SBOOT] STATE: CHECK USER FW STATUS
Slot SLOT_ACTIVE_1 not empty : erasing ...
No valid FW found in the active slots nor new FW to be installed
Waiting for the local download to start...
= [SBOOT] STATE: DOWNLOAD NEW USER FIRMWARE
File> Transfer> YMODEM> Send .
= [SBOOT] STATE: REBOOT STATE MACHINE
========= End of Execution ==========
= [SBOOT] System Security Check successfully passed. Starting...
======================================================================
= (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!
= [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
Fw decryption error
= [SBOOT] STATE: HANDLE CRITICAL FAILURE
= [SBOOT] STATE: REBOOT STATE MACHINE
2025-04-02 9:02 PM - edited 2025-04-02 11:45 PM
Hi Team,
I resolved the issue by changing the compiler optimization to -none, and it started working as expected. However, I'm facing one more issue: the application launches when SFU_MPU_PROTECT_ENABLE is disabled. Otherwise, the bootloader keeps launching every 5 seconds as the watchdog timer resets.
Could you guide me on this issue? This happened after I changed the User Application RAM region to 512KB.
Regards,
Prakash
I have attached screenshot of the user App linkerfile I have changed