Ver Fonte

gptimer: test on c2 with xtal 26mhz

morris há 3 anos atrás
pai
commit
bec44ca2e9

+ 8 - 0
.gitlab/ci/target-test.yml

@@ -251,6 +251,14 @@ component_ut_pytest_esp32c2_generic:
     - build_pytest_components_esp32c2
   tags: [ esp32c2, generic ]
 
+component_ut_pytest_esp32c2_xtal_26mhz:
+  extends:
+    - .pytest_components_dir_template
+    - .rules:test:component_ut-esp32c2
+  needs:
+    - build_pytest_components_esp32c2
+  tags: [ esp32c2, xtal_26mhz ]
+
 component_ut_pytest_esp32c3_generic:
   extends:
     - .pytest_components_dir_template

+ 23 - 4
components/driver/test_apps/gptimer/pytest_gptimer.py

@@ -7,11 +7,30 @@ from pytest_embedded import Dut
 
 @pytest.mark.supported_targets
 @pytest.mark.generic
-@pytest.mark.parametrize('config', [
-    'iram_safe',
-    'release',
-], indirect=True)
+@pytest.mark.parametrize(
+    'config',
+    [
+        'iram_safe',
+        'release',
+    ],
+    indirect=True,
+)
 def test_gptimer(dut: Dut) -> None:
     dut.expect_exact('Press ENTER to see the list of tests')
     dut.write('*')
     dut.expect_unity_test_output()
+
+
+@pytest.mark.esp32c2
+@pytest.mark.xtal_26mhz
+@pytest.mark.parametrize(
+    'config, baud',
+    [
+        ('esp32c2_xtal26m', '74880'),
+    ],
+    indirect=True,
+)
+def test_gptimer_esp32c2_xtal_26mhz(dut: Dut) -> None:
+    dut.expect_exact('Press ENTER to see the list of tests')
+    dut.write('*')
+    dut.expect_unity_test_output()

+ 2 - 0
components/driver/test_apps/gptimer/sdkconfig.ci.esp32c2_xtal26m

@@ -0,0 +1,2 @@
+CONFIG_IDF_TARGET="esp32c2"
+CONFIG_ESP32C2_XTAL_FREQ_26=y

+ 0 - 5
components/soc/esp32c2/ld/esp32c2.peripherals.ld

@@ -8,15 +8,10 @@ PROVIDE ( UART1 = 0x60010000 );
 PROVIDE ( SPIMEM1 = 0x60002000 );
 PROVIDE ( SPIMEM0 = 0x60003000 );
 PROVIDE ( GPIO = 0x60004000 );
-PROVIDE ( SIGMADELTA = 0x60004f00 );
 PROVIDE ( RTCCNTL = 0x60008000 );
 PROVIDE ( RTCIO = 0x60008400 );
 PROVIDE ( EFUSE = 0x60008800 );
-PROVIDE ( HINF = 0x6000B000 );
 PROVIDE ( I2C0  = 0x60013000 );
-PROVIDE ( HOST = 0x60015000 );
-PROVIDE ( PCNT = 0x60017000 );
-PROVIDE ( SLC = 0x60018000 );
 PROVIDE ( LEDC = 0x60019000 );
 PROVIDE ( TIMERG0 = 0x6001F000 );
 PROVIDE ( SYSTIMER = 0x60023000 );

+ 1 - 0
pytest.ini

@@ -47,6 +47,7 @@ markers =
   wifi_router: both the runner and dut connect to the same wifi router
   wifi_high_traffic: wifi high traffic runners
   wifi_wlan: wifi runner with a wireless NIC
+  xtal_26mhz: runner with 26MHz xtal on board
 
   # multi-dut markers
   multi_dut_generic: tests should be run on generic runners, at least have two duts connected.

+ 0 - 0
tools/test_apps/system/build_test/sdkconfig.ci copy.esp32c2_with_rom_impl_components → tools/test_apps/system/build_test/sdkconfig.ci.esp32c2_with_rom_impl_components