FST-01 has SWD port to write flash ROM of MCU.
There had been no good SWD debugger (hardware and software) in the past.
Now, ST-Link/V2 is available, and it is not expensive.
While waiting new OpenOCD release which supports ST-Link/V2, I wrote
tool/stlikv2.py to write Gnuk image to FST-01.
This article explains how I connect FST-01 and ST-Link/V2.
SWD connection of ST-Link/V2
I connect FST-01 and ST-Link/V2 by two cables.
RED and BLUE cable is connected to power port, and WHITE and BLACK
cable should be connected to SWD port. That's because ST-Link/V2
requires MCU Vdd to detect target board.
Here is a figure:
CN3 of ST-Link/V2
1 2 [MCU VDD] RED ----->
3 4 [GND ] BLUE -----> Power port of FST-01
/--- BLACK [SWD-IO] 7 8
|/-- WHITE [SWDCLK] 9 10
vv 19 20
SWD port of FST-01
Top View of FST-01:
| | SWD port (GND, SWD-CLK, SWD-IO)
Power port +---------------------+
RED <--- Vdd | ()() -------+
BLUE <--- GND | | |
|()() I/O port | USB |
| | |
Making The Cables
I use Mac-8's XC-2 and 2.54mm pitch 2-pin connector to make the cables.
Here are those parts.
I cut the wire of XC-2 to 12cm or so, and strip the ends.
Then, I put receptacles to the wires and put them to connector(enclosure).
Result is here.
Using the cables
Here is a pocture to connect FST-01 and ST-Link/V2 with the cables.
Note that I need to put the head of XC-2 by different directions,
as the head is a bit bigger than the pitch of holes.
Green box is a USB Hub.