Conversation
👋 Hello safocl, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
There was a problem hiding this comment.
This PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
34e69f5 to
c258245
Compare
c258245 to
3f2e4f0
Compare
95d4b41 to
aa178e0
Compare
label `cleanup` redirect to adc_continuous_deinit() -> -> adc_apb_periph_free() -- and call unexpected decrement and abort. but the increment of s_adc_digi_ctrlr_cnt was not made. also abort does not allow us to understand what the error was (return is not provided)
aa178e0 to
d8f7ebd
Compare
|
#18068 (comment) |
|
Hi @safocl , Thanks for your report. the abort is indeed a signal that IDF has a bug rather than the user need to handle something. The error handling code inside We will fix this issue. |
Description
label
cleanupredirect toadc_continuous_deinit()->adc_apb_periph_free()-- and call unexpected decrement ofs_adc_digi_ctrlr_cntandabort. but the increment ofs_adc_digi_ctrlr_cntwas not made. alsoabortdoes not allow us to understand what the error was (return is not provided)esp-idf/components/esp_adc/adc_continuous.c
Line 253 in b6e2de0
esp-idf/components/esp_adc/adc_continuous.c
Line 174 in b6e2de0
esp-idf/components/esp_adc/adc_continuous.c
Line 183 in b6e2de0
esp-idf/components/esp_adc/adc_continuous.c
Line 190 in b6e2de0
esp-idf/components/esp_adc/adc_continuous.c
Line 197 in b6e2de0
esp-idf/components/esp_adc/adc_continuous.c
Line 213 in b6e2de0
esp-idf/components/esp_adc/adc_continuous.c
Line 220 in b6e2de0
esp-idf/components/esp_adc/adc_continuous.c
Line 226 in b6e2de0
esp-idf/components/esp_adc/adc_continuous.c
Line 233 in b6e2de0
esp-idf/components/esp_adc/adc_continuous.c
Line 448 in b6e2de0
esp-idf/components/esp_hw_support/adc_share_hw_ctrl.c
Line 221 in b6e2de0
Related
Testing
Calling
adc_continuous_new_handlewith a largemax_store_buf_sizevalue on my ESP32 reports the following:(not ESP_ERR_NO_MEM)
Checklist
Before submitting a Pull Request, please ensure the following:
Note
Fixes error-path cleanup in ADC continuous driver to prevent unintended APB peripheral refcount changes/abort.
adc_continuous_deinit_light()to free allocated buffers/locks/DMA without callingadc_apb_periph_free()adc_continuous_new_handle()failure path instead ofadc_continuous_deinit()Written by Cursor Bugbot for commit d8f7ebd. This will update automatically on new commits. Configure here.