Files
Sylvio Alves caa8079a53 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>
2026-01-14 13:07:14 -06:00
..