# MicroEJ and ESP32-PSRAM

**URL:** <https://forum.microej.com/t/microej-and-esp32-psram/699>\
**Category:** Technical Support\
**Created:** [April 29, 2020, 2:43pm UTC](https://forum.microej.com/t/microej-and-esp32-psram/699 "2020-04-29T14:43:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![benoit](https://forum.microej.com/letter_avatar_proxy/v4/letter/b/5daacb/32.png) [@benoit](https://forum.microej.com/u/benoit)\
**Post date:** [April 29, 2020, 2:43pm UTC](https://forum.microej.com/t/microej-and-esp32-psram/699/1 "2020-04-29T14:43:31Z")

</div>

Hello,

I am working on ESP32 with microEJ platform.  
We added a PSRAM, and we would like to use the PSRAM to put the microejruntime.  
Now, the microejruntime is in the internal ram, as defined in the esp32.project.ld.in file, in the section .dram0.bss  
\*(ICETEA\_HEAP)  
\*(\_java\_heap)  
\*(\_java\_immortals)

But how to configure the things to make microej going to external PSRAM?

Best regards

Benoit.  
Otodo

---

<div class="post-metadata">

**Author:** ![benjamin.alix](https://forum.microej.com/user_avatar/forum.microej.com/benjamin.alix/32/162_2.png) [@benjamin.alix](https://forum.microej.com/u/benjamin.alix)\
**Post date:** [April 30, 2020, 12:39pm UTC](https://forum.microej.com/t/microej-and-esp32-psram/699/2 "2020-04-30T12:39:52Z")

</div>

Hi Benoit,

Beside this file there is a file called `esp32.extram.bss.ld` in which the section `.ext_ram.bss` is defined. You can place the heaps and immortals in this section to use the PSRAM.

Regards,

Benjamin
