I2C Custom Driver - ESP32-S3
Posted: Sat Dec 27, 2025 8:07 pm
I am attempting to make a custom driver for the i2c peripheral on the ESP32-S3. I am using the technical document as a guide: https://documentation.espressif.com/esp ... ual_en.pdf
I went through the GPIO and I2C chapters and set the config registers accordingly, and the SCL line is constantly high (I can see the SDA line changing when I set the command registers).
I have made sure to set the SYSTEM_PERIPHERAL_CLK_EN register and reset the SYSTEM_PERIPHERAL_RST_EN registers to be able to modify the internal registers for the i2c peripheral.
I am using pin 7 for the SCL line and pin 8 for the SDA line.
The board is connected to an MPU-6050, which already has pull-up resistors.
Is there anything else I need to configure for the SCL line to be active?
I went through the GPIO and I2C chapters and set the config registers accordingly, and the SCL line is constantly high (I can see the SDA line changing when I set the command registers).
I have made sure to set the SYSTEM_PERIPHERAL_CLK_EN register and reset the SYSTEM_PERIPHERAL_RST_EN registers to be able to modify the internal registers for the i2c peripheral.
I am using pin 7 for the SCL line and pin 8 for the SDA line.
The board is connected to an MPU-6050, which already has pull-up resistors.
Is there anything else I need to configure for the SCL line to be active?