brebisson wrote: ↑Sun Dec 15, 2024 7:33 am
Hello,
Ok, message for others looking for the same problem.
I think that I found the issue...
I needed to add this line:
CONFIG_ADC_CONTINUOUS_ISR_IRAM_SAFE=y
In the sdkconfig file in visual studio code / ESP-IDF...
To make the whole ISR IRAM safe...
Cyrille
OMG. Cyrille, I'm going to have to send you a box of chocolates, a case of beer, and a Christmas card later this year. I have been fighting the exact same problem all day today since I was changing my ADC architecture from one-shot to continuous. After about 10 straight hours of adding scope signals, debug printf statements, and dozens of code modifications to narrow in on what was going on, I was able to determine it was the nvs_set_blob commands colliding with the adc_continuous DMA updates. That finally led me to do a more appropriate Google search which ultimately revealed your post topic here.
I made the change you suggested here to the sdkconfig and all is now working as hoped. No more crashes. The ADC continuous was needed for my application and has made a *huge* difference in reducing the overhead of individual one-shot ADC conversions.
THANK YOU again for sharing your success. I have done this before in this forum, so I will continue to do so since it might help someone else like you helped me.