summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEric Poulsen <eric@zyxod.com>2017-12-09 23:45:50 -0800
committerDamien George <damien.p.george@gmail.com>2017-12-13 15:51:04 +1100
commit19c7098e183a8148c541fe34c3fc1252dbbb90db (patch)
treedfcb49f6be68fab148d2e8435abff640355d313b
parent0593d6f5627a75d6d3cc894c4cf421158dc6cedf (diff)
downloadmicropython-19c7098e183a8148c541fe34c3fc1252dbbb90db.tar.gz
micropython-19c7098e183a8148c541fe34c3fc1252dbbb90db.zip
esp32: Add custom partitions.csv file with uPy specific size.
-rw-r--r--ports/esp32/Makefile2
-rw-r--r--ports/esp32/partitions.csv5
2 files changed, 6 insertions, 1 deletions
diff --git a/ports/esp32/Makefile b/ports/esp32/Makefile
index 3f0e47c178..2fa8c1c506 100644
--- a/ports/esp32/Makefile
+++ b/ports/esp32/Makefile
@@ -721,7 +721,7 @@ $(BUILD)/bootloader.elf: $(BOOTLOADER_OBJ)
# Declarations to build the partitions
PYTHON2 ?= python2
-PART_SRC = $(ESPCOMP)/partition_table/partitions_singleapp.csv
+PART_SRC = partitions.csv
$(BUILD)/partitions.bin: $(PART_SRC)
$(ECHO) "Create $@"
diff --git a/ports/esp32/partitions.csv b/ports/esp32/partitions.csv
new file mode 100644
index 0000000000..98adcd20a7
--- /dev/null
+++ b/ports/esp32/partitions.csv
@@ -0,0 +1,5 @@
+# Name, Type, SubType, Offset, Size, Flags
+# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
+nvs, data, nvs, 0x9000, 0x6000,
+phy_init, data, phy, 0xf000, 0x1000,
+factory, app, factory, 0x10000, 0x180000,