+8
-1
@@ -157,6 +157,7 @@ class Espressif32Platform(PlatformBase):
|
|||||||
supported_debug_tools = [
|
supported_debug_tools = [
|
||||||
"cmsis-dap",
|
"cmsis-dap",
|
||||||
"esp-prog",
|
"esp-prog",
|
||||||
|
"esp-bridge",
|
||||||
"iot-bus-jtag",
|
"iot-bus-jtag",
|
||||||
"jlink",
|
"jlink",
|
||||||
"minimodule",
|
"minimodule",
|
||||||
@@ -167,6 +168,9 @@ class Espressif32Platform(PlatformBase):
|
|||||||
"tumpa",
|
"tumpa",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if board.get("build.mcu", "") in ("esp32c3", "esp32s3"):
|
||||||
|
supported_debug_tools.append("esp-builtin")
|
||||||
|
|
||||||
upload_protocol = board.manifest.get("upload", {}).get("protocol")
|
upload_protocol = board.manifest.get("upload", {}).get("protocol")
|
||||||
upload_protocols = board.manifest.get("upload", {}).get("protocols", [])
|
upload_protocols = board.manifest.get("upload", {}).get("protocols", [])
|
||||||
if debug:
|
if debug:
|
||||||
@@ -178,7 +182,6 @@ class Espressif32Platform(PlatformBase):
|
|||||||
if "tools" not in debug:
|
if "tools" not in debug:
|
||||||
debug["tools"] = {}
|
debug["tools"] = {}
|
||||||
|
|
||||||
# Only FTDI based debug probes
|
|
||||||
for link in upload_protocols:
|
for link in upload_protocols:
|
||||||
if link in non_debug_protocols or link in debug["tools"]:
|
if link in non_debug_protocols or link in debug["tools"]:
|
||||||
continue
|
continue
|
||||||
@@ -190,6 +193,10 @@ class Espressif32Platform(PlatformBase):
|
|||||||
openocd_interface = "ftdi/esp32s2_kaluga_v1"
|
openocd_interface = "ftdi/esp32s2_kaluga_v1"
|
||||||
else:
|
else:
|
||||||
openocd_interface = "ftdi/esp32_devkitj_v1"
|
openocd_interface = "ftdi/esp32_devkitj_v1"
|
||||||
|
elif link == "esp-bridge":
|
||||||
|
openocd_interface = "esp_usb_bridge"
|
||||||
|
elif link == "esp-builtin":
|
||||||
|
openocd_interface = "esp_usb_jtag"
|
||||||
else:
|
else:
|
||||||
openocd_interface = "ftdi/" + link
|
openocd_interface = "ftdi/" + link
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user