Guru Meditation Error when calling 'adc_oneshot_read' function (IDFGH-11315) #12466
Open
3 tasks done
Labels
Status: Opened
Issue is new
Answers checklist.
General issue report
IDF version:
ESP-IDF v5.1-dev-3710-gacac972f70-dirty 2nd stage bootloader
SDK config file:
Attached.
sdkconfig.zip
Issue:
Hello,
I'm using an ESP32-S3 on a custom board where I'm using the following task for reading the ADC value every 100 ms:
The problem I have is that when I move the board abruptly I get a "Software reset due to exception/panic" and the board resets. In some cases in the terminal I get the following result just before the reset:
According to the documentation as the
EXCVADDR: 0x122b6bef
is garbage value there might be a pointer not initialized or corrupted. I have checked the line 165 of theadc_oneshot.c
file and there is the following line:ESP_RETURN_ON_FALSE(chan < SOC_ADC_CHANNEL_NUM(handle->unit_id), ESP_ERR_INVALID_ARG, TAG, "invalid channel");
I don't understand which could be the pointer not initialized or corrupted.
In some other cases I get the following output just before the board resets (after abruptly moving it):
Is there something I'm not correctly doing with the ADC?
The text was updated successfully, but these errors were encountered: