Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

STM32 SFI is a solution for secure manufacturing in production environments that guarantees the authenticity, integrity, and confidentiality of the firmware. It is available on STM32L4, STM32H7, STM32L5, STM32U5, and STM32WL STM32H7 microcontrollers.

Instructions

...

  • Preparation of files and Hardware Secure Module (HSM) using the source code and the toolkit provided by STMicroelectronics. Two elements are necessary to perform an SFI sequence using Elprotronic GangflasherElprotronic’s GangFlasher-ST:

  • Programming of the flash memory and option bytes using Elprotronic Gangflasher Elprotronic’s GangFlasher and the files prepared in the first step.

...

  1. Preparation of the keys (AES128Key.bin and Nonce.bin)

  2. Preparation of Option Bytes Config file (OptionBytesSetting.csv)

  3. Preparation of firmware files (firmware.bin)

  4. Preparation of a an encrypted firmware binary i file (*.sfi) using STM32TrustedPackageCreator (SFI tab) or STM32TrustedPackageCreator_CLI (-sfi option), keys, option bytes confiog config file and input firmware are necessary in this step.

  5. Programming HSM modules with a limited number of licenses using STM32TrustedPackageCreator (HSM tab) or STM32TrustedPackageCreator_CLI (-hsm option), keys (AES128Key.bin and Nonce.bin) are necessery necessary in this step and they must be the same as for firmware encryption.

2. Programming flash memory and option bytes using

...

Elprotronic’s GangFlasher-ST on Windows

  1. Open GangflasherGangFlasher-ST

  2. Check connection with the board or scan “Setup->USB Location“

  3. Check connection with HSM “View->HSM“

  4. Load SFI file(*.sfi) in main window.

  5. Check “SFI Enable” box in SSP/SFI area and add optional log file to save used license from HSM module.

  6. Click “Autoprogram or write“ Button in main window.

  7. View report for target in Reports area.

...