Skip to content

Commit 3c776aa

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

File tree

13 files changed

+34
-19
lines changed

13 files changed

+34
-19
lines changed

esptool/targets/esp32.py

Lines changed: 3 additions & 3 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 9 additions & 0 deletions
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

Lines changed: 7 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)