i2c_master_cmd_begin ESP_ERR_TIMEOUT error after deep sleep

kurtzweber
Posts: 64
Joined: Tue Jan 10, 2017 1:09 pm

i2c_master_cmd_begin ESP_ERR_TIMEOUT error after deep sleep

Postby kurtzweber » Sat Nov 11, 2017 5:57 pm

Hello!

I'm working on a project using an OLED display connected to the esp32 chip via i2c; I'm using the u8g2 library as explained here:
http://www.lucadentella.it/en/2017/10/3 ... -con-u8g2/

everything works fine after a reset, but when my program wakes up from deep sleep (I'm using the RTC timer to wake the chip up every 30 seconds), I get the following error:

Code: Select all

rst:0x5 (DEEPSLEEP_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:3392
ho 0 tail 12 room 4
load:0x40078000,len:0
load:0x40078000,len:12596
entry 0x40078cdc
Boot count: 2
Wakeup reason: TIMER
E (2713) err: esp_err_t = 263
assertion "0 && "i2c_master_cmd_begin(I2C_MASTER_NUM, cmd, 1000 / portTICK_RATE_MS)"" failed: file "C:/msys32/home/kw/deep_sleep/main/u8g2_esp32_hal.c", line 173, function: u8g2_esp32_msg_i2c_cb
abort() was called at PC 0x400d2623 on core 0
0x400d2623: __assert_func at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdlib/../../../.././newlib/libc/stdlib/assert.c:63 (discriminator 8)

Backtrace: 0x4008806c:0x3ffb46f0 0x4008816b:0x3ffb4710 0x400d2623:0x3ffb4730 0x400d24fe:0x3ffb4760 0x400e6542:0x3ffb47a0 0x400e0abf:0x3ffb47c0 0x400e0a69:0x3ffb47f0 0x400e09f9:0x3ffb4810 0x400e0bf1:0x3ffb4840 0x400e6369:0x3ffb4860 0x400d2238:0x3ffb4880 0x400d0aca:0x3ffb4990
Do I need to perform something different if I'm trying to use the I2C controller after a deep sleep?
Thanks!

chiper
Posts: 3
Joined: Wed Aug 02, 2017 8:20 am

Re: i2c_master_cmd_begin ESP_ERR_TIMEOUT error after deep sleep

Postby chiper » Mon Jan 15, 2018 10:10 am

Hi,

I have the same problem with i2c. I use i2c to communicate with ADC. After wake up in initialization i see Timeout error. In esp-idf 2.1.1 everything worked. Do you have any information about this issue ?

Who is online

Users browsing this forum: No registered users and 390 guests