🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Stack Fire 4M PSRAM

    Scheduled Pinned Locked Moved Micropython
    6 Posts 2 Posters 15.5k Views 1 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.
    • Z Offline
      zhufu86
      last edited by zhufu86

      I have a M5Stack Fire with 4M PSRAM.
      But when I tried to check the free mem, I got much less than that.

      >>> import gc
      >>> gc.mem_free()
      7904
      >>> gc.collect()
      >>> gc.mem_free()
      60464
      

      I guess Micropython can not see those 4M PSRAM part.
      What can I do so that I can use the 4M PSRAM in M5Stack Fire?

      During the booting process, I saw the following. Does that mean the 4M PSRAM was not initiated?

      W (129) MicroPython: SPIRAM: Disabled
      

      I also tried the following and got:

      >>> import micropython, machine
      >>> micropython.mem_info()
      stack: 752 out of 14336
      GC: total: 86016, used: 29712, free: 56304
       No. of 1-blocks: 410, 2-blocks: 75, max blk sz: 654, max free sz: 2263
      >>> machine.heap_info()
      Heap outside of MicroPython heap:
      ---------------------------------
                    Free: 95208
               Allocated: 187096
            Minimum free: 87724
            Total blocks: 200
      Largest free block: 93252
        Allocated blocks: 196
             Free blocks: 4
      

      It seems I only have 56k free RAM if I am correct.

      1 Reply Last reply Reply Quote 0
      • H Offline
        heybin
        last edited by

        In uiflow, it have not open psram, if wan`t use psram, please use this https://github.com/micropython/micropython or https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo

        Z 2 Replies Last reply Reply Quote 0
        • Z Offline
          zhufu86 @heybin
          last edited by

          @heybin
          Thank you, heybin.
          I will dig into it.

          1 Reply Last reply Reply Quote 0
          • Z Offline
            zhufu86 @heybin
            last edited by

            Hi @heybin
            I found this: https://github.com/m5stack/M5Stack_MicroPython
            Is it a M5Stack version Lobo MicroPython which I could start with instead of the official Lobo MicroPython on https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo ?

            1 Reply Last reply Reply Quote 0
            • H Offline
              heybin
              last edited by

              sure, but lobo micropython was stop updating

              Z 1 Reply Last reply Reply Quote 0
              • Z Offline
                zhufu86 @heybin
                last edited by

                @heybin
                Thank you.

                Yes I noticed Lobo MicroPython had been no updates for long time.

                But I saw https://github.com/m5stack/M5Stack_MicroPython had been updated continuously.
                I will go for it and give it a try.

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