Post links and attach files for documentation here, also chat about these docs freely

User avatar
By helpme
#22138 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.
User avatar
By eriksl
#22158 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).