Skip to content

Commit

Permalink
feat: add UF2 IDs for ESP32-C5 and ESP32-C61
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdragun authored and radimkarnis committed Mar 14, 2024
1 parent 1dc3c8b commit cf6d94e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions esptool/targets/esp32c5.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ class ESP32C5ROM(ESP32C6ROM):
[0x600FE000, 0x60100000, "MEM_INTERNAL2"],
]

UF2_FAMILY_ID = 0xF71C0343

def get_chip_description(self):
chip_name = {
0: "ESP32-C5",
Expand Down
2 changes: 2 additions & 0 deletions esptool/targets/esp32c61.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class ESP32C61ROM(ESP32C6ROM):
[0x600FE000, 0x60100000, "MEM_INTERNAL2"],
]

UF2_FAMILY_ID = 0x77D850C4

def get_chip_description(self):
chip_name = {
0: "ESP32-C61",
Expand Down
2 changes: 1 addition & 1 deletion test/test_uf2_ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_check_uf2(uf2_json):
out = []
# there was a difference between the chip support
for chip in diff:
if chip in esptool_chips:
if chip not in esptool_chips:
out.append(
f"Missing chip definition for '{chip}' in esptool "
"which was defined in Microsoft UF2 Github repo."
Expand Down

0 comments on commit cf6d94e

Please sign in to comment.