About I2C Write Eeprom kl25z128

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About I2C Write Eeprom kl25z128

1,182 Views
陈欣
Contributor III

When I write to Eeprom100 times,every time write 1 byte.

There are about 10 times can not write into,

Why did this happen?

0 Kudos
5 Replies

990 Views
陈欣
Contributor III

Thanks for all answer!

I did not solve the problem,

I use the Flash of MCU to save data.

0 Kudos

990 Views
dureshasanka
Contributor II

I think, you need to add a delay after one write cycle. Because most of the eeprom takes several mS to write data in to the memory.

0 Kudos

990 Views
陈欣
Contributor III

I have add delay ,10MS,20MS,200MS ,2000MS,all try ,but no ok.

0 Kudos

990 Views
dureshasanka
Contributor II

HI,

I do not know whether you have solved the problem.

If you are not,

check, whether you have correctly initialize/configure the delay function of your processor.

Check whether there are any noice are in the communication lines.

Are you using correct speed of I2C of the external EEPROM.

Check the writing protocol with the EEPROM datasheet.

0 Kudos

990 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi,

Would you please share your driver code for EEPROM writing ? I'd like to have a review on it. Thanks for your patience!!

B.R

Kan

0 Kudos