# Particle Photon Available Memory Size

**URL:** https://community.particle.io/t/particle-photon-available-memory-size/37328
**Category:** Firmware
**Created:** [November 8, 2017, 2:58pm UTC](https://community.particle.io/t/particle-photon-available-memory-size/37328 "2017-11-08T14:58:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![fifty60](https://avatars.discourse-cdn.com/v4/letter/f/c4cdca/32.png) [@fifty60](https://community.particle.io/u/fifty60)
#### Post date: [November 8, 2017, 2:58pm UTC](https://community.particle.io/t/particle-photon-available-memory-size/37328/1 "2017-11-08T14:58:19Z")

</div>

Hello,

I understand the Photon has 1MB of Flash, and 128KB or RAM. Is this the memory left over after the WIFI stack has been installed? Or does that not include installing the WIFI stack?

Is the WIFI stack installed in the Flash Memory?

---

<div class="post-metadata">

### Author: ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)
#### Post date: [November 8, 2017, 4:19pm UTC](https://community.particle.io/t/particle-photon-available-memory-size/37328/2 "2017-11-08T16:19:07Z")

</div>

@fifty60, the Photon/Electron memory map (flash) is:

- Bootloader (16 KB)
- DCT1 (16 KB), stores Wi-Fi credentials, keys, mfg info, system flags, etc…
- DCT2 (16 KB), swap area for DCT1
- EEPROM emulation bank 1 (16 KB)
- EEPROM emulation bank 2 (64 KB)
- System firmware (512 KB) [256 KB Wi-Fi/comms + 256 KB hal/platform/services]
- Factory backup, OTA backup and user application (384 KB) [3 x 128 KB]

With all those pieces loaded, there is approx 125KB of user flash and 60KB of user RAM available. It is important to note that MANY of the conventional Arduino libraries are already included in the Particle system firmware (wifi, SPI, I2C, TCP/UDP, etc.). This makes the user app “thinner”.

---

<div class="post-metadata">

### Author: ![fifty60](https://avatars.discourse-cdn.com/v4/letter/f/c4cdca/32.png) [@fifty60](https://community.particle.io/u/fifty60)
#### Post date: [November 8, 2017, 4:26pm UTC](https://community.particle.io/t/particle-photon-available-memory-size/37328/3 "2017-11-08T16:26:25Z")

</div>

Hi Peekay, thanks for the reply. The System firmware calculation of 512KB does include the FreeRTOS in the calculatio, right?

---

<div class="post-metadata">

### Author: ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)
#### Post date: [November 8, 2017, 4:36pm UTC](https://community.particle.io/t/particle-photon-available-memory-size/37328/4 "2017-11-08T16:36:00Z")

</div>

@fifty60, yes, though the full FreeRTOS API is not necessarily exposed through the Particle HAL.
