V 1.8.7 Micropython Released - support importing compiled .mpy files - More RAM ?
-
Hi Team,
I was just able to see that new version of Micropython v1.8.7 has been released and it states
There is now support for importing packages from compiled .mpy filesDoes this mean that we will get more RAM for user code ? And if so when can we see this being upgraded for LOPY?
Thanks & regards,
Hari -
Micropython supoorts compiled .mpy files since a while. This option is not enabled on LoPy. You can do so, if you build your own image. Just add the line:
#define MICROPY_PERSISTENT_CODE_LOAD (1)to esp32/mpconfigport.h and rebuild the flash image with
make BOARD=LOPY
after building, you can load the image to the lopy witth
make BOARD=LOPY flash
Be sure to connect G23 and GND, which is needed for all variants of flash loading. You will NOT have more RAM at runtime, but be able to run larger code, since the RAM is not needed for compiling.For building the image you need to setup the build environment. Instructions can be found at https://github.com/pycom/pycom-micropython/README.md, section ESP32. And yes, a Linux system is best for that purpose. It might be a virtual machine, at least for creating the image.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login