Skip to content
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

PSRAM not enough memory! - Wire - Unfinished Repeated Start transaction! Expected requestFrom, not beginTransmission! #11

Closed
quiknick opened this issue Jul 8, 2023 · 3 comments

Comments

@quiknick
Copy link

quiknick commented Jul 8, 2023

Running into an issue where PSRAM is getting all used up and is stuck in a boot loop. see attached log boot log.

Board: ESP32 Audio Kit V2.2 A247

I edited "board_audio_kit_es8388.h" according to what I could figure out from i2c scanner and what I could find:

#define ES8388_CFG_I2C 2
#define ES8388_CFG_I2S 7

#elif ES8388_CFG_I2C==2
#define ES8388_PIN_SDA 33
#define ES8388_PIN_SCL 32

//I added new option 7 for this version ESP32 Audio Kit V2.2 A247
#elif ES8388_CFG_I2S==7
#define ES8388_PIN_DOUT 35 //DATA
#define ES8388_PIN_DIN 26 //DATA_RX
#define ES8388_PIN_LRCK 25 //WS
#define ES8388_PIN_SCLK 27 //BCK
#define ES8388_PIN_MCLK 0 //MCK

With boot debugging I just see a bunch of this:
`[������m�um����2-hal-cpu.c:211] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
[ 842][D][esp32-hal-psram.c:84] psramInit(): PSRAM enabled

Loading data
Firmware started successfully
Connect to ES8388 codec... 0x00: 0x05
[ 1466][E][Wire.cpp:313] beginTransmission(): Unfinished Repeated Start transaction! Expected requestFrom, not beginTransmission! Clearing...
0x01: 0x40
[ 1479][E][Wire.cpp:313] beginTransmission(): Unfinished Repeated Start transaction! Expected requestFrom, not beginTransmission! Clearing...
[ 1483][E][Wire.cpp:313] beginTransmission(): Unfinished Repeated Start transaction! Expected requestFrom, not beginTransmission! Clearing...
[ 1495][E][Wire.cpp:313] beginTransmission(): Unfinished Repeated Start transaction! Expected requestFrom, not beginTransmission! Clearing...
AdcCh1!
MixChAMPL!
[ 1512][E][Wire.cpp:313] beginTransmission(): Unfinished Repeated Start transaction! Expected requestFrom, not beginTransmission! Clearing...
[ 1522][E][Wire.cpp:313] beginTransmission(): Unfinished Repeated Start transaction! Expected requestFrom, not beginTransmission! Clearing...`

PSRAM-Not Enough Memory.txt

@quiknick
Copy link
Author

quiknick commented Jul 8, 2023

Debug log
PSRAM-Not Enough Memory-debug.txt

@marcel-licence
Copy link
Owner

It looks like the error came from the loop module: https://github.com/marcel-licence/esp32_multitrack_looper/blob/main/loop_module.ino

It tries to initialize multiple buffers for the different tracks. Compiling and execution with the old ESP32 board (1.0.6) worked. They changed something that makes the allocation of big memory blocks from PSRAM in some cases impossible.

I think some changes are required to allow running this project using the latest toolchain (ESP32 Arduino board).

You could try to change TRACK_CNT to 3 or 2 instead of 4

@quiknick
Copy link
Author

@marcel-licence TRACK_CNT to 3 works but man this thing sounds like crap. Does not sound like your video :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants