Page 1 of 1

STM32duino Change VendorId

Posted: Tue Aug 23, 2022 7:00 am
by hyur
Can I edit vendorID or productID of stm32duino?

If go to "tool -get Board Info" in the Arduino IDE,
You can get board information related to STM32.

Can the Vendor ID or Product ID be modified through ST's software?

Please let me know if there is a way

Re: STM32duino Change VendorId

Posted: Tue Aug 23, 2022 8:36 am
by GonzoG
Not through software.
Those data are in USB descriptor and it's in MCU firmware so it's the only place where you need to change them.
But if you change them, you will also might loose USB connection to PC, as those values are one of few things that PC system use to assign drivers to devices.

Re: STM32duino Change VendorId

Posted: Tue Aug 23, 2022 11:54 pm
by hyur
@GonzoG

I want to change the vendor ID, but I can't find the root.

Could you please tell me the route?

Re: STM32duino Change VendorId

Posted: Wed Aug 24, 2022 2:18 am
by ag123
the usual places to search are platform.txt, boards.txt and the source codes

Re: STM32duino Change VendorId

Posted: Thu Aug 25, 2022 3:48 am
by hyur
@ag123 @GonzoG

After changing VID:1EAF to 1EBF among the contents of boards.txt and executing compiling, I can clearly see that the IDE searches for a device of 1EBF.

This fact helps me, but there is another problem that I want to solve fundamentally.
I uploaded the bootloader using generic_boot20_pc13.bin, but I want to change the VID and PID or manufacturer name of the board when uploading this bootloader.

is this possible?

Re: STM32duino Change VendorId

Posted: Thu Aug 25, 2022 4:09 am
by ag123
normally VID/PID aren't important, during programming simply recognize a fixed VID/PID. as simple as that.
if you change the VID/PID the programmers likely won't work.

or simply use a stm device with built-in DFU, it solves the problem

Re: STM32duino Change VendorId

Posted: Thu Aug 25, 2022 9:07 am
by GonzoG
hyur wrote: Thu Aug 25, 2022 3:48 am @ag123 @GonzoG

After changing VID:1EAF to 1EBF among the contents of boards.txt and executing compiling, I can clearly see that the IDE searches for a device of 1EBF.

This fact helps me, but there is another problem that I want to solve fundamentally.
I uploaded the bootloader using generic_boot20_pc13.bin, but I want to change the VID and PID or manufacturer name of the board when uploading this bootloader.

is this possible?
Yes, it is. Those bootloaders are open-source, so you have to download source code, edit VID and PID, compile it and flash to board.
Then, if you want to use it to upload programs to board, you have to change those in files used to flash programs. It might be just editing some files, but it might again need downloading source code, changing it and compiling.

Re: STM32duino Change VendorId

Posted: Fri Aug 26, 2022 3:11 am
by hyur
Yes, it is. Those bootloaders are open-source, so you have to download source code, edit VID and PID, compile it and flash to board.
Then, if you want to use it to upload programs to board, you have to change those in files used to flash programs. It might be just editing some files, but it might again need downloading source code, changing it and compiling.
@GonzoG

Your advice is of great help to me.
Thank you.