USB vendor ID 0000 on Blue Pill

Marian Buschsieweke marian.buschsieweke at ovgu.de
Sat Apr 7 17:41:58 CEST 2018


Hi,

thank you very much :-)

Any chance the default make gets changed so that build/gnuk-vidpid.elf is build
by default?

A quick and dirty hack to achieve this behavior is attached.

Kind regards,
Marian

On Sat, 07 Apr 2018 00:03:12 +0000
Mike Tsao <mike at sowbug.com> wrote:

> You have to build the VID/PID into the image you're flashing:
> 
> $ make build/gnuk-vidpid.elf
> 
> 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.
> 
> 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.
> 
> On Fri, Apr 6, 2018 at 12:10 PM Marian Buschsieweke <
> marian.buschsieweke at ovgu.de> wrote:  
> 
> > Hi,
> >
> > I tried to flash gnuk on my STM32F103 blue pill board, but the USB vendor
> > ID
> > is detected as 0000.
> >
> > Steps to reproduce:
> >
> > 1. Build:
> >   ./configure --vidpid=234b:0000 --target=BLUE_PILL && make
> >
> > 2. Connect Blue Pill via USB-TTL adapter:
> >   A9   <--> RX
> >   A10  <--> TX
> >   3.3V <--> 3.3 V
> >   GND  <--> GND
> >
> > 3. Flash
> >   - Set boot0 to 1, boot1 to 0, plug USB-TTL adapter in
> >   - stm32flash -w build/gnuk.bin -v -g 0x0 /dev/ttyUSB0
> >
> > 4. Remove cables and set boot0 to 0, boot1 to 0 and connect Blue Pill
> > board to
> >    USB
> >
> > Output of dmesg:
> >
> > [26499.499164] usb 1-3.2: new full-speed USB device number 77 using
> > xhci_hcd
> > [26499.605549] usb 1-3.2: New USB device found, idVendor=0000,
> > idProduct=0000
> >                                                          ^^^^
> >                                                          Wrong vendor ID
> > [26499.605556] usb 1-3.2: New USB device strings: Mfr=1, Product=2,
> > SerialNumber=3
> > [26499.605559] usb 1-3.2: Product: Gnuk Token
> > [26499.605562] usb 1-3.2: Manufacturer: Free Software Initiative of Japan
> > [26499.605565] usb 1-3.2: SerialNumber: FSIJ-1.2.9-43223327
> >
> > Does anyone know what went wrong? Thanks for your help!
> >
> > Kind regards,
> > Marian
> >
> > PS: I'm using the Blue Pill clone:
> > http://wiki.stm32duino.com/index.php?title=RobotDyn_Black_Pill
> >
> > _______________________________________________
> > Gnuk-users mailing list
> > Gnuk-users at gnupg.org
> > https://lists.gnupg.org/mailman/listinfo/gnuk-users
> >  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Makefile-Added-default-target.patch
Type: text/x-patch
Size: 740 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnuk-users/attachments/20180407/78d9a342/attachment.bin>


More information about the Gnuk-users mailing list