-
Notifications
You must be signed in to change notification settings - Fork 1.6k
I2S driver doesn't work (GIT8266O-558) #981
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
I can confirm this problem on a nodemcu, branch is Please provide a fix or workaround. |
Tried also with latest |
I have plugged a scope and it seems code is working! The problem is that on the nodemcu, the GPIO3 pin is connected to the CP2102 TX pin through a 470 ohm resistor, and it is trying to pull the pin high. This causes problems on this specific board. We would need to test this on a different board that has this pin unconnected, or at least not connected to another output. |
@doragasu |
I can confirm this problem on a nodemcu, branch is release/v3.4 , the 470 ohm resistors between ESP12E and cp2102 is removed, I2S is still not working properly. GPIO2 GPIO3 and GPIO15 have no wave. Steps to repropduce |
I'm not seeing this work with an ESP8266-01 device either. The "bytes_write" value is always zero. DMA does work on this device because I've previously (3-4 years ago?) had this working having reworked the old freertos code myself. |
As this appears to be closed, I'm going to open a new issue, referencing this one. |
Environment
git rev-parse --short HEAD
to get the commit id.): Release/v3.3 (GIT8266O-490) #917 (release/v3.3) as well as master//483a5a475c7afdf3336c66fa279c70de4bb8b750
Problem Description
I have no output from on I2S. I'am using official example:
https://github.com/espressif/ESP8266_RTOS_SDK/tree/master/examples/peripherals/i2s
Using
i2s_write( )
function is hanging until timeout occurs without writing data into DMA QueueESP8266_RTOS_SDK/examples/peripherals/i2s/main/i2s_example_main.c
Line 68 in cbfad90
Every time
i2s_bytes_write
is 0Expected Behavior
Triangle and sine 100Hz wave on I2S DAC output
Actual Behavior
When Debug message level is set to INFO, serial monitor output is as expected:
but only reason why in this example is running is
break
on timeout in `xQueueReceive'ESP8266_RTOS_SDK/components/esp8266/driver/i2s.c
Lines 748 to 771 in cbfad90
If You pass
portMAX_DELAY
asticks_to_wait
functioni2s_bytes_write
will hang foreverWhen DEBUG info is enabled there should be info about samples write
ESP8266_RTOS_SDK/components/esp8266/driver/i2s.c
Line 757 in cbfad90
like :
but there is no output like that.
Steps to repropduce
The text was updated successfully, but these errors were encountered: