Skip to content

Commit d44e21c

Browse files
committed
bin2ota: add Arduino NANO ESP32
1 parent fdf04d4 commit d44e21c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extras/tools/bin2ota.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
if len(sys.argv) != 4:
77
print ("Usage: bin2ota.py BOARD sketch.bin sketch.ota")
8-
print (" BOARD = [ MKR_WIFI_1010 | NANO_33_IOT | PORTENTA_H7_M7 | NANO_RP2040_CONNECT | NICLA_VISION | OPTA | GIGA ]")
8+
print (" BOARD = [ MKR_WIFI_1010 | NANO_33_IOT | PORTENTA_H7_M7 | NANO_RP2040_CONNECT | NICLA_VISION | OPTA | GIGA | NANO_ESP32 ]")
99
sys.exit()
1010

1111
board = sys.argv[1]
@@ -32,6 +32,8 @@
3232
magic_number = 0x23410064.to_bytes(4,byteorder='little')
3333
elif board == "GIGA":
3434
magic_number = 0x23410266.to_bytes(4,byteorder='little')
35+
elif board == "NANO_ESP32":
36+
magic_number = 0x23410070.to_bytes(4,byteorder='little')
3537
# Magic number for all ESP32 boards not related to (VID/PID)
3638
elif board == "ESP32":
3739
magic_number = 0x45535033.to_bytes(4,byteorder='little')

0 commit comments

Comments
 (0)