AnnyCaroline / ceu-selectdevice

0 stars 0 forks source link

Support boards with no vid and pid specified at board.txt #3

Open AnnyCaroline opened 5 years ago

AnnyCaroline commented 5 years ago

Some boards do not have vid and pid at board.txt. For example:

##############################################################

nano.name=Arduino Nano

nano.upload.tool=avrdude
nano.upload.protocol=arduino

nano.bootloader.tool=avrdude
nano.bootloader.unlock_bits=0x3F
nano.bootloader.lock_bits=0x0F

nano.build.f_cpu=16000000L
nano.build.board=AVR_NANO
nano.build.core=arduino
nano.build.variant=eightanaloginputs

## Arduino Nano w/ ATmega328P
## --------------------------
nano.menu.cpu.atmega328=ATmega328P

nano.menu.cpu.atmega328.upload.maximum_size=30720
nano.menu.cpu.atmega328.upload.maximum_data_size=2048
nano.menu.cpu.atmega328.upload.speed=115200

nano.menu.cpu.atmega328.bootloader.low_fuses=0xFF
nano.menu.cpu.atmega328.bootloader.high_fuses=0xDA
nano.menu.cpu.atmega328.bootloader.extended_fuses=0xFD
nano.menu.cpu.atmega328.bootloader.file=optiboot/optiboot_atmega328.hex

nano.menu.cpu.atmega328.build.mcu=atmega328p

## Arduino Nano w/ ATmega328P (old bootloader)
## --------------------------
nano.menu.cpu.atmega328old=ATmega328P (Old Bootloader)

nano.menu.cpu.atmega328old.upload.maximum_size=30720
nano.menu.cpu.atmega328old.upload.maximum_data_size=2048
nano.menu.cpu.atmega328old.upload.speed=57600

nano.menu.cpu.atmega328old.bootloader.low_fuses=0xFF
nano.menu.cpu.atmega328old.bootloader.high_fuses=0xDA
nano.menu.cpu.atmega328old.bootloader.extended_fuses=0xFD
nano.menu.cpu.atmega328old.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex

nano.menu.cpu.atmega328old.build.mcu=atmega328p

Execute SelectDevice with one o these boards connected will raise the error: (Form1.cs, line 95) image

Check how the Arduino IDE handle this boards and update SelectDevice to support them.

AnnyCaroline commented 5 years ago
board vid and pid build.vid
Arduino Yún x x
Arduino/Genuino Uno x
Arduino Duemilanove or Diecimila
Arduino Nano
Arduino/Genuino Mega or Mega 2560 x
Arduino Mega ADK x
Arduino Leonardo x x
Arduino Leonardo ETH x x
Arduino/Genuino Micro x x (4,5)
Arduino Esplora x x
Arduino Mini
Arduino Ethernet
Arduino Fio
Arduino BT
LilyPad Arduino USB x x
LilyPad Arduino
Arduino Pro or Pro Mini
Arduino NG or older
Arduino Robot Control x x
Arduino Robot Motor x x
Arduino Gemma x
Adafruit Circuit Playground 32u4 w/Caterina Configuration x
Arduino Yún Mini x x
Arduino Industrial 101 x x
Linino One x x
Arduino Uno WiFi x