Add instructions explaining how to use dfu-util to install Micropython firmware to a pyboard under Windows
parent
c36f68ef6c
commit
bad7a93ef9
|
@ -85,7 +85,41 @@ Dependencies
|
|||
* libusb (MacPorts: port install libusb or HomeBrew: brew install libusb)
|
||||
* PyUSB (pip install pyusb)
|
||||
|
||||
### On Windows
|
||||
### On Windows - Using dfu-util
|
||||
|
||||
Install WinUSB using the [Zadig](http://zadig.akeo.ie/) utility, by selecting Options->List All Devices, select "STM32 BOOTLOADER" and click Install Driver.
|
||||
|
||||
Download [dfu-util](http://dfu-util.sourceforge.net/) for Windows (version 0.9 at the time of writing) and unzip.
|
||||
|
||||
Execute:
|
||||
```
|
||||
dfu-util -l
|
||||
```
|
||||
You should see something like:
|
||||
```
|
||||
dfu-util 0.9
|
||||
|
||||
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
|
||||
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
|
||||
This program is Free Software and has ABSOLUTELY NO WARRANTY
|
||||
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
|
||||
|
||||
Found DFU: [0483:df11] ver=2200, devnum=3, cfg=1, intf=0, path="2-1.3", alt=3, name="@Device Feature/0xFFFF0000/01*004 e", serial="357637573036"
|
||||
Found DFU: [0483:df11] ver=2200, devnum=3, cfg=1, intf=0, path="2-1.3", alt=2, name="@OTP Memory /0x1FFF7800/01*512 e,01*016 e", serial="357637573036"
|
||||
Found DFU: [0483:df11] ver=2200, devnum=3, cfg=1, intf=0, path="2-1.3", alt=1, name="@Option Bytes /0x1FFFC000/01*016 e", serial="357637573036"
|
||||
Found DFU: [0483:df11] ver=2200, devnum=3, cfg=1, intf=0, path="2-1.3", alt=0, name="@Internal Flash /0x08000000/04*016Kg,01*064Kg,07*128Kg", serial="357637573036"
|
||||
```
|
||||
To install the firmware execute:
|
||||
```
|
||||
dfu-util --alt 0 -D pybv10-2014-05-19-v1.0.1-24-g5cdff5f.dfu
|
||||
```
|
||||
Which should show progress bars for the firmware download to the pyboard and complete with:
|
||||
```
|
||||
done parsing DfuSe file
|
||||
```
|
||||
After the the program has finished, disconnect the pyboard from USB and remove the jumper between the DFU and the 3.3v ports.
|
||||
|
||||
### On Windows - Using STM DfuSe
|
||||
|
||||
See this PDF document: [Micro-Python-Windows-setup.pdf](http://micropython.org/resources/Micro-Python-Windows-setup.pdf)
|
||||
|
||||
|
|
Loading…
Reference in New Issue