github.com/arduino/arduino-cloud-cli@v0.0.0-20240517070944-e7a449561083/internal/ota/boardpids.go (about)

     1  // This file is part of arduino-cloud-cli.
     2  //
     3  // Copyright (C) 2021 ARDUINO SA (http://www.arduino.cc/)
     4  //
     5  // This program is free software: you can redistribute it and/or modify
     6  // it under the terms of the GNU Affero General Public License as published
     7  // by the Free Software Foundation, either version 3 of the License, or
     8  // (at your option) any later version.
     9  //
    10  // This program is distributed in the hope that it will be useful,
    11  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    12  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13  // GNU Affero General Public License for more details.
    14  //
    15  // You should have received a copy of the GNU Affero General Public License
    16  // along with this program.  If not, see <https://www.gnu.org/licenses/>.
    17  
    18  package ota
    19  
    20  var (
    21  	BoardTypes = map[uint32]string{
    22  		0x45535033: "ESP32",
    23  		0x23418054: "MKR_WIFI_1010",
    24  		0x23418057: "NANO_33_IOT",
    25  		0x2341025B: "PORTENTA_H7_M7",
    26  		0x2341005E: "NANO_RP2040_CONNECT",
    27  		0x2341025F: "NICLA_VISION",
    28  		0x23410064: "OPTA",
    29  		0x23410266: "GIGA",
    30  		0x23410070: "NANO_ESP32",
    31  		0x23411002: "UNOR4WIFI",
    32  	}
    33  
    34  	ArduinoPidToFQBN = map[string]string{
    35  		"1002": "arduino:renesas_uno:unor4wifi",
    36  		"0070": "arduino:esp32:nano_nora",
    37  		"8057": "arduino:samd:nano_33_iot",
    38  		"804E": "arduino:samd:mkr1000",
    39  		"8052": "arduino:samd:mkrgsm1400",
    40  		"8055": "arduino:samd:mkrnb1500",
    41  		"8054": "arduino:samd:mkrwifi1010",
    42  		"005E": "arduino:mbed_nano:nanorp2040connect",
    43  		"025B": "arduino:mbed_portenta:envie_m7",
    44  		"025F": "arduino:mbed_nicla:nicla_vision",
    45  		"0064": "arduino:mbed_opta:opta",
    46  		"0266": "arduino:mbed_giga:giga",
    47  	}
    48  
    49  	ArduinoFqbnToPID = map[string]string{
    50  		"arduino:samd:nano_33_iot":            "8057",
    51  		"arduino:samd:mkr1000":                "804E",
    52  		"arduino:samd:mkrgsm1400":             "8052",
    53  		"arduino:samd:mkrnb1500":              "8055",
    54  		"arduino:samd:mkrwifi1010":            "8054",
    55  		"arduino:mbed_nano:nanorp2040connect": "005E",
    56  		"arduino:mbed_portenta:envie_m7":      "025B",
    57  		"arduino:mbed_nicla:nicla_vision":     "025F",
    58  		"arduino:mbed_opta:opta":              "0064",
    59  		"arduino:mbed_giga:giga":              "0266",
    60  		"arduino:renesas_uno:unor4wifi":       "1002",
    61  		"arduino:esp32:nano_nora":             "0070",
    62  	}
    63  
    64  	ArduinoVendorID = "2341"
    65  
    66  	Esp32MagicNumberPart1 = "4553"
    67  	Esp32MagicNumberPart2 = "5033"
    68  )