Skip to content

Commit 5114ae7

Browse files
committed
fix 2MB-no-uf2 partition table
1 parent f86377e commit 5114ae7

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

ports/espressif/Makefile

Lines changed: 4 additions & 0 deletions
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+
ifeq ($(CIRCUITPY_ESP_FLASH_SIZE), 2MB)
340+
FLASH_SDKCONFIG = esp-idf-config/sdkconfig-$(CIRCUITPY_ESP_FLASH_SIZE)-no-ota-no-uf2.defaults
341+
else
339342
UF2_BOOTLOADER ?= $(if $(filter $(IDF_TARGET),esp32s2 esp32s3),1)
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/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

0 commit comments

Comments
 (0)