Skip to content

Commit 2fd8589

Browse files
committed
Fix C2, H2 and S3 builds
1 parent 8190b40 commit 2fd8589

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ports/espressif/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ CFLAGS += $(INC) -Werror -Wall -std=gnu11 -Wl,--gc-sections $(BASE_CFLAGS) $(C_D
205205
# Most current ESPs have nano versions of newlib in ROM so we use them.
206206
ifneq ($(IDF_TARGET),esp32c6)
207207
CFLAGS += --specs=nano.specs
208-
LDFLAGS += -T$(IDF_TARGET).rom.newlib-nano.ld
209208
else
210209
LDFLAGS += -T$(IDF_TARGET).rom.newlib-normal.ld
211210
endif
@@ -264,7 +263,9 @@ else ifeq ($(IDF_TARGET),esp32c2)
264263
LDFLAGS += \
265264
-Tesp32c2.rom.ble.ld \
266265
-Tesp32c2.rom.heap.ld \
266+
-Tesp32c2.rom.libc.ld \
267267
-Tesp32c2.rom.newlib.ld \
268+
-Tesp32c2.rom.newlib-nano.ld \
268269
-Tesp32c2.rom.version.ld \
269270
-Tesp32c2.rom.systimer.ld \
270271
-Tesp32c2.rom.wdt.ld
@@ -321,6 +322,7 @@ CHIP_COMPONENTS = \
321322

322323
else ifeq ($(IDF_TARGET),esp32p4)
323324
LDFLAGS += \
325+
-Tesp32p4.rom.libc.ld \
324326
-Tesp32p4.rom.newlib.ld \
325327
-Tesp32p4.rom.systimer.ld \
326328
-Tesp32p4.rom.wdt.ld
@@ -332,6 +334,7 @@ CHIP_COMPONENTS = \
332334
else ifeq ($(IDF_TARGET),esp32h2)
333335
LDFLAGS += \
334336
-Tesp32h2.rom.heap.ld \
337+
-Tesp32h2.rom.libc.ld \
335338
-Tesp32h2.rom.newlib.ld \
336339
-Tesp32h2.rom.systimer.ld \
337340
-Tesp32h2.rom.wdt.ld
@@ -352,6 +355,7 @@ CHIP_COMPONENTS = \
352355

353356
else ifeq ($(IDF_TARGET),esp32s3)
354357
LDFLAGS += \
358+
-Tesp32s3.rom.libc.ld \
355359
-Tesp32s3.rom.newlib.ld \
356360
-Tesp32s3.rom.version.ld \
357361
-Tesp32s3.rom.systimer.ld \
@@ -712,7 +716,7 @@ ifneq ($(NEEDS_COEX),0)
712716
ESP_IDF_COMPONENTS_LINK += esp_coex
713717
endif
714718
ifneq ($(CIRCUITPY_WIFI),0)
715-
ESP_IDF_COMPONENTS_LINK += esp_coex esp_netif esp_security esp-tls esp_wifi lwip mbedtls mdns wpa_supplicant esp_phy
719+
ESP_IDF_COMPONENTS_LINK += esp_netif esp_security esp-tls esp_wifi lwip mbedtls mdns wpa_supplicant esp_phy
716720
endif
717721
ifneq ($(CIRCUITPY_BLEIO_NATIVE),0)
718722
BLE_IMPL_esp32 := esp32

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ CONFIG_ULP_COPROC_ENABLED=y
9595
CONFIG_ULP_COPROC_TYPE_FSM=y
9696
CONFIG_ULP_COPROC_TYPE_RISCV=y # Note: enabling both ULPs simultaneously only works due to a modification of adafruit/esp-idf
9797
# (see adafruit/esp-idf/pull/16) until espressif/esp-idf/issues/12999 is fixed.
98-
CONFIG_ULP_COPROC_RESERVE_MEM=8176
98+
CONFIG_ULP_COPROC_RESERVE_MEM=8144
9999
# end of Ultra Low Power (ULP) Co-processor
100100

101101
# end of Component config

0 commit comments

Comments
 (0)