summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/esp32/boards/GENERIC_D2WD/mpconfigboard.h2
-rw-r--r--ports/esp32/boards/GENERIC_D2WD/mpconfigboard.mk5
-rw-r--r--ports/esp32/partitions-2MiB.csv6
3 files changed, 13 insertions, 0 deletions
diff --git a/ports/esp32/boards/GENERIC_D2WD/mpconfigboard.h b/ports/esp32/boards/GENERIC_D2WD/mpconfigboard.h
new file mode 100644
index 000000000..8923d46fd
--- /dev/null
+++ b/ports/esp32/boards/GENERIC_D2WD/mpconfigboard.h
@@ -0,0 +1,2 @@
+#define MICROPY_HW_BOARD_NAME "Generic ESP32-D2WD module"
+#define MICROPY_HW_MCU_NAME "ESP32-D2WD"
diff --git a/ports/esp32/boards/GENERIC_D2WD/mpconfigboard.mk b/ports/esp32/boards/GENERIC_D2WD/mpconfigboard.mk
new file mode 100644
index 000000000..65de5dcd0
--- /dev/null
+++ b/ports/esp32/boards/GENERIC_D2WD/mpconfigboard.mk
@@ -0,0 +1,5 @@
+SDKCONFIG += boards/sdkconfig.base
+PART_SRC = partitions-2MiB.csv
+FLASH_SIZE = 2MB
+FLASH_MODE = dio
+FLASH_FREQ = 40m
diff --git a/ports/esp32/partitions-2MiB.csv b/ports/esp32/partitions-2MiB.csv
new file mode 100644
index 000000000..84bc53782
--- /dev/null
+++ b/ports/esp32/partitions-2MiB.csv
@@ -0,0 +1,6 @@
+# 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, 0x110000,
+vfs, data, fat, 0x120000, 0xA0000,