Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    V 1.8.7 Micropython Released - support importing compiled .mpy files - More RAM ?

    Scheduled Pinned Locked Moved LoPy
    2 Posts 2 Posters 1.2k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mkharibalaji
      last edited by

      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 files

      Does 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

      1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh
        last edited by

        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.

        1 Reply Last reply Reply Quote 0

        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
        • 1 / 1
        • First post
          Last post

        Pycom on Twitter

        Pycom