diff options
author | Alex Albino <webmaster@alexventure.com> | 2019-08-07 07:22:15 -0700 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-09-10 15:22:16 +1000 |
commit | 80d37d936c9832dc4b69ad631ad07697e26764d9 (patch) | |
tree | 0b080a28ba08fe2920ec6acec10ebab24e76f564 | |
parent | 31de44775c0ed2fa451e578dd0594d13f11459e9 (diff) |
esp32: Add support for ESP32-D2WD with 2MiB internal flash.
This patch adds a partitions file for the D2WD and a new board GENERIC_D2WD
which runs on these chip variants.
Resolves issue #4986.
-rw-r--r-- | ports/esp32/boards/GENERIC_D2WD/mpconfigboard.h | 2 | ||||
-rw-r--r-- | ports/esp32/boards/GENERIC_D2WD/mpconfigboard.mk | 5 | ||||
-rw-r--r-- | ports/esp32/partitions-2MiB.csv | 6 |
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, |