|
@@ -34,8 +34,9 @@ This will give you a complete copy of the repository, including the ChibiOS
|
34
|
34
|
submodule.
|
35
|
35
|
|
36
|
36
|
You will also need to install some program to flash the firmware. The simplest
|
37
|
|
-option is [dfu-util][], as it requires no extra hardware. If you prefer to use
|
38
|
|
-SWD, you could also use [stlink][] or [OpenOCD][].
|
|
37
|
+option is [dfu-util][], as it requires no extra hardware (though either the
|
|
38
|
+Boot switch must be installed or two pads must be bridged). If you prefer to
|
|
39
|
+use SWD, you could also use [stlink][] or [OpenOCD][].
|
39
|
40
|
|
40
|
41
|
[toolchain]: https://launchpad.net/gcc-arm-embedded
|
41
|
42
|
[dfu-util]: http://dfu-util.sourceforge.net/
|
|
@@ -58,12 +59,16 @@ the following:
|
58
|
59
|
|
59
|
60
|
### dfu-util
|
60
|
61
|
|
61
|
|
-Set the boot mode switch on the PD Buddy Sink to DFU mode and plug it into your
|
62
|
|
-computer. Flash the firmware with:
|
|
62
|
+Set the Boot switch (SW1) on the PD Buddy Sink to the position not marked on
|
|
63
|
+the silkscreen to set the device to DFU mode. If your Sink doesn't have a Boot
|
|
64
|
+switch, you can simply bridge the two long, close-together pads on the
|
|
65
|
+footprint for SW1 with a blob of solder to achieve the same effect. Once the
|
|
66
|
+Sink is set to DFU mode, plug it into your computer. Flash the firmware with:
|
63
|
67
|
|
64
|
68
|
$ dfu-util -a 0 -s 0x08000000:leave -D build/pd-buddy-firmware.bin
|
65
|
69
|
|
66
|
|
-Don't forget to set the switch back to normal mode after unplugging the device.
|
|
70
|
+Don't forget to set the switch back to normal mode (or remove the solder blob)
|
|
71
|
+after unplugging the device.
|
67
|
72
|
|
68
|
73
|
### stlink
|
69
|
74
|
|