From 1c4cdfe4b75a75cfd841c48a6bf63f52bf59855e Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Thu, 9 May 2024 17:45:01 +0800 Subject: [PATCH] fix(brownout): fixed brownout isr crashing if cache disabled If a brownout ISR was triggered while cache was disabled the system would panic. This was due to a print accessing a string stored in flash --- components/esp_system/port/brownout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_system/port/brownout.c b/components/esp_system/port/brownout.c index 568e1044dd..98724fb6c9 100644 --- a/components/esp_system/port/brownout.c +++ b/components/esp_system/port/brownout.c @@ -28,7 +28,7 @@ #define BROWNOUT_DET_LVL 0 #endif -static __attribute__((unused)) DRAM_ATTR const char *TAG = "BOD"; +static __attribute__((unused)) DRAM_ATTR const char TAG[] = "BOD"; #if CONFIG_ESP_SYSTEM_BROWNOUT_INTR IRAM_ATTR static void rtc_brownout_isr_handler(void *arg)