cancel
Showing results for 
Search instead for 
Did you mean: 

STM32_Programmer_CLI to program the PKH into the OTP

AVazquez
Associate III

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

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.

View solution in original post

2 REPLIES 2
Olivier GALLIEN
ST Employee

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
Associate III

Hi @Community member​ 

That's all I needed to know.

Thank you very much!

Best regards

Alex