I have searched the forums and google high and low for how to change the Leonardo PID. I have updated the .inf file to include the PID's that I need but I don't know how to make that change on the device itself.
Thanks for your help!
I have searched the forums and google high and low for how to change the Leonardo PID. I have updated the .inf file to include the PID's that I need but I don't know how to make that change on the device itself.
Thanks for your help!
Must be a software thing? PID is only mentioned twice in the datasheet, 22.18.1 & 22.18.2. Didn't really seem to be driver related.
I feel like it might be changeable by uploading the bootloader. The boards are identified by their VID and PID (Vendor and Product ID). I know it can be done because whoever was previously working on this project has changed them and modified the usb driver to recognize the devices (and it works). I just don't know how to replicate it so my other Leonardo is seen as the same device.
If you want to change the PID for the bootloader, it can be changed in the makefile. See 'arduino-1.0.5/hardware/arduino/bootloaders/caterina/Makefile'. Then recompile the bootloader and install.
If you want to change the PID for your program, edit the leonardo entry in the boards.txt file. See 'arduino-1.0.5/hardware/arduino/boards.txt'. Then recompile your program and upload.
See? It is a software thing
You will run into a few issues if you just change it in the makefile and boards.txt. AVRDudeUploader.java will need to be updated, as well as some of the descriptors in the bootloader itself. It wont trigger the reset properly, and therefor wont upload if not done correctly.
Crossroads, you are correct! I am new to this and need all the help I can get I guess ha.
Thanks for your reply's.
Is there a walkthrough or tutorial on how to complete the whole process correctly? From what I currently have I don't believe I need to manipulate the bootloader PID (all of the other boards come up as 0036). So I should be able to just modify boards.txt and recompile/upload on a per board basis?
Thanks again!
mgp141:
Is there a walkthrough or tutorial on how to complete the whole process correctly? From what I currently have I don't believe I need to manipulate the bootloader PID (all of the other boards come up as 0036). So I should be able to just modify boards.txt and recompile/upload on a per board basis?
I'm also interested in this as my China made Arduino Micro does not show up in dd-wrt.
hub.c: new USB device 01:02.0-2, assigned address 6
ttyACM0: USB ACM device
usb.c: USB disconnect on device 01:02.0-2 address 6
hub.c: new USB device 01:02.0-2, assigned address 7
usb.c: USB device 7 (vend/prod 0x2341/0x8037) is not claimed by any active driver.
I believe that the address 6 device is the bootloader, and then the actual sketch shows up as 'vend/prod 0x2341/0x8037' with the address 7. What will be the consequences if I change the vend/prod to '0x2341/0x0043' (the same as my UNO,which works fine in dd-wrt). Is it possible to change by just edit the boards.txt file?
p.s. Sorry to steal the thread, but we are discussing the same issue. d.s.