This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

writing and reading from I2c eeprom ?

Dear Members,

Where can I find from software development kit the example for writing and reading from I2C EEPROM ?

Thanks

  • I got :

    [1;37m[1;32muart_cli:~$ [1;37meeprom clear
                                     
    [1;31mcommunication error
                                                        
    [1;37m[1;32muart_cli:~$ [1;37meeprom clear
                                     
    [1;31mcommunication error
                                                        
    [1;37m[1;32muart_cli:~$ [1;37m                                               
                                             

    what do I miss ? I use a real 24C16 chip

  • Is that what you're actually seeing on your terminal?

    You need to remove the escape sequences to make that legible.

    you should start with the TWI Scanner to verify your hardware connections, and Slave Address
  • on TWI scanner, I can not find 0xA0, which is 24C16, what do I miss ?


    nfo> app: TWI scanner started.
                                                   

    nfo> app: TWI device detected at address 0x3C.
                                   

    nfo> app: TWI device detected at address 0x50.
                                   

    nfo> app: TWI device detected at address 0x51.
                                   

    nfo> app: TWI device detected at address 0x52.
                                   

    nfo> app: TWI device detected at address 0x53.
                                   

    nfo> app: TWI device detected at address 0x54.
                                   

    nfo> app: TWI device detected at address 0x55.
                                   

    nfo> app: TWI device detected at address 0x56.
                                   

    nfo> app: TWI device detected at address 0x57.
              

  • do i need pull up resistor on SCL and SDA on 24C16 ? thanks

Related