Skip to main content
Visitor II
August 9, 2025
Question

Use STM32H750 Internal Flash

  • August 9, 2025
  • 2 replies
  • 330 views

I'm using STM32H750
Is it possible to read and write like EEPROM in a specific part of the program (the last part of the internal flash area?)?
I think it's impossible because there's only one sector
If possible, I would appreciate it if you could give me an example

    This topic has been closed for replies.

    2 replies

    Super User
    August 9, 2025

    @SMj.1 wrote:

    Is it possible to read and write like EEPROM example


    No - not exactly.

    The biggest difference between Flash and what's commonly called "EEPROM"[1] is that Flash can only be erased a page at a time; that's general - not specific to STM32.

    In STM32s, there's also often a limitation that you can't write just a single byte.

    But, of course, there are software workarounds to give something which looks like "EEPROM" - ie, to emulate EEPROM.

    See:

    EEPROM in STM32H7 series

    EEPROM emulation on STM32H7

    and more ...

     

    [1] Literally, EEPROM stands for Electrically-Erasable and Programmable Read-Only Memory so, on that basis, Flash is EEPROM.

    But I take it that you're talking about "EEPROM" in the sense of non-volatile memory where you can read & write individual bytes at will?

    Graduate II
    August 9, 2025

    Simply no, but too with one sector you can do it, with good power reserve control safe.

    Simply on point you fill and require erase , place code to ram and copy of boot to ram erase and write boot back...

    Super User
    August 9, 2025

    The ST implementation uses (at least) two sectors - so you won't lose everything if power dies during erasing one of them.

    Using multiple sectors also helps with wear-levelling ...

    Graduate II
    August 9, 2025

    FYI H750 is one sector model.