Skip to content

Commit e08a5eb

Browse files
author
Michael O'Cleirigh
committed
Add forgotted files for C3_USB build
1 parent 42ab913 commit e08a5eb

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Notes: the offset of the partition table itself is set in
2+
# $ESPIDF/components/partition_table/Kconfig.projbuild and the
3+
# offset of the factory/ota_0 partition is set in makeimg.py
4+
# I needed to increase the size of the app partition to fit the tensorflow microlite library
5+
# There is 1/2 as much data partition as with standard micropython on esp32 4MiB.
6+
# Name, Type, SubType, Offset, Size, Flags
7+
nvs, data, nvs, 0x9000, 0x6000,
8+
phy_init, data, phy, 0xf000, 0x1000,
9+
factory, app, factory, 0x10000, 0x280000,
10+
vfs, data, fat, 0x300000, 0x100000,
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# -- from GENERIC_C3_USB start --
2+
3+
CONFIG_ESP32C3_REV_MIN_3=y
4+
CONFIG_ESP32C3_REV_MIN=3
5+
CONFIG_ESP32C3_BROWNOUT_DET=y
6+
CONFIG_ESP32C3_BROWNOUT_DET_LVL_SEL_7=
7+
CONFIG_ESP32C3_BROWNOUT_DET_LVL_SEL_4=y
8+
CONFIG_ESP32C3_BROWNOUT_DET_LVL=4
9+
CONFIG_ESP_CONSOLE_UART_DEFAULT=
10+
CONFIG_ESP_CONSOLE_USB_CDC=
11+
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
12+
13+
# -- from GENERIC_C3_USB end --
14+
15+
# MICROLITE 4M flash partition adjustment
16+
#CONFIG_ESPTOOLPY_FLASHMODE_DIO=y
17+
#CONFIG_ESPTOOLPY_FLASHFREQ_40M=y
18+
#CONFIG_ESPTOOLPY_FLASHSIZE_2MB=y
19+
CONFIG_PARTITION_TABLE_CUSTOM=y
20+
# move back up from micropython/ports/esp32 to the main project source code
21+
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="../../../boards/esp32/MICROLITE_C3_USB/custom-partitions.csv"

0 commit comments

Comments
 (0)