Skip to content

ESP32_C6_THREAD thrown an ArgumentException at I2cDevice for busId = 2 #1534

Open
@romankiss

Description

@romankiss

Target name(s)

ESP32_C6_THREAD

Firmware version

all versions

Was working before? On which version?

none

Device capabilities

No response

Description

There is an issue at creating the I2cDevice for busId = 2. It looks like there is missing a driver for LP I2C controller.

The following exception is thrown:

++++ Exception System.ArgumentException - 0xfd000000 (1) ++++
++++ Message:
++++ System.Device.I2c.I2cDevice::NativeInit [IP: 0000] ++++
++++ System.Device.I2c.I2cDevice::.ctor [IP: 001c] ++++
Exception thrown: 'System.ArgumentException' in System.Device.I2c.dll

How to reproduce

Configuration.SetPinFunction(14, DeviceFunction.I2C2_DATA);
Configuration.SetPinFunction(15, DeviceFunction.I2C2_CLOCK);
I2cDevice i2c_sht = new(new I2cConnectionSettings(2, Sht4X.I2cDefaultAddress)); // <= thrown exception

Expected behaviour

No response

Screenshots

No response

Aditional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions