ESP8266 Support WIKI

User Tools

Site Tools


esp8266_memory_map

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
esp8266_memory_map [2015/06/06 10:59]
terrye Convert to Dokuwiki markup as per Richard's request
esp8266_memory_map [2015/07/26 19:48] (current)
dkinzer
Line 39: Line 39:
 |  3E000h | 8k   | master_device_key.bin ​    | OTA device key. **Unconfirmed**:​ Not used without OTA | |  3E000h | 8k   | master_device_key.bin ​    | OTA device key. **Unconfirmed**:​ Not used without OTA |
 |  40000h | 240k | app.v6.irom0text.bin ​     | SDK libraries ​                             | |  40000h | 240k | app.v6.irom0text.bin ​     | SDK libraries ​                             |
-|  7C000h | 8k   | esp_init_data_default.bin | Default configuration ​                     |+|  7C000h | 8k   | esp_init_data_default.bin | Default configuration, see note below      ​|
 |  7E000h | 8k   | blank.bin ​                | Filled with FFh. May be WiFi configuration | |  7E000h | 8k   | blank.bin ​                | Filled with FFh. May be WiFi configuration |
  
-//This is for ESP IoT SDK version 0.8 and above.//+//This is for ESP IoT SDK version 0.8 and above.  Note that the address at which the default configuration is stored is always 16K from the end of the Flash memory. ​ The address given in the table above is for a 512KB Flash chip.//
  
 ===== SPI Flash ROM Layout (with OTA upgrades) ====== ===== SPI Flash ROM Layout (with OTA upgrades) ======
Line 54: Line 54:
 |  41000h | 64k  | app.v6.flash1.bin ​    | User application,​ slot 2 | |  41000h | 64k  | app.v6.flash1.bin ​    | User application,​ slot 2 |
 |  51000h | 180k | app.v6.irom0text1.bin | SDK libraries, slot 2    | |  51000h | 180k | app.v6.irom0text1.bin | SDK libraries, slot 2    |
 +|  7C000h | 8k   | esp_init_data_default.bin | Default configuration,​ see note below      |
 |  7E000h | 8k   | blank.bin ​            | Filled with FFh. May be WiFi configuration. | |  7E000h | 8k   | blank.bin ​            | Filled with FFh. May be WiFi configuration. |
  
-//This is for ESP IoT SDK version 0.8 and above, supporting OTA upgrades.//+//This is for ESP IoT SDK version 0.8 and above, supporting OTA upgrades.  Note that the address at which the default configuration is stored is always 16K from the end of the Flash memory. ​ The address given in the table above is for a 512KB Flash chip.//
  
 ===== Exception Vectors ===== ===== Exception Vectors =====
Line 68: Line 69:
 | 40000080h | Reset           | | 40000080h | Reset           |
  
-===== Memmory-Mapped I/O Registers =====+===== Memory-Mapped I/O Registers =====
  
 ^ Base Address ^ Size ^ Name   ^ Description ​   ^ ^ Base Address ^ Size ^ Name   ^ Description ​   ^
Line 81: Line 82:
 |   ​60000F00h ​ |  80h | uart1  | The UART1 config registers, see ''​examples/​IoT_Demo/​include/​drivers/​uart_register.h''​ |   ​60000F00h ​ |  80h | uart1  | The UART1 config registers, see ''​examples/​IoT_Demo/​include/​drivers/​uart_register.h''​
  
-  - Most of the memmory-6apped ​I/O Registers live in 60000000h--60000FFFh.+  - Most of the memory-mapped ​I/O Registers live in 60000000h--60000FFFh.
   - Setting bit 0 changes the CPU to 160 MHz mode. Clearing it means 80 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)''​.   - Setting bit 0 changes the CPU to 160 MHz mode. Clearing it means 80 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)''​.
   - iomux Pin Registers (60000804h--60000843h)   - iomux Pin Registers (60000804h--60000843h)
esp8266_memory_map.1433588353.txt.gz · Last modified: 2015/06/06 10:59 by terrye