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

    M5Stack Fire 4M PSRAM

    Micropython
    2
    6
    12.7k
    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
      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
        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
          zhufu86 @heybin
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • Z
            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
              heybin
              last edited by

              sure, but lobo micropython was stop updating

              Z 1 Reply Last reply Reply Quote 0
              • Z
                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
                • First post
                  Last post