feat(panic): panic immediatly if trying to write to flash through cache on ESP32-S3

Updated S3 to use PMS protection for writing to flash through cache. This means we get
a panic quicker for this illegal behavior than we did before, making the source of the error
easier to track down.
This commit is contained in:
Marius Vikhammer
2024-12-27 17:58:33 +08:00
parent f8ddcee8cd
commit 096cb409d9
12 changed files with 244 additions and 57 deletions
@@ -383,6 +383,10 @@ config SOC_CACHE_FREEZE_SUPPORTED
bool
default y
config SOC_CACHE_ACS_INVALID_STATE_ON_PANIC
bool
default y
config SOC_CPU_CORES_NUM
int
default 2
@@ -136,6 +136,7 @@
/*-------------------------- CACHE CAPS --------------------------------------*/
#define SOC_CACHE_WRITEBACK_SUPPORTED 1
#define SOC_CACHE_FREEZE_SUPPORTED 1
#define SOC_CACHE_ACS_INVALID_STATE_ON_PANIC 1 /*!< Certain ACS errors may cause the cache to be in a bad state until cleared */
/*-------------------------- CPU CAPS ----------------------------------------*/
#define SOC_CPU_CORES_NUM 2