firmware upgrade question

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
JimTal001
Posts: 176
Joined: Thu Jul 30, 2015 4:59 pm

firmware upgrade question

Post by JimTal001 » Thu Oct 08, 2015 6:31 pm

Is it necessary to disconnect everything (except DFU pin & 3.3V) from your pyboard to perform the firmware upgrade?

I've got 20+ pins connected from breadboard to pyboard and would prefer not to disconnect them unless necessary.

blmorris
Posts: 348
Joined: Fri May 02, 2014 3:43 pm
Location: Massachusetts, USA

Re: firmware upgrade question

Post by blmorris » Thu Oct 08, 2015 6:50 pm

It shouldn't be necessary to disconnect anything. I routinely do firmware upgrades on pyboards with daughterboards in place, and also on a non-pyboard system running MicroPython where the processor is soldered in place and cannot be disconnected from the rest of the system.

It is possible that certain specific configurations could prevent a successful DFU upgrade, but I haven't encountered this.

-Bryan

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

Re: firmware upgrade question

Post by dhylands » Thu Oct 08, 2015 6:52 pm

There is a dfu document that describes which pins need to be stable. When I get home later I can get a reference.

JimTal001
Posts: 176
Joined: Thu Jul 30, 2015 4:59 pm

Re: firmware upgrade question

Post by JimTal001 » Thu Oct 08, 2015 8:18 pm

I tried it with all pins connected and it seems to have upgraded successfully.
I upgraded to the latest version: pybv10-2015-10-05-v1.4.6-44-gf4d55c9.dfu.

This version still has the 2.18 minute maximum for pyb.wakeup timeout.

blmorris
Posts: 348
Joined: Fri May 02, 2014 3:43 pm
Location: Massachusetts, USA

Re: firmware upgrade question

Post by blmorris » Thu Oct 08, 2015 8:35 pm

Looks like the latest pre-compiled firmware for download is http://micropython.org/resources/firmwa ... d38799.dfu

Looking at the commits to master (https://github.com/micropython/micropyt ... its/master) it appears that the correction to the RTC calculation was the next commit after the firmware I linked above. The fix should be part of the next daily build when that updates, if you aren't compiling yourself.

-Bryan

Damien
Site Admin
Posts: 647
Joined: Mon Dec 09, 2013 5:02 pm

Re: firmware upgrade question

Post by Damien » Thu Oct 08, 2015 8:39 pm

Latest firmware is now there, with the wakeup fix from earlier today.

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

Re: firmware upgrade question

Post by dhylands » Thu Oct 08, 2015 8:43 pm

This document: http://www.st.com/web/en/resource/techn ... 167594.pdf on page 93 has a flow diagram that shows what the bootloader does.

So the CAN2 Rx pin and USART1 & 3 Rx pins need to be quiescent (i.e. not toggling) during boot in order to get into DFU mode.

JimTal001
Posts: 176
Joined: Thu Jul 30, 2015 4:59 pm

Re: firmware upgrade question

Post by JimTal001 » Fri Oct 09, 2015 3:48 pm

Thank for the assistance!

Post Reply