-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
ADC after TRNG: Cannot use ADC
after disabling "TRNG" functionality (ESP32-C6) (IDFGH-13185)
#14124
Closed
3 tasks done
Labels
Resolution: NA
Issue resolution is unavailable
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Comments
github-actions
bot
changed the title
ADC after TRNG: Cannot use
ADC after TRNG: Cannot use Jul 2, 2024
ADC
after disabling "TRNG" functionality (ESP32-C6)ADC
after disabling "TRNG" functionality (ESP32-C6) (IDFGH-13185)
2 tasks
playfulFence
added a commit
to playfulFence/esp-hal
that referenced
this issue
Jul 2, 2024
Downgrade for `esp32c6` is not implemented due to: espressif/esp-idf#14124
playfulFence
added a commit
to playfulFence/esp-hal
that referenced
this issue
Jul 2, 2024
Downgrade for `esp32c6` is not implemented due to: espressif/esp-idf#14124 clippy
playfulFence
added a commit
to playfulFence/esp-hal
that referenced
this issue
Jul 2, 2024
Downgrade for `esp32c6` is not implemented due to: espressif/esp-idf#14124 clippy fmt
@playfulFence Thanks for letting us know. We could reproduce this and will check what the issue is here. |
@playfulFence Just wanted to let you know we haven't forgot about this issue. We're still working on fixing it. |
espressif-bot
added
Status: In Progress
Work is in progress
and removed
Status: Opened
Issue is new
labels
Aug 6, 2024
3 tasks
espressif-bot
added
Status: Done
Issue is done internally
Resolution: NA
Issue resolution is unavailable
and removed
Status: In Progress
Work is in progress
labels
Aug 12, 2024
espressif-bot
pushed a commit
that referenced
this issue
Aug 12, 2024
…or C6 This configuration bit is required for ADC operation as well and hence should not be cleared in the RNG API sequence. Ideally, the ADC driver should take care of initializing this bit but still the RNG layer change is required because of interleaved API usage scenario described in following linked issue. Closes #14124 Closes #14280
Thanks a lot! |
espressif-bot
pushed a commit
that referenced
this issue
Aug 21, 2024
…or C6 This configuration bit is required for ADC operation as well and hence should not be cleared in the RNG API sequence. Ideally, the ADC driver should take care of initializing this bit but still the RNG layer change is required because of interleaved API usage scenario described in following linked issue. Closes #14124 Closes #14280
espressif-bot
pushed a commit
that referenced
this issue
Aug 22, 2024
…or C6 This configuration bit is required for ADC operation as well and hence should not be cleared in the RNG API sequence. Ideally, the ADC driver should take care of initializing this bit but still the RNG layer change is required because of interleaved API usage scenario described in following linked issue. Closes #14124 Closes #14280
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Resolution: NA
Issue resolution is unavailable
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
v5.4-dev-1308-gb793ffe71d-dirty
Espressif SoC revision.
esp32c6 (revision v0.0)
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-C6 DevKitC-1 v1.1
Power Supply used.
USB
What is the expected behavior?
After disabling source of entropy with
bootloader_random_disable
function from this file ADC is expected to be usable.Example (on
esp32
):What is the actual behavior?
However, it shots the
Guru Meditation Error
Steps to reproduce.
bootloader_random_enable
and thenbootloader_random_disable
at the start of oneshot_read ADC exampleESP32-C6
Debug Logs.
No response
More Information.
Tested on my colleague's Linux machine. Same behaviour on my
macOS
one.I was implementing the
TRNG
functionality in theesp-rs
drivers when I noticed that the steps fromesp-idf
for this problem were causing theADC
peripheral to not work correctly. I decided to double check if the "original" works correctly in this edge case, when someone wants to dropADC
entropy source forRNG
and normally useADC
afterwards.Problematic file: https://github.com/espressif/esp-idf/blob/master/components/bootloader_support/src/bootloader_random_esp32c6.c
The text was updated successfully, but these errors were encountered: