cancel
Showing results for 
Search instead for 
Did you mean: 

AT24CM02-SSHD I2C ERROR

Seyoung
Associate

I use STM32F767NIH6.
I save data to AT24CM02-SSHD with I2C.
However, I divide it into several areas and save the necessary data.
For example, I save data such as setting values, measurement values, etc. separately.

However, when saving data in some areas, it is not saved properly, and an ERROR occurs in the code and it is passed to Serial communication.

I need help to solve this problem.

3 REPLIES 3
TDK
Super User

You might need to debug this one more. Haven't really told us much other than it's not working.

> However, when saving data in some areas, it is not saved properly, and an ERROR occurs in the code and it is passed to Serial communication.

What error occurs, and where? Is it repeatable? Have you done any debugging to see what may be going wrong?

If you feel a post has answered your question, please click "Accept as Solution".
Ozone
Principal

> However, when saving data in some areas, it is not saved properly, and an ERROR occurs in the code and it is passed to Serial communication.

What error occurs exactly ?

And why do you think data are not saved properly ?

Perhaps you missed this part of the datasheet :

Ozone_0-1752672806735.png

Write times depend on temperature and wear, so you might need to implement the "acknowledge polling" the datasheet suggests.

 

Andrew Neil
Super User

As the others have said, please give more details - see: How to write your question to maximize your chances to find a solution

 

Have you looked at what's actually happening on the I2C wires - with an oscilloscope and/or analyser?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.