Skip to content

Commit 96dc7e6

Browse files
tannewtclaude
andcommitted
Migrate espressif port from ESP-IDF v5.5.3 to v6.0
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b13a842 commit 96dc7e6

51 files changed

Lines changed: 408 additions & 212 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ports/espressif/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.16)
55
set(ENV{IDF_PATH} ${CMAKE_SOURCE_DIR}/esp-idf)
66

77
# The component list here determines what options we get in menuconfig and what the ninja file can build.
8-
set(COMPONENTS bt driver esp_driver_dac esp_driver_gpio esp_driver_gptimer esp_driver_i2c esp_driver_i2s esp_driver_ledc esp_driver_pcnt esp_driver_rmt esp_driver_spi esp_driver_tsens esp_driver_uart esp-tls esp_adc_cal esp_event esp_netif esp_psram esp_wifi esptool_py freertos log lwip main mbedtls mdns soc ulp usb wpa_supplicant esp-camera esp_lcd vfs esp_vfs_console sdmmc)
8+
set(COMPONENTS bt driver esp_driver_dac esp_driver_gpio esp_driver_gptimer esp_driver_i2c esp_driver_i2s esp_driver_ledc esp_driver_pcnt esp_driver_rmt esp_driver_sdmmc esp_driver_spi esp_driver_tsens esp_driver_uart esp-tls esp_adc esp_event esp_netif esp_psram esp_wifi esptool_py freertos log lwip main mbedtls mdns soc ulp wpa_supplicant esp_lcd vfs esp_stdio sdmmc esp-camera)
99
set(EXTRA_COMPONENT_DIRS "esp-protocols/components/mdns" "esp-camera")
1010

1111
include($ENV{IDF_PATH}/tools/cmake/project.cmake)

ports/espressif/Makefile

Lines changed: 95 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -50,38 +50,38 @@ INC += \
5050
-isystem esp-idf/components/driver/touch_sensor/include \
5151
-isystem esp-idf/components/driver/touch_sensor/$(IDF_TARGET)/include \
5252
-isystem esp-idf/components/driver/twai/include \
53+
-isystem esp-idf/components/driver/i2c/include \
5354
-isystem esp-idf/components/efuse/include \
5455
-isystem esp-idf/components/efuse/$(IDF_TARGET)/include \
55-
-isystem esp-idf/components/$(IDF_TARGET)/include \
5656
-isystem esp-idf/components/esp_adc/include \
5757
-isystem esp-idf/components/esp_adc/$(IDF_TARGET)/include \
5858
-isystem esp-idf/components/esp_app_format/include \
5959
-isystem esp-idf/components/esp_bootloader_format/include \
6060
-isystem esp-idf/components/esp_common/include \
61-
-isystem esp-idf/components/esp_driver_deprecated \
6261
-isystem esp-idf/components/esp_driver_dac/include \
6362
-isystem esp-idf/components/esp_driver_gpio/include \
6463
-isystem esp-idf/components/esp_driver_gptimer/include \
6564
-isystem esp-idf/components/esp_driver_i2c/include \
6665
-isystem esp-idf/components/esp_driver_i2s/include \
67-
-isystem esp-idf/components/esp_driver_$(IDF_TARGET)/include \
6866
-isystem esp-idf/components/esp_driver_ledc/include \
6967
-isystem esp-idf/components/esp_driver_parlio/include \
7068
-isystem esp-idf/components/esp_driver_pcnt/include \
7169
-isystem esp-idf/components/esp_driver_rmt/include \
7270
-isystem esp-idf/components/esp_driver_sdio/include \
7371
-isystem esp-idf/components/esp_driver_sdmmc/include \
72+
-isystem esp-idf/components/esp_driver_sdmmc/legacy/include \
73+
-isystem esp-idf/components/esp_driver_dma/include \
7474
-isystem esp-idf/components/esp_driver_spi/include \
7575
-isystem esp-idf/components/esp_driver_tsens/include \
7676
-isystem esp-idf/components/esp_driver_uart/include \
7777
-isystem esp-idf/components/esp_event/include \
78-
-isystem esp-idf/components/esp_hw_support/dma/include \
79-
-isystem esp-idf/components/esp_hw_support/ldo/include \
8078
-isystem esp-idf/components/esp_hw_support/include \
8179
-isystem esp-idf/components/esp_hw_support/include/soc \
8280
-isystem esp-idf/components/esp_hw_support/port/$(IDF_TARGET)/private_include \
81+
-isystem esp-idf/components/esp_hw_support/etm/include \
8382
-isystem esp-idf/components/esp_mm/include \
8483
-isystem esp-idf/components/esp_netif/include \
84+
-isystem esp-idf/components/esp_blockdev/include \
8585
-isystem esp-idf/components/esp_partition/include \
8686
-isystem esp-idf/components/esp_pm/include \
8787
-isystem esp-idf/components/esp_psram/include \
@@ -106,6 +106,35 @@ INC += \
106106
-isystem esp-idf/components/hal/include \
107107
-isystem esp-idf/components/hal/$(IDF_TARGET)/include \
108108
-isystem esp-idf/components/hal/platform_port/include \
109+
-isystem esp-idf/components/esp_hal_gpio/include \
110+
-isystem esp-idf/components/esp_hal_gpio/$(IDF_TARGET)/include \
111+
-isystem esp-idf/components/esp_hal_timg/include \
112+
-isystem esp-idf/components/esp_hal_ana_conv/include \
113+
-isystem esp-idf/components/esp_hal_touch_sens/include \
114+
-isystem esp-idf/components/esp_hal_uart/include \
115+
-isystem esp-idf/components/esp_hal_gpspi/include \
116+
-isystem esp-idf/components/esp_hal_i2c/include \
117+
-isystem esp-idf/components/esp_hal_i2s/include \
118+
-isystem esp-idf/components/esp_hal_i2s/$(IDF_TARGET)/include \
119+
-isystem esp-idf/components/esp_hal_ledc/include \
120+
-isystem esp-idf/components/esp_hal_pcnt/include \
121+
-isystem esp-idf/components/esp_hal_rmt/include \
122+
-isystem esp-idf/components/esp_hal_twai/include \
123+
-isystem esp-idf/components/esp_hal_twai/$(IDF_TARGET)/include \
124+
-isystem esp-idf/components/esp_hal_timg/$(IDF_TARGET)/include \
125+
-isystem esp-idf/components/esp_hal_gpspi/$(IDF_TARGET)/include \
126+
-isystem esp-idf/components/esp_hal_dma/include \
127+
-isystem esp-idf/components/esp_hal_dma/$(IDF_TARGET)/include \
128+
-isystem esp-idf/components/esp_hal_lcd/include \
129+
-isystem esp-idf/components/esp_hal_lcd/$(IDF_TARGET)/include \
130+
-isystem esp-idf/components/esp_hal_usb/include \
131+
-isystem esp-idf/components/esp_hal_usb/$(IDF_TARGET)/include \
132+
-isystem esp-idf/components/esp_hal_parlio/include \
133+
-isystem esp-idf/components/esp_hal_pmu/include \
134+
-isystem esp-idf/components/esp_hal_pmu/$(IDF_TARGET)/include \
135+
-isystem esp-idf/components/esp_hal_wdt/include \
136+
-isystem esp-idf/components/esp_hal_wdt/$(IDF_TARGET)/include \
137+
-isystem esp-idf/components/esp_hal_security/include \
109138
-isystem esp-idf/components/heap/include \
110139
-isystem esp-idf/components/log/include \
111140
-isystem esp-idf/components/lwip/include \
@@ -115,23 +144,20 @@ INC += \
115144
-isystem esp-idf/components/lwip/port/freertos/include \
116145
-isystem esp-idf/components/mbedtls/esp_crt_bundle/include \
117146
-isystem esp-idf/components/mbedtls/mbedtls/include \
147+
-isystem esp-idf/components/mbedtls/mbedtls/tf-psa-crypto/include \
148+
-isystem esp-idf/components/mbedtls/mbedtls/tf-psa-crypto/drivers/builtin/include \
118149
-isystem esp-idf/components/mbedtls/port/include \
119-
-isystem esp-idf/components/newlib/platform_include \
150+
-isystem esp-idf/components/mbedtls/port/psa_driver/include \
151+
-isystem esp-idf/components/esp_libc/platform_include \
120152
-isystem esp-idf/components/nvs_flash/include \
121-
-isystem esp-idf/components/sdio/include \
122153
-isystem esp-idf/components/sdmmc/include \
123154
-isystem esp-idf/components/soc/include \
124155
-isystem esp-idf/components/soc/$(IDF_TARGET)/include \
125156
-isystem esp-idf/components/soc/$(IDF_TARGET)/register \
126-
-isystem esp-idf/components/soc/$(IDF_TARGET)/register/hw_ver3 \
127-
-isystem esp-idf/components/soc/$(IDF_TARGET)/register/hw_ver2 \
128-
-isystem esp-idf/components/soc/$(IDF_TARGET)/register/hw_ver1 \
129157
-isystem esp-idf/components/spi_flash/include \
130-
-isystem esp-idf/components/usb/include \
131158
-isystem esp-idf/components/ulp/ulp_fsm/include \
132159
-isystem esp-idf/components/ulp/ulp_riscv/include \
133160
-isystem esp-idf/components/ulp/ulp_common/include \
134-
-isystem esp-idf/components/ulp/ulp_common/include/$(IDF_TARGET) \
135161
-isystem esp-idf/components/$(IDF_TARGET_ARCH)/include \
136162
-isystem esp-idf/components/$(IDF_TARGET_ARCH)/$(IDF_TARGET)/include \
137163
-isystem esp-protocols/components/mdns/include
@@ -140,6 +166,7 @@ CFLAGS += \
140166
-DHAVE_CONFIG_H \
141167
-DESP_PLATFORM=1 \
142168
-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" \
169+
-DMBEDTLS_DECLARE_PRIVATE_IDENTIFIERS \
143170
-DMBEDTLS_PADLOCK_FILE=\"ports/espressif/esp-idf/components/mbedtls/mbedtls/library/padlock.h\" \
144171
-DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX \
145172
-DMP3DEC_GENERIC
@@ -205,20 +232,19 @@ endif
205232
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
206233
CFLAGS += $(OPTIMIZATION_FLAGS)
207234

208-
CFLAGS += $(INC) -Werror -Wall -std=gnu11 -Wl,--gc-sections $(BASE_CFLAGS) $(C_DEFS) $(CFLAGS_MOD) $(COPT) -Werror=missing-prototypes -Werror=old-style-definition
235+
CFLAGS += $(INC) -Werror -Wall -std=gnu11 -Wl,--gc-sections $(BASE_CFLAGS) $(C_DEFS) $(CFLAGS_MOD) $(COPT) -Werror=missing-prototypes -Werror=old-style-definition -Wno-error=cpp -Wno-cpp
209236

210-
# Most current ESPs have nano versions of newlib in ROM so we use them.
211-
ifneq ($(IDF_TARGET),esp32c6)
212-
CFLAGS += --specs=nano.specs
213-
else
237+
# ESP-IDF v6.0 uses picolibc instead of newlib.
238+
CFLAGS += --specs=picolibc.specs
239+
ifeq ($(IDF_TARGET),esp32c6)
214240
LDFLAGS += -T$(IDF_TARGET).rom.newlib-normal.ld
215241
endif
216242

217243
ifeq ($(IDF_TARGET_ARCH),xtensa)
218244
# Remove the last two flags once TinyUSB is updated with the `#include <xtensa_api.h>` instead of
219245
# `#include "xtensa/xtensa_api.h"`.
220246

221-
CFLAGS += -mlongcalls -isystem esp-idf/components/xtensa/deprecated_include/ -Wno-error=cpp
247+
CFLAGS += -mlongcalls -isystem esp-idf/components/xtensa/deprecated_include/
222248
CFLAGS += -DMICROPY_GCREGS_SETJMP=1
223249

224250
# Wrap longjmp with a patched version that protects register window update with a critical section
@@ -228,7 +254,7 @@ ifeq ($(IDF_TARGET_ARCH),xtensa)
228254
else ifeq ($(IDF_TARGET_ARCH),riscv)
229255

230256
ifeq ($(IDF_TARGET),esp32p4)
231-
CFLAGS += -march=rv32imafc_zicsr_zifencei_xesppie -mabi=ilp32f
257+
CFLAGS += -march=rv32imafc_zicsr_zifencei -mabi=ilp32f
232258
else
233259
CFLAGS += -march=rv32imac_zicsr_zifencei
234260
endif
@@ -242,12 +268,13 @@ else ifeq ($(IDF_TARGET_ARCH),riscv)
242268
endif
243269

244270

245-
LDFLAGS += $(CFLAGS) -Wl,-nostdlib -Wl,-Map=$@.map -Wl,-cref -Wl,--undefined=uxTopUsedPriority
271+
LDFLAGS += $(CFLAGS) -nostartfiles -Wl,-nostdlib -Wl,-Map=$@.map -Wl,-cref -Wl,--undefined=uxTopUsedPriority
246272

247273
LDFLAGS += \
248274
-L$(BUILD)/esp-idf/esp-idf/esp_system/ld \
249275
-Lesp-idf/components/esp_rom/$(IDF_TARGET)/ld \
250276
-Lesp-idf/components/soc/$(IDF_TARGET)/ld \
277+
-Lesp-idf/components/esp_hal_wdt/$(IDF_TARGET) \
251278
-Tmemory.ld \
252279
-Tsections.ld \
253280
-T$(IDF_TARGET).peripherals.ld \
@@ -264,11 +291,11 @@ LDFLAGS += \
264291
-Tesp32.rom.newlib-data.ld \
265292
-Tesp32.rom.syscalls.ld \
266293
-Tesp32.rom.libc-funcs.ld \
267-
-Tesp32.rom.newlib-reent-funcs.ld \
268-
-Tesp32.rom.spiflash_legacy.ld
294+
-Tesp32.rom.newlib-reent-funcs.ld
269295

270296
CHIP_COMPONENTS = \
271-
esp_driver_dac
297+
esp_driver_dac \
298+
esp_hal_i2s esp_hal_lcd esp_hal_pcnt esp_hal_rmt esp_hal_touch_sens esp_hal_twai
272299

273300
else ifeq ($(IDF_TARGET),esp32c2)
274301
LDFLAGS += \
@@ -279,14 +306,16 @@ LDFLAGS += \
279306
-Tesp32c2.rom.newlib-nano.ld \
280307
-Tesp32c2.rom.version.ld \
281308
-Tesp32c2.rom.systimer.ld \
282-
-Tesp32c2.rom.wdt.ld
309+
-Trom.wdt.ld
283310

284311
CFLAGS += -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ
285312

286313
CHIP_COMPONENTS = \
287-
esp_driver_tsens
314+
esp_driver_tsens \
315+
esp_hal_dma esp_hal_pmu
288316

289317
else ifeq ($(IDF_TARGET),esp32c3)
318+
# esp32c2 has none of: esp_hal_i2s esp_hal_lcd esp_hal_pcnt esp_hal_touch_sens esp_hal_twai
290319
LDFLAGS += \
291320
-Tesp32c3.rom.newlib.ld \
292321
-Tesp32c3.rom.libc.ld \
@@ -296,7 +325,9 @@ LDFLAGS += \
296325
-Tesp32c3.rom.bt_funcs.ld
297326

298327
CHIP_COMPONENTS = \
299-
esp_driver_tsens
328+
esp_driver_tsens \
329+
esp_driver_usb_serial_jtag \
330+
esp_hal_dma esp_hal_i2s esp_hal_pmu esp_hal_rmt esp_hal_twai esp_hal_usb
300331

301332
else ifeq ($(IDF_TARGET),esp32c6)
302333
LDFLAGS += \
@@ -308,11 +339,13 @@ LDFLAGS += \
308339
-Tesp32c6.rom.coexist.ld \
309340
-Tesp32c6.rom.heap.ld \
310341
-Tesp32c6.rom.systimer.ld \
311-
-Tesp32c6.rom.wdt.ld
342+
-Trom.wdt.ld
312343

313344

314345
CHIP_COMPONENTS = \
315-
esp_driver_tsens
346+
esp_driver_tsens \
347+
esp_driver_usb_serial_jtag \
348+
esp_hal_dma esp_hal_i2s esp_hal_pcnt esp_hal_pmu esp_hal_rmt esp_hal_twai esp_hal_usb
316349

317350
else ifeq ($(IDF_TARGET),esp32c61)
318351
LDFLAGS += \
@@ -325,34 +358,48 @@ LDFLAGS += \
325358
-Tesp32c61.rom.coexist.ld \
326359
-Tesp32c61.rom.heap.ld \
327360
-Tesp32c61.rom.systimer.ld \
328-
-Tesp32c61.rom.wdt.ld
361+
-Trom.wdt.ld
329362

330363

331364
CHIP_COMPONENTS = \
332-
esp_driver_tsens
365+
esp_driver_tsens \
366+
esp_driver_usb_serial_jtag \
367+
esp_hal_dma esp_hal_i2s esp_hal_pmu esp_hal_usb
333368

334369
else ifeq ($(IDF_TARGET),esp32p4)
370+
CFLAGS += \
371+
-isystem esp-idf/components/soc/esp32p4/register/hw_ver3 \
372+
-isystem esp-idf/components/soc/esp32p4/register/hw_ver1 \
373+
-isystem esp-idf/components/esp_hw_support/ldo/include
374+
335375
LDFLAGS += \
336376
-Tesp32p4.rom.libc.ld \
337377
-Tesp32p4.rom.newlib.ld \
338378
-Tesp32p4.rom.systimer.ld \
339-
-Tesp32p4.rom.wdt.ld
379+
-Tesp32p4.rom.eco5.ld \
380+
-Tesp32p4.rom.eco5.libc.ld \
381+
-Tesp32p4.rom.eco5.rvfp.ld \
382+
-Tesp32p4.rom.version.ld \
383+
-Trom.wdt.ld
340384

341385

342386
CHIP_COMPONENTS = \
343387
esp_driver_tsens \
344-
esp_driver_usb_serial_jtag
388+
esp_driver_usb_serial_jtag \
389+
esp_hal_dma esp_hal_i2s esp_hal_lcd esp_hal_pcnt esp_hal_pmu esp_hal_rmt esp_hal_touch_sens esp_hal_twai esp_hal_usb
345390

346391
else ifeq ($(IDF_TARGET),esp32h2)
347392
LDFLAGS += \
348393
-Tesp32h2.rom.heap.ld \
349394
-Tesp32h2.rom.libc.ld \
350395
-Tesp32h2.rom.newlib.ld \
351396
-Tesp32h2.rom.systimer.ld \
352-
-Tesp32h2.rom.wdt.ld
397+
-Trom.wdt.ld
353398

354399
CHIP_COMPONENTS = \
355-
esp_driver_tsens
400+
esp_driver_tsens \
401+
esp_driver_usb_serial_jtag \
402+
esp_hal_dma esp_hal_i2s esp_hal_pcnt esp_hal_pmu esp_hal_rmt esp_hal_twai esp_hal_usb
356403

357404
else ifeq ($(IDF_TARGET),esp32s2)
358405
LDFLAGS += \
@@ -363,19 +410,22 @@ LDFLAGS += \
363410

364411
CHIP_COMPONENTS = \
365412
esp_driver_dac \
366-
esp_driver_tsens
413+
esp_driver_tsens \
414+
esp_hal_dma esp_hal_i2s esp_hal_lcd esp_hal_pcnt esp_hal_rmt esp_hal_touch_sens esp_hal_twai esp_hal_usb
367415

368416
else ifeq ($(IDF_TARGET),esp32s3)
369417
LDFLAGS += \
370418
-Tesp32s3.rom.libc.ld \
371419
-Tesp32s3.rom.newlib.ld \
372420
-Tesp32s3.rom.version.ld \
373421
-Tesp32s3.rom.systimer.ld \
374-
-Tesp32s3.rom.wdt.ld \
375-
-Tesp32s3.rom.bt_funcs.ld
422+
-Tesp32s3.rom.bt_funcs.ld \
423+
-Trom.wdt.ld
376424

377425
CHIP_COMPONENTS = \
378-
esp_driver_tsens
426+
esp_driver_tsens \
427+
esp_driver_usb_serial_jtag \
428+
esp_hal_dma esp_hal_i2s esp_hal_lcd esp_hal_pcnt esp_hal_pmu esp_hal_rmt esp_hal_touch_sens esp_hal_twai esp_hal_usb
379429

380430
endif
381431

@@ -678,7 +728,7 @@ do-sdkconfig: $(BUILD)/esp-idf/config/sdkconfig.h
678728
QSTR_GLOBAL_REQUIREMENTS += $(BUILD)/esp-idf/config/sdkconfig.h
679729
$(BUILD)/esp-idf/config/sdkconfig.h: boards/$(BOARD)/sdkconfig boards/$(BOARD)/mpconfigboard.mk CMakeLists.txt | $(BUILD)/esp-idf
680730
$(STEPECHO) "LINK $@"
681-
$(Q)env IDF_PATH=$(IDF_PATH) cmake -S . -B $(BUILD)/esp-idf -DSDKCONFIG=$(BUILD)/esp-idf/sdkconfig -DSDKCONFIG_DEFAULTS="$(SDKCONFIGS)" -DCMAKE_TOOLCHAIN_FILE=$(IDF_PATH)/tools/cmake/toolchain-$(IDF_TARGET).cmake -DIDF_TARGET=$(IDF_TARGET) -GNinja
731+
$(Q)env IDF_PATH=$(IDF_PATH) IDF_COMPONENT_MANAGER=0 cmake -S . -B $(BUILD)/esp-idf -DSDKCONFIG=$(BUILD)/esp-idf/sdkconfig -DSDKCONFIG_DEFAULTS="$(SDKCONFIGS)" -DCMAKE_TOOLCHAIN_FILE=$(IDF_PATH)/tools/cmake/toolchain-$(IDF_TARGET).cmake -DIDF_TARGET=$(IDF_TARGET) -GNinja
682732
$(Q)$(PYTHON) tools/check-sdkconfig.py \
683733
CIRCUITPY_DUALBANK=$(CIRCUITPY_DUALBANK) \
684734
CIRCUITPY_STORAGE_EXTEND=$(CIRCUITPY_STORAGE_EXTEND) \
@@ -726,7 +776,7 @@ ifeq ($(IDF_TARGET),esp32)
726776
BINARY_BLOBS += esp-idf/components/esp_phy/lib/$(IDF_TARGET)/librtc.a
727777
endif
728778

729-
ESP_IDF_COMPONENTS_LINK = $(IDF_TARGET_ARCH) $(CHIP_COMPONENTS) app_update bootloader_support driver esp_driver_gpio esp_driver_gptimer esp_driver_i2c esp_driver_ledc esp_driver_spi esp_driver_uart efuse esp_adc esp_app_format esp_common esp_event esp_hw_support esp_mm esp_partition esp_pm esp_ringbuf esp_rom esp_system esp_timer freertos hal heap log newlib nvs_flash pthread soc spi_flash vfs esp_vfs_console
779+
ESP_IDF_COMPONENTS_LINK = $(IDF_TARGET_ARCH) $(CHIP_COMPONENTS) app_update bootloader_support driver esp_driver_dma esp_driver_gpio esp_driver_gptimer esp_driver_i2c esp_driver_ledc esp_driver_spi esp_driver_uart efuse esp_adc esp_app_format esp_common esp_event esp_gdbstub esp_hal_ana_conv esp_hal_clock esp_hal_gpio esp_hal_gpspi esp_hal_i2c esp_hal_ledc esp_hal_mspi esp_hal_security esp_hal_timg esp_hal_uart esp_hal_wdt esp_hw_support esp_mm esp_partition esp_pm esp_ringbuf esp_rom esp_system esp_timer freertos hal heap log esp_libc nvs_flash nvs_sec_provider pthread soc spi_flash vfs esp_stdio
730780
ifneq ($(CIRCUITPY_WIFI),0)
731781
ESP_IDF_COMPONENTS_LINK += esp_coex esp_netif esp_security esp-tls esp_wifi lwip mbedtls mdns wpa_supplicant esp_phy
732782
endif
@@ -783,17 +833,18 @@ endif
783833
ifneq ($(CIRCUITPY_QSPIBUS),0)
784834
ESP_IDF_COMPONENTS_LINK += esp_lcd
785835
endif
786-
ifneq ($(CIRCUITPY_USB_DEVICE),0)
787-
ESP_IDF_COMPONENTS_LINK += usb
788-
endif
789836
ifneq ($(CIRCUITPY_SDIOIO),0)
790-
ESP_IDF_COMPONENTS_LINK += sdmmc esp_driver_sdmmc
837+
ESP_IDF_COMPONENTS_LINK += sdmmc esp_driver_sdmmc esp_driver_sd_intf
791838
endif
792839

793840
ESP_IDF_COMPONENTS_EXPANDED = $(foreach component, $(ESP_IDF_COMPONENTS_LINK), $(BUILD)/esp-idf/esp-idf/$(component)/lib$(component).a)
794841

795842
MBEDTLS_COMPONENTS_LINK = crypto tls x509
796843
MBEDTLS_COMPONENTS_LINK_EXPANDED = $(foreach component, $(MBEDTLS_COMPONENTS_LINK), $(BUILD)/esp-idf/esp-idf/mbedtls/mbedtls/library/libmbed$(component).a)
844+
MBEDTLS_COMPONENTS_LINK_EXPANDED += $(BUILD)/esp-idf/esp-idf/mbedtls/mbedtls/library/libtfpsacrypto.a
845+
MBEDTLS_COMPONENTS_LINK_EXPANDED += $(BUILD)/esp-idf/esp-idf/mbedtls/mbedtls/tf-psa-crypto/drivers/builtin/libmbed-builtin.a
846+
MBEDTLS_COMPONENTS_LINK_EXPANDED += $(BUILD)/esp-idf/esp-idf/mbedtls/mbedtls/tf-psa-crypto/drivers/everest/libeverest.a
847+
MBEDTLS_COMPONENTS_LINK_EXPANDED += $(BUILD)/esp-idf/esp-idf/mbedtls/mbedtls/tf-psa-crypto/drivers/p256-m/libp256m.a
797848

798849
ifeq ($(IDF_TARGET_ARCH),xtensa)
799850
BINARY_BLOBS += esp-idf/components/xtensa/$(IDF_TARGET)/libxt_hal.a

ports/espressif/boards/adafruit_magtag_2.9_grayscale/board.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "supervisor/board.h"
88

99
#include "mpconfigboard.h"
10+
#include "driver/gpio.h"
1011
#include "shared-bindings/busio/SPI.h"
1112
#include "shared-bindings/fourwire/FourWire.h"
1213
#include "shared-bindings/microcontroller/Pin.h"

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ CIRCUITPY_DUALBANK = 0
1111

1212
CIRCUITPY_JPEGIO = 0
1313
CIRCUITPY_CANIO = 0
14+
CIRCUITPY_GETPASS = 0
15+
CIRCUITPY_MSGPACK = 0
16+
CIRCUITPY_PS2IO = 0
1417

1518
CIRCUITPY_ESP_USB_SERIAL_JTAG = 0

ports/espressif/boards/espressif_esp32s3_devkitc_1_n8r2_ros/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ CIRCUITPY_ESP_PSRAM_SIZE = 2MB
1313
CIRCUITPY_ESP_PSRAM_MODE = qio
1414
CIRCUITPY_ESP_PSRAM_FREQ = 80m
1515

16-
CIRCUITPY_RCLCPY = 1
16+
CIRCUITPY_RCLCPY = 0

ports/espressif/boards/espressif_esp32s3_usb_otg_n8/board.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "supervisor/board.h"
88
#include "mpconfigboard.h"
99
#include "shared-bindings/microcontroller/Pin.h"
10+
#include "driver/gpio.h"
1011

1112
#include "shared-bindings/busio/SPI.h"
1213
#include "shared-bindings/fourwire/FourWire.h"

0 commit comments

Comments
 (0)