Skip to content

Commit c09d745

Browse files
committed
feat(arduino): Add support for C2, C61 and fix deprecated commands
1 parent cd027bd commit c09d745

File tree

1 file changed

+12
-8
lines changed
  • pytest-embedded-arduino/pytest_embedded_arduino

1 file changed

+12
-8
lines changed

pytest-embedded-arduino/pytest_embedded_arduino/app.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,26 @@ class ArduinoApp(App):
1818

1919
#: dict of flash settings
2020
flash_settings: ClassVar[dict[str, dict[str, str]]] = {
21-
'esp32': {'flash_mode': 'dio', 'flash_size': 'detect', 'flash_freq': '80m'},
22-
'esp32c3': {'flash_mode': 'dio', 'flash_size': 'detect', 'flash_freq': '80m'},
23-
'esp32c5': {'flash_mode': 'dio', 'flash_size': 'detect', 'flash_freq': '80m'},
24-
'esp32c6': {'flash_mode': 'dio', 'flash_size': 'detect', 'flash_freq': '80m'},
25-
'esp32h2': {'flash_mode': 'dio', 'flash_size': 'detect', 'flash_freq': '48m'},
26-
'esp32p4': {'flash_mode': 'dio', 'flash_size': 'detect', 'flash_freq': '80m'},
27-
'esp32s2': {'flash_mode': 'dio', 'flash_size': 'detect', 'flash_freq': '80m'},
28-
'esp32s3': {'flash_mode': 'dio', 'flash_size': 'detect', 'flash_freq': '80m'},
21+
'esp32': {'flash-mode': 'dio', 'flash-size': 'detect', 'flash-freq': '80m'},
22+
'esp32c2': {'flash-mode': 'dio', 'flash-size': 'detect', 'flash-freq': '60m'},
23+
'esp32c3': {'flash-mode': 'dio', 'flash-size': 'detect', 'flash-freq': '80m'},
24+
'esp32c5': {'flash-mode': 'dio', 'flash-size': 'detect', 'flash-freq': '80m'},
25+
'esp32c6': {'flash-mode': 'dio', 'flash-size': 'detect', 'flash-freq': '80m'},
26+
'esp32c61': {'flash-mode': 'dio', 'flash-size': 'detect', 'flash-freq': '80m'},
27+
'esp32h2': {'flash-mode': 'dio', 'flash-size': 'detect', 'flash-freq': '48m'},
28+
'esp32p4': {'flash-mode': 'dio', 'flash-size': 'detect', 'flash-freq': '80m'},
29+
'esp32s2': {'flash-mode': 'dio', 'flash-size': 'detect', 'flash-freq': '80m'},
30+
'esp32s3': {'flash-mode': 'dio', 'flash-size': 'detect', 'flash-freq': '80m'},
2931
}
3032

3133
#: dict of binaries' offset.
3234
binary_offsets: ClassVar[dict[str, list[int]]] = {
3335
'esp32': [0x1000, 0x8000, 0x10000],
36+
'esp32c2': [0x0, 0x8000, 0x10000],
3437
'esp32c3': [0x0, 0x8000, 0x10000],
3538
'esp32c5': [0x2000, 0x8000, 0x10000],
3639
'esp32c6': [0x0, 0x8000, 0x10000],
40+
'esp32c61': [0x0, 0x8000, 0x10000],
3741
'esp32h2': [0x0, 0x8000, 0x10000],
3842
'esp32p4': [0x2000, 0x8000, 0x10000],
3943
'esp32s2': [0x1000, 0x8000, 0x10000],

0 commit comments

Comments
 (0)