Page 1 of 1

Unable to build latest firmware for PYBV11

Posted: Mon Dec 24, 2018 2:12 pm
by lnsri22
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 2771 times
What could be the possible cause?


Thanks in advance!!

Re: Unable to build latest firmware for PYBV11

Posted: Fri Dec 28, 2018 8:27 pm
by dhylands
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

Re: Unable to build latest firmware for PYBV11

Posted: Sun Dec 30, 2018 8:06 am
by lnsri22
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 2714 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!!

Re: Unable to build latest firmware for PYBV11

Posted: Sun Dec 30, 2018 6:13 pm
by dhylands
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

Re: Unable to build latest firmware for PYBV11

Posted: Tue Jan 22, 2019 9:29 am
by lnsri22
Thanks Dave!!


Got it working... :)