hamuro80 / blackstomp

ESP32-A1S Digital Audio Effect Processor
66 stars 10 forks source link

codec ES8388 dont work #4

Open dakota72 opened 2 years ago

dakota72 commented 2 years ago

Hi, I have a new board (ver 2.3) with new codec when I setDeviceType(DT_ESP32_A1S_ES8388); the board going to exception :

Core 1 register dump: PC : 0x400d1d7f PS : 0x00060530 A0 : 0x800d13a4 A1 : 0x3ffc4be0
A2 : 0x00000000 A3 : 0x3f400133 A4 : 0x00001000 A5 : 0x3ffc12d8
A6 : 0x00000009 A7 : 0x00000000 A8 : 0x3ffc13d4 A9 : 0x3ffc4bc0
A10 : 0x00000000 A11 : 0x00000000 A12 : 0x00000009 A13 : 0x0000ff00
A14 : 0x00ff0000 A15 : 0xff000000 SAR : 0x00000011 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x40088c7d LEND : 0x40088c8d LCOUNT : 0xfffffffd

ELF file SHA256: 0000000000000000

Backtrace: 0x400d1d7f:0x3ffc4be0 0x400d13a1:0x3ffc4c00 0x400d1c7a:0x3ffc4c20 0x400d13fa:0x3ffc4c50 0x400d4f06:0x3ffc4c70 0x4008a5d1:0x3ffc4c90

Rebooting...

do you know why?

hamuro80 commented 2 years ago

Is the error gone when you set the device to AC101?

dakota72 commented 2 years ago

no , with the codec AC101 works.

hamuro80 commented 2 years ago

It is possible that you have the third version of the module, I read about it at discussion here: https://github.com/marcel-licence/esp32_midi_sampler/discussions/50 . It uses es8388 codec but wire the i2c at pin 33,32 instead of 18,22, and the i2s bclk pin at 27 rather than 5.

So you can try to edit the blackstomp.cpp at line 84,89, and 90

//ESP32-A1S-ES8388 PIN SETUP line 84: #define I2S_BCK_IO_ES (GPIO_NUM_5) change to: #define I2S_BCK_IO_ES (GPIO_NUM_27)

line 89: #define ES8388_SDA (GPIO_NUM_18) change to: #define ES8388_SDA (GPIO_NUM_33)

line 90: #define ES8388_SCK (GPIO_NUM_23) change to: #define ES8388_SCK (GPIO_NUM_32)

Try that and let us know here the result!