cancel
Showing results for 
Search instead for 
Did you mean: 

stm32mp one time programming feature

WLeun.3
Associate III

Hi everyone,

I am using stm32mp157f-dk2 with ecosystem 3.1.

I am interested to store the board information of my future product using the OTP feature

After reading the reference manual, ch3 and 4, I have the following doubt

  1. Do I need any extra hardware to program the OTP bit/word? If not, how can I actually program those bit/word?
  2. Is it possible to read the OTP information in linux file system? Mapping them as some virtual files for example.
  3. What extra information do I need to include in the device tree to enable OTP? I assume the default project didn't include that.

Any suggestions are welcome

Regards,

Leung

@Kevin HUBER​ 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @WLeun.3​ 

Maybe this page could help you for (2): https://wiki.st.com/stm32mpu/wiki/NVMEM_overview

Regards,

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

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
WLeun.3
Associate III

OK, I have come across with this article

https://wiki.st.com/stm32mpu/wiki/How_to_update_OTP_with_U-Boot

It solve my problem (1) and (3)

Only problem (2) remain.

Hi @WLeun.3​ 

Maybe this page could help you for (2): https://wiki.st.com/stm32mpu/wiki/NVMEM_overview

Regards,

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

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.