-
Notifications
You must be signed in to change notification settings - Fork 7.6k
I2S failed to set up tx callback #11004
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
I2S failed to set up tx callback #11004
Comments
See also: schreibfaul1/ESP32-audioI2S#975 |
The error is easy to reproduce. #include "Arduino.h"
#include "esp_err.h"
#include "ESP_I2S.h"
#define I2S_BCLK_PIN 5 // I2S BIT CLOCK pin (BCL BCK CLK)
#define I2S_DOUT_PIN 6 // to I2S DATA IN pin (DIN D DAT)
#define I2S_WCLK_PIN 7 // I2S WORD CLOCK pin (WCK WCL LCK)
const i2s_port_t i2s_num = I2S_NUM_0; // i2s port number
#define SAMPLE_RATE 48000
I2SClass I2S;
void setup(){
pinMode(I2S_BCLK_PIN, OUTPUT);
pinMode(I2S_DOUT_PIN, OUTPUT);
pinMode(I2S_WCLK_PIN, OUTPUT);
I2S.setPins(I2S_BCLK_PIN, I2S_WCLK_PIN, I2S_DOUT_PIN); //SCK, WS, SDOUT, SDIN, MCLK
esp_err_t err = I2S.begin(I2S_MODE_STD, SAMPLE_RATE, I2S_DATA_BIT_WIDTH_16BIT, I2S_SLOT_MODE_STEREO);
}
void loop(){
}
It is important that the PSRAM is activated. This error occurs in Arduino V3.1.2: and also in Arduino V3.1.3 and 3.2.0-RC1 |
Fix incoming: espressif/esp32-arduino-lib-builder#284 |
@me-no-dev Do you know in which ESP32-Arduino core this fix will be implemented? |
3.2.0-RC2 |
Thx. Great !!! |
Seems I2S should check to see if |
Neither should need to be set for the driver to work. The problem is that default config with PSRAM is failing |
It's likely I misunderstood, but looking at the code, the GDMA callback registration function checks to see if the supplied context parameter is in internal RAM when If I2S looked at |
Uh oh!
There was an error while loading. Please reload this page.
Board
ESP32S3 (LOLIN S3 PRO)
Device Description
LOLIN S3 PRO has just one native USB (OTG), no uart chip. it has 8MB PSRAM and 16MB flash.
Just the board and i2s DAC.
Hardware Configuration
GPIOs 5(BIT), 6(DAT) and 7(WS) are used to connect I2S DAC PCM5102.
Version
v3.1.3
IDE Name
Arduino IDE 2.3.4
Operating System
Windows 10
Flash frequency
40MHz
PSRAM enabled
yes
Upload speed
921600
Description
I2S doesn't work
Sketch
Debug Message
Other Steps to Reproduce
it was working with cores up to v.3.1.1 inclusively, v.3.1.2 introduced this bug. This issue can be reproduced on other ESP32S3 boards.
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: