Skip to content
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

analogRead when using ESP8266Audio #697

Open
sittelle opened this issue Aug 9, 2024 · 3 comments
Open

analogRead when using ESP8266Audio #697

sittelle opened this issue Aug 9, 2024 · 3 comments

Comments

@sittelle
Copy link

sittelle commented Aug 9, 2024

Hello,

I successfully tested the example "PlayAACFromPROGMEM". When I add an analogRead (any pin), my ESP32-WROOM-32U gets stuck in a boot loop. I guess that this might not be a library problem but maybe someone here can help me.
As I wrote, I have changed nothing in the example code but added a "analogRead(XX)" to it.

Best regards

@dired
Copy link

dired commented Aug 14, 2024

same here. It is something with drivers that got updated to be more "smart", which I found out so far by searching for the error message:

E (154) ADC: CONFLICT! driver_ng is not allowed to be used with the legacy driver

@sittelle
Copy link
Author

Hi @dired,
downgrading to ESP32 core 2.x happens to solve this issue. As you said, it has something to do with the new driver for core 3.x.
Regards

@dired
Copy link

dired commented Aug 18, 2024

Because of this error I finally tried platformio (glad about it)

There I was able to change the esp-idf version via platformio.ini:

platform = [email protected]

with 5.3.0 being the latest version with the 4.0 version (which (new drivers in 5, works in "4") is what i read in my googling).

That worked, but then out of curiosity I tried with the latest release (removing "@5.3.0"). And except for a warning, it compiles and works fine.

So my guess is that it was fixed in the latest release 3 weeks ago, but arduino ide bases on an earlier version which gives the error, platformio doesnt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants