esp-adf icon indicating copy to clipboard operation
esp-adf copied to clipboard

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

Open mike-2020 opened this issue 1 year ago • 2 comments

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

mike-2020 avatar Sep 13 '24 01:09 mike-2020

@mike-2020 Please provide the crashed log

jason-mao avatar Sep 13 '24 11:09 jason-mao

@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.

shootao avatar Sep 13 '24 14:09 shootao

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

jason-mao avatar Dec 10 '24 07:12 jason-mao