From eee34bcf7063017295d0a059f33dddb04df1cb3b Mon Sep 17 00:00:00 2001 From: Armando Date: Tue, 21 Mar 2023 10:14:59 +0800 Subject: [PATCH] mspi: fix build failure under assertion disable --- .../hal/esp32s3/include/hal/mspi_timing_tuning_ll.h | 1 + .../sdkconfig.ci.esp32s3_mspi_timing_assertion_disabled | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 tools/test_apps/system/build_test/sdkconfig.ci.esp32s3_mspi_timing_assertion_disabled diff --git a/components/hal/esp32s3/include/hal/mspi_timing_tuning_ll.h b/components/hal/esp32s3/include/hal/mspi_timing_tuning_ll.h index ce400c1c2c..e1eade8941 100644 --- a/components/hal/esp32s3/include/hal/mspi_timing_tuning_ll.h +++ b/components/hal/esp32s3/include/hal/mspi_timing_tuning_ll.h @@ -238,6 +238,7 @@ static inline mspi_timing_ll_flash_mode_t mspi_timing_ll_get_flash_mode(uint8_t return MSPI_TIMING_LL_FLASH_SLOW_MODE; default: HAL_ASSERT(false); + return 0; } } diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.esp32s3_mspi_timing_assertion_disabled b/tools/test_apps/system/build_test/sdkconfig.ci.esp32s3_mspi_timing_assertion_disabled new file mode 100644 index 0000000000..96ec27fbe2 --- /dev/null +++ b/tools/test_apps/system/build_test/sdkconfig.ci.esp32s3_mspi_timing_assertion_disabled @@ -0,0 +1,9 @@ +# Any of a set of configurations that will trigger timing tuning + +CONFIG_IDF_TARGET="esp32s3" +CONFIG_ESPTOOLPY_FLASHFREQ_120M=y +CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y + +CONFIG_COMPILER_OPTIMIZATION_SIZE=y +CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y +CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE=y