This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
你是收到总线忙的报错了吗?I2C_BUS_BUSY_ERROR
如果是的话可以重新初始化 I2C。也可以考虑使用 NACK,发送停止条件(设置 I2CMDR.STP),清除 NACK 标志(写入 1 以清除 I2CSTR.NACK),等待停止条件发送,然后重试传输。