Virtual Memory RAM

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
logvca
Posts: 1
Joined: Thu Dec 20, 2018 7:55 pm

Virtual Memory RAM

Post by logvca » Thu Dec 20, 2018 7:59 pm

Hi! I'm using an ESP32 with 512Kb of RAM, but I need approximately 1MB (Megabytes) of RAM for my project.
Is it possible, using Micropython, to make some kind of "Virtual RAM"?
Any help would be greatly appreciated.
Thank you.

jickster
Posts: 577
Joined: Thu Sep 07, 2017 8:57 pm

Re: Virtual Memory RAM

Post by jickster » Fri Dec 21, 2018 12:55 am

No.


Sent from my iPhone using Tapatalk Pro

loboris
Posts: 316
Joined: Fri Oct 02, 2015 6:19 pm

Re: Virtual Memory RAM

Post by loboris » Fri Dec 21, 2018 9:12 am

You should use ESP32 board/module with 4MB psRAM (SPIRAM), then you can have up to 4MB free RAM (heap).

shaoziyang
Posts: 241
Joined: Sun Apr 17, 2016 1:55 pm

Re: Virtual Memory RAM

Post by shaoziyang » Sat Dec 22, 2018 4:18 am

loboris wrote:
Fri Dec 21, 2018 9:12 am
You should use ESP32 board/module with 4MB psRAM (SPIRAM), then you can have up to 4MB free RAM (heap).
Is ESP32 for micropython support 8M psRAM now?

loboris
Posts: 316
Joined: Fri Oct 02, 2015 6:19 pm

Re: Virtual Memory RAM

Post by loboris » Sat Dec 22, 2018 8:33 am

shaoziyang wrote:
Sat Dec 22, 2018 4:18 am
Is ESP32 for micropython support 8M psRAM now?
I'm testing the support for the 2nd half of the 8MB SPIRAM in my MicroPython port.
As the access is based on bank switching (there is no other way to use it), it is not suitable for MicroPython heap, but it will be possible to use it for storing data.
I'm also testing the RAM file system placed on upper half of SPIRAM which have the advantage of much faster write access (>100x), but its content is lost if the power is removed.

Post Reply