[SOLVED] Where to solder in bottom row of header pins?

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
jpj
Posts: 60
Joined: Sat Dec 10, 2016 3:07 pm

[SOLVED] Where to solder in bottom row of header pins?

Post by jpj » Sat Jan 07, 2017 2:16 pm

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

Image
Last edited by jpj on Sat Jan 07, 2017 10:12 pm, edited 1 time in total.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Where to solder in bottom row of header pins?

Post by dhylands » Sat Jan 07, 2017 4:10 pm

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.

jpj
Posts: 60
Joined: Sat Dec 10, 2016 3:07 pm

Re: Where to solder in bottom row of header pins?

Post by jpj » Sat Jan 07, 2017 4:19 pm

Excellent. Thank you Dave!

jpj
Posts: 60
Joined: Sat Dec 10, 2016 3:07 pm

Re: Where to solder in bottom row of header pins?

Post by jpj » Sat Jan 07, 2017 5:58 pm

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.

Post Reply