Skip to content

Commit 6a2339a

Browse files
authored
Merge pull request #349 from pennam/bin2ota
bin2ota Add missing boards
2 parents 5776c7f + f69faa1 commit 6a2339a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

extras/tools/bin2ota.py

Lines changed: 5 additions & 1 deletion
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]")
8+
print (" BOARD = [MKR_WIFI_1010 | NANO_33_IOT | PORTENTA_H7_M7 | NANO_RP2040_CONNECT | NICLA_VISION | OPTA ]")
99
sys.exit()
1010

1111
board = sys.argv[1]
@@ -26,6 +26,10 @@
2626
magic_number = 0x2341025B.to_bytes(4,byteorder='little')
2727
elif board == "NANO_RP2040_CONNECT":
2828
magic_number = 0x2341005E.to_bytes(4,byteorder='little')
29+
elif board == "NICLA_VISION"
30+
magic_number = 0x2341025F.to_bytes(4,byteorder='little')
31+
elif board == "OPTA":
32+
magic_number = 0x23410064.to_bytes(4,byteorder='little')
2933
else:
3034
print ("Error,", board, "is not a supported board type")
3135
sys.exit()

0 commit comments

Comments
 (0)