-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Provided example code "AnalogReadContinuous.ino" gives errors #11402
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
Workaround: In C:\Users\XXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0-alpha1\cores\esp32\esp32-hal-adc.c, function AnalogContinousRead comment out the call of adc_cali_raw_to_voltage (line 629) and work with raw values only. |
I'm not using the packaged 3.3.0, but current master is not giving me this error. Did you try changing the adc_pins[] line to just have pin 34 in the list? |
Yes, I tried to use pin 34 only. It gives me the same error. The error occurs for each pin - it does not matter, whether something is connected to the pin or not. It is a software issue, since something in adc_cali_raw_to_voltage is considered as a null pointer... |
Steps to reproduce the issue:
In the output, you see the above mentioned errors:
|
@PaulChristopher Will test and reach back. |
Board
ESP32 Dev Module
Device Description
ESP32 Development board (ESP WROOM 32)
Installed board support Arduino IDE: esp32 by Espressif Systems version 3.3.0-alpha1
Hardware Configuration
Yes, a variable resistor to pin 34
Version
latest stable Release (if not listed below)
IDE Name
Arduino IDE
Operating System
Win10
Flash frequency
80
PSRAM enabled
no
Upload speed
921600
Description
Running the example https://github.com/espressif/arduino-esp32/blob/master/libraries/ESP32/examples/AnalogReadContinuous/AnalogReadContinuous.ino works, but gives the following errors:
The errors are a pain, since they mess up the serial monitor with tons of error messages when reading results in continous mode using analogContinuousRead. This basically renders the serial monitor useless for other debugging purposes.
Since the errors cannot be supressed by the chosen debug level in the IDE, it is a blocker for me.
Sketch
See your own code: https://github.com/espressif/arduino-esp32/blob/master/libraries/ESP32/examples/AnalogReadContinuous/AnalogReadContinuous.ino
Debug Message
Other Steps to Reproduce
Even commenting out "analogContinuousStop(); ... Serial.println ... analogContinousStart()" in loop() does not make a difference: The error seems to be caused by analogContinuousRead solely..
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: