M5Stack Fire 4M PSRAM
-
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.
-
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
-
@heybin
Thank you, heybin.
I will dig into it. -
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 ? -
sure, but lobo micropython was stop updating
-
@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.