Skip to content

Commit 9638835

Browse files
committed
Merge branch 'feature/add_new_esp32c2_eco4_module' into 'master'
feat: Added a new esp32c2-eco4-4mb module support See merge request application/esp-at!1692
2 parents 8f63974 + 1081afe commit 9638835

File tree

15 files changed

+585
-0
lines changed

15 files changed

+585
-0
lines changed

.github/workflows/build_template_esp32c2.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414
secrets:
1515
ESP32C2_4MB_TOKEN:
1616
required: false
17+
ESP32C2_ECO4_4MB_TOKEN:
18+
required: false
1719
ESP32C2_2MB_TOKEN:
1820
required: false
1921

@@ -39,6 +41,8 @@ jobs:
3941
echo -e "#define CONFIG_ESP_AT_OTA_SSL_TOKEN_ESP32C2_2MB \"${{ secrets.ESP32C2_2MB_TOKEN }}\"" >> at_ota_token.h
4042
echo -e "#define CONFIG_ESP_AT_OTA_TOKEN_ESP32C2_4MB \"${{ secrets.ESP32C2_4MB_TOKEN }}\"" >> at_ota_token.h
4143
echo -e "#define CONFIG_ESP_AT_OTA_SSL_TOKEN_ESP32C2_4MB \"${{ secrets.ESP32C2_4MB_TOKEN }}\"" >> at_ota_token.h
44+
echo -e "#define CONFIG_ESP_AT_OTA_TOKEN_ESP32C2_ECO4_4MB \"${{ secrets.ESP32C2_ECO4_4MB_TOKEN }}\"" >> at_ota_token.h
45+
echo -e "#define CONFIG_ESP_AT_OTA_SSL_TOKEN_ESP32C2_ECO4_4MB \"${{ secrets.ESP32C2_ECO4_4MB_TOKEN }}\"" >> at_ota_token.h
4246
cd -
4347
- name: Install environment variables
4448
run: |

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ jobs:
101101
artifacts_name: esp32c2-4MB-at
102102
secrets: inherit
103103

104+
build-esp32c2-eco4-4mb-at:
105+
uses: ./.github/workflows/build_template_esp32c2.yml
106+
with:
107+
module_name: ESP32C2-ECO4-4MB
108+
artifacts_name: esp32c2-eco4-4MB-at
109+
secrets: inherit
110+
104111
build-esp32c2-2mb-at:
105112
uses: ./.github/workflows/build_template_esp32c2.yml
106113
with:

.gitlab/ci/build_esp32c2.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ esp32c2_4mb_at:
1414
variables:
1515
MODULE_NAME: "ESP32C2-4MB"
1616

17+
esp32c2_eco4_4mb_at:
18+
extends:
19+
- .build_template_esp32c2
20+
- .rules:build:build_project
21+
variables:
22+
MODULE_NAME: "ESP32C2-ECO4-4MB"
23+
1724
esp32c2_ble_2mb_at:
1825
extends:
1926
- .build_template_esp32c2

.gitlab/ci/build_template.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@
8484
- echo -e "#define CONFIG_ESP_AT_OTA_SSL_TOKEN_ESP32C2_2MB \"$ESP32C2_2MB_TOKEN\"" >> at_ota_token.h
8585
- echo -e "#define CONFIG_ESP_AT_OTA_TOKEN_ESP32C2_4MB \"$ESP32C2_4MB_TOKEN\"" >> at_ota_token.h
8686
- echo -e "#define CONFIG_ESP_AT_OTA_SSL_TOKEN_ESP32C2_4MB \"$ESP32C2_4MB_TOKEN\"" >> at_ota_token.h
87+
- echo -e "#define CONFIG_ESP_AT_OTA_TOKEN_ESP32C2_ECO4_4MB \"$ESP32C2_ECO4_4MB_TOKEN\"" >> at_ota_token.h
88+
- echo -e "#define CONFIG_ESP_AT_OTA_SSL_TOKEN_ESP32C2_ECO4_4MB \"$ESP32C2_ECO4_4MB_TOKEN\"" >> at_ota_token.h
8789
- cd -
8890

8991
.setup_tokens_esp32c3: &setup_tokens_esp32c3

components/at/private_include/at_ota_token.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
#define CONFIG_ESP_AT_OTA_SSL_TOKEN_ESP32C2_2MB CONFIG_ESP_AT_OTA_SSL_TOKEN_DEFAULT
3838
#define CONFIG_ESP_AT_OTA_TOKEN_ESP32C2_4MB CONFIG_ESP_AT_OTA_TOKEN_DEFAULT
3939
#define CONFIG_ESP_AT_OTA_SSL_TOKEN_ESP32C2_4MB CONFIG_ESP_AT_OTA_SSL_TOKEN_DEFAULT
40+
#define CONFIG_ESP_AT_OTA_TOKEN_ESP32C2_ECO4_4MB CONFIG_ESP_AT_OTA_TOKEN_DEFAULT
41+
#define CONFIG_ESP_AT_OTA_SSL_TOKEN_ESP32C2_ECO4_4MB CONFIG_ESP_AT_OTA_SSL_TOKEN_DEFAULT
4042
#elif defined(CONFIG_IDF_TARGET_ESP32C5)
4143
#define CONFIG_ESP_AT_OTA_TOKEN_ESP32C5_4MB CONFIG_ESP_AT_OTA_TOKEN_DEFAULT
4244
#define CONFIG_ESP_AT_OTA_SSL_TOKEN_ESP32C5_4MB CONFIG_ESP_AT_OTA_SSL_TOKEN_DEFAULT

components/at/src/at_default_config.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ static const esp_at_module_info_t esp_at_module_info[] = {
4545
#if defined(CONFIG_IDF_TARGET_ESP32C2)
4646
{"ESP32C2-2MB", CONFIG_ESP_AT_OTA_TOKEN_ESP32C2_2MB, CONFIG_ESP_AT_OTA_SSL_TOKEN_ESP32C2_2MB},
4747
{"ESP32C2-4MB", CONFIG_ESP_AT_OTA_TOKEN_ESP32C2_4MB, CONFIG_ESP_AT_OTA_SSL_TOKEN_ESP32C2_4MB},
48+
{"ESP32C2-ECO4-4MB", CONFIG_ESP_AT_OTA_TOKEN_ESP32C2_ECO4_4MB, CONFIG_ESP_AT_OTA_SSL_TOKEN_ESP32C2_ECO4_4MB},
4849
{"ESP32C2-BLE-2MB", NULL, NULL},
4950
#endif
5051

components/customized_partitions/raw_data/factory_param/factory_param_data.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ PLATFORM_ESP32C3,ESP32C3_RAINMAKER,"support rainmaker cloud, TX:7 RX:6",4,78,1,1
1212
PLATFORM_ESP32C2,ESP32C2-2MB,"single Wi-Fi, 2MB, TX:7 RX:6",4,78,1,1,13,CN,115200,7,6,19,20
1313
PLATFORM_ESP32C2,ESP32C2-4MB,"Wi-Fi + BluFi, 4MB, TX:7 RX:6",4,78,1,1,13,CN,115200,7,6,5,4
1414
PLATFORM_ESP32C2,ESP32C2-BLE-2MB,"single BLE, 2MB, TX:7 RX:6",4,78,1,1,13,CN,115200,7,6,5,4
15+
PLATFORM_ESP32C2,ESP32C2-ECO4-4MB,"Wi-Fi + BluFi, ECO4 only, 4MB, TX:7 RX:6",4,78,1,1,13,CN,115200,7,6,5,4
1516
PLATFORM_ESP32C5,ESP32C5-4MB,"TX:14 RX:13",4,78,1,1,13,CN,115200,14,13,9,8
1617
PLATFORM_ESP32C6,ESP32C6-4MB,"TX:7 RX:6",4,78,1,1,13,CN,115200,7,6,5,4
1718
PLATFORM_ESP32S2,MINI,"TX:17 RX:21",4,78,1,1,13,CN,115200,17,21,20,19
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
branch:release/v5.1
2+
commit:64849cb7039a93b7b3a4ad8e8da328fa9c09c5e7
3+
repository:https://github.com/espressif/esp-idf.git
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Name, Type, SubType, Offset, Size
2+
mfg_nvs, data, nvs, 0x1f000, 124K
3+
fatfs, data, fat, 0x47000, 100K
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Name, Type, SubType, Offset, Size
2+
otadata, data, ota, 0xd000, 0x2000
3+
phy_init, data, phy, 0xf000, 0x1000
4+
nvs, data, nvs, 0x10000, 0xE000
5+
at_customize, 0x40, 0, 0x1E000, 0x42000
6+
ota_0, app, ota_0, 0x60000, 0x1d0000
7+
ota_1, app, ota_1, 0x230000, 0x1d0000

0 commit comments

Comments
 (0)