Skip to main content
Cdtm.1
Associate
August 4, 2020
Question

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.

EEPROM M24128

STM8L052C6

This topic has been closed for replies.

6 replies

S.Ma
Principal
August 5, 2020

This is extract of 6 years old code...

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

S.Ma
Principal
August 5, 2020

eeprom.h

S.Ma
Principal
August 5, 2020

I2C with GPIO C file

S.Ma
Principal
August 5, 2020
S.Ma
Principal
August 5, 2020

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
Cdtm.1Author
Associate
August 6, 2020

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. =)