Update Arduino core to v2.0.11
- Added several new boards (including Nano ESP32) // Resolves #1162 - Added DFU upload method via dfu-util for the new Arduino Nano ESP32 - Updated IDF version to v4.4.5 for mixed Arduino/IDF projects
This commit is contained in:
+11
-1
@@ -46,6 +46,12 @@ class Espressif32Platform(PlatformBase):
|
||||
if os.path.isdir("ulp"):
|
||||
self.packages["toolchain-esp32ulp"]["optional"] = False
|
||||
|
||||
# Currently only Arduino Nano ESP32 uses the dfuutil tool as uploader
|
||||
if variables.get("board") == "arduino_nano_esp32":
|
||||
self.packages["tool-dfuutil-arduino"]["optional"] = False
|
||||
else:
|
||||
del self.packages["tool-dfuutil-arduino"]
|
||||
|
||||
build_core = variables.get(
|
||||
"board_build.core", board_config.get("build.core", "arduino")
|
||||
).lower()
|
||||
@@ -96,7 +102,7 @@ class Espressif32Platform(PlatformBase):
|
||||
|
||||
if "arduino" in frameworks:
|
||||
# Downgrade the IDF version for mixed Arduino+IDF projects
|
||||
self.packages["framework-espidf"]["version"] = "~3.40404.0"
|
||||
self.packages["framework-espidf"]["version"] = "~3.40405.0"
|
||||
else:
|
||||
# Use the latest toolchains available for IDF v5.0
|
||||
for target in (
|
||||
@@ -247,6 +253,10 @@ class Espressif32Platform(PlatformBase):
|
||||
"default": link == debug.get("default_tool"),
|
||||
}
|
||||
|
||||
# Avoid erasing Arduino Nano bootloader by preloading app binary
|
||||
if board.id == "arduino_nano_esp32":
|
||||
debug["tools"][link]["load_cmds"] = "preload"
|
||||
|
||||
board.manifest["debug"] = debug
|
||||
return board
|
||||
|
||||
|
||||
Reference in New Issue
Block a user