ESP8266 make fails during MPY section

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
User avatar
TravisT
Posts: 72
Joined: Sun Feb 23, 2014 2:31 pm
Location: Portland, OR
Contact:

ESP8266 make fails during MPY section

Post by TravisT » Thu Jun 30, 2016 8:17 pm

Hello,

I am been working through small issue setting up a dev environment for the ESP8266 and micropython. After setting up a clean environment I ran through the processes for the open SDK and when getting to the building micropython for the ESP8266 (after make axlts) I got this error, which is something I do not believe I have seen during all my other searches on using micropython for the ESP8266. This seems to be localized to the micropython portion of the build and I will continue to look into this further but thought others might be able to help me deal with this quickly as well as help out others that might find this.

Code: Select all

python ../py/makeversionhdr.py build/genhdr/mpversion.h
MPY modules/flashbdev.py
mkdir -p build/modules/
../mpy-cross/mpy-cross -o build/modules/flashbdev.mpy -s flashbdev.py modules/flashbdev.py
make: ../mpy-cross/mpy-cross: Command not found
Makefile:175: recipe for target 'build/modules/flashbdev.mpy' failed
make: *** [build/modules/flashbdev.mpy] Error 127
I am on Ubuntu 16.04 64bit
_______________
Travis Travelstead

slzatz
Posts: 92
Joined: Mon Feb 09, 2015 1:09 am

Re: ESP8266 make fails during MPY section

Post by slzatz » Thu Jun 30, 2016 8:44 pm

Now that frozen bytecode is in use for the esp8266 port, you need to build mpy-cross. See the updated instructions at https://github.com/micropython/micropyt ... er/esp8266

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

Re: ESP8266 make fails during MPY section

Post by TravisT » Thu Jun 30, 2016 11:11 pm

I think I see what happened. I have had several pages with instruction opened for about a week and instructions have been updated since then. Now with the updates I am able to install all the build tools and make a ESP8266 build.

Thanks!!!!!
_______________
Travis Travelstead

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: ESP8266 make fails during MPY section

Post by pfalcon » Fri Jul 01, 2016 11:06 am

TravisT wrote:I think I see what happened. I have had several pages with instruction opened for about a week and instructions have been updated since then.
The instructions cover even that case. From http://forum.micropython.org/viewtopic.php?f=16&t=1689:
If you intend to build MicroPython regularly, please subscribe to this thread to receive notifications of various updates related to build process.
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

Post Reply