Skip to content

I2C write failed #1597

@stc1988

Description

@stc1988

Build environment: macOS
Moddable SDK version: 8.0.0
Target device: M5StackCoreS3, M5atom matrix

Steps to Reproduce

  1. Connect an I2C sensor, such as an SHT3x or PAJ7620U2, to the Grove port.
  2. Build and install the example app using this build command: mcconfig -d -m ...
  3. See error

/Users/satoshi/Projects/moddable/modules/io/i2c/esp32/_i2c.c (282) # Break: Error: write failed (in write)!

Other information

Here is the log with instrumented build.

E (417) i2c.common: I2C bus id(0) has already been acquired
E (417) i2c.common: acquire bus failed
E (417) i2c.master: i2c_new_master_bus(1050): I2C bus acquire failed
E (421) i2c.common: i2c_release_bus_handle(250): Bus not freed entirely
XS abort: unhandled exception activate failed

I haven’t tested this on every device, but it does not occur on M5Stack devices and does occur on other devices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions