-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
DMA driven DAC #10851
Comments
@P-R-O-C-H-Y, could you please take a look? Thanks! |
Just a heads up that you are using documentation for IDF v5.4 while Arduino v3.1.0 uses IDF v5.3. Idk if there are significant changes but it might help. |
@lucasssvaz Thanks for this! If I am correct, there is no significant differences for the DAC API. Also, allow myself to add that I also tried to get this DAC to work using I2S (the old API allowed access of the native DAC using I2S), but also did not manage, which is why I turned to the dac_conti API. |
Have you tried with more than one byte? Documentation states |
The IDF example uses a much larger buffer (2048). Try capturing the results from new_channels and enable. They probably will indicate an invalid parameter. |
@lbernstone Increasing the buffer does not solve it. Also both @me-no-dev I tried sending a 1024 buffer but got exactly the same errors and symptoms. Thanks for your help! |
I can confirm that on IDF 5.4, I observed the same problem with the continuous DAC driver. Very often, the |
Board
ESP Dev Module WROOM-32D
Device Description
Plain development board
Hardware Configuration
GPIO25 connected to scope.
Version
v3.1.0
IDE Name
Arduino IDE
Operating System
Debian
Flash frequency
80MHz
PSRAM enabled
yes
Upload speed
921600
Description
I'm trying to port Mozzi to the latest version of the ESP32 library. I2S and timer establishment works well following https://docs.espressif.com/projects/esp-idf/en/v5.4/esp32/index.html but DMA driven DAC as per https://docs.espressif.com/projects/esp-idf/en/v5.4/esp32/api-reference/peripherals/dac.html does not.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: