i2c_master_cmd_begin() fails

egoncalves
Posts: 22
Joined: Thu Jan 23, 2020 9:31 am

i2c_master_cmd_begin() fails

Postby egoncalves » Wed Apr 08, 2020 3:57 pm

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,

ESP_Sprite
Posts: 9051
Joined: Thu Nov 26, 2015 4:08 am

Re: i2c_master_cmd_begin() fails

Postby ESP_Sprite » Thu Apr 09, 2020 5:12 am

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.

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], vpascucci and 275 guests