From d44e21c88c3bd359a396f219619b69b28ebcb016 Mon Sep 17 00:00:00 2001 From: pennam Date: Tue, 25 Jul 2023 13:23:49 +0200 Subject: [PATCH] bin2ota: add Arduino NANO ESP32 --- extras/tools/bin2ota.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extras/tools/bin2ota.py b/extras/tools/bin2ota.py index 651a51740..5ec788d95 100755 --- a/extras/tools/bin2ota.py +++ b/extras/tools/bin2ota.py @@ -5,7 +5,7 @@ if len(sys.argv) != 4: print ("Usage: bin2ota.py BOARD sketch.bin sketch.ota") - print (" BOARD = [ MKR_WIFI_1010 | NANO_33_IOT | PORTENTA_H7_M7 | NANO_RP2040_CONNECT | NICLA_VISION | OPTA | GIGA ]") + print (" BOARD = [ MKR_WIFI_1010 | NANO_33_IOT | PORTENTA_H7_M7 | NANO_RP2040_CONNECT | NICLA_VISION | OPTA | GIGA | NANO_ESP32 ]") sys.exit() board = sys.argv[1] @@ -32,6 +32,8 @@ magic_number = 0x23410064.to_bytes(4,byteorder='little') elif board == "GIGA": magic_number = 0x23410266.to_bytes(4,byteorder='little') +elif board == "NANO_ESP32": + magic_number = 0x23410070.to_bytes(4,byteorder='little') # Magic number for all ESP32 boards not related to (VID/PID) elif board == "ESP32": magic_number = 0x45535033.to_bytes(4,byteorder='little')