EasyManua.ls Logo

ST X-CUBE-SBSFU User Manual

ST X-CUBE-SBSFU
94 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Page #1 background imageLoading...
Page #1 background image
February 2020 UM2262 Rev 6 1/94
1
UM2262
User manual
Getting started with the X-CUBE-SBSFU
STM32Cube Expansion Package
Introduction
This user manual describes how to get started with the X-CUBE-SBSFU STM32Cube
Expansion Package.
The X-CUBE-SBSFU Secure Boot and Secure Firmware Update
solution allows the update
of the STM32 microcontroller built-in program with new firmware versions, adding new
features and correcting potential issues. The update process is performed in a secure way
to prevent unauthorized updates and access to confidential on-device data.
The Secure Boot (Root of Trust services) is a
n immutable code, always executed after a
system reset, that checks STM32 static protections, activates STM32 runtime protections
and then verifies the authenticity and integrity of user application code before every
execution in order to ensure that invalid or malicious code cannot be run.
The Secure Firmware Update application receives the
firmware image via a UART interface
with the Ymodem protocol, checks its authenticity, and checks the integrity of the code
before installing it. The firmware update is done on the complete firmware image, or only on
a portion of the firmware image. Examples are provided for single firmware image
configuration in order to maximize firmware image size, and for dual firmware image
configuration in order to ensure safe image installation and enable over-the-air firmware
update capability commonly used in IoT devices. Examples can be configured to use
asymmetric or symmetric cryptographic schemes with or without firmware encryption.
The secure key management services provide cryptog
raphic services to the user
application through the PKCS #11 APIs (KEY ID-based APIs) that are executed inside a
protected and isolated environment. User application keys are stored in the protected and
isolated environment for their secured update: authenticity check, data decryption and data
integrity check.
STSAFE-A100 is a tamper-resistant secure eleme
nt (HW Common Criteria EAL5+ certified)
used to host X509 certificates and keys, and perform verifications that are used for firmware
image authentication during Secure Boot and Secure Firmware Update procedures.
X-CUBE-SBSFU is built on top of STM32Cube software technology
, making the portability
across different STM32 microcontrollers easy. It is provided as reference code to
demonstrate best use of STM32 security protections.
X-CUBE-SBSFU is classified ECCN 5D002.
www.st.com

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the ST X-CUBE-SBSFU and is the answer not in the manual?

ST X-CUBE-SBSFU Specifications

General IconGeneral
BrandST
ModelX-CUBE-SBSFU
CategoryComputer Hardware
LanguageEnglish

Summary

Secure Boot and Firmware Update (SBSFU)

Secure Boot Mechanism

Asserts integrity & authenticity of user app image via cryptographic checks.

Secure Firmware Update Process

Provides secure in-field firmware updates, enabling secure download of new firmware.

Cryptography Operations Overview

Details the cryptographic schemes for firmware decryption and verification.

Key Management Services (KMS)

Protection Measures and Security Strategy

STM32L4/L0 Series Security

Illustrates system, code, & data protection for STM32L4/L0 series.

STM32F4/F7/L1 Series Security

Illustrates system, code, & data protection for STM32F4/F7/L1 series.

STM32G0/G4/H7 Series Security

Illustrates system, code, & data protection for STM32G0/G4/H7 series.

STM32L4 with STSAFE-A100 Security

Illustrates system, code, & data protection for STM32L4 with STSAFE-A100.

Hardware and Software Environment Setup

Step-by-Step Execution Guide

STM32 Board Preparation

Details required option bytes settings for board preparation on NUCLEO-L476RG.

SBSFU Application Execution Flow

Explains SBSFU checking for new firmware downloads and handling them.

User Application Execution Flow

Details how the user app executes after SBSFU processes a new firmware image.

Appendix A: Secure Engine Protected Environment

Appendix B: Dual-Image Handling

Appendix C: Single-Image Handling

Appendix D: Cryptographic Schemes Handling

Cryptographic Schemes in Package

Lists schemes: ECC/AES-CBC, ECC/AES-CTR, ECC/NoEncrypt, AES-GCM.

Asymmetric Verification & Symmetric Encryption

Details ECC verification with AES encryption/decryption schemes.

Symmetric Verification & Encryption

Details scheme using AES-GCM for both verification and encryption.

X509 Certificate-based Asymmetric Scheme

Details scheme using X509 certs for firmware verification without encryption.

Appendix E: Firmware Image Preparation Tool

Appendix F: KMS Details

Appendix G: SBSFU with STM32 and STSAFE-A100

Related product manuals