-
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
ESP32-C6 crashes in adc_oneshot_read() after bootloader_random_enable() (IDFGH-13368) #14280
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
ESP32-C6 crashes in adc_oneshot_read() after bootloader_random_enable()
ESP32-C6 crashes in adc_oneshot_read() after bootloader_random_enable() (IDFGH-13368)
Jul 31, 2024
We will consider to fix it if possible in future. |
I think this bug is already being worked on in a similar #14124 issue |
espressif-bot
added
Status: Done
Issue is done internally
Resolution: NA
Issue resolution is unavailable
and removed
Status: Opened
Issue is new
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
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.3
Espressif SoC revision.
ESP32-C6
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
Power Supply used.
USB
What is the expected behavior?
Not crash.
What is the actual behavior?
The crash only happens on ESP32-C6. The same code works fine on ESP32-C3.
Steps to reproduce.
Please see the attached code sample to reproduce the crash. Removind bootloader_random_enable() and bootloader_random_disable() will stop the crashing. ADC is freed before calling bootloader_random_enable() and re-initialized after calling bootloader_random_disable(), so there should be no issue with concurrent usage of ADC.
Debug Logs.
More Information.
Reproducibility 100%
The text was updated successfully, but these errors were encountered: