Skip to main content
SMj.1
Associate II
Aug 9, 2025 4:31 AM UTC
Question

Use STM32H750 Internal Flash

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.

4 replies

Andrew Neil
Super User
Aug 9, 2025 8:34 AM UTC

@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?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
MM..1
Super User
Aug 9, 2025 9:02 AM UTC

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...

Andrew Neil
Super User
Aug 9, 2025 9:29 AM UTC

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 ...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
MM..1
Super User
Aug 9, 2025 10:47 AM UTC

FYI H750 is one sector model.