Unable to build latest firmware for PYBV11

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
lnsri22
Posts: 67
Joined: Fri Aug 17, 2018 12:16 pm
Location: India

Unable to build latest firmware for PYBV11

Post by lnsri22 » Mon Dec 24, 2018 2:12 pm

Hello Everyone!!

I have tried loading firmware into the PYBV11 with no success!!

Please refer the screenshot
build error.png
build error.png (112.81 KiB) Viewed 380 times
What could be the possible cause?


Thanks in advance!!
lnsri22 :)

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

Re: Unable to build latest firmware for PYBV11

Post by dhylands » Fri Dec 28, 2018 8:27 pm

This is caused by a bug recently introduced into pydfu.py when run under Python 2.7. I just subitted a PR: https://github.com/micropython/micropython/pull/4384

The simplest way to fix this until that PR lands is to edit the tools/pydfu.py file and make the same one-line change. Around line 88 change bytes to bytearray:
https://github.com/micropython/micropyt ... 9e0bb0c8cf

lnsri22
Posts: 67
Joined: Fri Aug 17, 2018 12:16 pm
Location: India

Re: Unable to build latest firmware for PYBV11

Post by lnsri22 » Sun Dec 30, 2018 8:06 am

Hi Dave,

Thanks for the quick reply there!!

I don't see any such thing in line number 88. This is in "pydfu.py""
Screenshot 2018-12-30 at 1.33.47 PM.png
Screenshot 2018-12-30 at 1.33.47 PM.png (58.75 KiB) Viewed 323 times
I have both Python2.7.10 as well as python 3.7.2rc1 installed in my mac book. Would this be impacting the build?

If so , should I uninstall the older version?

Thanks in advance!!
lnsri22 :)

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

Re: Unable to build latest firmware for PYBV11

Post by dhylands » Sun Dec 30, 2018 6:13 pm

You must be looking at an old version. This is the line (already fixed) from the latest master:
https://github.com/micropython/micropyt ... dfu.py#L88

lnsri22
Posts: 67
Joined: Fri Aug 17, 2018 12:16 pm
Location: India

Re: Unable to build latest firmware for PYBV11

Post by lnsri22 » Tue Jan 22, 2019 9:29 am

Thanks Dave!!


Got it working... :)
lnsri22 :)

Post Reply