Commit Graph

38052 Commits

Author SHA1 Message Date
morris
83c8ce73cf fix(bitscrambler): reject malformed program headers
Validate BitScrambler program headers against the supported format and
hardware limits before using header-derived instruction and LUT sizes.
Also add regression coverage for malformed headers and document that the
program blob must come from a trusted assembler output.
2026-07-28 16:26:49 +08:00
morris
c3a707d996 fix(bitscrambler): validate and safely load LUT data
Reject LUT loads that exceed the hardware address space and assemble
each 32-bit LUT word via memcpy so unaligned and partial inputs do not
read past the caller buffer. Add regression tests for oversized and
partial unaligned LUT loads.
2026-07-28 16:26:49 +08:00
morris
137fa05c7c fix(bitscrambler): clean up loopback create failures
Clear the returned handle on loopback creation failure and route
initialized objects through bitscrambler_free so channel ownership and
extra cleanup state cannot leak after partial setup errors. Add a
regression test for the failed create path.
2026-07-28 16:26:49 +08:00
Erhan Kurubas
59ae1cf37f Merge branch 'move_trace_examples' into 'master'
refactor(examples): group trace examples under examples/system/tracing/

See merge request espressif/esp-idf!51160
2026-07-28 09:31:08 +02:00
Jin Cheng
c274987a7a fix(bt/bluedroid): fixed incorrect eSCO packet type validation under secure connection mode in BlueDroid 2026-07-28 15:21:29 +08:00
Guillaume Souchere
9cea97187f fix(esp_libc): provide timespec_get missing from toolchain
Both newlib and picolibc headers in toolchain 16.1 declare timespec_get()
but the archives do not define it. Provide the missing C11 implementation
through esp_libc, mapping TIME_UTC to clock_gettime(CLOCK_REALTIME).

Closes https://github.com/espressif/esp-idf/issues/18889
2026-07-28 08:23:33 +02:00
Erhan Kurubas
e21ab7e724 feat(system): add OCD stub bin support for more targets
Add SOC_DEBUG_HAVE_OCD_STUB_BINS for esp32c5, esp32c61, esp32h4,
esp32h21, esp32p4, and esp32s31. Update TEE linker scripts with
correct esp_tee_app_config offsets for the 0x3000 stub reservation
2026-07-28 08:34:02 +03:00
Erhan Kurubas
6e5b4febf8 change(system): increase OCD stub memory reservation from 8K to 12K 2026-07-28 07:45:39 +03:00
yinqingzhao
d75eb65787 fix(wifi): fix addba request dialog token zero and add ds parameter IE on 5g band 2026-07-28 10:22:12 +08:00
Erhan Kurubas
19a27980a5 refactor(examples): group trace examples under examples/system/tracing/
Move 7 trace-related examples (app_trace_basic, app_trace_to_plot,
esp_trace_custom_library, function_tracing, gcov, sysview_tracing,
sysview_tracing_heap_log) from examples/system/ into a dedicated
examples/system/tracing/ subdirectory for better organization.

Update all path references across documentation (en + zh_CN),
build-test-rules, CI configs, Kconfig, and component READMEs.
2026-07-27 23:56:02 +03:00
Zhou Xiao
aa48bd8f47 fix(esp_timer): prevent restart expiry race 2026-07-27 15:33:44 +03:00
Xu Si Yu
095b9a255a fix(esp_phy): use early log macros in ISR context to avoid log lock deadlock 2026-07-27 19:24:54 +08:00
morris
74d9e99d91 refactor(lcdcam): move shared core clock setup to drivers
Configure the shared LCDCAM core clock through guarded LCD and CAM LL APIs,
and unify LCD functional clock LL calls around group IDs across supported targets.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 18:40:04 +08:00
Hu Rui
8550997ada Merge branch 'fix/uhci_rx_size_check' into 'master'
fix(uhci): rx fsm race condition and buffer size check

Closes IDFGH-17951 and IDFGH-17952

See merge request espressif/esp-idf!50775
2026-07-27 18:27:42 +08:00
Chen Chen
7bb9a7f937 Merge branch 'fix/mcpwm_clk_init_fail' into 'master'
fix(mcpwm): fix mcpwm clock init failure

Closes IDFGH-17736 and IDFGH-17883

See merge request espressif/esp-idf!49916
2026-07-27 18:02:21 +08:00
Rahul Tank
e08609e451 fix(nimble): Migrate to NimBLE 1.9.0 2026-07-27 14:14:35 +05:30
Island
eaa88e26dc Merge branch 'idf/ble_audio_log_compress_misc' into 'master'
feat(ble_audio): Add specific libs for BLE Audio log compression

See merge request espressif/esp-idf!51107
2026-07-27 16:19:44 +08:00
wanckl
6e0d480b2a fix(driver_twai): fix potential crash when node_delete from low priority task
Closes https://github.com/espressif/esp-idf/issues/18803
2026-07-27 16:03:43 +08:00
sonika.rathi
447a364cb2 fix(nvs_flash): erase handle before delete on deinit 2026-07-27 09:26:49 +02:00
Island
f930f9fe10 Merge branch 'fix/ble_log_compression_issue_on_windows' into 'master'
fix(bt): fix BLE log compression build on Windows

See merge request espressif/esp-idf!51156
2026-07-27 14:10:27 +08:00
Island
abae27441b Merge branch 'feat/update_mesh_lib_to_supported_get_lib_ver' into 'master'
Feat/update mesh lib to supported get lib ver

See merge request espressif/esp-idf!51155
2026-07-27 14:10:23 +08:00
Island
b5b836be66 Merge branch 'feat/add_bt_common_npl' into 'master'
feat(bt): Add host-agnostic BT OSAL and shared BLE profile task

See merge request espressif/esp-idf!50797
2026-07-27 14:03:28 +08:00
Hu Rui
e7eaad0eb8 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-27 11:48:52 +08:00
Liu Linyan
822d65f9be feat(ble_audio): Add specific libs for BLE Audio log compression 2026-07-27 11:26:25 +08:00
morris
281d61f131 Merge branch 'refactor/ll_functions_update' into 'master'
refactor(uhci): rename set_eof_mode to enable_eof_modes with bool en param

See merge request espressif/esp-idf!51144
2026-07-27 11:02:28 +08:00
Jiang Jiang Jian
845820658c Merge branch 'fix/bind_lp_periph_pd_with_tsens_power' into 'master'
fix(esp_driver_tsens): bind lp_periph domain sleep pd with tsens power

See merge request espressif/esp-idf!51074
2026-07-27 10:33:28 +08:00
Island
2961219b35 Merge branch 'idf/ble_audio_psram' into 'master'
feat(ble_audio): BLE Audio PSRAM support

See merge request espressif/esp-idf!51098
2026-07-27 10:31:09 +08:00
Mahavir Jain
0996ffbb4e Merge branch 'fix/fix_esp32s31_xip_bss_psram_build_failure' into 'master'
fix(esp_system): fix backwards location-counter move in `.ext_ram.dummy` on same-region targets

Closes IDFGH-17897

See merge request espressif/esp-idf!50366
2026-07-26 17:24:08 +05:30
Mahavir Jain
abc7489350 Merge branch 'fix/esp32s31_fpga_boot_fixes' into 'master'
fix(regi2c): skip regi2c operations when running on FPGA

See merge request espressif/esp-idf!47154
2026-07-26 17:06:46 +05:30
chenjianhua
0407893834 feat(bt): Add host-agnostic BT OSAL and shared BLE profile task
- Add bt_osal: event queues, mutexes, semaphores, callouts, etc.
- Add the shared BLE profile task and event queue
- Bring both up and tear them down in the host init/deinit paths
- Add unit tests for the OSAL and the profile task
2026-07-26 13:24:53 +08:00
Shreeyash Bhakare
c368c13d55 fix(nimble): Added security related fixes 2026-07-25 08:54:16 +05:30
Rahul Tank
9de07f16c4 Merge branch 'bugfix/l2cap_throughput_degrading' into 'master'
Preserve throughput when switching from LE Coded to 1M/2M PHY

Closes BLERP-2966 and BLERP-2967

See merge request espressif/esp-idf!50676
2026-07-25 08:34:19 +05:30
Liu Linyan
8fb0fc6065 feat(ble_audio): BLE Audio PSRAM support 2026-07-25 09:01:08 +08:00
Nachiket Kukade
875cad1c6a Merge branch 'bugfix/nan_vulnerabilities' into 'master'
fix(nan): Fix bug bounty reported and discovered vulnerabilities in NAN Rx

See merge request espressif/esp-idf!50585
2026-07-25 02:30:51 +08:00
luoxu
cd30e70214 feat(ble_mesh): update lib to 79e3fee04e 2026-07-24 20:53:01 +08:00
Wu Zheng Hui
61b2022e72 Merge branch 'fix/fix_deepsleep_deadlock_if_threadsafe_claim_is_not_enabled' into 'master'
fix(esp_hw_support): fix deepsleep deadlock if threadsafe claim is not enabled

Closes PM-820

See merge request espressif/esp-idf!51016
2026-07-24 20:18:14 +08:00
Wu Zheng Hui
aac7f7ea47 Merge branch 'feat/support_esp32s31_clock_tree_management' into 'master'
feat: support esp32s31 clock tree management

Closes PM-630

See merge request espressif/esp-idf!48934
2026-07-24 20:11:45 +08:00
Chen Ji Chang
652aa320c1 Merge branch 'feat/support_link_switch_for_parlio_tx' into 'master'
feat(parlio_tx): apply the gdma link switch event to parlio_tx

Closes IDF-15783

See merge request espressif/esp-idf!49705
2026-07-24 19:48:16 +08:00
Aditya Patwardhan
ac220f7497 fix(regi2c): skip regi2c operations when running on FPGA
regi2c (the analog i2c master) is not implemented on FPGA: the
REGI2C_RTC_BUSY poll in the regi2c helpers never completes, so the
2nd-stage bootloader hangs until the WDT resets the chip (observed on
the ESP32-S31 FPGA, bitstream v5.0.0-most-ip).

Stub out the regi2c_impl_* macros in hal/regi2c_impl.h when
HAL_CONFIG(ENV_FPGA) is set, so every regi2c call site is skipped on
FPGA for all current and future targets.
2026-07-24 16:52:05 +05:30
sonika.rathi
ff13da5e6c fix(nvs_flash): delete leftover handles on partition deinit 2026-07-24 13:21:30 +02:00
Astha Verma
b360477e77 fix(nimble): Restore throughput after switching from LE Coded PHY 2026-07-24 16:36:44 +05:30
Akshat Agrawal
c268031acd fix(nan): Fix bug bounty reported and discovered vulnerabilities in NAN Rx 2026-07-24 15:11:58 +05:30
Andrey Starodubtsev
75e9adb403 fix(sdmmc): Minor changes in sdmmc
- don't do swapping if result is thrown away
- use correct return code if csd_ver is unknown
- use correct release function

    When `heap_caps_malloc`/`heap_caps_calloc` are used for allocation,
    `heap_caps_free` should be used to release allocated block.
2026-07-24 12:25:57 +03:00
luoxu
56f78da32c feat(ble_mesh): supported get lib version 2026-07-24 17:10:22 +08:00
Wang Meng Yang
0185451ed1 Merge branch 'fix/bluedroid_aireview' into 'master'
Fix/bluedroid aireview

See merge request espressif/esp-idf!49972
2026-07-24 16:58:20 +08:00
Rahul Tank
d78d57c394 Merge branch 'bugfix/red_rem_feat_evt' into 'master'
Handle Read Remote Supported Feature failure

See merge request espressif/esp-idf!50243
2026-07-24 14:24:18 +05:30
sibeibei
9b6d459133 feat(wifi): sel pll clk when sleep to modem 2026-07-24 16:36:32 +08:00
morris
2a9d1ee20e refactor(uhci): rename set_eof_mode to enable_eof_modes with bool en param
Rename uhci_ll_rx_set_eof_mode → uhci_ll_rx_enable_eof_modes and its
parameter eof_mode → eof_modes to reflect that multiple EOF modes can
be enabled simultaneously via bitmask. Add bool en parameter so callers
can enable or disable without an outer if-check.
2026-07-24 16:21:09 +08:00
morris
f7c46393b2 refactor(lcd): rename delay_ticks to delay_mode to match register semantics
The LCD delay registers configure a delay mode (0=no delay, 1=delay on
rising edge, 2=delay on falling edge), not a tick count. Rename the LL
layer functions and parameters to reflect this, and add
lcd_ll_set_data_delay_mode for esp32s31 and esp32p4.
2026-07-24 16:21:09 +08:00
sibeibei
87b7e100dd Revert "feat(wifi): enable pll clk in modem state"
This reverts commit e238c5bdc6.
2026-07-24 16:16:29 +08:00