diff --git a/components/bootloader_support/src/bootloader_common_loader.c b/components/bootloader_support/src/bootloader_common_loader.c index 12c643f4bab..53f43bd6940 100644 --- a/components/bootloader_support/src/bootloader_common_loader.c +++ b/components/bootloader_support/src/bootloader_common_loader.c @@ -151,7 +151,7 @@ static void update_rtc_retain_mem_crc(void) rtc_retain_mem->crc = esp_rom_crc32_le(UINT32_MAX, (uint8_t*)rtc_retain_mem, rtc_retain_mem_size()); } -void bootloader_common_reset_rtc_retain_mem(void) +NOINLINE_ATTR void bootloader_common_reset_rtc_retain_mem(void) { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstringop-overflow" diff --git a/tools/test_apps/system/bootloader_sections/sdkconfig.ci.rtc_retain b/tools/test_apps/system/bootloader_sections/sdkconfig.ci.rtc_retain index 3ba7ab36b7d..54769817557 100644 --- a/tools/test_apps/system/bootloader_sections/sdkconfig.ci.rtc_retain +++ b/tools/test_apps/system/bootloader_sections/sdkconfig.ci.rtc_retain @@ -1 +1,2 @@ CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP=y +CONFIG_COMPILER_OPTIMIZATION_PERF=y