1. Connecting ST-Link/V2 to STM32 part of STM8S Discovery Kit

    ST-Link/V2 is not-so-expensive JTAG/SWD debugger.

    I use ST-Link/V2 with SWD to connect STM32 part of STM8S Discovery Kit.

    The connection

    Here is the top view of STM8S Discovery Kit:

    CN5 of STM32 part of  STM8S Discovery Kit
    
        TnRST          8 7  GND       <---------- BLUE
        TDI            6 5  TMS/SWDIO …
    more »
  2. Building Gnuk for STM32 part of STM8S Discovery Kit

    Building Gnuk is not that hard after you have GNU Toolchain for ARM. This document shows exact log for your information.

    Please read README of Gnuk. Given you have the source code of Gnuk, it's simple: configure and make.

    configure

    We go to src directory at first, and invoke configure …

    more »
  3. Installing Gnuk to STM32 part of STM8S Discovery Kit

    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 …

    more »