<div dir="ltr"><div>You have to build the VID/PID into the image you're flashing:</div><div><br></div><div>$ make build/gnuk-vidpid.elf</div><div><br></div><div>This is a recent change to the project. I missed it at first, too, but it's mentioned in the README at line 410. I don't know why make is a separate step from make build/gnuk-vidpid.elf.</div><div><br></div><div>I don't remember off the top of my head whether you have to flash the gnuk-vidpid.hex file rather than just gnuk.hex.</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Apr 6, 2018 at 12:10 PM Marian Buschsieweke <<a href="mailto:marian.buschsieweke@ovgu.de">marian.buschsieweke@ovgu.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I tried to flash gnuk on my STM32F103 blue pill board, but the USB vendor ID<br>
is detected as 0000.<br>
<br>
Steps to reproduce:<br>
<br>
1. Build:<br>
  ./configure --vidpid=234b:0000 --target=BLUE_PILL && make<br>
<br>
2. Connect Blue Pill via USB-TTL adapter:<br>
  A9   <--> RX<br>
  A10  <--> TX<br>
  3.3V <--> 3.3 V<br>
  GND  <--> GND<br>
<br>
3. Flash<br>
  - Set boot0 to 1, boot1 to 0, plug USB-TTL adapter in<br>
  - stm32flash -w build/gnuk.bin -v -g 0x0 /dev/ttyUSB0<br>
<br>
4. Remove cables and set boot0 to 0, boot1 to 0 and connect Blue Pill board to<br>
   USB<br>
<br>
Output of dmesg:<br>
<br>
[26499.499164] usb 1-3.2: new full-speed USB device number 77 using xhci_hcd<br>
[26499.605549] usb 1-3.2: New USB device found, idVendor=0000, idProduct=0000<br>
                                                         ^^^^<br>
                                                         Wrong vendor ID<br>
[26499.605556] usb 1-3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3<br>
[26499.605559] usb 1-3.2: Product: Gnuk Token<br>
[26499.605562] usb 1-3.2: Manufacturer: Free Software Initiative of Japan<br>
[26499.605565] usb 1-3.2: SerialNumber: FSIJ-1.2.9-43223327<br>
<br>
Does anyone know what went wrong? Thanks for your help!<br>
<br>
Kind regards,<br>
Marian<br>
<br>
PS: I'm using the Blue Pill clone:<br>
<a href="http://wiki.stm32duino.com/index.php?title=RobotDyn_Black_Pill" rel="noreferrer" target="_blank">http://wiki.stm32duino.com/index.php?title=RobotDyn_Black_Pill</a><br>
<br>
_______________________________________________<br>
Gnuk-users mailing list<br>
<a href="mailto:Gnuk-users@gnupg.org" target="_blank">Gnuk-users@gnupg.org</a><br>
<a href="https://lists.gnupg.org/mailman/listinfo/gnuk-users" rel="noreferrer" target="_blank">https://lists.gnupg.org/mailman/listinfo/gnuk-users</a><br>
</blockquote></div>