-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32-S3 ULP-FSM SENS_ register r/w problem #8275
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
I can confirm this unexpected behaviour also on an ESP32-S2. Writing to I wonder if this is expected behaviour on the S2/S3, but so far I cannot find anything in the Technical Reference Manual that would explain this behaviour as expected. |
Actually correction: On the ESP32S2, the register is called |
Yes, I encountered the same issue with ULP counting on ESP32S3 using Arduino. It was unable to count properly. However, when using examples on ESP-IDF, the ULP functionality worked correctly. |
Actually... what I encountered was a bug in an earlier ESP-IDF. It was fixed in June 2023 by this PR: espressif/esp-idf#11652. So, for anyone still running into this, make sure your Arduino toolchain uses an ESP-IDF later than June 2023 and it should work. (For anyone using the micropython-esp32-ulp assembler, the same bug was fixed here: micropython/micropython-esp32-ulp@ed28d27). |
Hello, Due to the overwhelming volume of issues currently being addressed, we have decided to close the previously received tickets. If you still require assistance or if the issue persists, please don't hesitate to reopen the ticket. Thanks. |
Board
Heltec ESP32 Lora (V3)
Device Description
ESP32-S3 with SX1262 Lora module
Hardware Configuration
nothing
Version
other
IDE Name
PlatformIO
Operating System
Windows 11 22H2
Flash frequency
40Mhz
PSRAM enabled
no
Upload speed
460800
Description
If I read or set the
SENS_SAR_PERI_CLK_GATE_CONF_REG
from ULP code, it seems not working (but I get no error message).If I read or set it from the main CPU, it works.
I am using ULP FSM C macro in PlatformIO Arduino framework.
The framework is a custom built from esp-idf 4.4.4, with added support of ULP:
This code snippet in the sketch is only a small part of an older big project running on ESP32.
The remaining ULP-FSM code (not showed here) ported from the ESP32 is working without problem, only this new register manipulation don't work.
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: