AT+DRVI2CINIT returns sometimes ERROR

JanHuij
Posts: 1
Joined: Tue Mar 10, 2026 10:40 am

AT+DRVI2CINIT returns sometimes ERROR

Postby JanHuij » Tue Mar 10, 2026 12:27 pm

Hi!

I'm stuck with an unexpected "ERROR" response to the AT+DRVI2CINIT command. It usually works, but very occasionally it doesn't, and no further information is available in the response...

Info
Stack : ESP-AT
Device : ESP32-WROOM-32UE
ESP-AT release : v4.1.1.0

My current flow is as follows (terminal comms):

Code: Select all

(ESP32 power on)
<<< ready
>>> ATE0
<<< OK
>>> AT+CWAUTOCONN=0
<<< OK
>>> AT+SYSLOG=1
<<< OK
>>> AT+SYSSTORE=1
<<< OK
>>> AT+DRVI2CINIT=0,14,13,100000
<<< OK (most of the time)
or
<<< ERROR (sometimes)
In ideal situation, I always get "OK" back on the "AT+DRVI2CINIT" command. However, sometimes, I get an "ERROR" and I don't know why...

When I retry the "AT+DRVI2CINIT" command a few times (interval 25ms), it sometimes suddenly works (after 2/3/5/7 times...). I limited to 10 times because I can't wait forever.

I tried to find out what this "ERROR" means, but the ESP-AT FAQ mentions: "The pre-compiled core libraries are closed-source, and there is no plan for open-sourcing them."

Anyone any idea what this "ERROR" means or what the source problem is? How can I resolve it?

Thanks in advance for any help and info!

esp-at
Espressif staff
Espressif staff
Posts: 335
Joined: Mon May 09, 2022 3:00 am

Re: AT+DRVI2CINIT returns sometimes ERROR

Postby esp-at » Fri Mar 27, 2026 4:03 am

Could you please follow this guide:
https://docs.espressif.com/projects/esp ... _logs.html

Enable AT Interface Function Debugging to see what happened.

Who is online

Users browsing this forum: No registered users and 1 guest