Просмотр исходного кода

mspi: fix build failure under assertion disable

Armando 2 лет назад
Родитель
Сommit
eee34bcf70

+ 1 - 0
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;
     }
 
 }

+ 9 - 0
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