<!DOCTYPE html><html><head><title></title><style type="text/css">#fastmail-quoted #fastmail-quoted-fastmail-quoted p.fastmail-quoted-fastmail-quoted-MsoNormal,#fastmail-quoted  #fastmail-quoted-fastmail-quoted p.fastmail-quoted-fastmail-quoted-MsoNoSpacing{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;}
#fastmail-quoted p.fastmail-quoted-MsoNormal,#fastmail-quoted  p.fastmail-quoted-MsoNoSpacing{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;}

p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Ok, I just confirmed that there's a problem with Ubuntu 18.04 build environment (gcc version or other component) since by compiling inside a docker with an older release (I used gcc:7 image) I could build both the old and the current version and works OK.<br></div><div><br></div><div>I wouldn't know how this can be debugged, but I think it is something to consider.<br></div><div><br></div><div>Best,<br></div><div>Matias<br></div><div><br></div><div>On Mon, Mar 25, 2019, at 19:47, Matias N. wrote:<br></div><blockquote type="cite" id="fastmail-quoted"><div>Actually, I found the image I originally flashed the first time I used gnuk (version 1.2.8) and it worked perfectly. It seems that I cannot build a valid .bin image. I'm on Ubuntu 18.04, btw. Anyone else had any problems creating a good binary for the st-link dongle?<br></div><div><br></div><div>On Mon, Mar 25, 2019, at 18:29, Matias N. wrote:<br></div><blockquote id="fastmail-quoted-fastmail-quoted" type="cite"><div>Hi,<br></div><div>I was using gnuk on my st-link dongle for some time. I tried to update using gnuk scripts and my board stopped responding. Since I figured I messed up doing this I went ahead and recompiled gnuk and flashed using another st-link dongle. Flashing works however onces re-plugged the device cannot reenumerate. I get:<br></div><div><br></div><div>[531046.370438] usb usb3-port4: unable to enumerate USB device<br></div><div>[531051.092809] usb 3-3: USB disconnect, device number 14<br></div><div>[531058.670516] usb 3-4: new full-speed USB device number 39 using xhci_hcd<br></div><div>[531058.798583] usb 3-4: device descriptor read/64, error -71<br></div><div>[531059.034586] usb 3-4: device descriptor read/64, error -71<br></div><div>[531059.270525] usb 3-4: new full-speed USB device number 40 using xhci_hcd<br></div><div>[531059.398550] usb 3-4: device descriptor read/64, error -71<br></div><div>[531059.638560] usb 3-4: device descriptor read/64, error -71<br></div><div>[531059.746567] usb usb3-port4: attempt power cycle<br></div><div>[531060.398516] usb 3-4: new full-speed USB device number 41 using xhci_hcd<br></div><div>[531060.398622] usb 3-4: Device not responding to setup address.<br></div><div><br></div><div>Since I figured maybe I failed programming, I downloaded a DFU binary configured for the led on PA9 (as is the case for this dongle) and this works perfectly (right after flashing, the LED starts to blink). So, I'm thinking this could be a problem then with the gnuk binary I'm obtaining. I tried with lastest release and also with the version I had, 1.2.8.<br></div><div><br></div><div>I'm doing (for 1.2.8):<br></div><div>./configure --vidpid=234b:0000 --target=ST_DONGLE<br></div><div>make build/gnuk-vidpid.bin<br></div><div>openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -c init -c "reset halt" -c "flash write_image erase build/gnuk-vidpid.bin 0x08000000" -c "verify_image build/gnuk-vidpid.bin" -c "reset run" -c "shutdown"<br></div><div><br></div><div>I'm not sure if this is due to the board not being in reset or something (since the dongle does not have the reset pin mapped). However, if that's the case, I don't understand why flashing the DFU binary works.<br></div><div><br></div><div>Maybe I could ask if someone can send me a precompiled (working) binary for the ST-link dongle so I can try and flash that.<br></div><div><br></div><div>Thanks,<br></div><div>Matias<br></div><div><br></div></blockquote><div><br></div></blockquote><div><br></div></body></html>