Commit Graph

51088 Commits

Author SHA1 Message Date
Laukik Hase
00cff977c6 fix(esp_tee): Avoid crypto peripherals reset with esp_restart() from REE
- Reset the crypto peripherals during TEE initialization
2026-06-26 15:07:23 +05:30
Laukik Hase
e1bbb70278 fix(esp_tee): Prevent TEE from dispatching the REE heap poisoning callback 2026-06-26 15:07:22 +05:30
C.S.M
2aaee66a9a fix(jpeg): Fix the jpeg size might exceed the buffer size 2026-06-26 11:02:58 +08:00
Jin Chen
c05182d0fc feat(ble): update ble power save sdkconfig on ESP32-c5
(cherry picked from commit 3fdabaedaa)

Co-authored-by: cjin <jinchen@espressif.com>
2026-06-26 10:09:05 +08:00
Jin Chen
b99b2ce04d feat(ble): update ble power save sdkconfig on ESP32-C61
(cherry picked from commit e603f41667)

Co-authored-by: cjin <jinchen@espressif.com>
2026-06-26 10:09:05 +08:00
Zhi Wei Jian
4536a24c4c feat(ble/bluedroid): add CS Security Requirements host support (Core 6.3)
(cherry picked from commit 919622c01c)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-26 09:08:31 +08:00
Zhi Wei Jian
9fb8579038 feat(ble/bluedroid): add LE UTP host support (Core 6.2)
(cherry picked from commit 3844e24207)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-26 09:08:31 +08:00
Zhi Wei Jian
ae3f98e78d feat(ble/bluedroid): add Shorter Connection Intervals host support (Core 6.2)
Co-authored-by: Cursor <cursoragent@cursor.com>


(cherry picked from commit 2a8a96d650)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-26 09:08:30 +08:00
Zhi Wei Jian
78257b3e96 feat(ble/bluedroid): add LL Extended Feature Set host support (Core 6.0)
(cherry picked from commit d568f2f151)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-26 09:08:29 +08:00
Zhi Wei Jian
e23d745b76 feat(ble/bluedroid): add Frame Space Update host support (Core 6.0)
Co-authored-by: Cursor <cursoragent@cursor.com>


(cherry picked from commit 5372ce03a3)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-26 09:08:29 +08:00
Zhi Wei Jian
0ad5f22cfa feat(ble/bluedroid): add DBAF host support (Core 6.0)
(cherry picked from commit e20d3f0197)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-26 09:08:28 +08:00
Jan Beran
f56cc44a05 fix: force colors in output of RunTool and ensure_build_directory 2026-06-25 09:18:20 +02:00
Zhang Shuxian
75f5ddfd44 docs: Update CN translation for idf-py.rst 2026-06-25 09:14:01 +02:00
Marek Fiala
57365fdfb4 docs(tools): update mcp-server docs for project_dir and create-project
- Server can now start from any directory, not just a valid project dir
- Document project_dir argument available on all tools
- Add create-project tool to the list of available tools

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 09:14:01 +02:00
Marek Fiala
56fb3657a2 feat(tools): Improved verification of ESP-IDF project
Closes https://github.com/espressif/esp-idf/issues/18675
2026-06-25 09:14:01 +02:00
Marek Fiala
14d3b3cbc0 feat(tools): mcp-server added create-project tool 2026-06-25 09:14:01 +02:00
Marek Fiala
a2adc0ab1e feat(tools): mcp-server accepts project_dir from chat
At the same time, it's possible to start idf.py mcp-server
outside ESP-IDF project directory.

Added ESP-IDF mcp server tests
2026-06-25 09:14:01 +02:00
yangfeng
e27d9efe13 fix(bt): Fix the high issues related to AVRCP from AI review report
- SDP/registration: handle SDP record creation and discovery failures safely
- AVRC stack: fix packet checks, fragment leaks, response build, and compile guards
- BTC AVRCP: fix return codes, connection state, metadata parsing, and memory leaks
- AVCTP: fix event passing, L2CAP conflicts, TX queue leaks, and disconnect handling
- Example: remove TG RN capability setup before initialization
2026-06-25 14:48:50 +08:00
yangfeng
021caefcd5 fix(bt): Fix the critical issues related to AVRCP from AI review report
- recalculate len_left per attribute in avrc_bld_app_setting_text_rsp
- abort fragmented message reassembly when reassembly buffer alloc fails
2026-06-25 14:47:38 +08:00
yangfeng
a3f1ba390e fix(bt): Fix the critical issues related to HFP from AI review report
HFP AG:
- Fix mSBC EV3 second-packet payload length calculation to prevent OOB read and infinite loop
- Add init/deinit guards in HF AG helper functions to avoid NULL deref
- Return bt_status_t from btc_hf_ag_audio_data_send to avoid silent buffer leak on SLC failure
- Break SCO CI data loop when SCO is not open to prevent CPU starvation
- Guard BTM_FreeSCN(0) and reset SCN after free in bta_ag_del_records
- Use OI_UINT32 for mSBC decode frame length to avoid stack corruption
- Bound AT Dial command string copy to BTA_AG_AT_MAX_LEN
HFP Client:
- Check osi_calloc result before use when reassembling split mSBC frames
- Use OI_UINT32 for mSBC decode frame length to avoid stack corruption
- Free SDP db, collision/AT timers and queued AT cmds before scb reset on disable
- Fix mSBC EV3 second-packet payload length calculation (same as AG)
- Reject pcm_resample input smaller than overlap window (96 bytes) on filtered path
- Break SCO CI data loop when SCO is not open to prevent CPU starvation
- Guard BTM_FreeSCN(0) and reset SCN after free in bta_hf_client_del_record
2026-06-25 12:08:06 +08:00
Ashish Sharma
64b488ebb3 fix(esp_http_server): take ctrl_sock_semaphore on shutdown and async wake
httpd_stop() and httpd_req_async_handler_complete() both pushed
messages onto the control mbox via cs_send_to_ctrl_sock() without
reserving a slot in ctrl_sock_semaphore. Once the silent-drop fix
made the semaphore unconditional, the bypass became a real bug:
when the mbox is saturated by pending httpd_queue_work() items the
unguarded sendto() can return ENOBUFS, and even when it succeeds it
leaves the semaphore overstating free slots until the consumer
drains the message — a window during which a concurrent
httpd_queue_work() can take a slot but still find the mbox full.

Acquire the semaphore (portMAX_DELAY) before both sends and give it
back on send failure so the take/give invariant is preserved. The
httpd task is the consumer in both paths, so blocking is bounded
and deadlock-free. Reword the stale "no-op give on full" comment in
httpd_process_ctrl_msg() to reflect that only the recv-error path
relies on the cap behavior now.
2026-06-25 10:41:17 +08:00
Ashish Sharma
8939340af8 fix(esp_http_server): prevent silent message drop in httpd_queue_work
Closes https://github.com/espressif/esp-idf/issues/18563
2026-06-25 10:41:17 +08:00
Ashish Sharma
006922e6c7 fix(esp-tls): fixes DS peripheral use case with tf-psa-crypto 1.1 2026-06-25 10:41:00 +08:00
Ashish Sharma
0f11ac0623 feat(esp_http_client_mutual_auth): add mutual TLS example
Closes https://github.com/espressif/esp-idf/issues/18393
2026-06-25 10:41:00 +08:00
Chen Jichang
0813ea75b4 fix(gdma): fix buffer alignment when psram ecc enabled
Closes https://github.com/espressif/esp-idf/issues/18739
2026-06-25 10:29:01 +08:00
Aditya Patwardhan
70531b1a59 Merge branch 'update/version_6_0_2' into 'release/v6.0'
Update version to 6.0.2

See merge request espressif/esp-idf!49823
2026-06-25 07:36:34 +05:30
Mayank Tyagi
7744dc5854 fix(nimble): Optimize Nimble throughput example for 1M/2M/S2/S8 2026-06-24 16:58:21 +05:30
Guo Zifan
e3963cd433 feat(ble_log): Add frame check support for restart flow
(cherry picked from commit a81322a2ce)

Co-authored-by: guozifan <guozifan@espressif.com>
2026-06-24 15:32:33 +08:00
wanckl
14b5df881a feat(driver_twai): add prioritized TX queue support 2026-06-24 14:15:51 +08:00
wanckl
ec31ba1c6c feat(driver_twai): support using all 4 hardware tx buffer 2026-06-24 14:15:51 +08:00
wanckl
15a1a86a0a fix(driver_twai): fixed twaifd slow bitrate trans faile on correct bitrate 2026-06-24 14:15:51 +08:00
Wan Lei
9f694876bf fix(driver_twai): enable ci test for h4 2026-06-24 14:15:51 +08:00
wanckl
8500535a86 fix(driver_twai): fix driver assert fail when send frame
Closes https://github.com/espressif/esp-idf/issues/18081
2026-06-24 14:15:51 +08:00
wanckl
b14a480d59 fix(driver_sdmmc): test app correct p4 sdkconfig 2026-06-24 14:01:58 +08:00
wanckl
35fb412e71 fix(ci): twai test close board to fixed ci jobs pullotion 2026-06-23 14:27:46 +08:00
morris
4586897fa3 fix(sdio_slave): align buffer size checks with descriptor limits
Define per-target SDIO slave descriptor buffer limits in the LL layer and validate queued send buffers against the 4-byte aligned effective maximum. Update the public docs to describe the chip-dependent limit instead of hardcoding 4092 bytes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-22 23:20:03 +08:00
Samuel Obuch
2bb8dfe213 docs(jtag-debugging): add semihosting chapter
Co-authored-by: Shen Mengjing <shenmengjing@espressif.com>
Co-authored-by: Zhang Shu Xian <zhangshuxian@espressif.com>
2026-06-22 13:02:29 +02:00
Chen Chen
19c37cdfe6 fix: update i2c linux include dir
Closes https://github.com/espressif/esp-idf/issues/18667
2026-06-22 17:44:26 +08:00
Tomas Rohlinek
25714429f0 fix(network/http_server): fix clang-tidy warnings for missing close
Cherry-picked from 68b37333049383659d6ea73fa11a1d942994535a
2026-06-22 11:01:48 +02:00
Marius Vikhammer
e9d89e85cb test(ulp): check LP core apps avoid soft-float helpers
Inspect generated LP core ELF files so accidental floating-point helper linkage is caught in CI.
2026-06-22 14:06:55 +08:00
Marius Vikhammer
a6c7484b53 fix(ulp): use RC_FAST approximation for LP core fallback
Use the shared SoC RC_FAST approximation when the target has no RTC_FAST source option.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-22 14:02:12 +08:00
Marius Vikhammer
6e12910f8e fix(ulp): use SoC RC_FAST frequency for LP core delay
Use the target RC_FAST approximation for LP core delay conversion.
This prevents ESP32-S31 from under-delaying when running from RC_FAST.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-22 14:02:12 +08:00
wuzhenghui
44fc6c986f fix(esp_hw_support): use same lock for lightsleep/deepsleep process 2026-06-22 11:26:25 +08:00
xiongweichao
9b619e2617 fix(bt): skip unknown codecs when parsing AT+BAC
Peers may report custom or non-standard codec UUIDs in AT+BAC alongside
CVSD/mSBC. Returning BTA_AG_CODEC_NONE on the first unknown entry
discarded already-parsed standard codecs. Log unknown UUIDs and continue
parsing so negotiated capabilities still reflect supported codecs.
2026-06-22 11:13:03 +08:00
Zhou Xiao
d3409dbac6 docs(ble): add BLE UART tutorial and opencode bridge demo
- Add BLE UART service example with OpenCode companion docs
- Add BLE UART bridge demo for opencode integration
- Add BLE UART common library improvements
2026-06-22 10:20:47 +08:00
Zhang Hai Peng
9bf18ab861 fix(bt): Suppress gattc drop-notif warning for unregistered gatt_if
GATT stack broadcasts notifications to every client app, so unregistered
gatt_if instances were flooding logs even when another app had registered
the handle. Only warn when no client app registered for the handle.


(cherry picked from commit c18c8dc5e7)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-22 00:24:14 +08:00
Zhang Hai Peng
6e6394de74 fix(bt/bluedroid): validate handle in esp_ble_gattc_register_for_notify
(cherry picked from commit aa29772cbe1ec0fb1c5c6629dc5bf333a0194198)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-22 00:24:14 +08:00
Adam Múdry
542bbb6a04 fix(vfs): Fix incorrect check in esp_vfs_register_fs_common and optimize memory 2026-06-19 14:15:45 +02:00
Adam Múdry
318d312607 fix(fatfs): Fix esp_vfs_fat_unregister_path leak if esp_vfs_unregister fails 2026-06-19 14:15:45 +02:00
Aditya Patwardhan
7101770dc6 change(version): Update version to 6.0.2 v6.0.2 2026-06-19 12:18:37 +05:50