As on the pic below.
Red goes to the 5v on the power connector.
Black goes to GND on the power connector.
White goes to TX.
Green goes to RX.
Boot0 is jumpered to 3.3v (set to high).
If the Flash-Demo software says unrecognized, short the reset for a sec, and then try again.
More info here: