Can this be converted
Anything can be converted if you have the time.
Can this be converted
Can this be converted
We already have a library for such, and I think there is some older thread commenting on it.
Also there is an example of using it:
Arduino_STM32/STM32F1/libraries/EEPROM/examples/EEPROM_example/EEPROM_example.ino
Word of caution, an eeprom can be written to many hundreds of thousands of times, while flash can be written to only a few thousand times.
Also to write a byte in flash you normally need to erase and rewrite the block. So a write to any byte in the block counts as a write to every byte of the block. If you plan on writing a value once a week and read it many times, you are probably ok, but if you plan on writing often, you may wear out the block of flash.
How many times do you intend to re-write it?
The answer to those two questions will let us know what type of flash or eerom is best suited to your task.
AFIK
EEPROM is just a name given by the Arduino team, for code to allow you to write to the program Flash.
In reality there is only Flash on most MCUs
Thanks for the clarification
Im aware of the rewrite cycles.
For this project its only a few integers I new to write 1-3 times a week. So I think the flash should be okay to use.

