Pages: [1]   Go Down
Author Topic: vid/pid for arduino_due_x_dbg in boards.txt  (Read 1031 times)
0 Members and 1 Guest are viewing this topic.
Pisa
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.)
Logged

Venezuela
Offline Offline
God Member
*****
Karma: 17
Posts: 523
Ground, ground, always ground
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

Pisa
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Forum Administrator
Milano, Italy
Offline Offline
Sr. Member
*****
Karma: 23
Posts: 292
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Luca!

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

https://github.com/arduino/Arduino/commit/71bb7f7ae37773946513a2a0da13942ae18ce6ab

Thanks
Logged

C.

Pisa
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Great. Thanks!

Luca
Logged

Pages: [1]   Go Up
Jump to: