Skip to content

Commit f7f0ea6

Browse files
authored
Merge branch 'adafruit:main' into waveshare_rp2350_usb
2 parents 7517bb0 + 66093e8 commit f7f0ea6

File tree

136 files changed

+116524
-115601
lines changed

Some content is hidden

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

136 files changed

+116524
-115601
lines changed

.github/actions/deps/ports/espressif/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ runs:
77
run: |
88
echo >> $GITHUB_ENV "IDF_PATH=$GITHUB_WORKSPACE/ports/espressif/esp-idf"
99
echo >> $GITHUB_ENV "IDF_TOOLS_PATH=$GITHUB_WORKSPACE/.idf_tools"
10+
echo >> $GITHUB_ENV "ESP_ROM_ELF_DIR=$GITHUB_WORKSPACE/.idf_tools"
1011
shell: bash
1112

1213
- name: Get IDF commit

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
[submodule "ports/espressif/esp-idf"]
144144
path = ports/espressif/esp-idf
145145
url = https://github.com/adafruit/esp-idf.git
146-
branch = circuitpython-v5.3.2
146+
branch = circuitpython-v5.4.1
147147
[submodule "ports/espressif/esp-protocols"]
148148
path = ports/espressif/esp-protocols
149149
url = https://github.com/adafruit/esp-protocols.git

lib/mbedtls_config/mbedtls_config_port.h

Lines changed: 0 additions & 67 deletions
This file was deleted.

locale/en_GB.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: PACKAGE VERSION\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"PO-Revision-Date: 2025-04-19 15:42+0000\n"
10+
"PO-Revision-Date: 2025-04-25 15:04+0000\n"
1111
"Last-Translator: Andi Chandler <[email protected]>\n"
1212
"Language-Team: none\n"
1313
"Language: en_GB\n"
1414
"MIME-Version: 1.0\n"
1515
"Content-Type: text/plain; charset=UTF-8\n"
1616
"Content-Transfer-Encoding: 8bit\n"
1717
"Plural-Forms: nplurals=2; plural=n != 1;\n"
18-
"X-Generator: Weblate 5.11.1-dev\n"
18+
"X-Generator: Weblate 5.12-dev\n"
1919

2020
#: main.c
2121
msgid ""
@@ -117,7 +117,7 @@ msgstr "%q failure: %d"
117117

118118
#: shared-module/audiodelays/MultiTapDelay.c
119119
msgid "%q in %q must be of type %q or %q, not %q"
120-
msgstr ""
120+
msgstr "%q in %q must be of type %q or %q, not %q"
121121

122122
#: py/argcheck.c shared-module/audiofilters/Filter.c
123123
msgid "%q in %q must be of type %q, not %q"
@@ -2630,7 +2630,7 @@ msgstr "bits must be 32 or less"
26302630
#: shared-bindings/audiofilters/Distortion.c
26312631
#: shared-bindings/audiodelays/Reverb.c
26322632
msgid "bits_per_sample must be 16"
2633-
msgstr ""
2633+
msgstr "bits_per_sample must be 16"
26342634

26352635
#: shared-bindings/audiodelays/Echo.c shared-bindings/audiofilters/Distortion.c
26362636
#: shared-bindings/audiofilters/Filter.c shared-bindings/audiomixer/Mixer.c
@@ -4055,7 +4055,7 @@ msgstr "rsplit(None,n)"
40554055

40564056
#: shared-bindings/audiodelays/Reverb.c
40574057
msgid "samples_signed must be true"
4058-
msgstr ""
4058+
msgstr "samples_signed must be true"
40594059

40604060
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
40614061
#: ports/raspberrypi/common-hal/audiobusio/PDMIn.c

locale/zh_Latn_pinyin.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ msgstr ""
77
"Project-Id-Version: circuitpython-cn\n"
88
"Report-Msgid-Bugs-To: \n"
99
"POT-Creation-Date: 2021-01-04 12:55-0600\n"
10-
"PO-Revision-Date: 2025-04-10 22:01+0000\n"
10+
"PO-Revision-Date: 2025-04-25 15:04+0000\n"
1111
"Last-Translator: hexthat <[email protected]>\n"
1212
"Language-Team: Chinese Hanyu Pinyin\n"
1313
"Language: zh_Latn_pinyin\n"
1414
"MIME-Version: 1.0\n"
1515
"Content-Type: text/plain; charset=UTF-8\n"
1616
"Content-Transfer-Encoding: 8bit\n"
1717
"Plural-Forms: nplurals=1; plural=0;\n"
18-
"X-Generator: Weblate 5.11-dev\n"
18+
"X-Generator: Weblate 5.12-dev\n"
1919

2020
#: main.c
2121
msgid ""
@@ -118,7 +118,7 @@ msgstr "%q Shībài: %d"
118118

119119
#: shared-module/audiodelays/MultiTapDelay.c
120120
msgid "%q in %q must be of type %q or %q, not %q"
121-
msgstr ""
121+
msgstr "%q zhōngde %q bìxū shì %q huò %q lèixíng, érbùshì %q"
122122

123123
#: py/argcheck.c shared-module/audiofilters/Filter.c
124124
msgid "%q in %q must be of type %q, not %q"
@@ -2648,7 +2648,7 @@ msgstr "wèi bì xū shì 32 huò gèng shǎo"
26482648
#: shared-bindings/audiofilters/Distortion.c
26492649
#: shared-bindings/audiodelays/Reverb.c
26502650
msgid "bits_per_sample must be 16"
2651-
msgstr ""
2651+
msgstr "bits_per_sample bìxū wèi 16"
26522652

26532653
#: shared-bindings/audiodelays/Echo.c shared-bindings/audiofilters/Distortion.c
26542654
#: shared-bindings/audiofilters/Filter.c shared-bindings/audiomixer/Mixer.c
@@ -4077,7 +4077,7 @@ msgstr "Rchāifēn(wú,N)"
40774077

40784078
#: shared-bindings/audiodelays/Reverb.c
40794079
msgid "samples_signed must be true"
4080-
msgstr ""
4080+
msgstr "samples_signed bìxū wéi zhēn"
40814081

40824082
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
40834083
#: ports/raspberrypi/common-hal/audiobusio/PDMIn.c

main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ static void start_mp(safe_mode_t safe_mode) {
203203
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_lib));
204204

205205
mp_obj_list_init((mp_obj_list_t *)mp_sys_argv, 0);
206+
207+
// Always return to root
208+
common_hal_os_chdir("/");
206209
}
207210

208211
static void stop_mp(void) {
@@ -457,8 +460,6 @@ static bool __attribute__((noinline)) run_code_py(safe_mode_t safe_mode, bool *s
457460
usb_setup_with_vm();
458461
#endif
459462

460-
// Always return to root before trying to run files.
461-
common_hal_os_chdir("/");
462463
// Check if a different run file has been allocated
463464
if (next_code_configuration != NULL) {
464465
next_code_configuration->options &= ~SUPERVISOR_NEXT_CODE_OPT_NEWLY_SET;

ports/atmel-samd/boards/hallowing_m4_express/mpconfigboard.mk

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ EXTERNAL_FLASH_DEVICES = "GD25Q64C,W25Q64JVxQ"
1111
LONGINT_IMPL = MPZ
1212

1313
CIRCUITPY_AESIO = 0
14-
CIRCUITPY_JPEGIO = 0
15-
CIRCUITPY_SYNTHIO = 0
16-
CIRCUITPY_TILEPALETTEMAPPER = 0
14+
CIRCUITPY_CODEOP = 0
15+
CIRCUITPY_EPAPERDISPLAY = 0
16+
CIRCUITPY_FLOPPYIO = 0
17+
CIRCUITPY_I2CDISPLAYBUS = 0
18+
CIRCUITPY_I2CTARGET = 0
19+
CIRCUITPY_PARALLELDISPLAYBUS = 0
20+
CIRCUITPY_RGBMATRIX = 0
21+
CIRCUITPY_SHARPDISPLAY = 0
22+
CIRCUITPY_SPITARGET = 0

ports/atmel-samd/boards/uartlogger2/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ CHIP_FAMILY = samd51
99
QSPI_FLASH_FILESYSTEM = 1
1010
EXTERNAL_FLASH_DEVICES = "W25Q32JVxQ"
1111
LONGINT_IMPL = MPZ
12+
13+
CIRCUITPY_I2CTARGET = 0
1214
CIRCUITPY_SPITARGET = 0
1315
CIRCUITPY_SYNTHIO = 0
1416
CIRCUITPY_JPEGIO = 0

ports/atmel-samd/common-hal/pulseio/PulseIn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ void common_hal_pulseio_pulsein_construct(pulseio_pulsein_obj_t *self,
130130
mp_raise_RuntimeError(MP_ERROR_TEXT("Internal resource(s) in use"));
131131
}
132132

133-
self->buffer = (uint16_t *)m_malloc(maxlen * sizeof(uint16_t));
133+
self->buffer = (uint16_t *)m_malloc_without_collect(maxlen * sizeof(uint16_t));
134134
if (self->buffer == NULL) {
135135
m_malloc_fail(maxlen * sizeof(uint16_t));
136136
}

ports/cxd56/common-hal/pulseio/PulseIn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static int pulsein_interrupt_handler(int irq, FAR void *context, FAR void *arg)
6565

6666
void common_hal_pulseio_pulsein_construct(pulseio_pulsein_obj_t *self,
6767
const mcu_pin_obj_t *pin, uint16_t maxlen, bool idle_state) {
68-
self->buffer = (uint16_t *)m_malloc(maxlen * sizeof(uint16_t));
68+
self->buffer = (uint16_t *)m_malloc_without_collect(maxlen * sizeof(uint16_t));
6969
if (self->buffer == NULL) {
7070
m_malloc_fail(maxlen * sizeof(uint16_t));
7171
}

ports/espressif/Makefile

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ INC += \
8383
-isystem esp-idf/components/esp_psram/include \
8484
-isystem esp-idf/components/esp_ringbuf/include \
8585
-isystem esp-idf/components/esp_rom/include \
86+
-isystem esp-idf/components/esp_rom/$(IDF_TARGET)/include \
87+
-isystem esp-idf/components/esp_rom/$(IDF_TARGET)/include/$(IDF_TARGET) \
88+
-isystem esp-idf/components/esp_security/include \
8689
-isystem esp-idf/components/esp_system/include \
8790
-isystem esp-idf/components/esp_timer/include \
8891
-isystem esp-idf/components/esp_wifi/include \
@@ -115,6 +118,7 @@ INC += \
115118
-isystem esp-idf/components/sdmmc/include \
116119
-isystem esp-idf/components/soc/include \
117120
-isystem esp-idf/components/soc/$(IDF_TARGET)/include \
121+
-isystem esp-idf/components/soc/$(IDF_TARGET)/register \
118122
-isystem esp-idf/components/spi_flash/include \
119123
-isystem esp-idf/components/usb/include \
120124
-isystem esp-idf/components/ulp/ulp_fsm/include \
@@ -171,12 +175,12 @@ ifeq ($(DEBUG), 1)
171175
OPTIMIZATION_FLAGS ?= -Og
172176
CFLAGS += -DDEBUG
173177
endif
174-
# You may want to enable these flags to make setting breakpoints easier.
175-
# CFLAGS += -fno-inline -fno-ipa-sra
178+
# You may want to enable these flags to make setting breakpoints easier.
179+
# CFLAGS += -fno-inline -fno-ipa-sra
176180
else
177181
CFLAGS += -DNDEBUG
178-
# RISC-V is larger than xtensa
179-
# Use -Os for RISC-V when it overflows
182+
# RISC-V is larger than xtensa
183+
# Use -Os for RISC-V when it overflows
180184
ifeq ($(IDF_TARGET_ARCH),riscv)
181185
OPTIMIZATION_FLAGS ?= -Os
182186
else
@@ -238,7 +242,6 @@ ifeq ($(IDF_TARGET),esp32)
238242
LDFLAGS += \
239243
-Tesp32.rom.newlib-data.ld \
240244
-Tesp32.rom.newlib-funcs.ld \
241-
-Tesp32.rom.newlib-time.ld \
242245
-Tesp32.rom.spiflash_legacy.ld
243246

244247
CHIP_COMPONENTS = \
@@ -261,7 +264,6 @@ CHIP_COMPONENTS = \
261264
else ifeq ($(IDF_TARGET),esp32c3)
262265
LDFLAGS += \
263266
-Tesp32c3.rom.newlib.ld \
264-
-Tesp32c3.rom.newlib-time.ld \
265267
-Tesp32c3.rom.version.ld \
266268
-Tesp32c3.rom.eco3.ld \
267269
-Tesp32c3.rom.bt_funcs.ld
@@ -308,7 +310,6 @@ else ifeq ($(IDF_TARGET),esp32s2)
308310
LDFLAGS += \
309311
-Tesp32s2.rom.newlib-data.ld \
310312
-Tesp32s2.rom.newlib-funcs.ld \
311-
-Tesp32s2.rom.newlib-time.ld \
312313
-Tesp32s2.rom.spiflash_legacy.ld
313314

314315
CHIP_COMPONENTS = \
@@ -360,10 +361,19 @@ CFLAGS += \
360361
-DCFG_TUD_TASK_QUEUE_SZ=32
361362
endif
362363
ifeq ($(CIRCUITPY_USB_DEVICE),1)
364+
ifeq ($(IDF_TARGET),esp32s2)
365+
# Make more room in internal RAM on the S2.
366+
CFLAGS += \
367+
-DCFG_TUD_CDC_RX_BUFSIZE=128 \
368+
-DCFG_TUD_CDC_TX_BUFSIZE=128 \
369+
-DCFG_TUD_MSC_BUFSIZE=1024
370+
else
363371
CFLAGS += \
364372
-DCFG_TUD_CDC_RX_BUFSIZE=1024 \
365373
-DCFG_TUD_CDC_TX_BUFSIZE=1024 \
366-
-DCFG_TUD_MSC_BUFSIZE=4096 \
374+
-DCFG_TUD_MSC_BUFSIZE=4096
375+
endif
376+
CFLAGS += \
367377
-DCFG_TUD_MIDI_RX_BUFSIZE=128 \
368378
-DCFG_TUD_MIDI_TX_BUFSIZE=128 \
369379
-DCFG_TUD_VENDOR_RX_BUFSIZE=128 \
@@ -383,7 +393,7 @@ SRC_C += \
383393
peripherals/$(IDF_TARGET)/pins.c
384394

385395
ifeq ($(CIRCUITPY_SSL),1)
386-
SRC_C += lib/mbedtls_config/crt_bundle.c
396+
SRC_C += common-hal/ssl/crt_bundle.c
387397
endif
388398

389399
SRC_C += $(wildcard common-hal/espidf/*.c)
@@ -594,7 +604,7 @@ endif
594604

595605
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
596606
ifneq ($(CIRCUITPY_WIFI),0)
597-
ESP_IDF_COMPONENTS_LINK += esp_coex esp_netif esp-tls esp_wifi lwip mbedtls mdns wpa_supplicant esp_phy
607+
ESP_IDF_COMPONENTS_LINK += esp_coex esp_netif esp_security esp-tls esp_wifi lwip mbedtls mdns wpa_supplicant esp_phy
598608
endif
599609
ifneq ($(CIRCUITPY_BLEIO_NATIVE),0)
600610
BLE_IMPL_esp32 := esp32
@@ -605,10 +615,10 @@ ifneq ($(CIRCUITPY_BLEIO_NATIVE),0)
605615
BLE_IMPL_esp32h2 := libble
606616
BLE_IMPL = $(BLE_IMPL_$(IDF_TARGET))
607617

608-
ESP_IDF_COMPONENTS_LINK += bt esp_phy
618+
ESP_IDF_COMPONENTS_LINK += bt esp_phy esp_security
609619
ifeq ($(BLE_IMPL),esp32)
610-
# BLE will hang the ESP32 and trigger an interrupt watchdog without this undefined symbol at
611-
# link because a weak version of the interrupt that BLE uses will be linked incorrectly.
620+
# BLE will hang the ESP32 and trigger an interrupt watchdog without this undefined symbol at
621+
# link because a weak version of the interrupt that BLE uses will be linked incorrectly.
612622
REGISTRATION_FUNCTIONS += -u ld_include_hli_vectors_bt
613623
BINARY_BLOBS += esp-idf/components/bt/controller/lib_esp32/$(IDF_TARGET)/libbtdm_app.a
614624
endif
@@ -627,6 +637,9 @@ ifneq ($(CIRCUITPY_BLEIO_NATIVE),0)
627637
endif
628638
endif
629639
endif
640+
ifeq ($(IDF_TARGET),esp32p4)
641+
ESP_IDF_COMPONENTS_LINK += esp_security
642+
endif
630643
ifneq ($(CIRCUITPY_ESPULP),0)
631644
ESP_IDF_COMPONENTS_LINK += ulp
632645
endif

ports/espressif/boards/mixgo_ce_udisk/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ CIRCUITPY_ESP_FLASH_FREQ = 80m
1010
CIRCUITPY_ESP_FLASH_SIZE = 4MB
1111

1212
CIRCUITPY_AESIO = 0
13+
CIRCUITPY_CANIO = 0
1314
CIRCUITPY_CODEOP = 0
1415
CIRCUITPY_ESPCAMERA = 0
1516

ports/espressif/boards/oxocard_artwork/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static void display_init(void) {
6060
240, // width (after rotation)
6161
240, // height (after rotation)
6262
0, // column start
63-
80, // row start
63+
0, // row start
6464
0, // rotation
6565
16, // color depth
6666
false, // grayscale

ports/espressif/boards/oxocard_galaxy/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static void display_init(void) {
6060
240, // width (after rotation)
6161
240, // height (after rotation)
6262
0, // column start
63-
80, // row start
63+
0, // row start
6464
0, // rotation
6565
16, // color depth
6666
false, // grayscale

ports/espressif/boards/oxocard_science/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static void display_init(void) {
6060
240, // width (after rotation)
6161
240, // height (after rotation)
6262
0, // column start
63-
80, // row start
63+
0, // row start
6464
0, // rotation
6565
16, // color depth
6666
false, // grayscale

0 commit comments

Comments
 (0)