mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
add flash splits depending on the flash size
This commit is contained in:
@ -1,12 +1,5 @@
|
||||
/* This linker script generated from xt-genldscripts.tpp for LSP . */
|
||||
/* Linker Script for ld -N */
|
||||
MEMORY
|
||||
{
|
||||
dport0_0_seg : org = 0x3FF00000, len = 0x10
|
||||
dram0_0_seg : org = 0x3FFE8000, len = 0x14000
|
||||
iram1_0_seg : org = 0x40100000, len = 0x8000
|
||||
irom0_0_seg : org = 0x40210000, len = 0x5B000
|
||||
}
|
||||
|
||||
PHDRS
|
||||
{
|
||||
@ -20,8 +13,6 @@ PHDRS
|
||||
|
||||
/* Default entry point: */
|
||||
ENTRY(call_user_start)
|
||||
PROVIDE ( _SPIFFS_start = 0x4026B000 );
|
||||
PROVIDE ( _SPIFFS_end = 0x4027B000 );
|
||||
PROVIDE(_memmap_vecbase_reset = 0x40000000);
|
||||
/* Various memory-map dependent cache attribute settings: */
|
||||
_memmap_cacheattr_wb_base = 0x00000110;
|
17
hardware/tools/esp8266/sdk/ld/eagle.flash.1m.ld
Normal file
17
hardware/tools/esp8266/sdk/ld/eagle.flash.1m.ld
Normal file
@ -0,0 +1,17 @@
|
||||
/* Flash Split for 1M chips */
|
||||
/* irom0 428KB */
|
||||
/* spiffs 512KB */
|
||||
/* eeprom 20KB */
|
||||
|
||||
MEMORY
|
||||
{
|
||||
dport0_0_seg : org = 0x3FF00000, len = 0x10
|
||||
dram0_0_seg : org = 0x3FFE8000, len = 0x14000
|
||||
iram1_0_seg : org = 0x40100000, len = 0x8000
|
||||
irom0_0_seg : org = 0x40210000, len = 0x6B000
|
||||
}
|
||||
|
||||
PROVIDE ( _SPIFFS_start = 0x4027B000 );
|
||||
PROVIDE ( _SPIFFS_end = 0x402FB000 );
|
||||
|
||||
INCLUDE "../ld/eagle.app.v6.common.ld"
|
17
hardware/tools/esp8266/sdk/ld/eagle.flash.256k.ld
Normal file
17
hardware/tools/esp8266/sdk/ld/eagle.flash.256k.ld
Normal file
@ -0,0 +1,17 @@
|
||||
/* Flash Split for 256K chips */
|
||||
/* irom0 108KB */
|
||||
/* spiffs 64KB */
|
||||
/* eeprom 20KB */
|
||||
|
||||
MEMORY
|
||||
{
|
||||
dport0_0_seg : org = 0x3FF00000, len = 0x10
|
||||
dram0_0_seg : org = 0x3FFE8000, len = 0x14000
|
||||
iram1_0_seg : org = 0x40100000, len = 0x8000
|
||||
irom0_0_seg : org = 0x40210000, len = 0x1B000
|
||||
}
|
||||
|
||||
PROVIDE ( _SPIFFS_start = 0x4022B000 );
|
||||
PROVIDE ( _SPIFFS_end = 0x4023B000 );
|
||||
|
||||
INCLUDE "../ld/eagle.app.v6.common.ld"
|
17
hardware/tools/esp8266/sdk/ld/eagle.flash.2m.ld
Normal file
17
hardware/tools/esp8266/sdk/ld/eagle.flash.2m.ld
Normal file
@ -0,0 +1,17 @@
|
||||
/* Flash Split for 2M chips */
|
||||
/* irom0 960KB */
|
||||
/* spiffs 1004KB */
|
||||
/* eeprom 20KB */
|
||||
|
||||
MEMORY
|
||||
{
|
||||
dport0_0_seg : org = 0x3FF00000, len = 0x10
|
||||
dram0_0_seg : org = 0x3FFE8000, len = 0x14000
|
||||
iram1_0_seg : org = 0x40100000, len = 0x8000
|
||||
irom0_0_seg : org = 0x40210000, len = 0xF0000
|
||||
}
|
||||
|
||||
PROVIDE ( _SPIFFS_start = 0x40300000 );
|
||||
PROVIDE ( _SPIFFS_end = 0x403FB000 );
|
||||
|
||||
INCLUDE "../ld/eagle.app.v6.common.ld"
|
17
hardware/tools/esp8266/sdk/ld/eagle.flash.4m.ld
Normal file
17
hardware/tools/esp8266/sdk/ld/eagle.flash.4m.ld
Normal file
@ -0,0 +1,17 @@
|
||||
/* Flash Split for 4M chips */
|
||||
/* irom0 960KB */
|
||||
/* spiffs 3052KB */
|
||||
/* eeprom 20KB */
|
||||
|
||||
MEMORY
|
||||
{
|
||||
dport0_0_seg : org = 0x3FF00000, len = 0x10
|
||||
dram0_0_seg : org = 0x3FFE8000, len = 0x14000
|
||||
iram1_0_seg : org = 0x40100000, len = 0x8000
|
||||
irom0_0_seg : org = 0x40210000, len = 0xF0000
|
||||
}
|
||||
|
||||
PROVIDE ( _SPIFFS_start = 0x40300000 );
|
||||
PROVIDE ( _SPIFFS_end = 0x405FB000 );
|
||||
|
||||
INCLUDE "../ld/eagle.app.v6.common.ld"
|
17
hardware/tools/esp8266/sdk/ld/eagle.flash.512k.ld
Normal file
17
hardware/tools/esp8266/sdk/ld/eagle.flash.512k.ld
Normal file
@ -0,0 +1,17 @@
|
||||
/* Flash Split for 512K chips */
|
||||
/* irom0 364KB */
|
||||
/* spiffs 64KB */
|
||||
/* eeprom 20KB */
|
||||
|
||||
MEMORY
|
||||
{
|
||||
dport0_0_seg : org = 0x3FF00000, len = 0x10
|
||||
dram0_0_seg : org = 0x3FFE8000, len = 0x14000
|
||||
iram1_0_seg : org = 0x40100000, len = 0x8000
|
||||
irom0_0_seg : org = 0x40210000, len = 0x5B000
|
||||
}
|
||||
|
||||
PROVIDE ( _SPIFFS_start = 0x4026B000 );
|
||||
PROVIDE ( _SPIFFS_end = 0x4027B000 );
|
||||
|
||||
INCLUDE "../ld/eagle.app.v6.common.ld"
|
Reference in New Issue
Block a user