

Add External RAM to the Capability Allocator So if an application uses external memory, it is responsible for all management of the external SPI RAM: coordinating buffer usage, preventing corruption, etc. The length of this region is the same as the SPI RAM size (up to the limit of 4 MB).Īpplications can manually place data in external memory by creating pointers to this region. Most likely, you will need another, more advanced option.ĭuring the ESP-IDF startup, external RAM is mapped into the data address space, starting at address 0x3F800000 (byte-accessible).


This is the most basic option for external SPI RAM integration. Select this option by choosing “Integrate RAM into memory map” from CONFIG_SPIRAM_USE. Integrate RAM into the ESP32 Memory Map noinit Segment to be Placed in External Memory bss Segment to be Placed in External MemoryĪllow. Provide External RAM via malloc() (default)Īllow. Once the external RAM is initialized at startup, ESP-IDF can be configured to integrate the external RAM in several ways:Īdd External RAM to the Capability Allocator Configuring External RAM ĮSP-IDF fully supports the use of external RAM in applications. Consult the Espressif website for more information.įor specific details about connecting the SoC or module pins to an external PSRAM chip, consult the SoC or module datasheet. Espressif produces both modules and system-in-package chips that integrate compatible PSRAM and flash and are ready to mount on a product PCB.
