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

ci: add pd_vddsdio in lightsleep UT tests
- Add pd_vddsdio in lightsleep UT tests to ensure proper functionality

wuzhenghui 2 лет назад
Родитель
Сommit
797efb1dd3

+ 1 - 0
components/driver/test_apps/gpio/sdkconfig.ci.iram_safe

@@ -5,5 +5,6 @@ CONFIG_COMPILER_OPTIMIZATION_NONE=y
 CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
 # silent the error check, as the error string are stored in rodata, causing RTL check failure
 CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y
+CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y
 # GPIO test uses IPC call, the default stack size of IPC task can satisfy the -O0 optimization
 CONFIG_ESP_IPC_TASK_STACK_SIZE=2048

+ 1 - 0
components/driver/test_apps/gpio_extensions/sdkconfig.ci.iram_safe

@@ -5,5 +5,6 @@ CONFIG_COMPILER_OPTIMIZATION_NONE=y
 CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
 # silent the error check, as the error string are stored in rodata, causing RTL check failure
 CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y
+CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y
 # GPIO test uses IPC call, the default stack size of IPC task can satisfy the -O0 optimization
 CONFIG_ESP_IPC_TASK_STACK_SIZE=2048

+ 1 - 0
components/driver/test_apps/gptimer/sdkconfig.ci.iram_safe

@@ -6,3 +6,4 @@ CONFIG_COMPILER_OPTIMIZATION_NONE=y
 CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
 # silent the error check, as the error string are stored in rodata, causing RTL check failure
 CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y
+CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y

+ 1 - 0
components/driver/test_apps/i2s_test_apps/i2s/sdkconfig.ci.iram_safe

@@ -3,5 +3,6 @@ CONFIG_I2S_ISR_IRAM_SAFE=y
 CONFIG_COMPILER_OPTIMIZATION_NONE=y
 # silent the error check, as the error string are stored in rodata, causing RTL check failure
 CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y
+CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y
 # place non-ISR FreeRTOS functions in Flash
 CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y

+ 1 - 0
components/driver/test_apps/mcpwm/sdkconfig.ci.iram_safe

@@ -5,5 +5,6 @@ CONFIG_GPIO_CTRL_FUNC_IN_IRAM=y
 CONFIG_COMPILER_OPTIMIZATION_NONE=y
 # silent the error check, as the error string are stored in rodata, causing RTL check failure
 CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y
+CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y
 # place non-ISR FreeRTOS functions in Flash
 CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y

+ 1 - 0
components/driver/test_apps/pulse_cnt/sdkconfig.ci.iram_safe

@@ -5,5 +5,6 @@ CONFIG_GPIO_CTRL_FUNC_IN_IRAM=y
 CONFIG_COMPILER_OPTIMIZATION_NONE=y
 # silent the error check, as the error string are stored in rodata, causing RTL check failure
 CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y
+CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y
 # place non-ISR FreeRTOS functions in Flash
 CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y

+ 1 - 0
components/esp_pm/test_apps/esp_pm/pytest_esp_pm.py

@@ -9,6 +9,7 @@ from pytest_embedded import Dut
 @pytest.mark.supported_targets
 @pytest.mark.parametrize('config', [
     'default',
+    'slp_iram_opt',
     'limits',
     'options',
 ], indirect=True)

+ 4 - 0
components/esp_pm/test_apps/esp_pm/sdkconfig.ci.slp_iram_opt

@@ -0,0 +1,4 @@
+CONFIG_PM_SLP_IRAM_OPT=y
+CONFIG_PM_RTOS_IDLE_OPT=y
+CONFIG_ESP_SLEEP_POWER_DOWN_FLASH=y
+CONFIG_ESP_SLEEP_CACHE_SAFE_ASSERTION=y

+ 1 - 0
components/esp_system/test_apps/esp_system_unity_tests/pytest_esp_system_unity_tests.py

@@ -10,6 +10,7 @@ from pytest_embedded import Dut
     'config',
     [
         pytest.param('default', marks=[pytest.mark.supported_targets]),
+        pytest.param('pd_vddsdio', marks=[pytest.mark.supported_targets]),
         pytest.param('psram', marks=[pytest.mark.esp32, pytest.mark.esp32s2, pytest.mark.esp32s3]),
         pytest.param('single_core_esp32', marks=[pytest.mark.esp32]),
     ]

+ 3 - 0
components/esp_system/test_apps/esp_system_unity_tests/sdkconfig.ci.pd_vddsdio

@@ -0,0 +1,3 @@
+CONFIG_PM_SLP_IRAM_OPT=y
+CONFIG_ESP_SLEEP_POWER_DOWN_FLASH=y
+CONFIG_ESP_SLEEP_CACHE_SAFE_ASSERTION=y

+ 1 - 0
components/spi_flash/test_apps/mspi_test/sdkconfig.ci.special

@@ -2,4 +2,5 @@
 CONFIG_ESP_SYSTEM_MEMPROT_FEATURE=n
 CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
 CONFIG_COMPILER_OPTIMIZATION_NONE=y
+CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y
 CONFIG_COMPILER_DUMP_RTL_FILES=y

+ 2 - 1
tools/test_apps/build_system/ldgen_test/main/linker.lf

@@ -5,4 +5,5 @@ entries:
     src1 (default)
     src1:func1 (noflash);
         text->iram0_text KEEP() ALIGN(9) ALIGN(12, post) SURROUND(sym1)
-    src1:func2 (rtc)
+    if SOC_RTC_MEM_SUPPORTED = y:
+        src1:func2 (rtc)