Design my own pyboard, basic questions..

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
User avatar
saulo
Posts: 14
Joined: Thu May 26, 2016 9:05 am
Location: Brasil

Design my own pyboard, basic questions..

Post by saulo » Thu Mar 16, 2017 2:27 am

Hy guys!

I "finish" my script-side for a custom board using micropython and pyboard to develop and now i want to design my own board (today it's a mess of wires and connectors..)

I've experience with microchip environment and atmel also but know nothing about st... my question is very basic:

I will need some dedicated programmer to upload the micropython firmware on a brand new mcu like ICD3 or SK500 or dfu mode and a ftdi chip will do the job?

i read that mcu of pyboard came with dfu support from factory but i want to ask anyway.. :oops:

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

Re: Design my own pyboard, basic questions..

Post by dhylands » Thu Mar 16, 2017 3:45 am

The STM32F4 series has a builtin ROM DFU loader. So if you wire up the USB connector properly and provide an external crystal, then you can use BOOT0 to put the chip into DFU mode.

TravisT
Posts: 32
Joined: Sun Feb 23, 2014 2:31 pm
Location: Portland, OR
Contact:

Re: Design my own pyboard, basic questions..

Post by TravisT » Fri Mar 17, 2017 7:42 pm

Also USART based bootloading can be done without a crystal. Dave and his brother have post about this, and it is a good backup.

Because there is a Python interpreter layer there really is not benefit of using a fancy programmer since you do not get to do the low level debugging those offer.

Sometimes I make SWD (serial wire debug pins) available for use just in case I might want/need a programming and debugging interface. This way you only need 4 pins.
_______________
Travis Travelstead

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

Re: Design my own pyboard, basic questions..

Post by dhylands » Fri Mar 17, 2017 10:10 pm

If you do want to do debugging via gdb then you can add a JTAG or SWD interface.

The 1Bitsy is an STM32F415 based board (and I have a MicroPython board definition for it) that has a JTAG interface. If you look at the 1Bitsy schematics https://github.com/1Bitsy/1bitsy-hardwa ... ematic.pdf to use the JTAG you don't need any extra components (except perhaps a header).

Similarly, you only need to expose the SWDIO/SWCLK signals to use the SWD interface.

User avatar
roland_vs
Posts: 61
Joined: Tue Dec 08, 2015 8:28 pm
Location: Netherlands
Contact:

Re: Design my own pyboard, basic questions..

Post by roland_vs » Sat Mar 18, 2017 6:24 pm

I have designed a few boards with the STM32 (407/429) (but also other ARMs) and standardised on using the Tag Connect TC2030 connection with either locking holes when there is room on the PCB, or just the 6 contacts only. It allows for +/-/SWDIO/SWCLK/RXD/TXD. It is time/cost/room saving and I personally find it a better choice than using the standard pin headers.

The UART (see drawing) is there for alternative DFU instead of USB, but mainly to have REPL available when not using the USB with MicroPython.
Screenshot 2017-03-18 19.15.01.png
Screenshot 2017-03-18 19.15.01.png (16.94 KiB) Viewed 1014 times

User avatar
saulo
Posts: 14
Joined: Thu May 26, 2016 9:05 am
Location: Brasil

Re: Design my own pyboard, basic questions..

Post by saulo » Sat May 06, 2017 6:40 pm

Thanks guys, now i'm using a "upgrade switch" to boot on DFU mode, the serial debugging feature is something that i want to do already.

I've made a minimum pyboard based schematic on kicad to help someone who want to design over it. i just don't recognize the L1 component on A3V3 via from pyboard v1 schematic.. :oops:

Best regards,
Saulo
Attachments
pyboard_minimum_rev0.zip
(211.45 KiB) Downloaded 24 times

shaoziyang
Posts: 153
Joined: Sun Apr 17, 2016 1:55 pm

Re: Design my own pyboard, basic questions..

Post by shaoziyang » Sun May 07, 2017 3:34 am

It is will be better if add a 100nF capacitance in PB3.

User avatar
pythoncoder
Posts: 1960
Joined: Fri Jul 18, 2014 8:01 am

Re: Design my own pyboard, basic questions..

Post by pythoncoder » Sun May 07, 2017 6:09 am

saulo wrote:...i just don't recognize the L1 component on A3V3 via from pyboard v1 schematic...
Looking at https://github.com/micropython/pyboard/ ... YBv10b.pdf and scrolling down to the layout it's a surface mount inductor. The question is the units of its 1K value. nH?
Peter Hinch

chrismas9
Posts: 43
Joined: Wed Jun 25, 2014 10:07 am

Re: Design my own pyboard, basic questions..

Post by chrismas9 » Sun May 07, 2017 4:34 pm

1k is the impedance at 100MHz. It's a common way of specifying ferrite bead filters.

User avatar
saulo
Posts: 14
Joined: Thu May 26, 2016 9:05 am
Location: Brasil

Re: Design my own pyboard, basic questions..

Post by saulo » Sun May 07, 2017 8:42 pm

pythoncoder wrote:
saulo wrote:...i just don't recognize the L1 component on A3V3 via from pyboard v1 schematic...
Looking at https://github.com/micropython/pyboard/ ... YBv10b.pdf and scrolling down to the layout it's a surface mount inductor. The question is the units of its 1K value. nH?
Yes i supposed that is an Inductor, but what about inductance?
chrismas9 wrote:1k is the impedance at 100MHz. It's a common way of specifying ferrite bead filters.
Nice! thank you guys, i will update the schematic!

Post Reply