cancel
Showing results for 
Search instead for 
Did you mean: 

I am using stvd and stvp for the development of code . I used m24128 eeprom for extra storage. I searched everywhere for m24128 sample code for configuring with stm8l. Will you share the m24128 driver code.

Cdtm.1
Associate

EEPROM M24128

STM8L052C6

6 REPLIES 6
S.Ma
Principal

This is extract of 6 years old code...

Because this forum can't add multiple files, here is the eeprom.c

S.Ma
Principal

eeprom.h

S.Ma
Principal

I2C with GPIO C file

S.Ma
Principal

H file

S.Ma
Principal

That was working on STM8L151 and some STM32-F103/L152

Other info:

#define I2C_DELAY 4 //2

#define GPIO_I2C_SCL   GPIOB,GPIO_Pin_5

#define GPIO_I2C_SDA   GPIOB,GPIO_Pin_6

That's all I've got until someone provides something better...

Cdtm.1
Associate

Thank for your sincere reply.

I seen there you included the "upgrade.h" in this program. Do you have the file . If you have this please share the file.

I really appreciate you for replaying the question. =)