Skip to content

"MemoryError:" when trying to run it on an ESP8266 NodeMCU breakout #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Thalaivar opened this issue Oct 11, 2017 · 3 comments
Closed

Comments

@Thalaivar
Copy link

How can I get over this error?

@peterhinch
Copy link
Contributor

The approach to running large modules on RAM limited devices is to use frozen bytecode. Put the MicropPython modules into ports/esp8266/modules in the source tree. Then rebuild the firmware and install. This causes the MicroPython code to be compiled to bytecode on the PC; on installation the bytecode is stored in Flash.

@Thalaivar
Copy link
Author

Thanks for your reply! However I'm a newb when it comes to uPy. Till now, to install the firmware, I've been directly using esptool.py and the bin files from the micropython downloads page. How do I rebuild and install the firmware as you mentioned?

@peterhinch
Copy link
Contributor

A starting point might be to read the build document.

General questions are best raised in the forum. GitHub issues are intended for bug reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants