SFI without TrustZone on STM32U5 is possible?
I need to perform SFI on an STM32U599 MCU, so following the wiki article "SFI Step-by-step on STM32 boards" I prepared the firmware and programmed the HSM V2 smartcard.
I'm sending the command
STM32_Programmer_CLI -vb 1 -c port=SWD mode=HOTPLUG -sfi xxx.sfi hsm=1 slot=1
Command execution seems ok, but the final message:
Reconnecting...
Reconnected !
Error: Database: There's no active configuration for this device. All the 8 configurations are disabled!
What's the problem? Most of all, I found that now the TrustZone of the CPU is enabled, while it was not set in the option bytes file used to prepare the SFI.
Other option bytes differnet from the settings in my option bytes file are nSWBOOT0 and nBOOT0
As a note: if I use the GUI to program the SFI I have to specify an RSSe file, while using the CLI seems like this file is not required. Im sure I'm missing some information... TrustZone has to be set to perform SFI on the STM32U5?
