Page 1 of 1

esp32 with 8mb spiram only 4mb detected

Posted: Fri Mar 20, 2020 4:43 pm
by seandepagnier
ips6404l-sq 8 meg ram chip

import gc
>>> gc.mem_free()
4093264
>>>


How do I get more ram?

Re: esp32 with 8mb spiram only 4mb detected

Posted: Fri Mar 20, 2020 11:57 pm
by jimmo
This is a limitation of the way the memory controller works -- there's more info in this thread from a few weeks ago: viewtopic.php?f=18&t=7843

Re: esp32 with 8mb spiram only 4mb detected

Posted: Mon Mar 23, 2020 1:07 am
by seonr
There are folks that develop with the IDF that do some RAM bank switching to get access to the entire 8MB, but we can't do that with MP when we are using the PSRAM for the heap as your heap would disappear ;)

This memory address space limitation is fixed in the new ESP32-S2 and newer chips.

Cheers,
Seon
Unexpected Maker