AnsweredAssumed Answered

K60 I2C-EEPROM write and read

Question asked by mehdikarimibiuki on May 5, 2014
Latest reply on May 16, 2014 by Pascal Irrle

I have MK60DN512VLL10 that has its I2C1 connected to EEPROM (ST Microelectronics - datasheet pdf) M24256-BWDW6


I removed the pull up on WC signal above.




following the above write sequence in my application I have:



Then based on the read sequence:


My read looks like:


But this returns me 0xff (printf result is 0xff 0x0 0x0 0x0 0x0), that means either I did not write or I cannot read?


As you can see from the above code snippets, my I2C1 is interrupt based:



Can someone tell me what is wrong? And why I cannot write/read EEPROM?