This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

twi_master_with_twis_slave - incorrect EEPROM data

Greetings, I am interfacing AT24C01A(EEPROM) with nRF52 ,SDK11,PCA10040.

For writing to the EEPROM and reading data fromn EEPROM, I am using the following code,

I have attached images of read function and write function.Kindly have a look. image description image description

I am not able to write and read data to and from EEPROM device.

Thanks

Parents
  • you need to also remove "case x" - it uses simulated eeprom. And you also have to remove:

       if(eeprom_simulator_error_check())
        {
            printf(
                    "WARNING: EEPROM transmission error detected.\n"
                    "Use 'x' command to read error word.\n\r"
            );
            UNUSED_VARIABLE(fflush(stdout));
        }
    
Reply
  • you need to also remove "case x" - it uses simulated eeprom. And you also have to remove:

       if(eeprom_simulator_error_check())
        {
            printf(
                    "WARNING: EEPROM transmission error detected.\n"
                    "Use 'x' command to read error word.\n\r"
            );
            UNUSED_VARIABLE(fflush(stdout));
        }
    
Children
No Data
Related