Skip to content

Commit

Permalink
Modifications to support a custom partition scheme for ESP32 builds a…
Browse files Browse the repository at this point in the history
…llowing a larger configuration set.
  • Loading branch information
MartinMueller2003 committed Feb 2, 2022
1 parent 54fbfa0 commit b3221c8
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ESP32_partitions.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x1D0000,
app1, app, ota_1, 0x1E0000,0x1D0000,
spiffs, data, spiffs, 0x3B0000,0x50000,
29 changes: 29 additions & 0 deletions ESP8266_loader.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x009000, 0x004000,
otadata, data, ota, 0x00E000, 0x002000,
phy_init, data, phy, 0x00F000, 0x001000
app0, app, ota_0, 0x010000, 0x1D0000,
app1, app, ota_1, 0x1E0000, 0x1D0000,
spiffs, data, spiffs, 0x3B0000, 0x050000,
*/

MEMORY
{
dport0_0_seg : org = 0x3FF00000, len = 0x10
dram0_0_seg : org = 0x3FFE8000, len = 0x14000
irom0_0_seg : org = 0x40201010, len = 0x79ff0
}

PROVIDE ( _FS_start = 0x4027B000 );
PROVIDE ( _FS_end = 0x402FB000 );
PROVIDE ( _FS_page = 0x100 );
PROVIDE ( _FS_block = 0x2000 );
PROVIDE ( _EEPROM_start = 0x402fb000 );
/* The following symbols are DEPRECATED and will be REMOVED in a future release */
PROVIDE ( _SPIFFS_start = 0x4027B000 );
PROVIDE ( _SPIFFS_end = 0x402FB000 );
PROVIDE ( _SPIFFS_page = 0x100 );
PROVIDE ( _SPIFFS_block = 0x2000 );

INCLUDE "local.eagle.app.v6.common.ld"
5 changes: 3 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ extra_scripts =
; https://docs.platformio.org/en/latest/platforms/espressif8266.html ;
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
[esp8266]
platform = espressif8266 @ 3.2.0 ; Arduino Core 3.0.2
platform = espressif8266 @ 3.2.0 ; Arduino Core
board_build.f_cpu = 160000000L
board_build.filesystem = littlefs
board_build.ldscript = eagle.flash.4m2m.ld
Expand Down Expand Up @@ -68,13 +68,14 @@ lib_deps =
[esp32]
platform = espressif32
board_build.filesystem = littlefs
board_build.partitions = min_spiffs.csv
board_build.partitions = ESP32_partitions.csv
monitor_filters = esp32_exception_decoder
build_flags =
${env.build_flags}
lib_deps =
${env.lib_deps}
esphome/AsyncTCP-esphome @ 1.2.2
extra_scripts = .scripts/replace_fs.py

;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
; ESP32 pulling from upstream core ;
Expand Down

0 comments on commit b3221c8

Please sign in to comment.