Chào bạn,Tôi đã thiết lập kết nối theo sơ đồ và tôi đã tải mã trong tệp đính kèm nhưng tôi không thể đọc dữ liệu từ EEPROM. Địa chỉ M24C02 của tôi được đặt thành 0xA0.Ai đó có thể giúp tôi xác định vấn đề? Cảm ơn rất nhiều.
I understand your point, and I also realize that ST made an initial transmission step for communication that is different from the requirements of M24C02. Therefore, I stopped using HAL and manually handled the bits that needed to be transmitted and ...
I am now able to read and write data successfully. My program is a bit lengthy, but it is functioning stable. CALIB_EEPROM_WR = 0xA0, CALIB_EEPROM_RD = 0xA1. Thank you very much
I increased the pull-up resistors to 4.6k Ohm on R1 and R2, but it still didn't work due to my code. After reviewing the I2C communication code, I was able to successfully read and write data to the EEPROM. Thank you very much.
Dear Peter,I have already replaced the resistors R1 and R2 with values of 4.6K, but it still doesn't work. I think the issue might be with the software. I am using the "HAL_I2C_Mem_Write" and "HAL_I2C_Mem_Read" functions from the HAL library.My code ...