Docsity

Memory Map ESP8266 wiki, Schemi e mappe concettuali di Informatica

Toggle sidebar
bg1
Memory Map
Jump to bottom
Max Filippov edited this page on Jun 15, 2015 · 26 revisions
This page describes the physical memory layout of the ESP8266 family.
Reset Vector
The reset vector is 40000080h, which maps to internal ROM.
Memory Layout
Address Name Size Type R/W Description
00000000h Exc Causes fault when reading.
20000000h No Unmapped, repeated pattern of 00
80 00 00.
3FF00000h dport0 1000h I/O RW? Memory-mapped I/O, repeated
every 100h.
3FF10000h No Unmapped, zeroes.
3FF20000h ? ? RW? Unidentified data.
3FF30000h No Unmapped, zeroes.
3FFC0000h ? 20000h ? RW? uint32 mapping to the address it
is located at. What is this?
3FFE0000h No Unmapped, zeroes.
Document your code
Every project on GitHub comes with a version-controlled wiki to give your documentation the high level
of care it deserves. It’s easy to create well-maintained, Markdown or rich text documentation alongside
your code.
See pricing for teams and enterprises
Dismiss
Sign up for free
pf3
pf4
pf5

Anteprima parziale del testo

Scarica Memory Map ESP8266 wiki e più Schemi e mappe concettuali in PDF di Informatica solo su Docsity!

Memory Map

Jump to bottom

Max Filippov edited this page on Jun 15, 2015 · 26 revisions

This page describes the physical memory layout of the ESP8266 family.

Reset Vector

The reset vector is 40000080h, which maps to internal ROM.

Memory Layout

Address Name Size Type R/W Description

00000000h Exc Causes fault when reading.

20000000h No Unmapped, repeated pattern of 00 80 00 00.

3FF00000h dport0 1000h I/O RW? Memory-mapped I/O, repeated every 100h.

3FF10000h No Unmapped, zeroes. 3FF20000h?? RW? Unidentified data.

3FF30000h No Unmapped, zeroes.

3FFC0000h? 20000h? RW? uint32 mapping to the address it is located at. What is this?

3FFE0000h No Unmapped, zeroes.

Document your code

Every project on GitHub comes with a version-controlled wiki to give your documentation the high level of care it deserves. It’s easy to create well-maintained, Markdown or rich text documentation alongside your code.

See pricing for teams and enterprises

Dismiss

Sign up for free

Address Name Size Type R/W Description

3FFE8000h dram0 14000h RAM RW User data RAM. Available to applications.

3FFFC000h 4000h RAM ETS system data RAM.

40000000h brom? 10000h ROM RW? Internal ROM. May be writable somehow, but details unknown.

40010000h No Zeroes. Assumed to be unmapped.

40100000h iram1 8000h RAM RW

Instruction RAM. Used by bootloader to load SPI Flash <40000h.

40108000h? 4000h RAM RW

Instruction RAM/FLASH cache ram. OTA bootloader uses it. Mapped here if bit 4 (bit mask 0x10) is clear in the dport register 0x3ff

4010C000h? 4000h RAM RW

Instruction RAM/FLASH cache ram. Mapped here if bit 3 (bit mask 0x8) is clear in the dport register 0x3ff

40110000h? Zeroes, possibly more IRAM. 40140000h? Repeated pattern of 59 31 d8 ec.

40200000h?

SPI Flash is mapped here. Mapping hardware has 32KBytes cache (Unconfirmed). Non-cached code runs 12...13 times slower than code from IRAM. Cached code runs as fast as from IRAM. This area is readable as data with aligned 4-byte reads. Mapping of FLASH to this region is controlled by bit 17 of SPI CTRL register (0x60000208): setting this bit maps the FLASH, clearing it unmaps it.

40300000h? Unmapped, repeated pattern of 00 80 00 00.

Address Size Name Description

41000h 64k app.v6.flash1.bin User application, slot 2

51000h 180k app.v6.irom0text1.bin SDK libraries, slot 2

7E000h 8k blank.bin Filled with FFh. May be WiFi configuration.

Exception Vectors

Address Name

40000010h DebugException 40000020h NMIException

40000030h KernelException

40000050h UserException 40000070h DoubleException

40000080h Reset

Memmory-Mapped I/O Registers

Most of them live in 60000000h.

Base Address Size Name Description

60000000h 80h uart The UART0 config registers, see examples/IoT_Demo/include/drivers/uart_register.h

60000100h 100h spi Unconfirmed: The SPI controller registers, see examples/IoT_Demo/include/driver/spi_register.h

60000200h 100h spi Unconfirmed: The SPI controller registers, see examples/IoT_Demo/include/driver/spi_register.h

60000300h 74h gpio Unconfirmed: The timer config registers, see include/eagle_soc.h

60000600h 28h timer Unconfirmed: The timer config registers, see include/eagle_soc.h

60000700h A4h rtc Unconfirmed: The RTC config registers, see include/eagle_soc.h

Base Address Size Name Description

60000800h 44h iomux The IO MUX config registers, see include/eagle_soc.h

60000d00h >=8 i2c Unconfirmed: Internal I2C controller registers, see ROM functions rom_i2c_readReg, rom_i2c_writeReg

60000F00h 80h uart The UART1 config registers, see examples/IoT_Demo/include/drivers/uart_register.h

60001000h 100h rtcb RTC backup memory, see rtc_mem_backup

60001100h 100h rtcs RTC system memory, see system_rtc_mem_write 60001200h 200h rtcu RTC user memory

dport0 (3FF00000h–)

Address Bits Description

3FF00014h 0

When clear CPU runs at 80MHz. When set CPU runs at 160 MHz. Note that you need to call os_update_cpu_frequency(int freq_in_mhz) when changing the bit. Probably to calibrate timers. The UART divisor is not updated automatically, so you also have to call uart_div_modify(uart_no, clock_freq_in_hz / baud_rate_in_baud).

3FF00024h 3 When clear IRAM is mapped at 40108000h..4010BFFFh. When set that region reads as 0.

When clear IRAM is mapped at 4010C000h..4010FFFFh. When set that region reads as 0.

iomux Pin Registers (60000804h–60000843h)

31 24 16 8 0 -------- -ffff--- -------- ud--UDEe - Function || |||- Output Enable || ||- Output Enable during sleep || |- Pull-down during sleep || - Pull-up during sleep |- Pull-down `- Pull-up

References