Commit Graph

51424 Commits

Author SHA1 Message Date
hrushikesh.bhosale
2ec6f96f9f fix(examples): make https_request rom_impl test resilient to transient external server errors
The test_examples_protocol_https_request_rom_impl test on ESP32-C2 with
the ROM mbedTLS implementation hits a public TLS endpoint
(tls13.browserleaks.com / www.howsmyssl.com) for five sequential
sub-tests. CI runs frequently fail mid-test with one of:

  * mbedtls_ssl_handshake returned -0x7780
    (MBEDTLS_ERR_SSL_FATAL_ALERT_MESSAGE - server-side fatal alert)
  * esp-tls: [sock=NN] select() timeout
  * esp-tls: Failed to open new connection in specified timeout

In a representative log the first three sub-tests succeed and only the
fourth/fifth fail, which is consistent with rate-limiting or transient
server unavailability rather than a device bug. Mark the test as
flaky with up to two reruns (10 s delay) so a single transient remote
failure does not fail the CI job.

Also align this test with the rest of the file by injecting the host
timestamp via NVS (write_time_to_nvs) so the device clock no longer
depends on a previous boot's persisted SNTP result, removing one more
source of CI flakiness on first-boot or after NVS erase.
2026-04-13 15:20:30 +05:30
Sudeep Mohanty
e91cab31bd Merge branch 'worktree-add-cmakev2-pytest' into 'master'
test(cmakev2): add pytest scripts for cmakev2 build system examples

See merge request espressif/esp-idf!47239
2026-04-13 09:20:09 +02:00
Chen Chen
2a07c2efe7 Merge branch 'doc/i2c_master_probe_comment_update' into 'master'
docs(i2c): update i2c_master_probe parameter comment

Closes IDFGH-17502

See merge request espressif/esp-idf!47454
2026-04-13 15:13:25 +08:00
Chen Chen
f91f36f87f Merge branch 'fix/i2c_fsm_reset_sequence' into 'master'
fix(i2c): reset master before bus clear on chips without HW FSM reset

Closes IDFGH-17497

See merge request espressif/esp-idf!47448
2026-04-13 15:12:17 +08:00
Konstantin Kondrashov
eadf62a028 Merge branch 'feature/adds_efuse_for_h2' into 'master'
feat(efuse): Adds efuse for ESP32-H2 revision 1.2

Closes IDF-15178

See merge request espressif/esp-idf!45308
2026-04-13 09:59:09 +03:00
Aditya Patwardhan
fd551a3618 Merge branch 'fix/esp_tls_check_tls_conn_before_read_write' into 'master'
Fix/esp tls check tls conn before read write

Closes IDF-15501

See merge request espressif/esp-idf!47068
2026-04-13 12:03:45 +05:30
Aditya Patwardhan
123f040498 Merge branch 'fix_https_request_ci_failure' into 'master'
fix(https_request): write host time to NVS to eliminate SNTP dependency in CI

Closes IDFCI-3371, IDFCI-3294, IDFCI-3480, IDFCI-5982, IDFCI-6184, and IDFCI-3651

See merge request espressif/esp-idf!47201
2026-04-13 12:01:21 +05:30
Omar Chebib
338f341110 Merge branch 'fix/implement_zcmt_workaround' into 'master'
fix(riscv): implement a workaround for Zcmp hardware bug

See merge request espressif/esp-idf!44099
2026-04-13 10:39:24 +08:00
Konstantin Kondrashov
809b8cd720 feat(efuse): Adds efuse for ESP32-H2 revision 1.2 2026-04-13 10:39:13 +08:00
Marius Vikhammer
75f19ab4fd Merge branch 'fix/spi-common-include-spi-periph' into 'master'
fix(spi): include soc/spi_periph.h in spi_common.h for backward compatibility

See merge request espressif/esp-idf!47487
2026-04-13 09:46:48 +08:00
Michael.B
c7e0f02f3b fix(spi): restore soc/spi_periph.h in hal/spi_hal.h for backward compatibility
Commit 64704886b7 (refactor(driver_spi): remove some SPI_LL_xxx SOC_xxx macros)
removed #include "soc/spi_periph.h" from hal/spi_hal.h. Out-of-tree code that
included hal/spi_hal.h and used spi_periph_signal then failed with the symbol
undeclared, because that header had been the transitive source of the declaration.

Partially reverts it.
2026-04-13 00:29:55 +08:00
Kapil Gupta
0dbe3b6701 Merge branch 'feat/dpp_crypto_optimization' into 'master'
fix(esp_wifi): Optimize crypto operations for DPP

See merge request espressif/esp-idf!46862
2026-04-12 09:00:25 +05:30
Kapil Gupta
85c164c2b7 fix(esp_wifi): Optimize crypto operations for DPP 2026-04-12 09:00:25 +05:30
Erhan Kurubas
85a717f0a3 Merge branch 'esp32s31-assist-debug' into 'master'
feat(esp32s31): add assist_debug stack monitoring support

See merge request espressif/esp-idf!47282
2026-04-10 19:58:21 +02:00
Alexey Lapshin
d480048406 Merge branch 'feature/update-gdb-to-17.1_20260402' into 'master'
feat(tools): update gdb version to 17.1_20260402

See merge request espressif/esp-idf!47384
2026-04-10 17:20:12 +04:00
Sudeep Mohanty
e364a60769 test(cmakev2): add pytest scripts for cmakev2 build system examples
Add pytest test coverage for cmakev2 build system examples that had
none.

CMakeLists.txt fixes required to enable testing:

conditional_component and plugins: added idf_build_generate_flasher_args()
since these use the low-level build API (idf_build_executable /
idf_flash_binary) which unlike idf_project_default() does not call it
automatically. Without it, flasher_args.json was missing from the build
output and pytest-embedded could not initialize the DUT.

multi_binary: both app1 and app2 were registered in the global flash
target via idf_flash_binary(...FLASH), creating a duplicate key at offset
0x10000 in the flasher_args.json generator expression and preventing the
file from being generated. Fixed by removing FLASH from app2's call so
only app1 is registered in the global flash target. idf_build_generate_flasher_args()
now produces a valid flasher_args.json with app1 as the default app binary.
The test patches the binary path to app2.bin when testing the second app.
2026-04-10 13:49:56 +02:00
Guilherme Ferreira
4c214889d0 Merge branch 'fix/eth-test-dns-fallback' into 'master'
ci(esp_eth): add public DNS fallback for ethernet download test

Closes IDF-15535

See merge request espressif/esp-idf!47386
2026-04-10 19:49:38 +08:00
Song Ruo Jing
321896bde6 Merge branch 'feature/esp32s31_dma2d_support' into 'master'
feat(dma2d): add support for esp32s31

Closes IDF-14762

See merge request espressif/esp-idf!47168
2026-04-10 19:14:33 +08:00
Wan Lei
37e7f60dcf Merge branch 'feat/s31_gpspi_support' into 'master'
feat(driver_gpspi): s31 gpspi support

Closes IDF-14734, IDF-14735, IDF-14737, IDF-14738, IDF-14739, IDF-14740, and IDF-14708

See merge request espressif/esp-idf!45784
2026-04-10 17:04:32 +08:00
Guillaume Souchere
668dfb7e33 Merge branch 'fix/mbedtls-esp-mem-link-order' into 'master'
fix(mbedtls): undefined esp_mbedtls_mem_calloc/free when mbedtls has a single depender

See merge request espressif/esp-idf!47236
2026-04-10 10:01:48 +02:00
Song Ruo Jing
366b1e6015 Merge branch 'contrib/github_pr_18440' into 'master'
Fixed typo of word switch (was spelled swtich) in pmu_struct.h (GitHub PR)

Closes IDFGH-17500

See merge request espressif/esp-idf!47407
2026-04-10 15:57:34 +08:00
Song Ruo Jing
a98ec38a3a Merge branch 'bugfix/lp_uart_rx_iomux_pin_not_work' into 'master'
fix(uart): lp uart rx iomux pin was not working as expected

See merge request espressif/esp-idf!47352
2026-04-10 15:53:15 +08:00
Ondrej Kosta
f086ad4761 Merge branch 'feat/ptpd_2upstream' into 'master'
Feat/ptpd 2upstream

See merge request espressif/esp-idf!47246
2026-04-10 15:11:39 +08:00
Marius Vikhammer
c1e5a95755 Merge branch 'ci/panic_tests_p4_s31' into 'master'
test(system): enable panic tests for P4 and S31

Closes IDF-14348

See merge request espressif/esp-idf!47442
2026-04-10 15:03:39 +08:00
Omar Chebib
c27c33a832 fix(riscv): implement a workaround for Zcmp hardware bug 2026-04-10 15:03:09 +08:00
Alexey Lapshin
add311ee4f Merge branch 'fix/linux_startup' into 'master'
fix(system): linux: avoid custom constructor initializers

See merge request espressif/esp-idf!47441
2026-04-10 10:40:27 +04:00
wanckl
99bf74f022 feat(driver_spi): s31 gpspi driver support 2026-04-10 14:22:17 +08:00
Chen Chen
60ecf2adc7 docs(i2c): update i2c_master_probe parameter comment
closes https://github.com/espressif/esp-idf/issues/18442
2026-04-10 14:12:43 +08:00
wanckl
64704886b7 refactor(driver_spi): remove some SPI_LL_xxx SOC_xxx macros 2026-04-10 13:59:20 +08:00
Song Ruo Jing
f68be5a8c3 Merge branch 'feature/esp32s31_ledc_support' into 'master'
feat(ledc): add support for ESP32S31

Closes IDF-14709 and IDF-14710

See merge request espressif/esp-idf!47267
2026-04-10 13:35:11 +08:00
Chen Chen
c513f95ebb fix(i2c): reset master before bus clear on chips without HW FSM reset
Reorder s_i2c_hw_fsm_reset() so i2c_ll_reset_register and interrupt
masking run before s_i2c_master_clear_bus(). Avoids ISR firing when
i2c_common_set_pins reconnects GPIOs to a stuck FSM (IDFGH-17497).

Closes https://github.com/espressif/esp-idf/issues/18438

Made-with: Cursor
2026-04-10 11:21:48 +08:00
Gao Xu
6a003df617 Merge branch 'fix/adc_clk_div_error' into 'master'
Fix ADC continuous sample frequency and clock divide error on H2/C5/C61

See merge request espressif/esp-idf!47367
2026-04-10 11:05:45 +08:00
Hou Hai Yan
484e56869c Merge branch 'feature/esp32p4_h264_regdma_retention' into 'master'
feat(esp32p4): add H264 REGDMA link and sleep retention module

See merge request espressif/esp-idf!47209
2026-04-10 10:30:43 +08:00
Jiang Jiang Jian
ef96568adb Merge branch 'fix/update_ot_mbedtls_version' into 'master'
ci(openthread): include mbedtls in openthread dependencies

See merge request espressif/esp-idf!47425
2026-04-10 10:17:45 +08:00
Marius Vikhammer
c216628442 test(system): enable panic tests for P4 and S31 2026-04-10 08:35:25 +08:00
Martin Vychodil
a8136c5a20 Merge branch 'fix/fatfsgen-sfn-ascii-numeric-tail' into 'master'
fix(fatfs): fix SFN generation from LFN (numeric tail ASCII encoding, switching to CRC hex numbers to mirror FATFS logic, etc.)

Closes IDF-15479

See merge request espressif/esp-idf!46828
2026-04-09 23:43:58 +08:00
Alexey Lapshin
3da3ca961a fix(system): linux: avoid process initialization, all should be done by __libc_start_main 2026-04-09 21:57:25 +07:00
Song Ruo Jing
f9b0736c93 feat(ledc): add support for ESP32S31 2026-04-09 22:34:05 +08:00
Song Ruo Jing
e79d9f2567 fix(ledc): fix undesired module reset when acquiring new speed mode on ESP32
Introduced in 885e32d4f0
2026-04-09 22:33:39 +08:00
Guilherme Ferreira
ad06708ab3 ci(esp_eth): Add public DNS fallback for ethernet download test
- Set 8.8.8.8 as primary DNS when DHCP provides no DNS server
- Set 8.8.4.4 as backup DNS in both cases
- Avoids intermittent failures in ethernet download test on CI runners
  where the DHCP server does not supply a valid DNS address
2026-04-09 10:43:16 -03:00
Song Ruo Jing
ce1d910965 refactor(dma2d): move csc param table to dma2d_periph.c 2026-04-09 21:23:42 +08:00
Erhan Kurubas
f6ae009f40 feat(esp32s31): add assist_debug stack monitoring support 2026-04-09 21:20:51 +08:00
Song Ruo Jing
b40257aed2 refactor(dma2d): use ESP_INTR_FLAG_SHARED_PRIVATE flag for DMA2D interrupt 2026-04-09 20:31:41 +08:00
Song Ruo Jing
db8b921a13 feat(dma2d): add support for esp32s31 2026-04-09 20:30:26 +08:00
Tan Yan Quan
1241f06425 ci(openthread): include mbedtls in openthread dependencies 2026-04-09 19:34:14 +08:00
Adam Múdry
d8c30644c7 fix(fatfs): fix formatting in relevant python files to satisfy pre-commit check 2026-04-09 12:56:30 +02:00
Adam Múdry
1d0d45f203 fix(fatfs): fix a bug in SFN generation from LFN and rewrite to match C algorithm
Rewrite build_lfn_short_entry_name() and add _gen_numname_suffix() helper
to match the gen_numname() algorithm in ff.c. This fixes:

- chr(order) producing raw binary instead of ASCII digits
- Collision for order >= 10 when str(order) makes the name exceed 8 chars
- Hex suffix with dynamic stem shortening (matching C implementation)
- CRC16-CCITT hash for seq > 5 to reduce collision probability

Also fix LDIR_Name2_SIZE typo in long_filename_utils.py (should be
LDIR_Name3_SIZE), which made the assertion guard too permissive.

Add ShortFilenameGenerationTestCase with 9 unit tests covering single-digit,
multi-digit, hash-based, and collision-free generation scenarios.
2026-04-09 12:53:43 +02:00
Armando (Dou Yiwen)
17f8e9c6d5 Merge branch 'fix/fix_xip_example_s31' into 'master'
psram: fix xip example s31

Closes IDF-15526

See merge request espressif/esp-idf!47409
2026-04-09 09:49:40 +00:00
Jaroslav Burian
4f0407e7c7 Merge branch 'fix/mmu-page-size-always-pass' into 'master'
change(esptool_py): always pass --flash-mmu-page-size to elf2image

Closes IDF-12220

See merge request espressif/esp-idf!47002
2026-04-09 17:31:43 +08:00
Song Ruo Jing
9c2a8281c1 fix(uart): lp uart rx iomux pin was not working as expected
Introduced in 8818157e42
The workaround in the commit routes the signal to LP GPIO matrix first.
When uses LP IOMUX pin as UART RX, the signal did not bypass the matrix,
which caused the issue.

This commit adds rtc_gpio_iomux_input and rtc_gpio_iomux_output APIs
to align with existing GPIO driver APIs.
2026-04-09 17:07:01 +08:00