How to use all available RAM on ESP32-D0WD-V3?
Posted: Tue Mar 22, 2022 11:24 am
Good afternoon!
I am currently developing a fairly large ESP32 program using ESP-IDF and PlatformIO. After some time, there was a problem with a lack of RAM, especially at times when there are problems with Internet access, and the device is forced to "save" data not sent to the server.
To solve this problem, I purchased an ESP32-WROVER-IE 16MB chip (ESP32-D0WD-V3), which, according to the documentation, has 16MB Flash and 520 RAM on board.
Setting up the ESP-IDF to use 16Mb Flash turned out pretty quickly, thanks to the description:
"upload": {
"flash_size": "16MB",
"maximum_ram_size": 532480,
"maximum_size": 16777216,
"require_upload_port": true,
speed: 460800
}
and custom partitions.csv. There are no problems with this. Everything is fine, all 16MB are available to me.
But there are problems with RAM - no matter how much I put in "maximum_ram_size" - the program still sees only 320Kb. And this was the main purpose of the purchase.
How can I get access to all available RAM???
I am currently developing a fairly large ESP32 program using ESP-IDF and PlatformIO. After some time, there was a problem with a lack of RAM, especially at times when there are problems with Internet access, and the device is forced to "save" data not sent to the server.
To solve this problem, I purchased an ESP32-WROVER-IE 16MB chip (ESP32-D0WD-V3), which, according to the documentation, has 16MB Flash and 520 RAM on board.
Setting up the ESP-IDF to use 16Mb Flash turned out pretty quickly, thanks to the description:
"upload": {
"flash_size": "16MB",
"maximum_ram_size": 532480,
"maximum_size": 16777216,
"require_upload_port": true,
speed: 460800
}
and custom partitions.csv. There are no problems with this. Everything is fine, all 16MB are available to me.
But there are problems with RAM - no matter how much I put in "maximum_ram_size" - the program still sees only 320Kb. And this was the main purpose of the purchase.
How can I get access to all available RAM???