Skip to content

Commit dddc282

Browse files
committed
update default sdkconfig and correct bootloader offset
1 parent 554a629 commit dddc282

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

ports/espressif/Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,21 +338,22 @@ BINARY_BLOBS += esp-idf/components/xtensa/$(IDF_TARGET)/libxt_hal.a
338338
ESP_IDF_COMPONENTS_EXPANDED += esp-idf/components/xtensa/$(IDF_TARGET)/libxt_hal.a
339339
endif
340340

341-
ifeq ($(IDF_TARGET), esp32c3)
342-
ESPTOOL_BAUDRATE = 230400
343-
BOOTLOADER_OFFSET = 0x0000
341+
ifeq ($(IDF_TARGET),esp32c3)
342+
BOOTLOADER_OFFSET = 0x0
343+
else ifeq ($(IDF_TARGET),esp32s3)
344+
BOOTLOADER_OFFSET = 0x0
344345
else
345-
ESPTOOL_BAUDRATE = 460800
346346
BOOTLOADER_OFFSET = 0x1000
347347
endif
348+
348349
PARTITION_TABLE_OFFSET = 0x8000
349350
FIRMWARE_OFFSET = 0x10000
350351

351352
ESP_AUTOGEN_LD = $(BUILD)/esp-idf/esp-idf/$(IDF_TARGET)/$(IDF_TARGET)_out.ld $(BUILD)/esp-idf/esp-idf/$(IDF_TARGET)/ld/$(IDF_TARGET).project.ld
352353

353354
FLASH_FLAGS = --flash_mode $(CIRCUITPY_ESP_FLASH_MODE) --flash_freq $(CIRCUITPY_ESP_FLASH_FREQ) --flash_size $(CIRCUITPY_ESP_FLASH_SIZE)
354355

355-
ESPTOOL_FLAGS ?= -b $(ESPTOOL_BAUDRATE) --before=default_reset --after=no_reset
356+
ESPTOOL_FLAGS ?= --before=default_reset --after=no_reset
356357

357358
ifeq ($(IDF_TARGET),esp32c3)
358359
all: $(BUILD)/firmware.bin

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
#
2-
# Bootloader config
3-
#
4-
# CONFIG_BOOTLOADER_VDDSDIO_BOOST_1_8V is not set
5-
# end of Bootloader config
6-
71
#
82
# Serial flasher config
93
#
@@ -50,6 +44,14 @@ CONFIG_ESP32S2_DATA_CACHE_16KB=y
5044
# end of Cache config
5145
# end of ESP32S2-specific
5246

47+
#
48+
# ESP32S3-specific
49+
#
50+
# CONFIG_ESP32S3_DEFAULT_CPU_FREQ_160 is not set
51+
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240=y
52+
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ=240
53+
# end of ESP32S3-specific
54+
5355
#
5456
# Common ESP-related
5557
#

0 commit comments

Comments
 (0)