Page 1 of 1
[SOLVED] Where to solder in bottom row of header pins?
Posted: Sat Jan 07, 2017 2:16 pm
by jpj
I'm soldering the header pins onto my V1.1 board this morning. A single row of 10 right-angled pins were included for use on the bottom. I'm assuming I want to solder those to the "Inner row" so I can short the DFU pin for firmware installs. Is that correct?
Thanks
Re: Where to solder in bottom row of header pins?
Posted: Sat Jan 07, 2017 4:10 pm
by dhylands
Generally speaking, you don't need the DFU pin.
From the repl, you can do: pyb.bootloader() to get into DFU mode.
I use a bash script (which I call bl) with the following contents:
Code: Select all
#!/bin/bash
# Puts a micropython board in booloader mode.
~/micropython/micropython/tools/pyboard.py -c 'import pyb; pyb.bootloader()' >& /dev/null
You'll need to change your path to pyboard.py appropriately.
So personally, I normally use the outer row. If I really need the DFU pin, I use a paperclip.
Re: Where to solder in bottom row of header pins?
Posted: Sat Jan 07, 2017 4:19 pm
by jpj
Excellent. Thank you Dave!
Re: Where to solder in bottom row of header pins?
Posted: Sat Jan 07, 2017 5:58 pm
by jpj
Dave,
Your scripts for entering bootloader mode and installing firmware worked perfectly. I'm running 1.8.6 now. Thank you for writing and sharing these programs!
J
Code: Select all
pi@pi3b:~/my-project/pyboard/firmware $ ./bl.sh
pi@pi3b:~/my-project/pyboard/firmware $ sudo python pydfu.py -u pybv11-20161110-v1.8.6.dfu
File: pybv11-20161110-v1.8.6.dfu
DfuSe v1, image size: 298001, targets: 1
Target 0, alt setting: 0, name: "ST...", size: 297716, elements: 2
0, address: 0x08000000, size: 15308
1, address: 0x08020000, size: 282392
usb: 0483:df11, device: 0x0000, dfu: 0x011a, UFD, 16, 0x7500782e
Writing memory...
0x08000000 15308 [=========================] 100%
0x08020000 282392 [=========================] 100%
Exiting DFU...
>>>
PYB: sync filesystems
PYB: soft reboot
MicroPython v1.8.6 on 2016-11-10; PYBv1.1 with STM32F405RG
Type "help()" for more information.