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

    Not enough memory available on the board.

    Scheduled Pinned Locked Moved SiPy
    sipy
    7 Posts 4 Posters 2.0k Views 4 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
      misterlisty
      last edited by

      I have upgraded my sipy to the latest firware 1..16 and it get Not enough memory available on the board. when the same code runs on my lopy with no issues! What could be causing this?

      1 Reply Last reply Reply Quote 0
      • M Offline
        misterlisty
        last edited by

        can anyone assist?

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

          @misterlisty Different firmware types have differentz memory needs. At what stage does the code run out of memory?

          • if it is during import, then pre-compiling can help.
          • if precompiled code runs out of memory, then frozen bytecode will help.
            If you already use the latter, then you have to optimize the data usage of your code or use one of the newer modules with more RAM.
          M 1 Reply Last reply Reply Quote 0
          • M Offline
            misterlisty @robert-hh
            last edited by

            @robert-hh I run this exact code on a fipy and it works fine. It appears to give error as soon as it finishes boot.py and starts main.py

            Does sipy and gipy have different memeries?

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              jmarcelino @misterlisty
              last edited by

              @misterlisty
              Yes, the new boards (FiPy, LoPy4, GPY, WiPy3) have a much increased 4MB RAM vs 512KB in the previous gen.

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                crumble @jmarcelino
                last edited by

                @jmarcelino said in Not enough memory available on the board.:

                @misterlisty
                Yes, the new boards (FiPy, LoPy4, GPY, WiPy3) have a much increased 4MB RAM vs 512KB in the previous gen.

                And this is the real existing memory. You have to count the numbers after you booted the device. In the 512KB version of the LoPy there is only around 30-60KB left for your own projects. Not very much, but for most projects it is plenty of memory.

                Can someone post the numbers for the LoPy4, please.

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  jmarcelino @crumble
                  last edited by jmarcelino

                  @crumble

                  >>> os.uname()
                  (sysname='LoPy4', nodename='LoPy4', release='1.15.0.b1', version='v1.8.6-849-baa8c33
                  >>> import gc
                  >>> gc.collect()
                  >>> gc.mem_free()
                  2558368
                  
                  1 Reply Last reply Reply Quote 1

                  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