Skip to end of banner
Go to start of banner

Debug Authentication for STM32H503

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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.

image-20240111-102814.png

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 type 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

  • image-20240111-104723.png

    Open Setup->Memory Protection dialog

  • Go to Lifecycle management tab

    • Check “Set product state enable” checkbox

    • Set finale product state

      image-20240111-104810.png
  • 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

image-20240111-105242.png
  • 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.

      image-20240111-105242.png
  • 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)

        image-20240111-110140.png

STMicroelectronics application notes and user manuals:

[1] Debug authentication for STM32H503 product lines

[2] How to start with DA access on STM32H503

  • No labels