diff --git a/mongoose.h b/mongoose.h index 00880880..d8b6a6c5 100644 --- a/mongoose.h +++ b/mongoose.h @@ -503,7 +503,7 @@ static inline uint32_t mg_ota_esp32_state_set(uint32_t state) { #ifndef MG_IRAM #if defined(CPU_MIMXRT1186CVJ8C_cm33) || defined(MIMXRT1186_cm33_H_) #define MG_IRAM \ - __attribute__((noinline, section(".data.$SRAM_ITC_cm33"))) + __attribute__((noinline, section(".ramfunc.$SRAM_ITC_cm33"))) #else #define MG_IRAM __attribute__((noinline, section(".data_RAM2"))) #endif diff --git a/src/arch_mcuxpresso.h b/src/arch_mcuxpresso.h index 18a29b61..b0571c47 100644 --- a/src/arch_mcuxpresso.h +++ b/src/arch_mcuxpresso.h @@ -92,7 +92,7 @@ #ifndef MG_IRAM #if defined(CPU_MIMXRT1186CVJ8C_cm33) || defined(MIMXRT1186_cm33_H_) #define MG_IRAM \ - __attribute__((noinline, section(".data.$SRAM_ITC_cm33"))) + __attribute__((noinline, section(".ramfunc.$SRAM_ITC_cm33"))) #else #define MG_IRAM __attribute__((noinline, section(".data_RAM2"))) #endif