Prerequisite
Note that once you install Gnuk to its STM32F103,there is no way to recover to original state. That is, you cannot use the feature of USB dongle for STM8S any more.
You have JTAG debugger which uses FTDI 2232D.
You installed OpenOCD.
You have source code of Gnuk …