ST-LINK/V2 ID 0000:0000

Ardavast Dayleryan ardavast at noiseoverip.com
Thu Mar 14 16:00:24 CET 2019


Hello,

I saw that there was a similar thread here before, but I still can't
understand what am I doing wrong.
The versions are:
gnuk: 177ef67edfa2306c2a369a037362385c354083e1 (release/1.2.14)
chopstx: aeea3c31f8dab3e5920e4c35f6199b519f928c79 (release/1.14)

I run Ubuntu 18.04, so I used the toolchain from here:
https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
I compiled gnuk with these commands:
./configure --vidpid=234b:0000 --target=ST_DONGLE
make
CROSS=/home/ardavast/Downloads/gcc-arm-none-eabi-8-2018-q4-major/bin/arm-none-eabi-
build/gnuk-vidpid.bin

I flashed an ST-LINK/V2 device with OpenOCD:
reset halt
stm32f1x unlock 0
reset halt
stm32f1x mass_erase 0
flash write_bank 0 /home/ardavast/src/gnuk-orig/src/build/gnuk-vidpid.bin 0
stm32f1x lock 0
reset halt

After plugging the device, I get the following:
dmesg:
[ 8192.537428] usb 3-3: new full-speed USB device number 45 using xhci_hcd
[ 8192.686923] usb 3-3: New USB device found, idVendor=0000, idProduct=0000
[ 8192.686928] usb 3-3: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[ 8192.686931] usb 3-3: Product: Gnuk Token
[ 8192.686934] usb 3-3: Manufacturer: Free Software Initiative of Japan
[ 8192.686937] usb 3-3: SerialNumber: FSIJ-1.2.14-67023331

usb-devices:
T:  Bus=03 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 45 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev=00.00
S:  Manufacturer=Free Software Initiative of Japan
S:  Product=Gnuk Token
S:  SerialNumber=FSIJ-1.2.14-67023331
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=0b(scard) Sub=00 Prot=00 Driver=(none)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnuk-users/attachments/20190314/9cca068a/attachment.html>


More information about the Gnuk-users mailing list