yunkya2 opened a new pull request #4786:
URL: https://github.com/apache/incubator-nuttx/pull/4786


   ## Summary
   Support I2C bus reset for RP2040 to recover from bus stuck conditions.
   (Related discussion: https://github.com/apache/incubator-nuttx/issues/4746)
   
   ## Impact
   RP2040 only (CONFIG_I2C_RESET=y)
   
   ## Testing
   1. Set the following configs to enable the feature:
   ```
   CONFIG_I2C_RESET=y
   CONFIG_RP2040_I2C0=y
   CONFIG_RP2040_I2C0_GPIO=4
   CONFIG_RP2040_I2C=y
   CONFIG_RP2040_I2C_DRIVER=y
   CONFIG_SYSTEM_I2CTOOL=y
   ```
   2. Boot kernel with connecting some I2C device to the bus.
   3. Execute `i2c dev 00 7f` to confirm that the I2C device responds.
   4. Execute `i2c reset`  (Observe I2C bus with the logic analyzer to confirm 
the recovery sequence.)
   5. Execute `i2c dev 00 7f` again to confirm the device is still alive.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to