diff --git a/components/esp32s2/memprot.c b/components/esp32s2/memprot.c index f679f69e2..d89a52650 100644 --- a/components/esp32s2/memprot.c +++ b/components/esp32s2/memprot.c @@ -30,6 +30,7 @@ #include "hal/memprot_ll.h" #include "esp_fault.h" #include "esp_log.h" +#include "soc/cpu.h" extern int _iram_text_end; extern int _data_start; diff --git a/components/esp_system/system_api.c b/components/esp_system/system_api.c index d33c611f4..dc525fc83 100644 --- a/components/esp_system/system_api.c +++ b/components/esp_system/system_api.c @@ -3,6 +3,7 @@ #include "esp_heap_caps.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" +#include "soc/cpu.h" #include "soc/rtc.h" #include "soc/rtc_cntl_reg.h" #include "panic_internal.h"