-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards generator updates: * simplified mapping description: only flash and spiffs sizes are needed * some ldscripts are renamed due to autogenerated names * +2M/0, +2M/512K spiffs, +4M0 * reduce length of hidden strings in boards.txt (#5100, arduino/arduino-builder#284) * give more details in ldscripts (address, size, +rf-cal, +sdk-wifi-settings)
- Loading branch information
Showing
27 changed files
with
4,713 additions
and
4,301 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* Flash Split for 16M chips */ | ||
/* sketch @0x40200000 (~1019KB) (1044464B) */ | ||
/* empty @0x402FEFF0 (~1028KB) (1052688B) */ | ||
/* spiffs @0x40400000 (~14316KB) (14659584B) */ | ||
/* eeprom @0x411FB000 (=4KB) */ | ||
/* rfcal @0x411FC000 (=4KB) */ | ||
/* wifi @0x411FD000 (=12KB) */ | ||
|
||
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 = 0x40201010, len = 0xfeff0 | ||
} | ||
|
||
PROVIDE ( _SPIFFS_start = 0x40400000 ); | ||
PROVIDE ( _SPIFFS_end = 0x411FB000 ); | ||
PROVIDE ( _SPIFFS_page = 0x100 ); | ||
PROVIDE ( _SPIFFS_block = 0x2000 ); | ||
|
||
INCLUDE "eagle.app.v6.common.ld" |
9 changes: 6 additions & 3 deletions
9
tools/sdk/ld/eagle.flash.16m.ld → tools/sdk/ld/eagle.flash.16m15m.ld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* Flash Split for 2M chips */ | ||
/* sketch @0x40200000 (~1019KB) (1044464B) */ | ||
/* empty @0x402FEFF0 (~4KB) (4112B) */ | ||
/* spiffs @0x40300000 (~1004KB) (1028096B) */ | ||
/* eeprom @0x403FB000 (=4KB) */ | ||
/* rfcal @0x403FC000 (=4KB) */ | ||
/* wifi @0x403FD000 (=12KB) */ | ||
|
||
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 = 0x40201010, len = 0xfeff0 | ||
} | ||
|
||
PROVIDE ( _SPIFFS_start = 0x40300000 ); | ||
PROVIDE ( _SPIFFS_end = 0x403FB000 ); | ||
PROVIDE ( _SPIFFS_page = 0x100 ); | ||
PROVIDE ( _SPIFFS_block = 0x2000 ); | ||
|
||
INCLUDE "eagle.app.v6.common.ld" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* Flash Split for 2M chips */ | ||
/* sketch @0x40200000 (~1019KB) (1044464B) */ | ||
/* empty @0x402FEFF0 (~516KB) (528400B) */ | ||
/* spiffs @0x40380000 (~492KB) (503808B) */ | ||
/* eeprom @0x403FB000 (=4KB) */ | ||
/* rfcal @0x403FC000 (=4KB) */ | ||
/* wifi @0x403FD000 (=12KB) */ | ||
|
||
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 = 0x40201010, len = 0xfeff0 | ||
} | ||
|
||
PROVIDE ( _SPIFFS_start = 0x40380000 ); | ||
PROVIDE ( _SPIFFS_end = 0x403FB000 ); | ||
PROVIDE ( _SPIFFS_page = 0x100 ); | ||
PROVIDE ( _SPIFFS_block = 0x2000 ); | ||
|
||
INCLUDE "eagle.app.v6.common.ld" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* Flash Split for 4M chips */ | ||
/* sketch @0x40200000 (~1019KB) (1044464B) */ | ||
/* empty @0x402FEFF0 (~4KB) (4112B) */ | ||
/* spiffs @0x40300000 (~3052KB) (3125248B) */ | ||
/* eeprom @0x405FB000 (=4KB) */ | ||
/* rfcal @0x405FC000 (=4KB) */ | ||
/* wifi @0x405FD000 (=12KB) */ | ||
|
||
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 = 0x40201010, len = 0xfeff0 | ||
} | ||
|
||
PROVIDE ( _SPIFFS_start = 0x40300000 ); | ||
PROVIDE ( _SPIFFS_end = 0x405FB000 ); | ||
PROVIDE ( _SPIFFS_page = 0x100 ); | ||
PROVIDE ( _SPIFFS_block = 0x2000 ); | ||
|
||
INCLUDE "eagle.app.v6.common.ld" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
cc0bfa0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
complete removal definitions like _SPIFFS_start, _SPIFFS_end, _SPIFFS_page, _SPIFFS_block from ld scripts for nonSPIFFS options is a good solution? They should not be preserved?
I can't compile any sketch from examples that uses references to Updater.cpp (like BasicOTA, httpUpdate)
I got errors like this for board 1M0 or 4M0:
As defined in https://arduino-esp8266.readthedocs.io/en/latest/ota_updates/readme.html#update-process-memory-view :
The new sketch will be stored in the space between the old sketch and the spiff
so... _SPIFFS_start should be specified even if spiffs size is 0
cc0bfa0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix coming
cc0bfa0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed by cee458a
Thanks
cc0bfa0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works now
tnx too!