Skip to main content
Graduate
November 28, 2024
Question

STM32F070CBT6 Emulate Eeprom Issue

  • November 28, 2024
  • 2 replies
  • 648 views

When using this microcontroller for emulate eeprom process, i got some problems like freezing at start-up, when writing OLED, sprintf function can not write characters- writes silly words. I am not sure if the problem is about my emualte_eeprom process or something like that? In addition to this, can anybody lead me to how correctly use emulate_eeprom with above STM32 microcontroller? A sample code will be the best. Thank all for your helps.

    This topic has been closed for replies.

    2 replies

    ST Employee
    November 28, 2024

    Hello @tensaisakuragi06 ,

    Please refer to the following EEPROM Emulation example on GitHub for the STM32CubeF0:

    STM32CubeF0/Projects/STM32F091RC-Nucleo/Applications/EEPROM/EEPROM_Emulation at master · STMicroelectronics/STM32CubeF0 · GitHub

    Additionally, you can consult the application note AN4061 for further details regarding this application, which can assist you with your project:

    AN4061 - EEPROM Emulation in STM32F0xx Microcontrollers - STMicroelectronics

     

    BR

    Super User
    November 28, 2024

    You're going to need to a lot more information - see the Posting Tips:

    https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

     


    @tensaisakuragi06 wrote:

     I am not sure if the problem is about my emualte_eeprom process or something like that?.


    So separate the two:

    • Does your EEPROM emulation work correctly - without the OLED ?
    • Does your OLED work correctly - without the EEPROM emulation ?

    What testing/investigation/debuggging have you done to find what's going wrong.

     


    @tensaisakuragi06 wrote:

    can anybody lead me to how correctly use emulate_eeprom with above STM32 microcontroller? .


    What "emulate_eeprom" are you using?

    See the links @MOBEJ provided. That code is also available as STSW-STM32117:

    https://www.st.com/en/embedded-software/stsw-stm32117.html