cancel
Showing results for 
Search instead for 
Did you mean: 

Use STM32H750 Internal Flash

SMj.1
Associate II

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

4 REPLIES 4
Andrew Neil
Super User

@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
Chief III

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

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.

FYI H750 is one sector model.