Commit Graph
37323 Commits
Author SHA1 Message Date
Frantisek Hrbata 86c4c63780 fix: harden build against empty toolchain output
On some Windows systems, antivirus, endpoint-security or DLP/encryption
software intercepts short-lived toolchain processes and strips their
stdout when the build captures it through a pipe, while the same command
prints its output normally when run by hand. The tool exits successfully
but returns nothing, and each build step that reads toolchain output then
failed with a different, cryptic error far from the real cause:

- CMake configuration aborted with "Unknown arguments specified" in
  components/xtensa/project_include.cmake, or "check_expected_tool_version
  invoked with incorrect arguments" in components/esp_common.
- ldgen turned the empty objdump output into an opaque pyparsing
  "Expected 'In archive'" traceback.
- idf_tools.py silently reported the compiler/debugger version as
  "unknown", sending users into a fruitless reinstall loop.

Detect the empty result at each consumer and fail (or warn) with an
actionable message that names the likely cause and the remedy:

- tools/cmake/compiler_query.cmake: new __compiler_query() helper runs a
  compiler query and fails with a clear error on empty or failed output.
  It is a standalone module included by both the cmakev1 and cmakev2
  utilities, since the esp_common and xtensa project_include.cmake that
  call it are shared by both build systems. The xtensa if() arguments are
  now quoted so an empty result no longer collapses into a parse error.
- tools/ldgen/ldgen.py: _run_objdump() rejects empty objdump output, and
  non-empty-but-unparsable section info is caught and re-raised as a clear
  LdGenFailure instead of a raw pyparsing traceback.
- tools/idf_tools.py: empty version output now warns with the cause and
  returns UNKNOWN_VERSION instead of silently reporting "unknown".

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

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-08-10 09:05:01 +02:00
Jiang Jiang Jian 6a9c44fe7e Merge branch 'fix/ble_log_compression_add_local_header_file_v6.1' into 'release/v6.1'
feat(ble_log): mirror local compression headers (6.1)

See merge request espressif/esp-idf!50953
2026-08-03 10:48:09 +08:00
Jiang Jiang Jian 7105b85101 Merge branch 'fix/backport_wifi_issues_v6.1' into 'release/v6.1'
Backport a few wifi fixes (Backport v6.1)

See merge request espressif/esp-idf!51224
2026-08-01 07:28:52 +08:00
Jiang Jiang Jian 2da2c60798 Merge branch 'bugfix/ftm_calibration_v6.1' into 'release/v6.1'
fix(ftm): Update FTM calibraton values for esp32c5, esp32c3, esp32c6, esp32c61

See merge request espressif/esp-idf!51407
2026-08-01 00:16:47 +08:00
Akshat Agrawal 85a59c8405 fix(nan): Fix bug bounty reported and discovered vulnerabilities in NAN Rx 2026-07-31 19:42:27 +08:00
zhangyanjiao 0290f8fc2d fix(wifi): fixed the assignment error in esptouch v2 2026-07-31 19:42:27 +08:00
zhangyanjiao 9e1e33a151 fix(wifi): fixed the buffer overflow issues
1. Added validation for password and reserved data length in ESPTouch v2
2. Added bound check for data index in ESPTouch v1 HT40
3. prevent buffer overflow when parsing MBSSID beacon
2026-07-31 19:42:27 +08:00
Jiang Jiang Jian d52ecaa3ea Merge branch 'bugfix/low_spp_throughput_v6.1' into 'release/v6.1'
change(bt/bluedroid): increased port low watermark of RFCOMM (v6.1)

See merge request espressif/esp-idf!51083
2026-07-31 19:35:19 +08:00
Jiang Jiang Jian 6e61fd94a0 Merge branch 'fix/bind_lp_periph_pd_with_tsens_power_v6.1' into 'release/v6.1'
fix(esp_driver_tsens): bind lp_periph domain sleep pd with tsens power (v6.1)

See merge request espressif/esp-idf!51177
2026-07-31 19:34:23 +08:00
Jiang Jiang Jian 7661fce5f2 Merge branch 'fix/set_errno_if_usj_not_connect_in_vfs_v6.1' into 'release/v6.1'
fix(esp_driver_usb): set errno if usj not connect in vfs read/write (v6.1)

See merge request espressif/esp-idf!51198
2026-07-31 19:33:56 +08:00
Jiang Jiang Jian 14784e6054 Merge branch 'fix/fix_esp32s31_secureboot_fastwake_v6.1' into 'release/v6.1'
fix(esp_system): support rom secure boot fast wake feature for esp32s31 (v6.1)

See merge request espressif/esp-idf!51266
2026-07-31 18:00:06 +08:00
Akshat Agrawal bacf5e11d2 fix(ftm): Update FTM calibraton values for esp32c5, esp32c3, esp32c6, esp32c61 2026-07-31 15:26:09 +05:30
Wang Mengyang 481b244fe8 fix(bt): Fixed blocking during LMP packet type negotiation on ESP32-S31
In the Bluetooth connections with some smartphones, communication can possibly be blocked
during packet type negotation, when ESP32-S31 attempts to finalize the ACL-U transmission
and waits for the last Tx ACL-U packet to be transmitted, but peer device rejects the
packet with FLOW=STOP in its packet, thus causing a deadlock.

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

This MR also provide with some optimizations and fixes
2026-07-31 14:06:02 +08:00
Jiang Jiang Jian 41e3a0ef34 Merge branch 'feat/update_phylib_on_s31_c6_for_track_v6.1' into 'release/v6.1'
feat(phy): update phy lib for esp32s31 & esp32c6 for track (v6.1)

See merge request espressif/esp-idf!50790
2026-07-31 11:59:15 +08:00
Jiang Jiang Jian d7e4df3493 Merge branch 'fix/regdma_work_timeout_v6.1' into 'release/v6.1'
Workaround: add a write node to avoid the APB access timeout during REGDMA operations backport  v6.1

See merge request espressif/esp-idf!51383
2026-07-31 11:33:23 +08:00
Jiang Jiang Jian fdf5ee1e93 Merge branch 'feat/optimize_for_esp32h4_light_sleep_ble_current_v6.1_new_chip_only' into 'release/v6.1'
Feat/optimize for esp32h4 light sleep ble current v6.1 new chip only

See merge request espressif/esp-idf!51302
2026-07-31 11:32:41 +08:00
harshal.patil db7147f15a refactor(esp_system): deduplicate ROM fast wake RTC digest reservation
The digest length and the condition that reserves it at the end of RTC RAM were
duplicated in seven places. Hold the reservation in a hidden Kconfig value that
is zero when the feature does not apply, so every consumer subtracts it
unconditionally, and derive ESP_SECURE_BOOT_DIGEST_LEN from it.
2026-07-31 10:52:52 +08:00
morris 9263a089c2 Merge branch 'ci/fix_the_parlio_rx_spi_test_case_v6.1' into 'release/v6.1'
ci(parlio_rx): fixed the parlio rx spi test case (v6.1)

See merge request espressif/esp-idf!51116
2026-07-31 10:17:42 +08:00
morris d5ea68d6e3 Merge branch 'change/remove_lcd_restart_for_p4_s31_v6.1' into 'release/v6.1'
remove(lcd): remove restart support for p4 and s31 (v6.1)

See merge request espressif/esp-idf!51351
2026-07-31 10:12:49 +08:00
morris be34aba0cb Merge branch 'feature/add_mcpwm_rc_fast_clk_source_v6.1' into 'release/v6.1'
feat(mcpwm): support RC_FAST group clock source (backport v6.1)

See merge request espressif/esp-idf!51322
2026-07-31 10:05:25 +08:00
muhaidong f5cc6235fd fix(phy): removed all librfate logic from cmake 2026-07-30 20:12:22 +08:00
zhuanghang 02c1878f58 feat(phy): update phy lib for esp32s31 & esp32c6 for track 2026-07-30 20:12:22 +08:00
sibeibei 0627c301f4 fix(esp_hw_support): use symbolic reg and document modem syscon workaround 2026-07-30 19:46:30 +08:00
sibeibei c15ce5ae4a fix(esp_hw_support): use N_REGS_SYSCON() for modem syscon retention count 2026-07-30 19:46:30 +08:00
sibeibei 7144df0c3c feat(wifi): sel pll clk when sleep to modem 2026-07-30 19:46:30 +08:00
sibeibei c86e76dffe Revert "feat(wifi): enable pll clk in modem state"
This reverts commit e238c5bdc6.
2026-07-30 19:46:30 +08:00
Jiang Jiang Jian 24718710ad Merge branch 'ci/enable_s31_ulp_multi_dev_v6.1' into 'release/v6.1'
ci(ulp): re-enable multi dev tests for S31 ULP (v6.1)

See merge request espressif/esp-idf!51143
2026-07-30 17:56:34 +08:00
Steven Yang b597024afc feat(mcpwm): support RC_FAST group clock source
Expose RC_FAST as a shared MCPWM group clock source for timers,
capture timers, and carriers on ESP32-C5, ESP32-C6, ESP32-H2,
and ESP32-P4. Fix the ESP32-S31 MCPWM clock selector mapping.

Add a hardware runtime test that verifies MCPWM Timer counting
resolution for every supported clock source.

(cherry picked from commit 8a982614a2)
2026-07-30 16:38:14 +08:00
Chen Jichang 6a13d7cbe4 test(dma): add psram ecc test for supported targets 2026-07-30 16:38:00 +08:00
Chen Jichang b97f4c9092 remove(lcd): remove restart support for p4 and s31 2026-07-30 16:38:00 +08:00
morris b6a182a0d9 Merge branch 'fix/uhci_rx_size_check_v6.1' into 'release/v6.1'
fix(uhci): rx fsm race condition and buffer size check (v6.1)

See merge request espressif/esp-idf!51228
2026-07-30 11:43:13 +08:00
Chen Jichang 2dd14289c3 ci(parlio_rx): fixed the parlio rx spi test case 2026-07-30 11:35:35 +08:00
morris 6c0c836148 Merge branch 'feat/i2s_tx_sync_esp31s31_v6.1' into 'release/v6.1'
feat(i2s): support TX FIFO sync (v6.1)

See merge request espressif/esp-idf!50338
2026-07-30 10:20:49 +08:00
morris f760f4fd21 Merge branch 'bugfix/dma2d_dequeue_mechanism_v6.1' into 'release/v6.1'
fix(dma2d): add a dequeue mechanism for dma2d driver (v6.1)

See merge request espressif/esp-idf!50512
2026-07-30 10:19:09 +08:00
morris d73a6ca57c Merge branch 'fix/mcpwm_clk_init_fail_v6.1' into 'release/v6.1'
fix(mcpwm): fix mcpwm clock init failure (v6.1)

See merge request espressif/esp-idf!51222
2026-07-30 10:13:47 +08:00
cjin bfb9a07dbb feat(ble): supported placing bt function in iram on esp32-h4 and esp32-s31 2026-07-30 08:17:26 +08:00
cjin 01f29a9356 feat(modem_clock): separete btmac module to btmac and bt peripheral 2026-07-30 08:17:26 +08:00
cjin b17d81882c feat(modem_clock): separate bt sec apb clock and add to bt apb module 2026-07-30 08:17:26 +08:00
cjin 466097d370 feat(modem_clock): added bt_apb module and separete bt_apb from bt_mac module 2026-07-30 08:17:20 +08:00
Hu Rui c3a62f97b3 fix(uhci): rx fsm race condition and buffer size check
Closes https://github.com/espressif/esp-idf/issues/18819
Closes https://github.com/espressif/esp-idf/issues/18820
2026-07-29 19:31:30 +08:00
morris a74daf64c8 Merge branch 'feat/i2s_duplex_update_v6.1' into 'release/v6.1'
feat(i2s): allow full duplex mode in less strict condition (v6.1)

See merge request espressif/esp-idf!50865
2026-07-29 19:12:34 +08:00
morris c57c5d0f3e Merge branch 'fix/legacy_twai_rx_non_iso_dlc_oob_v6.1' into 'release/v6.1'
fix(driver_twai): fixed legacy twai OOB issue when rx dlc larger than 8 (v6.1)

See merge request espressif/esp-idf!50749
2026-07-29 19:08:02 +08:00
morris 330a93fc47 Merge branch 'feat/uhci_send_multi_buffer_v6.1' into 'release/v6.1'
feat(uhci): support transmit multi buffer (v6.1)

See merge request espressif/esp-idf!50776
2026-07-29 19:04:49 +08:00
morris 5a48938355 Merge branch 'fix/fix_i2s_i80_color_size_check_v6.1' into 'release/v6.1'
fix(lcd): add color size check for i80 and boundary check for rgb (v6.1)

See merge request espressif/esp-idf!50961
2026-07-29 19:02:09 +08:00
morris 0d4aa7c27b Merge branch 'backport/spi_flash_fixes_v6.1' into 'release/v6.1'
fix(spi_flash): backport aes-xts error-path & mxic fixes (v6.1)

See merge request espressif/esp-idf!51134
2026-07-29 19:00:02 +08:00
morris 135f8052f3 Merge branch 'bugfix/ppa_buffer_oob_v6.1' into 'release/v6.1'
fix(ppa): add checks for input to avoid any OOB access (v6.1)

See merge request espressif/esp-idf!51132
2026-07-29 18:58:57 +08:00
morris f955f05a43 Merge branch 'bugfix/uart_sw_flow_ctrl_xoff_char_v6.1' into 'release/v6.1'
fix(uart): fix uart sw flow ctrl XOFF char write to wrong reg on ESP32C6 (v6.1)

See merge request espressif/esp-idf!50523
2026-07-29 18:57:00 +08:00
morris 967f047b62 Merge branch 'test/peripheral_drivers_on_real_encryption_runner_v6.1' into 'release/v6.1'
test(drivers): run flash encryption apps on real hardware (v6.1)

See merge request espressif/esp-idf!50675
2026-07-29 18:52:19 +08:00
morris 8f2ac25de4 Merge branch 'bugfix/ana_cmpr_macro_v6.1' into 'release/v6.1'
fix(ana_cmpr): Fix swapped POS/NEG cross interrupt masks on ESP32-C5/P4 (v6.1)

See merge request espressif/esp-idf!50798
2026-07-29 18:51:15 +08:00
wuzhenghui 708f34bd16 fix(esp_system): support rom secure boot fast wake feature for esp32s31 2026-07-28 21:46:24 +08:00