Page 1 of 1

i2c_master_cmd_begin() fails

Posted: Wed Apr 08, 2020 3:57 pm
by egoncalves
Hi

I am using the ESP32 function i2c_master_cmd_begin() as:

err = i2c_master_cmd_begin(I2C_NUM_0, cmd, 1000 / portTICK_RATE_MS);

and every now and then this function returns -1 (which is an error).

Would there be a reason for this to happen?

thanks,

Re: i2c_master_cmd_begin() fails

Posted: Thu Apr 09, 2020 5:12 am
by ESP_Sprite
From what I can read, this indicates an 'ACK error'. I think this means the slave did not acknowledge the I2C request, but I'm not entirely sure.