Skip to content

Commit 607e917

Browse files
authored
Merge pull request #7073 from MicroDev1/patch
Fix 2/4MB Partition Tables & Makefile
2 parents 6e350a6 + fb91c2f commit 607e917

File tree

6 files changed

+13
-24
lines changed

6 files changed

+13
-24
lines changed

ports/espressif/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,12 +336,16 @@ $(BUILD)/esp-idf:
336336

337337
TARGET_SDKCONFIG = esp-idf-config/sdkconfig-$(IDF_TARGET).defaults
338338

339-
UF2_BOOTLOADER ?= $(if $(filter $(IDF_TARGET),esp32s2 esp32s3),1)
339+
ifeq ($(CIRCUITPY_ESP_FLASH_SIZE), 2MB)
340+
FLASH_SDKCONFIG = esp-idf-config/sdkconfig-$(CIRCUITPY_ESP_FLASH_SIZE)-no-ota-no-uf2.defaults
341+
else
342+
UF2_BOOTLOADER ?= $(CIRCUITPY_USB)
340343
ifeq ($(UF2_BOOTLOADER), 1)
341344
FLASH_SDKCONFIG = esp-idf-config/sdkconfig-$(CIRCUITPY_ESP_FLASH_SIZE).defaults
342345
else
343346
FLASH_SDKCONFIG = esp-idf-config/sdkconfig-$(CIRCUITPY_ESP_FLASH_SIZE)-no-uf2.defaults
344347
endif
348+
endif
345349

346350
ifeq ($(DEBUG), 1)
347351
DEBUG_SDKCONFIG = esp-idf-config/sdkconfig-debug.defaults

ports/espressif/boards/ai_thinker_esp32-c3s-2m/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ IDF_TARGET = esp32c3
66
CIRCUITPY_ESP_FLASH_MODE = dio
77
CIRCUITPY_ESP_FLASH_FREQ = 80m
88
CIRCUITPY_ESP_FLASH_SIZE = 2MB
9+
10+
CIRCUITPY_DUALBANK = 0

ports/espressif/esp-idf-config/partitions-4MB-no-uf2.csv

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
# bootloader.bin,, 0x1000, 32K
44
# partition table,, 0x8000, 4K
55
nvs, data, nvs, 0x9000, 20K,
6-
app, app, factory, 0x10000, 2048K,
7-
user_fs, data, fat, 0x210000, 1984K,
6+
otadata, data, ota, 0xe000, 8K,
7+
ota_0, 0, ota_0, 0x10000, 1408K,
8+
ota_1, 0, ota_1, 0x170000, 1408K,
9+
user_fs, data, fat, 0x2d0000, 1216K,

ports/espressif/esp-idf-config/sdkconfig-2MB-no-uf2.defaults renamed to ports/espressif/esp-idf-config/sdkconfig-2MB-no-ota-no-uf2.defaults

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ CONFIG_ESPTOOLPY_FLASHSIZE="2MB"
1010
CONFIG_ESPTOOLPY_FLASHSIZE_DETECT=y
1111
# end of Serial flasher config
1212

13-
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="esp-idf-config/partitions-2MB-no-uf2.csv"
13+
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="esp-idf-config/partitions-2MB-no-ota-no-uf2.csv"
1414
#
1515
# Partition Table
1616
#
17-
CONFIG_PARTITION_TABLE_FILENAME="esp-idf-config/partitions-2MB-no-uf2.csv"
17+
CONFIG_PARTITION_TABLE_FILENAME="esp-idf-config/partitions-2MB-no-ota-no-uf2.csv"
1818
# end of Partition Table

ports/espressif/esp-idf-config/sdkconfig-esp32.defaults

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -598,29 +598,10 @@ CONFIG_HEAP_TRACING_OFF=y
598598
# CONFIG_HEAP_ABORT_WHEN_ALLOCATION_FAILS is not set
599599
# end of Heap memory debugging
600600

601-
#
602-
# Log output
603-
#
604-
# CONFIG_LOG_DEFAULT_LEVEL_NONE is not set
605-
# CONFIG_LOG_DEFAULT_LEVEL_ERROR is not set
606-
# CONFIG_LOG_DEFAULT_LEVEL_WARN is not set
607-
CONFIG_LOG_DEFAULT_LEVEL_INFO=y
608-
# CONFIG_LOG_DEFAULT_LEVEL_DEBUG is not set
609-
# CONFIG_LOG_DEFAULT_LEVEL_VERBOSE is not set
610-
CONFIG_LOG_DEFAULT_LEVEL=3
611-
CONFIG_LOG_MAXIMUM_EQUALS_DEFAULT=y
612-
# CONFIG_LOG_MAXIMUM_LEVEL_DEBUG is not set
613-
# CONFIG_LOG_MAXIMUM_LEVEL_VERBOSE is not set
614-
CONFIG_LOG_MAXIMUM_LEVEL=3
615-
CONFIG_LOG_COLORS=y
616-
CONFIG_LOG_TIMESTAMP_SOURCE_RTOS=y
617-
# CONFIG_LOG_TIMESTAMP_SOURCE_SYSTEM is not set
618-
# end of Log output
619601

620602
#
621603
# LWIP
622604
#
623-
CONFIG_LWIP_LOCAL_HOSTNAME="Adafruit-Feather-ESP32-V2"
624605
# CONFIG_LWIP_NETIF_API is not set
625606
# CONFIG_LWIP_TCPIP_CORE_LOCKING is not set
626607
CONFIG_LWIP_DNS_SUPPORT_MDNS_QUERIES=y

0 commit comments

Comments
 (0)