-
Notifications
You must be signed in to change notification settings - Fork 7.6k
The HiFreq_ADC Example Code cannot run. #6832
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
i2s_adc_disable is causing the crash. If you remark that line and the subsequent enable, it will work. |
@PilnyTomas Can you take a look? |
Is the ADC plotter example (I2S) using continuous ADC? If so, drop this example in favor of using the API. |
Hi @Globefishp, |
@PilnyTomas It is a scoping problem. Move the init code into the task and it will work. I just don't have anything around to test on, so I am hesitant to commit. As mentioned, if that other example includes continuous ADC, then this example can simply be dropped (it has esp32 only code). |
Description of Change Original code does not work (crashing) - related issue #6832 - now fixed. Extended description to be more helpful. Added options to modify the setup at the top of the code via constants. Added option do plot with Arduino Serial plotter. Even if the crashing was solved alone the ledc PWM would not output any signal. Tests scenarios Tested on ESP32 with oscilloscope and signal generator. Related links Closing #6832
Closing as solved, PR was merged. |
Board
WEMOS LOLIN32 LITE
Device Description
just on breadboard.
Hardware Configuration
a Potentiometer is connected to my broad and used as Analogue input.
Version
v2.0.3
IDE Name
Arduino IDE
Operating System
Windows 10 1809
Flash frequency
80MHz
PSRAM enabled
no
Upload speed
115200
Description
The example code <HiFreq_ADC.ino> can compile and upload to board, but Serial output says it is continuously rebooting.
Here is my serial output, the backtrace tool cannot decode that(probably my usage is wrong, i just paste that to the tool.)
Beside, when compile the code, there is a warning says:
Seems
I2S_COMM_FORMAT_I2S_MSB
need to be replaced by other attribute?I'm new to ESP32 and Arduino so I would like to learn ADC with DMA from example code but unfortunately it cannot work.
Any one can help me figure out a solution?
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: