vid/pid for arduino_due_x_dbg in boards.txt

Hi,
https://raw.github.com/arduino/Arduino/ide-1.5.x/hardware/arduino/sam/boards.txt (as of Sun Nov 3 10:22:06 2013) reads:

...
arduino_due_x_dbg.vid.0=0x2341
arduino_due_x_dbg.pid.1=0x003d
...

Am I missing something sublte or the second line should really be

arduino_due_x_dbg.pid.0=0x003d

?

(And I apologize in advance if this is a stupid question.)

Hello ibaldini,

I believe the board.txt is OK.

In my understanding, given that both USB interfaces ("Programming' and 'Native') are embedded in the same vendor embodiment (Arduino), they have the same Vendor ID.

vid.0=0x2341 (Programming)
vid.0=0x2341 (Native)

In reference to the USB Product IDs, each USB interface uses a different firmware. 8-bit AVR (handle with ATmega16U2) for the 'Programming' port and SAM3X8E for the 'Native' port. Thus, there must be a different ID for each product which permits (IDE 1.5.4) the auto detection of boards connected to each serial port.

pid.1=0x003d (Programming)
pid.0=0x003e (Native)

Notice that in case you need to change/reprogram the ATmega16U2, you will need a unique reference of the ATmega using vid.0 and pid.1. Similar case for the SAM3X8E which ID depends on the running firmware.

Your question do raise another question of whether is required or not a pid.2 when running Atmel's SAM-BA bootloader and a JTAG with pid=0x6124.

Regards!

Thanks for the reply!

I'm not sure I understand, though (and, really I hate to be insistent, but clearly I am missing something).

There are many avr arduino boards with two serial interfaces, and pretty much all of these interfaces have vid 0x2341. Yet, in the avr boards.txt files for yun, uno, mega and alike I do see vid.0, pid.0, vid.1 and pid.1. Both vid.0 and vid.1 are 0x2341. How is the due different?

Thanks again,
Luca

Hi Luca!

You're right there is an error on the boards.txt, I've fixed it for the next release:

Thanks

Great. Thanks!

Luca