Commit caa8079
tests: debug: coredump: use k_panic() for Espressif SoCs
Espressif RISC-V chips (ESP32-C3, ESP32-C6, etc.) with PMP enabled
use dynamic PMP mode (CONFIG_PMP_NO_LOCK_GLOBAL). In this mode,
null pointer dereference to address 0 causes a bus hang instead
of generating a clean exception, since address 0 is outside any
valid memory region and there's no PMP entry protecting it.
Use k_panic() instead, which reliably triggers the coredump path
on all Espressif chips.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>1 parent 59206e4 commit caa8079
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
0 commit comments