On Sat, 27 Aug 2016 03:28:49 +1000, Alexey Shmalko wrote: > > I usually produce raw binary file first: > > $ arm-none-eabi-objcopy -O binary build/ch.elf ch.bin > > and then flash that with openocd: > > $ openocd -f openocd.cfg > poll > reset halt > flash probe 0 > flash write_image erase ch.bin 0x08000000 > reset > > Note this unlikely to work for you, as your device is probably different. > > Check out my Makefile (flash target) and openocd scripts: > - https://github.com/rasendubi/bkernel/blob/master/Makefile#L70-L72 > - https://github.com/rasendubi/bkernel/blob/master/openocd.cfg > - https://github.com/rasendubi/bkernel/blob/master/openocd.tcl
I think you have put my feet on the right path. Thank you. I got so far as being able to connect openocd and halt the board, when strangely openocd lost communication. Subsequently my stlink device stubbornly fails to enumerate: [Aug28 23:54] usb 9-1: new full-speed USB device number 2 using ohci-pci [ +0.127987] usb 9-1: device descriptor read/64, error -62 [ +0.233991] usb 9-1: device descriptor read/64, error -62 [ +0.228991] usb 9-1: new full-speed USB device number 3 using ohci-pci [ +0.127962] usb 9-1: device descriptor read/64, error -62 [ +0.234022] usb 9-1: device descriptor read/64, error -62 [ +0.228991] usb 9-1: new full-speed USB device number 4 using ohci-pci [ +0.403983] usb 9-1: device not accepting address 4, error -62 [ +0.128992] usb 9-1: new full-speed USB device number 5 using ohci-pci [ +0.403986] usb 9-1: device not accepting address 5, error -62 [ +0.006086] usb usb9-port1: unable to enumerate USB device even though I have reset the USB subsystems, and even plugged it into a different PC. Neither does its LED illuminate, whereas before it did. I presume that it has failed, and am waiting for a replacement unit. Tim _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
