pschatzmann / arduino-audiokit

Arduino ADF/Audiokit HAL (support for ESP32-A1S, AI-Thinker, LyraT for ES7148, ES7210, ES7243, ES8311, ES8347, ES8388, TAS5805M, AC101 audio chips)
GNU General Public License v3.0
157 stars 42 forks source link

ESP-IDF version? #44

Closed krieg-geist closed 2 years ago

krieg-geist commented 2 years ago

Hello, I am having trouble getting this working with an AC101 kit (2957)

What version of ESP-IDF would you recommend? The issue seems to arise in esp-idf/components/driver/i2s.c

Output as follows:

Info: bool AudioKit::begin(AudioKitConfig) Info: Selected board: 6 Info: headphone detection is active Debug: audio_hal_init Debug: audio_calloc: 1 * 36 Info: i2c port configured!!!! Error: reset failed! Debug: audio_codec_initialize -> -1 Debug: audio_free Error: codec init failed! Error: audio_hal_init Debug: write: 1024 Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.

Core 1 register dump: PC : 0x400d7524 PS : 0x00060830 A0 : 0x800d19e4 A1 : 0x3ffb2790 A2 : 0x00000000 A3 : 0x3ffc1180 A4 : 0x00000400 A5 : 0x3ffb27fc
A6 : 0xffffffff A7 : 0x3ffc17b0 A8 : 0x00000000 A9 : 0x3ffb2650 A10 : 0x00000015 A11 : 0x3ffb88d4 A12 : 0x3ffb27b0 A13 : 0x3ffb26a0
A14 : 0x00000004 A15 : 0xff000000 SAR : 0x00000004 EXCCAUSE: 0x0000001c EXCVADDR: 0x00000018 LBEG : 0x40086791 LEND : 0x400867a1 LCOUNT : 0xffffffff

Backtrace:0x400d7521:0x3ffb27900x400d19e1:0x3ffb27d0 0x400d3f75:0x3ffb2820

0 0x400d7521:0x3ffb2790 in i2s_write at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/driver/i2s.c:2087 (discriminator 2)

1 0x400d19e1:0x3ffb27d0 in AudioKit::write(void const*, unsigned int, unsigned int) at .pio/libdeps/esp32dev/audiokit/src/AudioKitHAL.h:365

  (inlined by) loop() at src/main.cpp:25

2 0x400d3f75:0x3ffb2820 in loopTask(void*) at C:/Users/catfl/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:50