Search found 4 matches

by formatc1702
Sat Apr 15, 2017 10:13 am
Forum: ESP8266 boards
Topic: mpy-cross not making files smaller
Replies: 11
Views: 11841

Re: mpy-cross not making files smaller

There was a change in the mpy file format recently. Please ensure, that both mpy-cross and the firmware come from the same build. Thanks! This did it for me! I'd still recommend burning your code to an image, if you want to really keep the memory image down. For large applications, I have found tha...
by formatc1702
Mon Mar 13, 2017 3:00 pm
Forum: ESP8266 boards
Topic: mpy-cross not making files smaller
Replies: 11
Views: 11841

Re: mpy-cross not making files smaller

Hi everybody, thanks for the insightful replies. However, I failed to post the main issue I'm having: Once I compile my .py file and put the resulting .mpy file in its place (on the ESP8266), I receive a ValueError: invalid .mpy file No further information is provided, unfortunately. Has this happen...
by formatc1702
Fri Mar 10, 2017 4:11 pm
Forum: WiPy and CC3200 boards
Topic: Pre-Compiled files using more memory?
Replies: 11
Views: 12992

Re: Pre-Compiled files using more memory?

Hi, I realize this thread is older, but it's related to my question so I shall add it here. Using mpy-cross yields .mpy files that are larger than their respective .py files! My main.py is so long it can only be imported by commenting out some lines (that are not even called by the code unless speci...
by formatc1702
Fri Mar 10, 2017 3:28 pm
Forum: ESP8266 boards
Topic: mpy-cross not making files smaller
Replies: 11
Views: 11841

mpy-cross not making files smaller

Hello! I have a MicroPython program consisting of multiple modules. The main.py file is currently at 304 lines and 9KB. Recently I started getting MemoryErrors upon booting. If I comment out some lines (which are not even reached in the program flow), it works. This leads me to believe that main.py ...