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

Save Core Dump to flash while using external SPI RAM not possible. (IDFGH-8713) #10155

Closed
3 tasks done
ddomnik opened this issue Nov 10, 2022 · 4 comments
Closed
3 tasks done
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@ddomnik
Copy link

ddomnik commented Nov 10, 2022

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • 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?

@espressif-bot espressif-bot added the Status: Opened Issue is new label Nov 10, 2022
@github-actions github-actions bot 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
@igrr
Copy link
Member

igrr commented 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.)

@ddomnik
Copy link
Author

ddomnik commented Nov 10, 2022

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

@igrr
Copy link
Member

igrr commented Nov 10, 2022

It should be under Component config > ESP PSRAM > SPI RAM config

Screenshot 2022-11-10 at 14 58 11

(docs)

@ddomnik
Copy link
Author

ddomnik commented Nov 14, 2022

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

@ddomnik ddomnik closed this as completed Nov 15, 2022
@espressif-bot espressif-bot added Resolution: Done Issue is done internally Status: Done Issue is done internally and removed Status: Opened Issue is new labels Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

3 participants