Skip to content

ESP32-S3 i2c read returns error -1.  #7331

Description

@Ugobyte

Board

ESP32-S3 DevKitC-1

Device Description

ESP32-S3 Dev-Kit C attached to my Windows 10 PC

Hardware Configuration

MPU6050 IMU Chip is connected to ESP32-S3 (SDA = GPIO 8, SCL = GPIO 9)

Version

latest master (checkout manually)

IDE Name

VSCode with Platform.IO

Operating System

Windows 10

Flash frequency

40MHz (No idea, i never changed it)

PSRAM enabled

no

Upload speed

460800

Description

I have a project that reads an IMU using i2c. This project is written with VS Code and Platform.IO plug-in with Arduino framework.
I can compile, upload and run my project and everything works beautifully with ESP32.

Unfortunately, the ESP32 does not support USB HID, so I decided to move up to the ESP32-S3.
I updated my platform.ini for the ESP32-S3. After compiling and uploading my project into the ESP32-S3,
the ESP32-S3 keeps printing out:

[549186][E][Wire.cpp:513] requestFrom(): i2cRead returned Error -1
[549204][E][Wire.cpp:513] requestFrom(): i2cRead returned Error -1
[549216][E][Wire.cpp:513] requestFrom(): i2cRead returned Error -1
[549231][E][Wire.cpp:513] requestFrom(): i2cRead returned Error -1
[549246][E][Wire.cpp:513] requestFrom(): i2cRead returned Error -1

My connection is: SDA = GPIO 8, SCL = GPIO 9.
Has anyone been able to migrate their VS Code with Platform.IO from ESP32 to ESP32-S3?
What am i missing?

Sketch

Calling  wire.requestFrom() causes error.

Debug Message

[549186][E][Wire.cpp:513] requestFrom(): i2cRead returned Error -1
[549204][E][Wire.cpp:513] requestFrom(): i2cRead returned Error -1
[549216][E][Wire.cpp:513] requestFrom(): i2cRead returned Error -1
[549231][E][Wire.cpp:513] requestFrom(): i2cRead returned Error -1
[549246][E][Wire.cpp:513] requestFrom(): i2cRead returned Error -1


### Other Steps to Reproduce

_No response_

### I have checked existing issues, online documentation and the Troubleshooting Guide

- [X] I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions