You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
I have searched the issue tracker for a similar issue and not found a similar issue.
General issue report
My goal is to store fatal error/crash information somehow. After looking at this issue how to make a custom panic handler #5163 , it is suggested to use the esp_core_dump_get_summary() function or the core dump function in general.
However, I have an external SPI RAM / PSRAM connected using the ESP S3.
As soon as I enable Hardware Settings > Support for external SPI-connected RAM, I cannot select the "Save core dump to FLASH"
Core dumps to Flash are not available if PSRAM is used for task stacks.
In code, I create tasks via xTaskCreateStatic() but none of the arguments, nor the TaskHandle_t struct itself is explicitly saved in external RAM. So why is flash not selectable?
Is it somehow possible to save the Core Dump to flash or save some fatal error information in another way?
Except using the linker wrapping feature to overwrite ESP panic handler?
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Save Core Dump to flash while using external SPI RAM not possible.
Save Core Dump to flash while using external SPI RAM not possible. (IDFGH-8713)
Nov 10, 2022
Could you try disabling the option CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY? This should make the CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH option available.
(assuming that you are using master, release/v5.0 or release/v4.4, if you are using a different version please specify which.)
@igrr thank you for the fast reply. I am using commit 01d014c (idf 5.0). But can not find a flag in the menuconfig to set CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY. Commenting it out manually does not help either after reloading the sdkconfig.
Thank you, @igrr . It is sadly not available for commit 01d014c / tag v5.0-rc1 on the ESP32S3 module but for ESP32. The current master however supports it for the ESP32S3. Will this option be available with the 5.0 release?
Edit: It is listed in the rc1 tag for the ESPS3. It was just not in the same order...
Answers checklist.
General issue report
My goal is to store fatal error/crash information somehow. After looking at this issue how to make a custom panic handler #5163 , it is suggested to use the esp_core_dump_get_summary() function or the core dump function in general.
However, I have an external SPI RAM / PSRAM connected using the ESP S3.
As soon as I enable Hardware Settings > Support for external SPI-connected RAM, I cannot select the "Save core dump to FLASH"
In code, I create tasks via xTaskCreateStatic() but none of the arguments, nor the TaskHandle_t struct itself is explicitly saved in external RAM. So why is flash not selectable?
Is it somehow possible to save the Core Dump to flash or save some fatal error information in another way?
Except using the linker wrapping feature to overwrite ESP panic handler?
The text was updated successfully, but these errors were encountered: