You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In both read and write functions for AT24Cxx, the LSB byte of memory address is sent without checking TXIS flag. I check STM30G1 reference manual, each byte transmission needs to ensure TXIS is set. No idea if other STM32 have small buffer to hold it.
Without the second TXIS flag, check, I tested reading and writing 44 bytes of string using STMG031, both work normally. But I think there is a potential to cause problem.
This happens only in AT24CXX with 16 bit memory address. The RTC uses 8 bit memory address and does not have this issue.
The text was updated successfully, but these errors were encountered:
Sorry for late
reply and thanks for pointing out this. I review the HAL code again and saw there is TXIS check on both MSB and LSB address. TXIS
Probably I cut shortcut and think it was redundant. I also tested this on STM32G030F6 and there is no issue. Anyway, I will adding back.
In both read and write functions for AT24Cxx, the LSB byte of memory address is sent without checking TXIS flag. I check STM30G1 reference manual, each byte transmission needs to ensure TXIS is set. No idea if other STM32 have small buffer to hold it.
Without the second TXIS flag, check, I tested reading and writing 44 bytes of string using STMG031, both work normally. But I think there is a potential to cause problem.
This happens only in AT24CXX with 16 bit memory address. The RTC uses 8 bit memory address and does not have this issue.
The text was updated successfully, but these errors were encountered: