When running the demo of i2S ES8311, it crashes

houyawei
Posts: 15
Joined: Fri Sep 17, 2021 5:26 am

When running the demo of i2S ES8311, it crashes

Postby houyawei » Wed Feb 05, 2025 1:44 am

There is a problem with es8311_init()
es8311_write_reg() i2c reports all errors, I2C read/write error
However, running the demo i2c tool can read and write ES8311 registers normally, and the read address is 0x18U.
May I ask where to judge the problem.
I have tried ESP IDF5.3.2 and ESP IDF5.1.4, both of which have the same issue.

houyawei
Posts: 15
Joined: Fri Sep 17, 2021 5:26 am

Re: When running the demo of i2S ES8311, it crashes

Postby houyawei » Wed Feb 05, 2025 4:13 am

http://esp32.com/viewtopic.php?f=13&t=4 ... 65#p143865

Code: Select all

i2s es8311 codec example start
-----------------------------
I (363) i2s_es8311: i2s driver init success
E (1363) ES8311: es8311_init(329): I2C read/write error
ESP_ERROR_CHECK failed: esp_err_t 0x107 (ESP_ERR_TIMEOUT) at 0x42007890
--- 0x42007890: es8311_codec_init at E:/ESPproject/i2s_es8311/main/i2s_es8311_example.c:61 (discriminator 1)

file: "./main/i2s_es8311_example.c" line 61

houyawei
Posts: 15
Joined: Fri Sep 17, 2021 5:26 am

Re: When running the demo of i2S ES8311, it crashes

Postby houyawei » Wed Feb 05, 2025 6:38 am

Code: Select all

i2c-tools> i2cdetect
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- 18 -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
i2c-tools> i2cset -c 0x18 -r 0x00 0x1A
I (538875) cmd_i2ctools: Write OK
i2c-tools>  i2cget -c 0x18 -r 0x00 -l 1
0x1a 
i2c-tools> i2cset -c 0x18 -r 0x00 0x2B
I (570835) cmd_i2ctools: Write OK
i2c-tools>  i2cget -c 0x18 -r 0x00 -l 1
0x2b 

Who is online

Users browsing this forum: Google [Bot], rdkulkarni, rili121380 and 63 guests