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.
This commit is contained in:
parent
31de44775c
commit
80d37d936c
2
ports/esp32/boards/GENERIC_D2WD/mpconfigboard.h
Normal file
2
ports/esp32/boards/GENERIC_D2WD/mpconfigboard.h
Normal file
@ -0,0 +1,2 @@
|
||||
#define MICROPY_HW_BOARD_NAME "Generic ESP32-D2WD module"
|
||||
#define MICROPY_HW_MCU_NAME "ESP32-D2WD"
|
5
ports/esp32/boards/GENERIC_D2WD/mpconfigboard.mk
Normal file
5
ports/esp32/boards/GENERIC_D2WD/mpconfigboard.mk
Normal file
@ -0,0 +1,5 @@
|
||||
SDKCONFIG += boards/sdkconfig.base
|
||||
PART_SRC = partitions-2MiB.csv
|
||||
FLASH_SIZE = 2MB
|
||||
FLASH_MODE = dio
|
||||
FLASH_FREQ = 40m
|
6
ports/esp32/partitions-2MiB.csv
Normal file
6
ports/esp32/partitions-2MiB.csv
Normal 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,
|
|
Loading…
x
Reference in New Issue
Block a user