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.
pull/1/head
Alex Albino 2019-08-07 07:22:15 -07:00 committed by Damien George
parent 31de44775c
commit 80d37d936c
3 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,2 @@
#define MICROPY_HW_BOARD_NAME "Generic ESP32-D2WD module"
#define MICROPY_HW_MCU_NAME "ESP32-D2WD"

View File

@ -0,0 +1,5 @@
SDKCONFIG += boards/sdkconfig.base
PART_SRC = partitions-2MiB.csv
FLASH_SIZE = 2MB
FLASH_MODE = dio
FLASH_FREQ = 40m

View File

@ -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,
1 # Name, Type, SubType, Offset, Size, Flags
2 # Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
3 nvs, data, nvs, 0x9000, 0x6000,
4 phy_init, data, phy, 0xf000, 0x1000,
5 factory, app, factory, 0x10000, 0x110000,
6 vfs, data, fat, 0x120000, 0xA0000,