Skip to main content
Visitor II
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.

  • August 4, 2020
  • 6 replies
  • 2644 views

EEPROM M24128

STM8L052C6

    This topic has been closed for replies.

    6 replies

    Visitor II
    August 5, 2020

    This is extract of 6 years old code...

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

    Visitor II
    August 5, 2020

    eeprom.h

    Visitor II
    August 5, 2020

    I2C with GPIO C file

    Visitor II
    August 5, 2020

    H file

    Visitor II
    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.1Author
    Visitor II
    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. =)