Introduction to lifecycle management on STM32H503 product lines using FlashPro-ARM programmer.
FlashPro-ARM programmer has full support for Debug authentication on STM32H503 product lines
All STM32H503 MCU product states are supported, including provisioning with password management and full regression.
Preparing necessary files
To perform provisioning with password management , the *.bin file with password or password HASH is needed.
Example files are provided in the STM32CubeFW_H5 provided by STM, located in /Projects/NUCLEO-H503RB/ROT_Provisioning/DA/
password.bin - file with password
Board_password.bin -HASH of user password
Also possible is write password in software from keyboard
Supported operations by FlashPro-ARM
1. Lifecycle and provisioning with password management using FlashPro-ARM
Open FlashPro-ARM
Select STM32H503 MCU
Open Setup->Memory Protection dialog
Go to Lifecycle management tab
Check “Set product state enable” checkbox
Set finale product state
Use “DA/PROV” button (this step is optional, however without password management, full regression is not possible after moving to a higher lifecycle state).The password cannot be updated after this step.
Set source of password of hash file
file with password hash(Hash file option)
file with password(Password file option)
type password from keybord(User Password option
After type source password Press “Ok” button in STM32 Debug authentication tab
Press “Ok” button in Memory Protection tab
Check Memory Protection Enable box in the Main GUI
Afterwards use “AUTO PROG” or “Lock Device” buttons in the FlashPro-ARM programmer to put MCU to selected state and perform password management operation.
2. Full Regression
To perform full regression, a *.bin file with a password is needed
Example of password.bin file is provided in the STM32CubeFW_H5 example. File located in/Projects//Projects/NUCLEO-H503RB/ROT_Provisioning/DA/password.bin
To perform full regression:
Open FlashPro-ARM
Select STM32H503 MCU
Open Setup->Memory Protection tab
Go to lifecycle management tab
Use “DA/PROV” button
set of password source
file with password hash(Hash file option)
file with password(Password file option)
to unlock device in this step cannot pick hash option.
Press “Ok” button in Memory Protection tab
Press “Clear Locked Device” button
After operation completes, the MCU is back to “Open” state and flash memory is erase.
3. Discover operation
Discover operation allows the user to read current MCU state and provisioning status.
To perform the discover operation:
Open FlashPro-ARM
Select STM32H503 MCU
Open Setup->Memory Protection tab
Go to lifecycle management tab
Use “Discover” button
In window “Debug Authentication” use “Discover” button to read information from MCU
Device ID- id connected MCU
Life Cycle - current MCU state
Integrity status - provisiong status(in STM32H503xx is always 0xFFFFFFFF)
Useful links
STMicroelectronics application notes and user manuals: