You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PlatformIO Version (platformio --version): PlatformIO, version 2.9.0.dev0
Description of problem
Some boards’ serial ports don’t get auto-discovered when they’re using a variant PID.
VID/PID pairs can vary for a board depending on the mode they’re in. I’m on a MediaTek LinkIt 7688 DUO. In pure bootloader mode, it shows up as 0E8D:AB00; when running a sketch, it uses 0E80:AB0**1**.
I don’t think there is any need need to support multiple -DUSB_PID settings. In the 7688 DUO case, we always want to use AB0**1** when building; when looking for the serial port to upload, just detect the AB00 as well.
PlatformIO Version (
platformio --version
): PlatformIO, version 2.9.0.dev0Description of problem
Some boards’ serial ports don’t get auto-discovered when they’re using a variant PID.
VID/PID pairs can vary for a board depending on the mode they’re in. I’m on a MediaTek LinkIt 7688 DUO. In pure bootloader mode, it shows up as 0E8D:AB00; when running a sketch, it uses 0E80:AB0**1**.
Detection parameters are defined in the
boards.txt
: https://github.com/MediaTek-Labs/linkit-smart-7688-duo-arduino/blob/master/mtk/avr/boards.txt#L10I don’t think there is any need need to support multiple
-DUSB_PID
settings. In the 7688 DUO case, we always want to use AB0**1** when building; when looking for the serial port to upload, just detect theAB00
as well.This is used quite a bit in core Arduino; the Leonardo definition is an example: https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/boards.txt#L267
In this case, the PID 0036 is the pure bootloader, and the 8036 is the CDC ACM device.
VID 2341 belongs to “Arduino SA”, and 2A03 belongs to “dog hunter AG”. This is fallout from the Arduino.cc breakup.
(For more fun, see the Arduino Micro definition at https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/boards.txt#L306 which tries to deal with the Arduino vs Genuino mess. I recommend totally ignoring this.)
The text was updated successfully, but these errors were encountered: