-->
Page 17 of 17

Re: Memory Layout

PostPosted: Wed Jul 01, 2015 5:13 am
by helpme
There are different kinds of memory(SRAM, DRAM, IRAM) in the memory layout. I am a firmware developer. My concern is whether there is enough RAM available for my firmware. What sort of firmware or code would go into SRAM, DRAM, IRAM? I am rather confused at the moment. Hope the ESP8266 experts here can advise.

Re: Memory Layout

PostPosted: Wed Jul 01, 2015 10:21 am
by eriksl
If I understand it correctly:

32 k iram, i = instruction, it's just static ram, all functions not prefixed with ICACHE_FLASH_ATTR will end here, it's loaded from spi flash on startup
80 k dram, d = data, also just static ram, for user data, it seems about 50 kb is free for user use

All other code is continuously fetched from spi flash, so it's a bit slower (about 4 times, I read).