Skip to main content
AVazquez
Associate III
September 18, 2020
Solved

STM32_Programmer_CLI to program the PKH into the OTP

  • September 18, 2020
  • 2 replies
  • 1097 views

Hi, All.

Program fuses values is a delicate task. I would like to confirm that it is possible to program PKH(Public Key Hash) using STM32_Programmer_CLI.

The PKH is stored in OTP WORD 24 to 31

For example: Set the value 0x9ffd3d2f into the word 24 (0x18) [pkh0]

STM32_Programmer_CLI -c port=usb1 -otp program wordID=0x18 value=0x9ffd3d2f

Is this right?

Is there a specific command to close the device from STM32_Programmer_CLI?

Thanks!

This topic has been closed for replies.
Best answer by Olivier GALLIEN

Hi @AVazquez​ 

First pay attention to the Topic/Community you post your question.

I understand you are working on STM32MP1, thus "STM32 MPUs" is the right topic to use.

Then yes you can write OTP with STM32CubeProgrammer and lock it afterward.

refer to

https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer#How_to_fuse_STM32MP15x_OTP

Your suggested command looks correct, but pay attention to the procedure in order CubeProgrammer connect to U-boot to write OTP.

You can also use U-Boot as per details in this page with dedicated exemple for PKH :

https://wiki.st.com/stm32mpu/wiki/STM32MP15_secure_boot

Hope it help

Olivier

2 replies

Olivier GALLIEN
Olivier GALLIENBest answer
Technical Moderator
September 21, 2020

Hi @AVazquez​ 

First pay attention to the Topic/Community you post your question.

I understand you are working on STM32MP1, thus "STM32 MPUs" is the right topic to use.

Then yes you can write OTP with STM32CubeProgrammer and lock it afterward.

refer to

https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer#How_to_fuse_STM32MP15x_OTP

Your suggested command looks correct, but pay attention to the procedure in order CubeProgrammer connect to U-boot to write OTP.

You can also use U-Boot as per details in this page with dedicated exemple for PKH :

https://wiki.st.com/stm32mpu/wiki/STM32MP15_secure_boot

Hope it help

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
AVazquez
AVazquezAuthor
Associate III
September 22, 2020

Hi @Community member​ 

That's all I needed to know.

Thank you very much!

Best regards

Alex