1
0
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:
ficeto
2015-05-15 15:36:09 +03:00
parent 17bfb12941
commit c11d7d473f
9 changed files with 96 additions and 11 deletions

View File

@ -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;

View 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"

View 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"

View 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"

View 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"

View 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"