Skip to main content
Visitor II
April 12, 2022
Solved

stm32mp one time programming feature

  • April 12, 2022
  • 1 reply
  • 1040 views

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​ 

    This topic has been closed for replies.
    Best answer by PatrickF

    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'

    1 reply

    WLeun.3Author
    Visitor II
    April 12, 2022

    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.

    PatrickFAnswer
    Technical Moderator
    April 12, 2022

    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'