From d473f75910be1a45a976e354cf1f54db24f086f8 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Mon, 13 Nov 2023 18:13:58 +0100 Subject: [PATCH 1/7] Create defconfig.esp32c2 --- configs/defconfig.esp32c2 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 configs/defconfig.esp32c2 diff --git a/configs/defconfig.esp32c2 b/configs/defconfig.esp32c2 new file mode 100644 index 000000000..6441674b0 --- /dev/null +++ b/configs/defconfig.esp32c2 @@ -0,0 +1,18 @@ +CONFIG_XTAL_FREQ_26=y +CONFIG_XTAL_FREQ=26 +# +# Bluetooth +# +CONFIG_BT_ENABLED=y +CONFIG_BT_NIMBLE_ENABLED=y +CONFIG_BT_NIMBLE_LOG_LEVEL_NONE=y +CONFIG_BT_NIMBLE_MAX_CONNECTIONS=1 +# CONFIG_BT_NIMBLE_NVS_PERSIST is not set +# CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS is not set +# CONFIG_BT_NIMBLE_LL_CFG_FEAT_LE_2M_PHY is not set +# CONFIG_BT_NIMBLE_LL_CFG_FEAT_LE_CODED_PHY is not set +# CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT is not set + +CONFIG_RTC_CLK_CAL_CYCLES=576 +# CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU0 is not set +CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=2304 From 4f1ec10935885844e1e3ef8d82b60c601bb3bdb3 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Mon, 13 Nov 2023 18:19:02 +0100 Subject: [PATCH 2/7] Update defconfig.esp32c2 --- configs/defconfig.esp32c2 | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/configs/defconfig.esp32c2 b/configs/defconfig.esp32c2 index 6441674b0..726ad4c73 100644 --- a/configs/defconfig.esp32c2 +++ b/configs/defconfig.esp32c2 @@ -1,18 +1,6 @@ CONFIG_XTAL_FREQ_26=y CONFIG_XTAL_FREQ=26 -# -# Bluetooth -# -CONFIG_BT_ENABLED=y -CONFIG_BT_NIMBLE_ENABLED=y -CONFIG_BT_NIMBLE_LOG_LEVEL_NONE=y -CONFIG_BT_NIMBLE_MAX_CONNECTIONS=1 -# CONFIG_BT_NIMBLE_NVS_PERSIST is not set -# CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS is not set -# CONFIG_BT_NIMBLE_LL_CFG_FEAT_LE_2M_PHY is not set -# CONFIG_BT_NIMBLE_LL_CFG_FEAT_LE_CODED_PHY is not set -# CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT is not set - +CONFIG_BT_BLE_BLUFI_ENABLE=y CONFIG_RTC_CLK_CAL_CYCLES=576 # CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU0 is not set CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=2304 From 298e5ca52cc432ba68077979dc000cbca43afbe1 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Mon, 13 Nov 2023 18:22:16 +0100 Subject: [PATCH 3/7] Create defconfig.60m --- configs/defconfig.60m | 1 + 1 file changed, 1 insertion(+) create mode 100644 configs/defconfig.60m diff --git a/configs/defconfig.60m b/configs/defconfig.60m new file mode 100644 index 000000000..797665f52 --- /dev/null +++ b/configs/defconfig.60m @@ -0,0 +1 @@ +CONFIG_ESPTOOLPY_FLASHFREQ_60M=y From 294ba530fbbee21e7c3e99cfa9f51f0f4caf6a8e Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Mon, 13 Nov 2023 18:23:15 +0100 Subject: [PATCH 4/7] Create de config.30m --- configs/de config.30m | 1 + 1 file changed, 1 insertion(+) create mode 100644 configs/de config.30m diff --git a/configs/de config.30m b/configs/de config.30m new file mode 100644 index 000000000..f915b230f --- /dev/null +++ b/configs/de config.30m @@ -0,0 +1 @@ +CONFIG_ESPTOOLPY_FLASHFREQ_30M=y From fbdb0dda3a0e9b78dbd1ac4e67e91c100a48ed82 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Mon, 13 Nov 2023 18:24:15 +0100 Subject: [PATCH 5/7] Rename de config.30m to defconfig.30m --- configs/{de config.30m => defconfig.30m} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename configs/{de config.30m => defconfig.30m} (100%) diff --git a/configs/de config.30m b/configs/defconfig.30m similarity index 100% rename from configs/de config.30m rename to configs/defconfig.30m From 3322dfac80f6065d91c50d62e34f16c155308b2e Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Mon, 13 Nov 2023 18:27:59 +0100 Subject: [PATCH 6/7] add c2 --- configs/builds.json | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/configs/builds.json b/configs/builds.json index ef0943054..6f29e1399 100644 --- a/configs/builds.json +++ b/configs/builds.json @@ -4,7 +4,7 @@ "file":"libspi_flash.a", "src":"build/esp-idf/spi_flash/libspi_flash.a", "out":"lib/libspi_flash.a", - "targets":["esp32","esp32c3","esp32s2","esp32s3","esp32c6","esp32h2"] + "targets":["esp32","esp32c2","esp32c3","esp32s2","esp32s3","esp32c6","esp32h2"] }, { "file":"libesp_psram.a", @@ -72,6 +72,20 @@ ["dio","80m"] ] }, + { + "target": "esp32c2", + "features":[], + "idf_libs":["qio","60m"], + "bootloaders":[ + ["qio","60m"], + ["dio","60m"], + ["qio","30m"], + ["dio","30m"] + ], + "mem_variants":[ + ["dio","60m"] + ] + }, { "target": "esp32c3", "features":[], @@ -133,4 +147,4 @@ ] } ] -} \ No newline at end of file +} From faa38f97aca976c063861e9edaae8ae92f65fb17 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Mon, 13 Nov 2023 18:29:38 +0100 Subject: [PATCH 7/7] Update push.yml with c2 --- .github/workflows/push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 56cc7e9f7..8525bdeec 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - target: [esp32, esp32s2, esp32s3, esp32c3, esp32c6, esp32h2] + target: [esp32, esp32s2, esp32s3, esp32c2, esp32c3, esp32c6, esp32h2] fail-fast: false steps: - uses: actions/checkout@v3