2020-09-18 01:31 AM
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!
Solved! Go to Solution.
2020-09-21 08:00 AM
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
2020-09-21 08:00 AM
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
2020-09-21 11:06 PM
Hi @Community member
That's all I needed to know.
Thank you very much!
Best regards
Alex