Skip to content
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 Continuous read and LittleFS bug (IDFGH-14079) #14893

Open
GitHubLionel opened this issue Nov 15, 2024 · 2 comments
Open

ADC Continuous read and LittleFS bug (IDFGH-14079) #14893

GitHubLionel opened this issue Nov 15, 2024 · 2 comments
Labels
Status: Opened Issue is new

Comments

@GitHubLionel
Copy link

Hi
I use an ESP32 Dev Module and I use IDF version: v5.1.4-497-gdc859c1e67-dirty (esp v3.0.3 in Eclipse Sloeber).
My problem is simple : when I use ADC Continuous read and I try to read/write to my LittleFS partition, I crash my program with the error : Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed).
The debug backtrace doesn't help.

I read lot of things about this problem and try to add :

#define CONFIG_ADC_CONTINUOUS_ISR_IRAM_SAFE 1
#define CONFIG_GDMA_ISR_IRAM_SAFE 1

if sdkconfig.h and soc_caps.h files but we no success.
I don't know what to try anymore.
Any ideas to try ?
Thanks
Lionel

@espressif-bot espressif-bot added the Status: Opened Issue is new label Nov 15, 2024
@github-actions github-actions bot changed the title ADC Continuous read and LittleFS bug ADC Continuous read and LittleFS bug (IDFGH-14079) Nov 15, 2024
@Kainarx
Copy link
Collaborator

Kainarx commented Nov 21, 2024

Hi @GitHubLionel
Please use menuconfig to enable these two configs and try again. The linker won't put the function into IRAM if we define the macro by ourselves.

@GitHubLionel
Copy link
Author

Hi Kainarx
Many thanks for your answer.
Problem, I use Eclipse/Sloeber and I don't know how to use menuconfig in this IDE.
I will ask Sloeber to know that.
Best regards,
Lionel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new
Projects
None yet
Development

No branches or pull requests

3 participants