cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F070CBT6 Emulate Eeprom Issue

tensaisakuragi06
Associate III

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.

2 REPLIES 2
MOBEJ
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

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