Skip to main content
Visitor II
August 30, 2022
Question

HAL_I2C_Master_Transmit and HAL_I2C_Master_Receive fail to work consistently.

  • August 30, 2022
  • 0 replies
  • 608 views

I am using the blocking calls and the master_receive most times does not behave. The master_receive very often fails to ACK data from the slave and continuously holds SDA low. The master sends the slave address with the read bit set, the slave sends ACK and then the bus remains low.

I have gotten the code to run consistently, but if I reboot/reload code, it will fail %80 of the time. I have seen many questions regarding the operation of master_receive, but the issue is stated to be resolved. I am still seeing the master_receive issue.

    This topic has been closed for replies.