It is interesting to have some advice on how to make this memory reserve in the library description, to get more reliability in using this library and to avoid unnecessary rework after realizing that the program is using that memory space.
If the program is too big and the space is not enough, the compiler will return an error due to lack of memory, so the programmer can find another solution, perhaps using external memory, or another microcontroller with more memory capacity.
I found this post below, it might be interesting to reserve the memory so that the program is not written over the area where you intend to use EEPROM emulation:
Hello,
It is interesting to have some advice on how to make this memory reserve in the library description, to get more reliability in using this library and to avoid unnecessary rework after realizing that the program is using that memory space.
If the program is too big and the space is not enough, the compiler will return an error due to lack of memory, so the programmer can find another solution, perhaps using external memory, or another microcontroller with more memory capacity.
I found this post below, it might be interesting to reserve the memory so that the program is not written over the area where you intend to use EEPROM emulation:
Maybe like this: (STM32F407VG: 16K reserve at the beginning of memory) (STM32CubeIDE file: STM32F407VGTX_FLASH.ld)
(STM32F407VG: 256K reserve at end of memory) (STM32CubeIDE file: STM32F407VGTX_FLASH.ld)