Skip to content

Commit a6c6d09

Browse files
authored
Merge pull request #9071 from tannewt/idf5.2.1
Update ESP-IDF to 5.2.1
2 parents ec16f6d + 63a33b4 commit a6c6d09

File tree

20 files changed

+71
-58
lines changed

20 files changed

+71
-58
lines changed

ports/espressif/Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ INC += \
9797
-isystem esp-idf/components/esp_adc/include \
9898
-isystem esp-idf/components/esp_adc/$(IDF_TARGET)/include \
9999
-isystem esp-idf/components/esp_app_format/include \
100+
-isystem esp-idf/components/esp_bootloader_format/include \
100101
-isystem esp-idf/components/esp_common/include \
101102
-isystem esp-idf/components/esp_event/include \
102103
-isystem esp-idf/components/esp_hw_support/include \
@@ -110,12 +111,15 @@ INC += \
110111
-isystem esp-idf/components/esp_system/include \
111112
-isystem esp-idf/components/esp_timer/include \
112113
-isystem esp-idf/components/esp_wifi/include \
114+
-isystem esp-idf/components/freertos/config/include \
115+
-isystem esp-idf/components/freertos/config/include/freertos \
116+
-isystem esp-idf/components/freertos/config/$(IDF_TARGET_ARCH)/include \
113117
-isystem esp-idf/components/freertos/esp_additions/include \
114118
-isystem esp-idf/components/freertos/esp_additions/include/freertos \
115-
-isystem esp-idf/components/freertos/esp_additions/arch/$(IDF_TARGET_ARCH)/include \
116119
-isystem esp-idf/components/freertos/FreeRTOS-Kernel/include \
117120
-isystem esp-idf/components/freertos/FreeRTOS-Kernel/include/freertos \
118121
-isystem esp-idf/components/freertos/FreeRTOS-Kernel/portable/$(IDF_TARGET_ARCH)/include \
122+
-isystem esp-idf/components/freertos/FreeRTOS-Kernel/portable/$(IDF_TARGET_ARCH)/include/freertos \
119123
-isystem esp-idf/components/hal/include \
120124
-isystem esp-idf/components/hal/$(IDF_TARGET)/include \
121125
-isystem esp-idf/components/hal/platform_port/include \
@@ -134,6 +138,7 @@ INC += \
134138
-isystem esp-idf/components/soc/include \
135139
-isystem esp-idf/components/soc/$(IDF_TARGET)/include \
136140
-isystem esp-idf/components/spi_flash/include \
141+
-isystem esp-idf/components/usb/include \
137142
-isystem esp-idf/components/ulp/ulp_fsm/include \
138143
-isystem esp-idf/components/ulp/ulp_riscv/include \
139144
-isystem esp-idf/components/ulp/ulp_common/include \
@@ -498,6 +503,9 @@ endif
498503
ifneq ($(CIRCUITPY_PARALLELDISPLAYBUS),0)
499504
ESP_IDF_COMPONENTS_LINK += esp_lcd
500505
endif
506+
ifneq ($(CIRCUITPY_USB),0)
507+
ESP_IDF_COMPONENTS_LINK += usb
508+
endif
501509

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

@@ -579,7 +587,7 @@ esp-idf-stamp: $(BUILD)/esp-idf/config/sdkconfig.h
579587

580588
$(BUILD)/firmware.elf: $(OBJ) | esp-idf-stamp $(IDF_CMAKE_TARGETS)
581589
$(STEPECHO) "LINK $@"
582-
$(Q)$(CC) -o $@ $(LDFLAGS) $^ -Wl,--print-memory-usage -Wl,--start-group $(ESP_IDF_COMPONENTS_EXPANDED) $(BINARY_BLOBS) $(MBEDTLS_COMPONENTS_LINK_EXPANDED) $(LIBS) -Wl,--end-group -u newlib_include_pthread_impl -u ld_include_highint_hdl -u __cxx_fatal_exception
590+
$(Q)$(CC) -o $@ $(LDFLAGS) $^ -Wl,--print-memory-usage -Wl,--start-group $(ESP_IDF_COMPONENTS_EXPANDED) $(BINARY_BLOBS) $(MBEDTLS_COMPONENTS_LINK_EXPANDED) $(LIBS) -Wl,--end-group -u newlib_include_pthread_impl -u ld_include_highint_hdl -u __cxx_fatal_exception -u esp_app_desc
583591

584592
$(BUILD)/circuitpython-firmware.bin: $(BUILD)/firmware.elf | tools/build_memory_info.py
585593
$(STEPECHO) "Create $@"

ports/espressif/boards/adafruit_qualia_s3_rgb666/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ CIRCUITPY_ESP_FLASH_FREQ = 80m
1111

1212
CIRCUITPY_ESP_PSRAM_SIZE = 8MB
1313
CIRCUITPY_ESP_PSRAM_MODE = opi
14-
CIRCUITPY_ESP_PSRAM_FREQ = 120m
14+
CIRCUITPY_ESP_PSRAM_FREQ = 80m
1515

1616
CIRCUITPY_DOTCLOCKFRAMEBUFFER = 1

ports/espressif/boards/espressif_esp32_eye/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ CIRCUITPY_ESP_PSRAM_FREQ = 40m
1313

1414
CIRCUITPY_CANIO = 0
1515
CIRCUITPY_NEOPIXEL_WRITE = 0
16+
CIRCUITPY_PIXELBUF = 0
1617
CIRCUITPY_PS2IO = 0
1718
CIRCUITPY_ROTARYIO = 0
1819
CIRCUITPY_TOUCHIO = 0

ports/espressif/boards/espressif_esp32s3_lcd_ev/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CIRCUITPY_ESP_FLASH_SIZE = 16MB
1111

1212
CIRCUITPY_ESP_PSRAM_SIZE = 8MB
1313
CIRCUITPY_ESP_PSRAM_MODE = opi
14-
CIRCUITPY_ESP_PSRAM_FREQ = 120m
14+
CIRCUITPY_ESP_PSRAM_FREQ = 80m
1515

1616
CIRCUITPY_DOTCLOCKFRAMEBUFFER = 1
1717
UF2_BOOTLOADER = 0

ports/espressif/boards/firebeetle2_esp32s3/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ CIRCUITPY_ESP_FLASH_SIZE = 16MB
1111

1212
CIRCUITPY_ESP_PSRAM_SIZE = 8MB
1313
CIRCUITPY_ESP_PSRAM_MODE = opi
14-
CIRCUITPY_ESP_PSRAM_FREQ = 120m
14+
CIRCUITPY_ESP_PSRAM_FREQ = 80m
1515

1616
FROZEN_MPY_DIRS += $(TOP)/frozen/CircuitPython_AXP313A

ports/espressif/boards/m5stack_timer_camera_x/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ CIRCUITPY_ESP_FLASH_SIZE = 4MB
99

1010
CIRCUITPY_ESP_PSRAM_SIZE = 8MB
1111
CIRCUITPY_ESP_PSRAM_MODE = opi
12-
CIRCUITPY_ESP_PSRAM_FREQ = 120m
12+
CIRCUITPY_ESP_PSRAM_FREQ = 80m

ports/espressif/boards/mixgo_ce_serial/mpconfigboard.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ CIRCUITPY_ESP_FLASH_MODE = qio
99
CIRCUITPY_ESP_FLASH_FREQ = 80m
1010
CIRCUITPY_ESP_FLASH_SIZE = 4MB
1111

12+
CIRCUITPY_AESIO = 0
13+
CIRCUITPY_CODEOP = 0
1214
CIRCUITPY_ESPCAMERA = 0
1315

1416
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_ConnectionManager
1517
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Requests
1618
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
1719
FROZEN_MPY_DIRS += $(TOP)/frozen/mixgo_cp_lib/mixgoce_lib
18-
CIRCUITPY_ESPCAMERA = 0
20+
21+
CIRCUITPY_MESSAGE_COMPRESSION_LEVEL = 9

ports/espressif/boards/mixgo_ce_udisk/mpconfigboard.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ CIRCUITPY_ESP_FLASH_MODE = qio
99
CIRCUITPY_ESP_FLASH_FREQ = 80m
1010
CIRCUITPY_ESP_FLASH_SIZE = 4MB
1111

12+
CIRCUITPY_AESIO = 0
13+
CIRCUITPY_CODEOP = 0
1214
CIRCUITPY_ESPCAMERA = 0
1315

1416
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_ConnectionManager
1517
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Requests
1618
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
1719
FROZEN_MPY_DIRS += $(TOP)/frozen/mixgo_cp_lib/mixgoce_lib
18-
CIRCUITPY_ESPCAMERA = 0
20+
21+
CIRCUITPY_MESSAGE_COMPRESSION_LEVEL = 9

ports/espressif/common-hal/busio/UART.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
151151
uart_config.flow_ctrl = UART_HW_FLOWCTRL_CTS;
152152
}
153153

154-
if (receiver_buffer_size <= UART_FIFO_LEN) {
155-
receiver_buffer_size = UART_FIFO_LEN + 8;
154+
if (receiver_buffer_size <= UART_HW_FIFO_LEN(self->uart_num)) {
155+
receiver_buffer_size = UART_HW_FIFO_LEN(self->uart_num) + 8;
156156
}
157157

158-
uart_config.rx_flow_ctrl_thresh = UART_FIFO_LEN - 8;
158+
uart_config.rx_flow_ctrl_thresh = UART_HW_FIFO_LEN(self->uart_num) - 8;
159159
// Install the driver before we change the settings.
160160
if (uart_driver_install(self->uart_num, receiver_buffer_size, 0, 20, &self->event_queue, 0) != ESP_OK ||
161161
uart_set_mode(self->uart_num, mode) != ESP_OK) {

0 commit comments

Comments
 (0)