Skip to content

Commit 3c776aa

Browse files
committed
feat(targets): Update chip features lists with more info
1 parent 05553a4 commit 3c776aa

13 files changed

+34
-19
lines changed

esptool/targets/esp32.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def get_chip_description(self):
236236
return f"{chip_name} (revision v{major_rev}.{minor_rev})"
237237

238238
def get_chip_features(self):
239-
features = ["WiFi"]
239+
features = ["Wi-Fi"]
240240
word3 = self.read_efuse(3)
241241

242242
# names of variables in this section are lowercase
@@ -249,9 +249,9 @@ def get_chip_features(self):
249249

250250
chip_ver_dis_app_cpu = word3 & (1 << 0)
251251
if chip_ver_dis_app_cpu:
252-
features += ["Single Core"]
252+
features += ["Single Core + LP Core"]
253253
else:
254-
features += ["Dual Core"]
254+
features += ["Dual Core + LP Core"]
255255

256256
chip_cpu_freq_rated = word3 & (1 << 13)
257257
if chip_cpu_freq_rated:

esptool/targets/esp32c2.py

+3
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ def get_chip_description(self):
8383
minor_rev = self.get_minor_chip_version()
8484
return f"{chip_name} (revision v{major_rev}.{minor_rev})"
8585

86+
def get_chip_features(self):
87+
return ["Wi-Fi", "BT 5 (LE)", "Single Core", "120MHz"]
88+
8689
def get_minor_chip_version(self):
8790
num_word = 1
8891
return (self.read_reg(self.EFUSE_BLOCK2_ADDR + (4 * num_word)) >> 16) & 0xF

esptool/targets/esp32c3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def get_chip_description(self):
152152
return f"{chip_name} (revision v{major_rev}.{minor_rev})"
153153

154154
def get_chip_features(self):
155-
features = ["WiFi", "BLE"]
155+
features = ["Wi-Fi", "BT 5 (LE)", "Single Core", "160MHz"]
156156

157157
flash = {
158158
0: None,

esptool/targets/esp32c5.py

+9
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,15 @@ def get_chip_description(self):
114114
minor_rev = self.get_minor_chip_version()
115115
return f"{chip_name} (revision v{major_rev}.{minor_rev})"
116116

117+
def get_chip_features(self):
118+
return [
119+
"Wi-Fi 6 (dual-band)",
120+
"BT 5 (LE)",
121+
"IEEE802.15.4",
122+
"Single Core + LP Core",
123+
"240MHz",
124+
]
125+
117126
def get_crystal_freq(self):
118127
# The crystal detection algorithm of ESP32/ESP8266
119128
# works for ESP32-C5 as well.

esptool/targets/esp32c6.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,13 @@ def get_chip_description(self):
123123
return f"{chip_name} (revision v{major_rev}.{minor_rev})"
124124

125125
def get_chip_features(self):
126-
return ["WiFi 6", "BT 5", "IEEE802.15.4"]
126+
return [
127+
"Wi-Fi 6",
128+
"BT 5 (LE)",
129+
"IEEE802.15.4",
130+
"Single Core + LP Core",
131+
"160MHz",
132+
]
127133

128134
def get_crystal_freq(self):
129135
# ESP32C6 XTAL is fixed to 40MHz

esptool/targets/esp32c61.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def get_chip_description(self):
106106
return f"{chip_name} (revision v{major_rev}.{minor_rev})"
107107

108108
def get_chip_features(self):
109-
return ["WiFi 6", "BT 5"]
109+
return ["Wi-Fi 6", "BT 5 (LE)", "Single Core", "160MHz"]
110110

111111
def read_mac(self, mac_type="BASE_MAC"):
112112
"""Read MAC from EFUSE region"""

esptool/targets/esp32h2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_chip_description(self):
7171
return f"{chip_name} (revision v{major_rev}.{minor_rev})"
7272

7373
def get_chip_features(self):
74-
return ["BLE", "IEEE802.15.4"]
74+
return ["BT 5 (LE)", "IEEE802.15.4", "Single Core", "96MHz"]
7575

7676
def get_crystal_freq(self):
7777
# ESP32H2 XTAL is fixed to 32MHz

esptool/targets/esp32h21.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_chip_description(self):
7171
return f"{chip_name} (revision v{major_rev}.{minor_rev})"
7272

7373
def get_chip_features(self):
74-
return ["BLE", "IEEE802.15.4"]
74+
return ["BT 5 (LE)", "IEEE802.15.4", "Single Core", "96MHz"]
7575

7676
def get_crystal_freq(self):
7777
# ESP32H21 XTAL is fixed to 32MHz

esptool/targets/esp32h4.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def get_chip_description(self):
127127
return f"{chip_name} (revision v{major_rev}.{minor_rev})"
128128

129129
def get_chip_features(self):
130-
return ["BLE", "IEEE802.15.4"]
130+
return ["BT 5 (LE)", "IEEE802.15.4", "Dual Core", "96MHz"]
131131

132132
def get_crystal_freq(self):
133133
# ESP32H4 XTAL is fixed to 32MHz

esptool/targets/esp32p4.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def get_chip_description(self):
148148
return f"{chip_name} (revision v{major_rev}.{minor_rev})"
149149

150150
def get_chip_features(self):
151-
return ["High-Performance MCU"]
151+
return ["Dual Core + LP Core", "400MHz"]
152152

153153
def get_crystal_freq(self):
154154
# ESP32P4 XTAL is fixed to 40MHz

esptool/targets/esp32s2.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,7 @@ def get_chip_description(self):
180180
return f"{chip_name} (revision v{major_rev}.{minor_rev})"
181181

182182
def get_chip_features(self):
183-
features = ["WiFi"]
184-
185-
if self.secure_download_mode:
186-
features += ["Secure Download Mode Enabled"]
183+
features = ["Wi-Fi", "Single Core", "240MHz"]
187184

188185
flash_version = {
189186
0: "No Embedded Flash",
@@ -201,9 +198,9 @@ def get_chip_features(self):
201198

202199
block2_version = {
203200
0: "No calibration in BLK2 of efuse",
204-
1: "ADC and temperature sensor calibration in BLK2 of efuse V1",
205-
2: "ADC and temperature sensor calibration in BLK2 of efuse V2",
206-
}.get(self.get_block2_version(), "Unknown Calibration in BLK2")
201+
1: "ADC and temperature sensor calibration in BLK2 of eFuse V1",
202+
2: "ADC and temperature sensor calibration in BLK2 of eFuse V2",
203+
}.get(self.get_block2_version(), "Unknown calibration in BLK2")
207204
features += [block2_version]
208205

209206
return features

esptool/targets/esp32s3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def get_psram_vendor(self):
222222
return {1: "AP_3v3", 2: "AP_1v8"}.get(vendor_id, "")
223223

224224
def get_chip_features(self):
225-
features = ["WiFi", "BLE"]
225+
features = ["Wi-Fi", "BT 5 (LE)", "Dual Core + LP Core", "240MHz"]
226226

227227
flash = {
228228
0: None,

esptool/targets/esp8266.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def get_chip_description(self):
106106
return "ESP8266EX"
107107

108108
def get_chip_features(self):
109-
features = ["WiFi"]
109+
features = ["Wi-Fi", "160MHz"]
110110
if "ESP8285" in self.get_chip_description():
111111
features += ["Embedded Flash"]
112112
return features

0 commit comments

Comments
 (0)