NicoHood / HoodLoader2

16u2 Bootloader to reprogram 16u2 + 328/2560 with Arduino IDE
http://www.nicohood.de
734 stars 186 forks source link

How to change device Manufacturer and Product name? #110

Closed ullMarksin closed 2 years ago

ullMarksin commented 2 years ago

Hello, after installing hoodloader2, everyone works fine, but I can't find how to change Manufacturer and Product name to my own, anyone have solution? Is those values encoded into firmware hex file?

Currently my arduino shows up as:

Device Descriptor:

0x12 bLength 0x01 iManufacturer "Arduino LLC" <- I want to change this to custom 0x02 iProduct "HoodLoader2 16u2" <- I want to change this to custom 0x03 iSerialNumber "HIDGD"

String Descriptor Table

Index LANGID String 0x00 0x0000 0x0409 0x01 0x0409 "Arduino LLC" <- I want to change this to custom 0x02 0x0409 "HoodLoader2 16u2" <- I want to change this to custom 0x03 0x0409 "HIDGD"

ullMarksin commented 2 years ago

Never mind already found solution 😎 To change Product name you need to change these values in file: c:\users\YOURUSER\appdata\local\aruino15\packages\hoodloader2\hardware\avr\2.0_5\boards.txt (Mouse is my new value)-> HoodLoader2atmega16u2.name=Mouse HoodLoader2atmega16u2.build.usb_product="Mouse" HoodLoader2atmega16u2.build.usb_manufacturer="Test"

To change Manufacturer you need to edit c:\program files64\arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp -> search for USB_MANUFACTURER "Arduino LLC" -> replace with your name