Q: I got FST-01 with Gnuk 1.0.1. I want to reflash it to replace firmware with my own one (newer development version of Gnuk, or NeuG). How can I reflash with SWD port? Any recommendation for SWD debugger?
Answers
ST-Link/V2 compatible -- Anon from Russia
"ST-Link/V2 Mini" works fine. It is indeed seems to be 100% compatible with standard ST-Link/V2.
The total price was under $7 (which includes 4 Dupont cables). See: http://www.aliexpress.com/item/Free-Shipping-1SET-ST-Link-st-link-V2-for-STM8S-STM8L-STM32-Cortex-M0-Cortex-M3/1619197946.html
Here is a picture:

ST-Link/V2 compatible
Diego Marciano kindly shared an article.
Compiling and flashing GnuK binaries to the FST-01 using ST-LINK/V2 clone with OPENOCD manually or with the scripts provided in the gnuk repository
http://blog.nodonogard.net/2015/11/compiling-and-flashing-gnuk-binaries-to.html
ST-Link/V2 -- gniibe
I am using ST-Link/V2, as its availability is good.
Please see SWD connection to FST-01 for pictures of connection.
Note that I connect USB Hub to feed power from USB Hub to FST-01 (while the examples above feed power from ST-Link/V2 compatible).
Note that the wire should be short enough to keep good signal.
You need setting for ST-Link/V2, say, in a file /etc/udev/rules.d/10-stlink.rules (on GNU/Linux):
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0483", \ ATTR{idProduct}=="3748", GROUP="tape", MODE="664", SYMLINK+="stlink"
Then, you can unprotect flash ROM of FST-01 by:
$ ./tool/stlinkv2.py -u
and let the board power off and power on (this is needed procedure for unprotection).
After that, you can program by:
$ ./tool/stlinkv2.py <BINARY>.bin
and again power off and power on (this is needed for protection).
The tool is available within the Gnuk source code distribution under the directory tool/.