Skip to main content
Super User
August 4, 2022
Solved

Which tool can program OTP memory of STM32F7?

  • August 4, 2022
  • 2 replies
  • 1265 views

Subj.

Cannot find this in CubeProgrammer v 2.6.0 or ST-Link utility.

The OTP is 1024 bytes at 0x1FF0F000.

    This topic has been closed for replies.
    Best answer by Andreas Bolsch

    Recent versions of OpenOCD do. In target/stm32f7.cfg there is

    "flash bank $_CHIPNAME.otp stm32f2x 0x1ff0f000 0 0 0 $_TARGETNAME".

    2 replies

    Explorer II
    August 4, 2022

    Recent versions of OpenOCD do. In target/stm32f7.cfg there is

    "flash bank $_CHIPNAME.otp stm32f2x 0x1ff0f000 0 0 0 $_TARGETNAME".

    Pavel A.Author
    Super User
    August 4, 2022

    Great, thank you.

    Super User
    August 4, 2022

    I've used the STLink-Utility CLI for this on 'F4.

    STLink Utility (the "visual" one) *can* reprogram OTP on 'F4 too, but it's way too "autonomous" - you can set it to display the OTP area, and then whenever you modify some word it it, it automatically writes with no prompt. It may quite well be that an appropriately addressed hex could be loaded and then programmed, I did not try.

    I don't have time and energy to find out how CubeProgrammer works, with its childish design of randomly scattered controls, but I believe its CLI would work as expected. Maybe.

    JW