Skip to content

Commit b8d2481

Browse files
author
electronut
committed
updating docs
1 parent 5691613 commit b8d2481

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

blackmagic-prog.md

+26-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ Here's what you need for this task:
2323
3. [STM32 ST-Link Utility][2] from ST Microelectronics.
2424
4. GNU ARM Embedded toolchain and the Nordic nRF5 SDK. Read
2525
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*.)
2729

2830
(Why not just use two ST-Link V2s? Well, because some of those use the STMF32F101
2931
chip, and we need STM32F103 to ensure that Black Magic Probe firmware
@@ -35,10 +37,31 @@ Here's what the hardware looks like:
3537

3638
Now, hook them up as follows.
3739

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+
3851
Ensure that the yellow jumpers on the "blue pill" are set such that BOOT0 and
3952
BOOT1 and connected to GND.
4053

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.
4265

4366
### Using the hardware
4467

@@ -221,3 +244,4 @@ within Atom.
221244
[3]: https://atom.io/
222245
[4]: https://atom.io/packages/atom-gdb-debugger
223246
[5]: https://www.nostarch.com/debugging.htm
247+
[6]: https://github.com/blacksphere/blackmagic/wiki/Hacking

images/dm.png

39.7 KB
Loading

images/stlink-bp.jpg

86.3 KB
Loading

images/stlink-util.png

190 KB
Loading

0 commit comments

Comments
 (0)