2025-07-16 5:53 AM - edited 2025-07-16 5:53 AM
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.
2025-07-16 6:19 AM
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?
2025-07-16 6:35 AM
> 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 :
Write times depend on temperature and wear, so you might need to implement the "acknowledge polling" the datasheet suggests.
2025-07-16 6:43 AM
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?