Where's the rest of the internal memory?
Posted: Fri Dec 01, 2017 8:05 pm
I started to run into some memory issues in my project this morning, so I am spending some time debugging memory. I noticed there seems to be less internal memory than the datasheet indicates and am wondering how to access it.
I'm using a WROVER32KIT v3 and if I build the following tiny app, it reports "227560" on startup.
The datasheet says that the ESP32 has "520 kB (8 kB RTC FAST Memory included) of on-chip SRAM for data and instructions." So where is the other 290k hiding, and is there a way to use it?
FWIW: I'm aware of the SPI RAM, and am using it in my project. This came about because I ran out of internal RAM specifically when allocating FreeRTOS task stacks.
Thanks in advance for any light you can shine!
Thanks,
Jason
I'm using a WROVER32KIT v3 and if I build the following tiny app, it reports "227560" on startup.
Code: Select all
#include "sdkconfig.h"
#include "esp_system.h"
#include "esp_log.h"
#define TAG "TEST"
void app_main()
{
ESP_LOGI(TAG, "%d", esp_get_free_heap_size());
}
FWIW: I'm aware of the SPI RAM, and am using it in my project. This came about because I ran out of internal RAM specifically when allocating FreeRTOS task stacks.
Thanks in advance for any light you can shine!
Thanks,
Jason