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

Crash in callback function when mp3decoder's stack is allocated in PSRAM (AUD-5688) #1273

Closed
mike-2020 opened this issue Sep 13, 2024 · 3 comments

Comments

@mike-2020
Copy link

mike-2020 commented Sep 13, 2024

A callback function is defined for mp3decoder. if stack_in_ext is set to true, then crash will happen in the callback function when "fread" is called. Setting stack_in_ext to false solves the problem. Is this expected? why?

ESP32S3
IDF 5.2.2
ADF (not found a version number, but it is pretty updated)

image

@github-actions github-actions bot changed the title Crash in callback function when mp3decoder's stack is allocated in PSRAM Crash in callback function when mp3decoder's stack is allocated in PSRAM (AUD-5688) Sep 13, 2024
@jason-mao
Copy link
Collaborator

@mike-2020 Please provide the crashed log

@shootao
Copy link

shootao commented Sep 13, 2024

@mike-2020
I think your mp3DecoderReacCb must get data from flash.
For ESP32/ESP32S3, we cannot read or write flash data in a task running on the PSRAM stack.

@jason-mao
Copy link
Collaborator

This topic has become inactive, so I'm closing the issue. Please reopen it if you have any questions or need any further assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants