Skip to content

Commit 71fa11c

Browse files
committed
Merge branch 'main' into encode-ota-binary-file
2 parents ef4f6c2 + 0beecd4 commit 71fa11c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

command/ota/generate.go

+21
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,27 @@ import (
2626
inota "github.com/arduino/arduino-cloud-cli/internal/ota"
2727
)
2828

29+
30+
var (
31+
arduinoVendorID = "2341"
32+
arduinoFqbnToPID = map[string]string{
33+
"arduino:samd:nano_33_iot": "8057",
34+
"arduino:samd:mkr1000": "804E",
35+
"arduino:samd:mkrgsm1400": "8052",
36+
"arduino:samd:mkrnb1500": "8055",
37+
"arduino:samd:mkrwifi1010": "8054",
38+
"arduino:mbed_nano:nanorp2040connect": "005E",
39+
"arduino:mbed_portenta:envie_m7": "025B",
40+
"arduino:mbed_nicla:nicla_vision": "025F",
41+
"arduino:mbed_opta:opta": "0064",
42+
"arduino:mbed_giga:giga": "0266",
43+
"arduino:esp32:nano_nora": "0070",
44+
"arduino:renesas_uno:unor4wifi": "1002",
45+
}
46+
esp32MagicNumberPart1 = "4553"
47+
esp32MagicNumberPart2 = "5033"
48+
)
49+
2950
// Generate takes a .bin file and generates a .ota file.
3051
func Generate(binFile string, outFile string, fqbn string) error {
3152

0 commit comments

Comments
 (0)