Other Parts Discussed in Thread: SK-AM62B-P1
Tool/software:
I2C communication sometimes fails with MCU+SDK 10.01.33.
There are two symptoms.
① I2C_Open fails.
② An error occurs when transferring continuously.
For ①, the return value is NULL, and isOpen in the handle information passed as an argument remains false.
Since the probability of occurrence changes even when unrelated code is changed, I suspect it depends on the memory layout and timing.
What is causing the failure?
For ②, it occurred when performing two 1 byte reads with a 1 ms cycle.
I2C_STS_ERR or I2C_STS_ERR_TIMEOUT is returned.
Since it is operating at 400 kHz, 1 ms should be enough for communication to end.
Are there any precautions for use?
Best regards.
(c12efc99-2e63-4d04-a337-3737dc82fab4)