cancel
Showing results for 
Search instead for 
Did you mean: 

External EEPROM memory I2C 1Mbit with STM32F051

Vitor Schulter
Associate II

Hello,

I am using an STM32F051 with an external EEPROM M24M01 memory of 1Mbit capacity (500 x 256bits)

STMCubeMX has a proprietary library for use with external I2C EEPROM memory, but it is not suitable for the storage memory I am using.

Would someone here have an example code using such a memory? Or what are the modifications I can make in the library for it to work?

Thank you very much.

1 REPLY 1

1Mbit (128KB)

You'd need to pull a data sheet for the EEPROM, and then modify the example code to fit the page and addressing mechanisms of your chosen part.

STM32Cube_FW_F0_V1.9.0\Drivers\BSP\STM32072B_EVAL\stm32072b_eval_eeprom.c

A quick google of "M24M01 STM32" pulled this up, dig a little.

https://github.com/eleciawhite/STM32Cube/tree/master/STM32Cube_FW_F3_V1.3.0/Projects/STM32373C_EVAL/Examples/I2C/I2C_EEPROM

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..