Replies: 4 comments 18 replies
-
First, download v1.19.1 ... a lot has changed since v1.14. I use two of these devices and thought the extra memory was available from the beginning. |
Beta Was this translation helpful? Give feedback.
-
from the repl prompt: import gc
gc.mem_free() On a generic ESP32 with v1.18 I get 109623 |
Beta Was this translation helpful? Give feedback.
-
Please check ESP32 Technical Reference Manual, in 1.3.3 External Memory section. ESP32 could only access 4MB SPIRAM per CPU core without changing the memory map. In my tests, it seems that for both cpu cores to access the same data, their default memory mapping points to the same 4MB area. (Multithreading in a shared memory manner.) One of the possible ways to access the remaining SPIRAM resources is to control the raw SPI connected to SPIRAM, reading and writing data at the lowest level. |
Beta Was this translation helpful? Give feedback.
-
Hi Everyone, thanks for all your reply’s and looking at this issue for me. But I think I have been barking up the wrong tree! I thought the external IC was 32Mb of SPIRAM when in fact it turns out to be SPI flash…🤦🏻♂️ Apologies |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have an ESP32 with 32Mb SPIRAM (although I believe only 4Mb is available) - I have been working on a project which was just going to run on the internal flash, however I now need more memory and would like to make use of the attached SPIRAM. I have downloaded this version of Micropython (MicroPython v1.14 on 2021-02-02; ESP32 module (spiram) with ESP32) and flashed it to my ESP32.
My question is how do I access this memory?
I have tried google but can't seem to get a straight answer - I have tried many sample codes that make reference to an SPIRAM module and PSRAM module that don't appear to be in this version of firmware....
Any help would be much appreciated.
Many thanks
Beta Was this translation helpful? Give feedback.
All reactions