@@ -23,7 +23,9 @@ Here's what you need for this task:
23
23
3 . [ STM32 ST-Link Utility] [ 2 ] from ST Microelectronics.
24
24
4 . GNU ARM Embedded toolchain and the Nordic nRF5 SDK. Read
25
25
our [ SDk setup guide] ( nrf5-sdk-setup.md ) for instructions.
26
- 5 . Black Magic Probe firmware.
26
+ 5 . Black Magic Probe firmware. [ Click here] [ 6 ] to read about how
27
+ to build it. (You need * blackmagic.bin* and * blackmagic_dfu.bin* built
28
+ with * make PROBE_HOST=stlink* .)
27
29
28
30
(Why not just use two ST-Link V2s? Well, because some of those use the STMF32F101
29
31
chip, and we need STM32F103 to ensure that Black Magic Probe firmware
@@ -35,10 +37,31 @@ Here's what the hardware looks like:
35
37
36
38
Now, hook them up as follows.
37
39
40
+ | ST-Link V2 | Blue Pill |
41
+ | ----------| -------|
42
+ | 3.3 | 3.3|
43
+ | GND | GND|
44
+ | SWDIO | DIO|
45
+ | SWCLK | DCLK|
46
+
47
+ Here's what the connections look like:
48
+
49
+ ![ ST Link & Blue Pill] ( images/stlink-bp.jpg )
50
+
38
51
Ensure that the yellow jumpers on the "blue pill" are set such that BOOT0 and
39
52
BOOT1 and connected to GND.
40
53
41
- - driver issues -
54
+ Now open ST-Link utility and erase the target chip (blue pill). Then program * blackmagic_dfu.bin* to the blue pill at the address * 0x8000000* .
55
+
56
+ ![ ST Link Utility] ( images/stlink-util.png )
57
+
58
+ Next, program * blackmagic.bin* at the address * 0x8002000* in a similar fashion.
59
+
60
+ If all went well, you'll see the following in the * Device Manager* .
61
+
62
+ ![ Device Manager] ( images/dm.png )
63
+
64
+ Now your Black Magic Probe clone is ready to some programming.
42
65
43
66
### Using the hardware
44
67
@@ -221,3 +244,4 @@ within Atom.
221
244
[ 3 ] : https://atom.io/
222
245
[ 4 ] : https://atom.io/packages/atom-gdb-debugger
223
246
[ 5 ] : https://www.nostarch.com/debugging.htm
247
+ [ 6 ] : https://github.com/blacksphere/blackmagic/wiki/Hacking
0 commit comments