feat(coredump): add coredump_extram attribute

Closes https://github.com/espressif/esp-idf/issues/15429

(cherry picked from commit 5ba3e9df98)
This commit is contained in:
Erhan Kurubas
2026-09-09 11:34:05 +02:00
parent 16cd970a43
commit eb67fea33d
9 changed files with 89 additions and 2 deletions
+6
View File
@@ -142,8 +142,11 @@ extern "C" {
#if CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY
// Forces bss variable into external memory. "
#define EXT_RAM_BSS_ATTR _SECTION_ATTR_IMPL(".ext_ram.bss", __COUNTER__)
// Forces data into external memory BSS and maps it to coredump
#define COREDUMP_EXTRAM_ATTR _SECTION_ATTR_IMPL(".ext_ram.coredump", __COUNTER__)
#else
#define EXT_RAM_BSS_ATTR
#define COREDUMP_EXTRAM_ATTR
#endif
// Forces data into noinit section to avoid initialization after restart.
@@ -152,9 +155,12 @@ extern "C" {
#if CONFIG_SPIRAM_ALLOW_NOINIT_SEG_EXTERNAL_MEMORY
// Forces data into external memory noinit section to avoid initialization after restart.
#define EXT_RAM_NOINIT_ATTR _SECTION_ATTR_IMPL(".ext_ram_noinit", __COUNTER__)
// Forces data into external memory noinit section and maps it to coredump
#define COREDUMP_EXTRAM_NOINIT_ATTR _SECTION_ATTR_IMPL(".ext_ram_noinit.coredump", __COUNTER__)
#else
// Place in internal noinit section
#define EXT_RAM_NOINIT_ATTR __NOINIT_ATTR
#define COREDUMP_EXTRAM_NOINIT_ATTR
#endif
// Forces code into DRAM instead of flash and map it to coredump