-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
ESP32-S3 ULP ADC example does not work for espidf 5.0 (IDFGH-10111) #11386
Comments
Hi @patrickmagee, As mentioned in the readme, this example is esp32 only on v5.0. We don't normally backport features, but I assume platformio will also update to 5.1 soon as we are getting ready to release it. |
Yes they probably will, though they lag by a few weeks at least. Does the esp32-s3 have the ability to wake from sleep using the ulp adc I’m espidf 5.0? Is it just this example that is broken? If the api for ulp adc can work then I’ll figure it out, but I don’t want to spend time trying to implement a feature that won’t ever work. If that were the case I’d just ditch platformio and port over to the espidf official extension, though that’s not trivial at this stage of a very large codebase, so I’d only want to do that if there were no other option. |
@ESP-Marius just checking if you can confirm whether 5.0 can perform a wake from sleep ulp adc? Or do we have to upgrade to 5.1 / master? I would suggest updating the ESP32-S3 5.0 documentation referenced above to remove the example, which doesn't work with the S3. |
It is missing the changes made in 77ba84e, so if you either apply these changes, orr do what Upgrading to 5.1/master is preferable though if that is an option.
Good point, I'll make sure this is reflected in the docs. |
Thanks Marius, I ported over to the official espidf vscode extension running the latest master , the example there is working perfectly. Even better that it has the riscV. |
I spoke too soon when I said "worked perfectly", the code works but the current consumption is too high. I've opened a new issue and will keep this one closed #11407 |
Answers checklist.
IDF version.
5.0
Operating System used.
Windows
How did you build your project?
Other (please specify in More Information)
If you are using Windows, please specify command line type.
None
Development Kit.
Custom PCB ESP-32-WROOM-2
Power Supply used.
External 3.3V
What is the expected behavior?
Wake from deep sleep as per the Readme documentation . https://github.com/espressif/esp-idf/tree/f00c78b020/examples/system/ulp_fsm/ulp_adc
What is the actual behavior?
The ESP32-S3 goes to sleep and does not wake.
Steps to reproduce.
Code is as per the example : https://github.com/espressif/esp-idf/tree/f00c78b020/examples/system/ulp_fsm/ulp_adc
Only the ADC channel was changed (in both the adc.S and the ulp+adc_example_main.c.
Verified that the ADC is mapped and working by using it outside of sleep.
Verified the issue can be reproduced on a ESP32-S3-DevkitC-1
Debug Logs.
No response
More Information.
The project codebase uses the espidf 5.0 on the platformio extension of Vscode.
I installed the espidf extension, updated to the master branch and ran the example from there.
I could port the entire project over to the espidf extension but it would be a lot easier if the adc ulp would work in espidf 5.0 (which platformio uses).
Should this feature work on the ESP32-S3 using espidf 5.0?
The relevant documentation here : https://docs.espressif.com/projects/esp-idf/en/release-v5.0/esp32s3/api-reference/system/ulp.html#starting-the-ulp-fsm-program points to the example https://github.com/espressif/esp-idf/tree/f00c78b020/examples/system/ulp_fsm/ulp_adc. But in the "supported targets" is only lists ESP32 , not any other chips in the family.
The text was updated successfully, but these errors were encountered: