Hello.
i2c does not work. If there is no slave device in the circuit, then there are normal signals on SDA and SCL. But if you connect any slave device, then there are the same signals on the buses, as if they are shorted. Slave devices are 100% working, tested on another microcontroller.
#define I2C_PIN_GROUP I2C_GPIO_GROUP_C2C3
#define I2C_CLOCK 200000//200K
drv_i2c_gpio_set(I2C_PIN_GROUP);
drv_i2c_master_init(I2C_CLOCK);
/* BME280_I2CADDR - 0x76, reg - 0xD0 */
drv_i2c_read_series(BME280_I2CADDR << 1, reg, 1, readBuffer, 1);
Without slave device.
With slave device
|