Skip to main content
Associate III
July 10, 2025
Solved

What is the correct way to generate RMA LOCK PASSWORD for STM32MP2?

  • July 10, 2025
  • 1 reply
  • 393 views

I read the AN5510 at section 5.1 RMA Pasword(s). I am working on STM32MP257F so the RMA pasword is 128-bit as describe in the table 5.

ThinhNguyen_0-1751877083821.png

The AN5510 also mentions that "The RMA password(s) are chosen by OEM". I understand that I need to generate a 128 bit binary file as RMA Password. So I use the following Command to generate RMA Password.

STM32_KeyGen_CLI -rand 16 stm32mp_rma_password.bin

Is this the correct way to generate RMA Password?

 

Best answer by ThomasB

Hello @ThinhNguyen,

Sorry for the late reply, that is indeed a correct way to generate RMA password.

You can also used other tools such as OpenSSL or Python but then you need to be cautious about the formatting when writing to the OTP. You could check the different format in https://wiki.st.com/stm32mpu/wiki/STM32MP23-25_OTP_mapping, particularly section “2.1 Key storage in OTP.”

 

Best regards,

Thomas

1 reply

ThomasBBest answer
Technical Moderator
August 8, 2025

Hello @ThinhNguyen,

Sorry for the late reply, that is indeed a correct way to generate RMA password.

You can also used other tools such as OpenSSL or Python but then you need to be cautious about the formatting when writing to the OTP. You could check the different format in https://wiki.st.com/stm32mpu/wiki/STM32MP23-25_OTP_mapping, particularly section “2.1 Key storage in OTP.”

 

Best regards,

Thomas

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.