is writing ready flash this involved?

I was reading up on the flash eeprom and best I can tell for the stm32f chips this is needed.
micromouseusa.com/

Has Keil mdk5 not provided a simple function?

Parents
  • So, if you have a chip without it, you're either going to have to add it externally or emulate it in Flash.

    Or is battery backup an option for you?

    ST have an App Note on emulating EEPROM in STM32 Flash - but note that their supplied linker script is fundamentally flawed (it doesn't tell the linker that some flash is being used for the EEPROM emulation).

    Yes, it gets complicated because of wear-levelling and coping with erasing & re-writing the data in Flash.

    Other manufacturers have similar App Notes - you might also be able to get ideas from them...

Reply
  • So, if you have a chip without it, you're either going to have to add it externally or emulate it in Flash.

    Or is battery backup an option for you?

    ST have an App Note on emulating EEPROM in STM32 Flash - but note that their supplied linker script is fundamentally flawed (it doesn't tell the linker that some flash is being used for the EEPROM emulation).

    Yes, it gets complicated because of wear-levelling and coping with erasing & re-writing the data in Flash.

    Other manufacturers have similar App Notes - you might also be able to get ideas from them...

Children
More questions in this forum