Error time out in i2c_master_cmd_begin()

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Error time out in i2c_master_cmd_begin()

Postby PeterR » Thu Dec 05, 2019 7:41 pm

I use the I2C controller to access GPIO extender and LED controller.
It is not entirely clear how the time out in i2c_master_cmd_begin() is intended to work.
On entry a semaphore is taken granting ownership of the bus.
It looks as if the time out is also used to detect completion.

The problem is that on one of my boards I was missing the GPIO extender. The i2c_master_cmd_begin() calls then ran to the full time out.
Why does the I2C wait for full time out when there is no device and/or bus error?
& I also believe that IDF CAN should be fixed.

Who is online

Users browsing this forum: No registered users and 152 guests