-
-
Notifications
You must be signed in to change notification settings - Fork 22
Audio kit keeps rebooting #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
AudioKitEs8388V1 must be wrong for your board and it does not have sda=33 scl=32 ! |
aha thanks !
|
That's a feature of your board: The same pins are used for different things, which leads to conflicts... class PinsAudioKitEs8388v2Class : public DriverPins {
public:
PinsAudioKitEs8388v2Class() {
// sd pins
addSPI(ESP32PinsSD);
// add i2c codec pins: scl, sda, port, frequency
addI2C(PinFunction::CODEC, 23, 18);
// add i2s pins: mclk, bck, ws,data_out, data_in ,(port)
addI2S(PinFunction::CODEC, 0, 5, 25, 26, 35);
// add other pins
addPin(PinFunction::KEY, 36, PinLogic::InputActiveLow, 1);
addPin(PinFunction::KEY, 13, PinLogic::InputActiveLow, 2);
addPin(PinFunction::KEY, 19, PinLogic::InputActiveLow, 3);
addPin(PinFunction::KEY, 23, PinLogic::InputActiveLow, 4);
addPin(PinFunction::KEY, 18, PinLogic::InputActiveLow, 5);
addPin(PinFunction::KEY, 5, PinLogic::InputActiveLow, 6);
addPin(PinFunction::AUXIN_DETECT, 12, PinLogic::InputActiveLow);
addPin(PinFunction::HEADPHONE_DETECT, 39, PinLogic::InputActiveLow);
addPin(PinFunction::PA, 21, PinLogic::Output);
addPin(PinFunction::LED, 22, PinLogic::Output);
}
}; |
ah ok thanks ! |
Apologies for re-opening, but I have more or less the same problem, except the suggestions don't work. My board is ESP32 Audio Kit V2.2 A237 Same code as above, including same platformio.ini Compiles without problems. But my board keeps rebooting: Rebooting... rst:0xc (SW_CPU_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT) assert failed: heap_caps_free heap_caps.c:381 (heap != NULL && "free() target pointer is outside heap areas") Backtrace: 0x40083c1d:0x3ffb1df0 0x4008a4a5:0x3ffb1e10 0x4008f629:0x3ffb1e30 0x40084062:0x3ffb1f60 0x4008f659:0x3ffb1f80 0x400dacf5:0x3ffb1fa0 0x400dae82:0x3ffb1fc0 0x400df3b9:0x3ffb1fe0 0x400d69e3:0x3ffb2000 0x400d6ce0:0x3ffb2020 0x400d7ab6:0x3ffb2070 0x400d7b81:0x3ffb20f0 0x400d7cc9:0x3ffb2170 0x400d7dcb:0x3ffb21a0 0x400e32ce:0x3ffb2290 ELF file SHA256: 5895bb46eb790dde Rebooting... No idea how to attack this.... Thanks in advance, |
This is completely different! |
I have the ESP32 Audio kit V2.2 and I am running this code:
on PlatformIO
with this platformio.ini
Compile and upload work fine, but it keeps rebooting with this message :
What am I doing wrong?
Thanks!
The text was updated successfully, but these errors were encountered: