Merge branch 'fix/coredump_fake_stack_range' into 'master'

fix(coredump): fix fake stack address range overlapping esp32s31 DRAM

Closes IDFCI-10393, IDFCI-10395, IDFCI-10396, IDFCI-10405, IDFCI-10402, IDFCI-10401, IDFCI-10403, IDFCI-10389, IDFCI-10406, IDFCI-10390, IDFCI-10391, IDF-14673, and IDF-14675

See merge request espressif/esp-idf!47480
This commit is contained in:
Alexey Gerenkov
2026-04-13 23:13:26 +08:00
2 changed files with 5 additions and 4 deletions
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -28,8 +28,9 @@ const static char TAG[] __attribute__((unused)) = "esp_core_dump_port";
#define COREDUMP_EM_RISCV 0xF3
#define COREDUMP_INVALID_CAUSE_VALUE 0xFFFF
#define COREDUMP_FAKE_STACK_START 0x20000000U
#define COREDUMP_FAKE_STACK_LIMIT 0x30000000U
// Fake stack range is outside of DRAM and EXTRAM regions
#define COREDUMP_FAKE_STACK_START 0x70000000U
#define COREDUMP_FAKE_STACK_LIMIT 0x80000000U
#define min(a,b) ((a) < (b) ? (a) : (b))
#define max(a,b) ((a) < (b) ? (b) : (a))
@@ -65,7 +65,7 @@ class PanicTestDut(IdfDut):
@property
def is_multi_core(self) -> bool:
return self.target in ['esp32', 'esp32s3', 'esp32p4']
return self.target in ['esp32', 'esp32s3', 'esp32p4', 'esp32h4', 'esp32s31']
def run_test_func(self, test_func_name: str) -> None:
if self.target == 'esp32p4' and not self.app.sdkconfig.get('ESP32P4_SELECTS_REV_LESS_V3'):