Skip to content

Using MicroPython with 16MB Flash and 8MB PSRAM #10078

Discussion options

You must be logged in to vote

I'll address the RAM query. No, the ESP32 can only address 4MB of memory. Even with 8MB PSRAM fitted only 4MB of it will be accessible. It's why there's a number of 'red note alerts' on the AliExpress Wemos page for the D32 Pro:

There actually is a way to make some use of the additional memory but it's awkward, of limited use, and not supported in MicroPython. I mention it here only for completeness but I wouldn't suggest using it. Espressif provide the himem allocation API. It allows you to split your general memory, allocating a portion of it to be bank-switched at runtime.

Himem is probably not worthwhile pursuing, especially with the newer ESP32-S2/S3 able to address more than 4MB RAM.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@WolleKette
Comment options

Comment options

mattytrentini
Nov 25, 2022
Collaborator Sponsor

You must be logged in to vote
1 reply
@WolleKette
Comment options

Answer selected by WolleKette
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment