Compare commits

..

2005 Commits

Author SHA1 Message Date
Aditya Patwardhan
1b459d9c49 change(version): Update version to 5.3.4 2025-08-14 18:33:18 +05:30
Aditya Patwardhan
5276f0b443 Merge branch 'feature/support_ds_peripheral_rsa_decryption_v5.3' into 'release/v5.3'
feat(mbedtls): Add support for RSA decryption with DS peripheral (v5.3)

See merge request espressif/esp-idf!40451
2025-08-14 18:31:37 +05:30
Aditya Patwardhan
0e2511d3b4 Merge branch 'bugfix/fix_es7210_example_dependency_breaking_change_v5.3' into 'release/v5.3'
fix(i2s_es7210): fixed breaking change of dependency migration (v5.3)

See merge request espressif/esp-idf!41044
2025-08-13 19:14:51 +05:30
Jiang Jiang Jian
bea47a18d7 Merge branch 'bugfix/wifibug-1373' into 'release/v5.3'
backport v5.3: add hal interface to configure pau regdma wait timeout parameter

See merge request espressif/esp-idf!41079
2025-08-08 19:48:20 +08:00
Li Shuai
08c146b2ab change(hal): add hal interface to configure pau regdma wait timeout parameter 2025-08-06 19:42:35 +08:00
laokaiyao
70583758a8 fix(i2s_es7210): fixed breaking change of dependency migration 2025-08-05 11:24:31 +08:00
Jiang Jiang Jian
24bc87dbba Merge branch 'bugfix/fix_bt_hci_not_effective_08_v5.3' into 'release/v5.3'
Fixed bt hci event was not report to host when hci command was sent(v5.3)

See merge request espressif/esp-idf!40998
2025-08-01 22:55:31 +08:00
Jiang Jiang Jian
911fda0743 Merge branch 'bugfix/fixed_ble_dtm_err_v5.3' into 'release/v5.3'
Bugfix/fixed ble dtm err (v5.3)

See merge request espressif/esp-idf!40953
2025-08-01 22:49:15 +08:00
Jiang Jiang Jian
5a0dabc4da Merge branch 'fix/c6_phylib_for_modem_state_v5.3' into 'release/v5.3'
fix(esp_phy): fix c6 modem state (v5.3)

See merge request espressif/esp-idf!40870
2025-08-01 21:07:06 +08:00
zhanghaipeng
51fbec0a29 fix(bt/ble): Update esp32 libbtdm_app.a (65c26ad)
- Fixed bt hci event was not report to host when hci command was sent
2025-08-01 18:52:55 +08:00
wangtao@espressif.com
644275f8ca fix(phy): fix esp32c2 build issue 2025-08-01 11:24:57 +08:00
Zhao Wei Liang
ecf9e8ed7e fix(ble): fixed dtm function error on ESP32-H2
(cherry picked from commit 43c82b3b20)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-08-01 10:20:26 +08:00
Zhao Wei Liang
50cc13d97b fix(ble): fixed dtm function error on ESP32-C6
(cherry picked from commit ca0fdad4f2)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-08-01 10:20:23 +08:00
zwx
4f43ff7e79 fix(esp_phy): fix c6 modem state 2025-07-31 07:14:50 +00:00
Jiang Jiang Jian
8926bc489e Merge branch 'bugfix/fix_ble_aa_check_v2_v5.3' into 'release/v5.3'
Optimize check Access Address when receive connection request PDU (v5.3)

See merge request espressif/esp-idf!40748
2025-07-30 10:59:12 +08:00
zhanghaipeng
e61aefeeba fix(bt/ble): Update esp32 libbtdm_app.a (3a27e2e)
- Optimize check Access Address when receive connection request PDU
2025-07-29 15:38:33 +08:00
Jiang Jiang Jian
6045e49afd Merge branch 'bugfix/fix_phy_test_crash_v5.3' into 'release/v5.3'
fix(PHY): Fixed phy test example crash (v5.3)

See merge request espressif/esp-idf!40756
2025-07-29 11:58:06 +08:00
Jiang Jiang Jian
8bbe5001d3 Merge branch 'bugfix/wpa_eap_v1_connect_issue_v5.3' into 'release/v5.3'
Adjusted authentication mode for wpa-eap version 1 and add some fixes for wpa_supplicant(release/v5.3)

See merge request espressif/esp-idf!40700
2025-07-29 11:46:52 +08:00
Marius Vikhammer
5633354455 Merge branch 'fix/undefined-macro-usb-cdc' into 'release/v5.3'
fix(usb_cdc): Remove undefined macro USB_CDC_LOCAL_FD

See merge request espressif/esp-idf!40473
2025-07-25 10:18:27 +08:00
Zhi Wei Jian
16e2d33bed fix(rf/example): Fixed phy test example crash
(cherry picked from commit e2e5d4915b)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2025-07-23 11:23:22 +08:00
Guillaume Souchere
f49f023b79 fix(usb_cdc): Remove undefined macro USB_CDC_LOCAL_FD 2025-07-21 12:34:53 +02:00
Kapil Gupta
1699544639 fix (esp_wifi): Set default akm as eap for non AKM APs 2025-07-21 11:28:02 +05:30
Kapil Gupta
d0bf6f54bd fix(wpa_supplicant): Delay sending of EAP_START for EAP auth 2025-07-21 11:27:26 +05:30
tarun.kumar
3b8740860e fix(softAP): Adjusted authentication mode for wpa-eap version 1 2025-07-21 11:26:32 +05:30
Jiang Jiang Jian
a2ad5697df Merge branch 'bugfix/fix_memory_leak_on_http_header_fetch_failure_v5.3' into 'release/v5.3'
fix(esp_http_client): free header in case of ESP_ERR_HTTP_FETCH_HEADER (v5.3)

See merge request espressif/esp-idf!40664
2025-07-19 09:10:57 +08:00
Jiang Jiang Jian
7be9480d3c Merge branch 'fix/disconnect_sta_in_wps_start_v5.3' into 'release/v5.3'
fix(wifi): Disconnect station from previous AP in wps_start instead of wps_enable (Backport v5.3)

See merge request espressif/esp-idf!40645
2025-07-19 09:06:44 +08:00
Jiang Jiang Jian
2061f0c361 Merge branch 'feat/eap_method_limit_v5.3' into 'release/v5.3'
feat(esp_wifi): Add support to limit EAP methods (v5.3)

See merge request espressif/esp-idf!40504
2025-07-19 09:06:19 +08:00
Jiang Jiang Jian
30c47e8cef Merge branch 'bugfix/fix_pmksa_cache_expired_after_sntp_issue_v5.3' into 'release/v5.3'
Bugfix/fix pmksa cache expired after sntp issue v5.3(Backport v5.3)

See merge request espressif/esp-idf!40701
2025-07-19 09:06:03 +08:00
Kapil Gupta
fc106b3dbd fix(esp_wifi): Address review comments 2025-07-18 23:50:46 +08:00
Kapil Gupta
e47e4691b3 feat(esp_wifi): Add support to limit EAP methods
Added support to limit EAP method supported by device based on
user configuration.
2025-07-18 23:50:46 +08:00
Sarvesh Bodakhe
d7c76463f9 fix(wifi): Disconnect station in wps_start instead of wps_enable
Modifies changes from 784d4d63ef
2025-07-18 23:49:49 +08:00
wangtao@espressif.com
dfe0c15f90 fix(wifi): fix esp32c2 eco4 ld issue 2025-07-18 23:49:33 +08:00
muhaidong
e4d1588416 fix(wifi): fix pmksa cache expiration caused by sntp time synchronization issue 2025-07-18 23:49:33 +08:00
Jiang Jiang Jian
cb1f35027f Merge branch 'bugfix/enable_ipv6_if_nan_v5.3' into 'release/v5.3'
bugfix(wifi): Enable IPv6 support via LWIP_IPV6 when WiFi Aware(NAN) is enabled (Backport v5.3)

See merge request espressif/esp-idf!40489
2025-07-18 20:14:42 +08:00
Jiang Jiang Jian
a62046dd10 Merge branch 'docs/remove_incorrect_info_for_esp32p4_sdmmc_v5.3' into 'release/v5.3'
docs: Remove incorrect description for ESP32-P4 SDMMC (v5.3)

See merge request espressif/esp-idf!40675
2025-07-18 14:38:57 +08:00
Jiang Jiang Jian
077a8f242c Merge branch 'feat/extend_pip_user_option_check_v5.3' into 'release/v5.3'
feat(tools): Disabled pip 'user' option, when installing ESP-IDF python virtual environment (v5.3)

See merge request espressif/esp-idf!40572
2025-07-18 14:37:47 +08:00
Jiang Jiang Jian
2138198e1a Merge branch 'feat/add_timestamp_v5.3' into 'release/v5.3'
fix(nimble): Enhanced HCI logging by adding timestamp information (v5.3)

See merge request espressif/esp-idf!40635
2025-07-18 14:36:57 +08:00
Jiang Jiang Jian
103d5d14ef Merge branch 'contrib/github_pr_15767_v5.3' into 'release/v5.3'
fix(esp_http_server): WebSocket frame parsing errors (GitHub PR) (v5.3)

See merge request espressif/esp-idf!40619
2025-07-18 14:35:47 +08:00
Jiang Jiang Jian
5f970b722b Merge branch 'bugfix/ci_release_zip_base_image_v5.3' into 'release/v5.3'
Bump ubuntu version for release zips workflow (v5.3)

See merge request espressif/esp-idf!40648
2025-07-18 14:34:00 +08:00
Jiang Jiang Jian
9d031f25fb Merge branch 'bugfix/make_blufi_adv_custom_v5.3' into 'release/v5.3'
feat(nimble): Add a way to make blufi advertising customizable (v5.3)

See merge request espressif/esp-idf!40531
2025-07-18 14:33:01 +08:00
Marek Fiala
3588492623 feat(tools): Enforce pip 'user' option to no, when installing python env
Closes https://github.com/espressif/esp-idf/issues/16189
2025-07-18 13:02:48 +08:00
Ashish Sharma
6e28f15d67 fix(esp_http_client): fix memory leak in current_header_value buffer
Fixed memory leak in esp_http_client_cleanup() where current_header_value
buffer was not being freed when ESP_ERR_HTTP_FETCH_HEADER is returned
during header parsing failures.
2025-07-18 11:57:23 +08:00
Zhang Shuxian
53e1e55b6d docs: Remove incorrect description for ESP32-P4 SDMMC 2025-07-18 09:32:06 +08:00
Vincent Hamp
6421482fa1 fix(esp_http_server): WebSocket frame parsing errors
Fixes the Websocket frame pasring error, by making sure
that two bytes are read compulsary for length bytes 126.

Closes https://github.com/espressif/esp-idf/pull/15767
Closes https://github.com/espressif/esp-idf/issues/15235
2025-07-17 14:30:59 +05:30
Sergei Silnov
5e0d9ea302 ci: bump ubuntu version for release zips workflow 2025-07-17 10:16:41 +02:00
Rahul Tank
540935cd72 fix(nimble): Enhanced HCI logging by adding timestamp information 2025-07-17 10:19:30 +05:30
Jiang Jiang Jian
13d42ce9d4 Merge branch 'bugfix/crash_ap_mode_switch_v5.3' into 'release/v5.3'
fix(wifi): Fix crash due to BIP when ap mode change

See merge request espressif/esp-idf!40567
2025-07-17 12:12:40 +08:00
Shreyas Sheth
01640ff9da fix(wifi): Fix crash due to BIP when ap mode change 2025-07-16 19:14:38 +08:00
Jiang Jiang Jian
17264e6711 Merge branch 'fix/spi_master_p4_change_default_clk_pll_v5.3' into 'release/v5.3'
fix(driver_spi): master driver change esp32p4 default src to pll (v5.3)

See merge request espressif/esp-idf!40115
2025-07-16 17:30:28 +08:00
Jiang Jiang Jian
c04f7e0650 Merge branch 'fix/incorrect_unit_of_cpb_rx_clk_v5.3' into 'release/v5.3'
fix(bt): fixed the incorrect unit of clk in cpb rx event(backport v5.3)

See merge request espressif/esp-idf!40391
2025-07-16 17:28:51 +08:00
Jiang Jiang Jian
a42a69f220 Merge branch 'bugfix/fix_some_ble_bugs_250610_cjh_esp32c3_v5.3' into 'release/v5.3'
Fixed some BLE bugs 250610 on esp32c3(2edb0b0) (v5.3)

See merge request espressif/esp-idf!40429
2025-07-16 17:18:35 +08:00
Jiang Jiang Jian
82438be6dd Merge branch 'bugfix/handle_3e_rem_feat_read_name_v5.3' into 'release/v5.3'
fix(nimble): Handle 0x3e disconnect during rem feat/ read version (v5.3)

See merge request espressif/esp-idf!40176
2025-07-16 17:17:49 +08:00
Jiang Jiang Jian
0953c344f6 Merge branch 'bugfix/bt_sleep_log_consistent_v5.3' into 'release/v5.3'
fix(ble): keep the log of the bluetooth sleep clock source consistent(v5.3)

See merge request espressif/esp-idf!40357
2025-07-16 17:16:41 +08:00
Jiang Jiang Jian
7cdc3aeba8 Merge branch 'feat/update_mbedtls_3.6.4_v5.3' into 'release/v5.3'
feat(mbedtls): update to version 3.6.4 (v5.3)

See merge request espressif/esp-idf!40377
2025-07-16 17:13:59 +08:00
Jiang Jiang Jian
5221b8abf9 Merge branch 'doc/update_esp_https_ota_pre_encrypted_doc_v5.3' into 'release/v5.3'
docs(system/esp_https_ota): adds ECIES-256 to pre-enc ota design doc (v5.3)

See merge request espressif/esp-idf!40374
2025-07-16 17:09:32 +08:00
Jiang Jiang Jian
f256e57318 Merge branch 'doc/update_32b_addr_limit_in_flash_doc_v5.3' into 'release/v5.3'
flash: updated 32bit addr support related doc (v5.3)

See merge request espressif/esp-idf!40333
2025-07-16 17:08:53 +08:00
Jiang Jiang Jian
22e579da3f Merge branch 'fix/pcnt_miss_accum_value_when_overflow_v5.3' into 'release/v5.3'
fix(pcnt): fix the accum_value missing when overflow (v5.3)

See merge request espressif/esp-idf!40316
2025-07-16 17:08:26 +08:00
Jiang Jiang Jian
a9190297eb Merge branch 'bugfix/esp32s2_memprot_clear_v5.3' into 'release/v5.3'
fix(esp_hw_support): clear the memory protection interrupt status on boot (backport v5.3)

See merge request espressif/esp-idf!38053
2025-07-16 17:06:48 +08:00
Jiang Jiang Jian
4871de8eb5 Merge branch 'fix/fix_esp32_core1_access_rtc_fast_in_sleep_code_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix esp32 APP_CPU accessing RTCFAST memory in sleep code (v5.3)

See merge request espressif/esp-idf!40558
2025-07-16 17:06:14 +08:00
Jiang Jiang Jian
e61d219be9 Merge branch 'fix/fix_dhcp_server_main_dns_set_issue' into 'release/v5.3'
fix(lwip): fix dhcp server set main dns issue

See merge request espressif/esp-idf!40592
2025-07-16 17:05:52 +08:00
wangtao@espressif.com
1958f16749 fix(lwip): fix dhcp server set main dns issue 2025-07-15 15:34:09 +08:00
Jiang Jiang Jian
330340870f Merge branch 'bugfix/fix_second_scan_error_in_smartconfig_v5.3' into 'release/v5.3'
fix(wifi): fix duplicated offchan error (v5.3)

See merge request espressif/esp-idf!40496
2025-07-14 14:36:43 +08:00
wuzhenghui
7ac245d489 fix(esp_hw_support): fix esp32 APP_CPU accessing RTCFAST memory in sleep code 2025-07-14 14:07:55 +08:00
Island
c464a58954 Merge branch 'feat/ble_log_spi_out_dev_phase_4_v5.3' into 'release/v5.3'
BLE Log SPI Out Dev Phase 4 (v5.3)

See merge request espressif/esp-idf!40424
2025-07-14 11:48:25 +08:00
Rahul Tank
c05b43a907 fix(nimble): Add a way to make blufi advertising customizable
Based on changes in https://github.com/espressif/esp-idf/pull/8958
2025-07-11 15:30:14 +05:30
Island
45324d6ba9 Merge branch 'change/ble_update_lib_20250709_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20250709 - Update ESP BLE Controller Lib (v5.3)

See merge request espressif/esp-idf!40469
2025-07-11 10:47:35 +08:00
zhangyanjiao
b995743aad fix(wifi): fix duplicated offchan error 2025-07-10 15:59:48 +08:00
akshat
76455646a0 bugfix(wifi): Define ETH_ALEN for IPV6 Communication Type 2025-07-10 09:56:52 +05:30
akshat
d39dd3a7b1 bugfix(wifi): Enable IPv6 support via LWIP_IPV6 when WiFi Aware(NAN) is enabled 2025-07-10 09:56:25 +05:30
Ashish Sharma
dfc4368a04 feat(mbedtls): adds support for RSA decryption with DS peripheral 2025-07-10 11:24:56 +08:00
Zhou Xiao
d0d314ae52 fix(ble): updated rom linker script for ESP32-C2
(cherry picked from commit f1838aeec1)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-09 13:14:31 +08:00
Zhou Xiao
2802c6d933 feat(ble): enable broker initialization on ESP32-C6
(cherry picked from commit 3d93ce37da)

Co-authored-by: cjin <jinchen@espressif.com>
2025-07-09 13:14:29 +08:00
Zhou Xiao
493e6431b7 feat(ble): enable broker initialization on ESP32-H2
(cherry picked from commit 64f216ae5a)

Co-authored-by: cjin <jinchen@espressif.com>
2025-07-09 13:14:26 +08:00
Zhou Xiao
3321892ee8 feat(ble): support memory allocation check debug feature on ESP32-H2
(cherry picked from commit 265a8746dc)

Co-authored-by: cjin <jinchen@espressif.com>
2025-07-09 13:14:24 +08:00
Zhou Xiao
825c55e5d0 feat(ble): support memory allocation check debug feature on ESP32-C6
(cherry picked from commit 027766e0c2)

Co-authored-by: cjin <jinchen@espressif.com>
2025-07-09 13:14:21 +08:00
Zhou Xiao
84151af576 feat(ble): support memory allocation check debug feature on ESP32-C2
(cherry picked from commit 7ef90d4113)

Co-authored-by: cjin <jinchen@espressif.com>
2025-07-09 13:14:19 +08:00
Zhou Xiao
15f2c4c907 change(ble): [AUTO_MR] Update lib_esp32c2 to c7732d48
(cherry picked from commit 3d45e8578e)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-09 13:14:16 +08:00
Zhou Xiao
545d4a88d6 change(ble): [AUTO_MR] Update lib_esp32c6 to ca6c20bc
(cherry picked from commit 1e236a1feb)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-09 13:14:14 +08:00
Zhou Xiao
5352ab9fdc change(ble): [AUTO_MR] Update lib_esp32h2 to ca6c20bc
(cherry picked from commit 6a650312d4)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-09 13:14:12 +08:00
Chen Jian Hua
377093b2d1 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(2edb0b0)
- Fixed TX issue when the event is aborted
- Fixed BLE assert llc_llcp.c 487
- Fixed BLE assert sch_prog.c 304
- Fixed anonymous extended adv reporting
- Support vendor HCI related params reset


(cherry picked from commit ad71a2cd33)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-07-08 13:33:28 +08:00
Zhou Xiao
c71c773b56 change(ble): upgraded spi log frame header
(cherry picked from commit 5f3ac91d63)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:14:54 +08:00
Zhou Xiao
44e22612c4 fix(ble): nimble host & hci log write race condition workaround
(cherry picked from commit 6e384644c8)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:14:52 +08:00
Zhou Xiao
63ef4e46a9 change(ble): support task buffer number configuration
(cherry picked from commit 4946a1fe8d)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:14:50 +08:00
Zhou Xiao
32d0cfecb4 fix(ble): update error code in controller init for ESP32-S3/ESP32-C3
(cherry picked from commit b8b7e153a7)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:14:48 +08:00
Zhou Xiao
fe4fe5c4d6 fix(ble): fixed controller log api call for ESP32-C3/ESP32-S3
(cherry picked from commit 6ac541aa4a)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:14:45 +08:00
Zhou Xiao
62af3ef98c change(ble): removed esp log to save code size
(cherry picked from commit 0088541f54)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:14:43 +08:00
Zhou Xiao
81ac2ad181 change(ble): enable hci log spi out for ESP chips
(cherry picked from commit c60dd1a10e)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:14:41 +08:00
Zhou Xiao
eceb1ff65b change(ble): enable bluedroid logs over debug level through spi output
(cherry picked from commit c0d2792b9d)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:14:38 +08:00
Zhou Xiao
f8f78642a8 feat(ble): support ble mesh log module
(cherry picked from commit 066e1d3f1b)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:14:36 +08:00
Zhou Xiao
aca983d55f feat(ble): support host & hci log module
(cherry picked from commit dd4cbe5e00)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:14:34 +08:00
Zhou Xiao
91dfe4b75f change(ble): replaced ul log codes with template
(cherry picked from commit d353bf2802)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:14:31 +08:00
Zhou Xiao
ad8f75b984 change(ble): replaced le audio log codes with template
(cherry picked from commit feaee0a6fe)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:14:29 +08:00
Zhou Xiao
77ad9c0311 change(ble): implemented log module template
(cherry picked from commit 8b2c176eff)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:14:26 +08:00
Zhou Xiao
c4ebf09077 change(ble): updated ble log spi out ts sync module
* use freertos ts instead of esp ts for better performance
* enable ts sync sleep support by default
* use esp ts as fallback of lc time getter


(cherry picked from commit 56e42be859)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:14:24 +08:00
gongyantao
eeb73d27ab fix(bt): fixed the incorrect unit of clk in cpb rx event 2025-07-07 14:53:17 +08:00
renpeiying
41d586a8f4 docs: Update CN translation for esp_http_ota.rst 2025-07-04 17:50:54 +08:00
Ashish Sharma
ed72c372a1 docs(system/esp_https_ota): adds ECIES-256 to pre-enc ota design doc 2025-07-04 17:50:54 +08:00
Ashish Sharma
256145a1fe feat(mbedtls): update to version 3.6.4 2025-07-04 17:36:31 +08:00
xiongweichao
b23cf5c696 fix(ble): keep the log of the bluetooth sleep clock source consistent 2025-07-04 10:31:11 +08:00
Rahul Tank
6ce12f688e fix(nimble): Handle 0x3e disconnect during rem feat/ read version 2025-07-03 12:54:19 +05:30
armando
f2629ca384 doc(flash): updated 32bit addr support doc 2025-07-03 14:07:49 +08:00
Jiang Jiang Jian
e3eeb9d79c Merge branch 'feat/remove-unecessray-condition-in-usj-read_v5.3' into 'release/v5.3'
fix(driver): remove unecessary if conditions in the read function (v5.3)

See merge request espressif/esp-idf!39945
2025-07-02 23:55:26 +08:00
Jiang Jiang Jian
6a4ab82bad Merge branch 'fix/tcm-mem-not-considered-in-esp_ptr_eexecutable_v5.3' into 'release/v5.3'
fix(memory-utils): Check TCM in esp_ptr_internal and esp_ptr_byte_accessible (v5.3)

See merge request espressif/esp-idf!39985
2025-07-02 23:55:03 +08:00
Jiang Jiang Jian
37db553e7e Merge branch 'change/ble_update_lib_20250630_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20250630 - Update ESP BLE Controller Lib (v5.3)

See merge request espressif/esp-idf!40299
2025-07-02 23:34:10 +08:00
Jiang Jiang Jian
19c46bdbf7 Merge branch 'feature/gcc-fanalyzer_v5.3' into 'release/v5.3'
feat(ci): add gnu static analyzer job (v5.3)

See merge request espressif/esp-idf!32982
2025-07-02 22:12:08 +08:00
Alexey Lapshin
47aaedeb94 fix(usb): fix warnings found by GNU static analyzer 2025-07-02 20:30:30 +08:00
Alexey Lapshin
a4e827bedd fix(wpa_supplicant): fix warnings found by GNU static analyzer 2025-07-02 20:30:30 +08:00
Alexey Lapshin
fa83f6dd4e fix(vfs): fix warnings found by GNU static analyzer 2025-07-02 20:30:30 +08:00
Alexey Lapshin
a8ed9e4ce8 fix(heap): fix warnings found by GNU static analyzer 2025-07-02 20:30:30 +08:00
Alexey Lapshin
6c4dac64a7 fix(esp_mm): fix warnings found by GNU static analyzer 2025-07-02 20:30:30 +08:00
Alexey Lapshin
4a0c96beb1 fix(esp_hw_support): fix warnings found by GNU static analyzer 2025-07-02 20:30:30 +08:00
Alexey Lapshin
ae892ccd5a fix(esp_driver_usb_serial_jtag): fix warnings found by GNU static analyzer 2025-07-02 20:30:30 +08:00
Jiang Jiang Jian
dcaef8f08c Merge branch 'feature/update-gdb-to-16.2_20250324_v5.3' into 'release/v5.3'
feat(tools): update gdb version to 16.2_20250324 (v5.3)

See merge request espressif/esp-idf!39336
2025-07-02 20:29:40 +08:00
Chen Jichang
ba0a08a1d0 fix(pcnt): fix the accum_value missing when overflow 2025-07-02 20:14:37 +08:00
Rahul Tank
e2c9605f72 Merge branch 'bugfix/add_missing_unlock_v5.3' into 'release/v5.3'
fix(nimble): Add missing ble_hs_unlock() call (v5.3)

See merge request espressif/esp-idf!40235
2025-07-02 16:24:06 +05:30
Zhao Wei Liang
0dba389a1c fix(ble): ensure ble controller disable safety for ESP32-C2
(cherry picked from commit cbe6f68d3c)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-02 15:14:04 +08:00
Zhao Wei Liang
f330a3c631 fix(ble): fixed occasional assert triggered during controller disable on ESP32-C2
(cherry picked from commit 7b1a7cc4c3)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-07-02 15:14:02 +08:00
Zhao Wei Liang
65b2b60aa2 change(ble): [AUTO_MR] Update lib_esp32c2 to 9af627ef
(cherry picked from commit 6fac09d0c3)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-07-02 15:13:59 +08:00
Zhao Wei Liang
49fbf68cf6 change(ble): [AUTO_MR] Update lib_esp32c6 to d2d70d40
(cherry picked from commit 736cd84967)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-07-02 15:13:57 +08:00
Zhao Wei Liang
09f0c98c38 change(ble): [AUTO_MR] Update lib_esp32h2 to d2d70d40
(cherry picked from commit 1671932345)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-07-02 15:13:55 +08:00
John Boiles
ab14bbaa00 fix(memory-utils): Use esp_ptr_in_tcm to check TCM range 2025-07-02 08:56:13 +02:00
John Boiles
0916afabae fix(memory-utils): Check TCM in esp_ptr_internal and esp_ptr_byte_accessible
Modifies `esp_ptr_internal` and `esp_ptr_byte_accessible` to also check TCM
when `SOC_MEM_TCM_SUPPORTED`.
2025-07-02 08:56:13 +02:00
Guillaume Souchere
422dd808e4 feat(usb_serial_jtag): Update vfs read to be POSIX compliant
The function now returns with available data in blocking mode
instead of waiting for the requested size to be available before
returning.
2025-07-02 08:55:38 +02:00
Guillaume Souchere
d9c001cbc1 feat(usb_cdc): Update vfs read() to comply with POSIX standards 2025-07-02 08:55:38 +02:00
Guillaume Souchere
12427a8b21 feat(usb_serial_tag_vfs): Add test for read exit conditions
Add a test to make sure the VFS read does not return on reception
of the \n character
2025-07-02 08:55:38 +02:00
Guillaume Souchere
68042bbf4b fix(driver): remove unecessary if conditions in the read function
This changes affect usb_serial_jtag_vfs and cdcacm_vfs read functions.
This commit removes the exit condition on reception of \n character.
2025-07-02 08:55:38 +02:00
Jiang Jiang Jian
62e28e3c74 Merge branch 'contrib/github_pr_15057_v5.3' into 'release/v5.3'
feat(dhcps): Support for multiple DNS servers (GitHub PR) (v5.3)

See merge request espressif/esp-idf!39268
2025-07-02 14:32:31 +08:00
Jiang Jiang Jian
c7a31ce888 Merge branch 'bugfix/esp_flash_escape_checking_v5.3' into 'release/v5.3'
fix(esp_flash): fixed issue of escaping boundary check (v5.3)

See merge request espressif/esp-idf!40119
2025-07-02 14:29:59 +08:00
Jiang Jiang Jian
0de3c919c1 Merge branch 'fix/sdmmc_write_sectors_dma_always_send_cmd13_v5.3' into 'release/v5.3'
fix(sdmmc): sdmmc_write_sectors_dma always check card status after write (v5.3)

See merge request espressif/esp-idf!34341
2025-07-02 14:00:55 +08:00
Jiang Jiang Jian
39d5b3ce75 Merge branch 'fix/netif_ppp_dhcp_v5.3' into 'release/v5.3'
fix(esp_netif): Fix incorrect DHCP call for PPP interfaces (v5.3)

See merge request espressif/esp-idf!40240
2025-07-02 13:58:07 +08:00
Jiang Jiang Jian
8752e3fe80 Merge branch 'feat/enable_wakeup_tests_for_more_chips_v5.3' into 'release/v5.3'
feat(esp_hw_support): enable wakeup tests for more chips (v5.3)

See merge request espressif/esp-idf!40047
2025-07-02 13:57:48 +08:00
morris
a228b4c744 Merge branch 'feature/usb_dual_host_2_backport_v5.3' into 'release/v5.3'
feat(usb/host): Add option to choose peripheral for USB host library (backport v5.3)

See merge request espressif/esp-idf!39723
2025-07-02 12:09:57 +08:00
Alexey Lapshin
76fb19dde4 fix(gdbstub): remove QThreadEvents+ from qSupported 2025-07-02 10:11:45 +07:00
Alexey Lapshin
78dae867b5 feat(tools): update gdb version to 16.2_20250324 2025-07-02 10:56:40 +08:00
Jiang Jiang Jian
487e9e496e Merge branch 'bugfix/fix_dvp_recv_trans_buf_error_v5.3' into 'release/v5.3'
fix(esp_driver_cam): Fix DVP get trans buffer error (v5.3)

See merge request espressif/esp-idf!40138
2025-07-02 10:50:43 +08:00
Jiang Jiang Jian
fe631a74ab Merge branch 'fix/intr_alloc_level_bug_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix a bug in the interrupt allocator related to shared interrupts (backport v5.3)

See merge request espressif/esp-idf!35496
2025-07-02 10:45:36 +08:00
Jiang Jiang Jian
14fc801093 Merge branch 'fix/sdspi_cmd52_error_v5.3' into 'release/v5.3'
fix(sdmmc): fix sdmmc initialization issue caused by CMD52 CRC error (v5.3)

See merge request espressif/esp-idf!40284
2025-07-02 10:43:19 +08:00
Jiang Jiang Jian
8856e6ea01 Merge branch 'fix/ensure_internal_mem_for_ble_log_spi_out_v5.3' into 'release/v5.3'
fix(ble): ensure internal malloc in ble log spi out (v5.3)

See merge request espressif/esp-idf!40181
2025-07-02 10:34:31 +08:00
Jiang Jiang Jian
bf79937908 Merge branch 'feat/adding_hidden_config_for_dynamic_buffer_control_configuration_v5.3' into 'release/v5.3'
feat(esp_tls): Added hidden config in esp-tls for dynamic buffer strategy configuration (v5.3)

See merge request espressif/esp-idf!40267
2025-07-02 10:22:58 +08:00
Jiang Jiang Jian
c7f4ebdfa5 Merge branch 'bugfix/fix_some_wifi_bugs_250623_v5.3' into 'release/v5.3'
Bugfix/fix some wifi bugs 250623 v5.3

See merge request espressif/esp-idf!40188
2025-07-02 10:14:05 +08:00
Sergei Silnov
5131642da8 Merge branch 'ci/raise_macos_cache_to_50g_v5.3' into 'release/v5.3'
macOS runners - set CCACHE back to 50GB to help VMs (v5.3)

See merge request espressif/esp-idf!40277
2025-07-01 13:30:04 -03:00
Jiang Jiang Jian
f58d6da3ed Merge branch 'bugfix/add_the_cve_2025_52471_to_list_v5.3' into 'release/v5.3'
fix(wifi): Added CVE-2025-52471 to vulnerabilities list (v5.3)

See merge request espressif/esp-idf!40208
2025-07-01 20:36:33 +08:00
sonika.rathi
b9e276ff94 fix(sdmmc): fix sdmmc initialization issue in caused by CMD52 CRC error 2025-07-01 13:41:11 +02:00
Peter Macko
3b0c6b279c ci: macOS runners - set CCACHE back to 50GB to help VMs 2025-07-01 13:02:32 +02:00
Marius Vikhammer
62b365569d feat(lp_core): added support for LP-IO as LP-core wakeup source 2025-07-01 17:57:42 +08:00
Alexey Gerenkov
de2e218a3a Merge branch 'fix/apptrace_crc_calculation_v5.3' into 'release/v5.3'
fix(apptrace): calculate crc16 of the current block before swap (v5.3)

See merge request espressif/esp-idf!40250
2025-07-01 17:48:47 +08:00
Shu Chen
b9460c59c1 Merge branch 'fix_br_selfhosted_address_v5.3' into 'release/v5.3'
feat(openthread): move mesh local address judeging function to public (v5.3)

See merge request espressif/esp-idf!40258
2025-07-01 06:30:23 +00:00
hrushikesh.bhosale
22c26ac049 feat(esp_tls): Added hidden config in esp-tls for dynamic buffer strategy configuration
Added the hidden config in the esp-tls component for the dynamic buffer
strategy configuration feature. So that external components like ota
can findout whether this feature is supported or not
2025-07-01 11:53:09 +05:30
zhangyanjiao
240e9810c9 fix(wifi): Added CVE-2025-52471 to vulnerabilities list 2025-07-01 14:16:49 +08:00
zhangyanjiao
1f5abb42bc fix(wifi): Added CVE-2024-53845 to vulnerabilities list 2025-07-01 14:16:49 +08:00
Mahavir Jain
2979fc288b docs: add page to summarize the security vulnerabilities and advisories 2025-07-01 14:16:43 +08:00
Jiang Jiang Jian
b005bcc53b Merge branch 'feat/smaller_release_size_v5.3' into 'release/v5.3'
ci: Use new release-zips-action with shallow history (v5.3)

See merge request espressif/esp-idf!39940
2025-07-01 14:08:10 +08:00
Omar Chebib
59eae71414 fix(esp_hw_support): fix a bug in the interrupt allocator related to shared interrupts
On RISC-V targets, when allocating a shared interrupt, the provided level would
override the current level of the allocated interrupt. As such, a medium level
interrupt could become a low level one and vice versa.
2025-07-01 13:49:26 +08:00
Mahavir Jain
fd5af4bf69 Merge branch 'docs/fix_secure_download_mode_unsupported_esp32_v5.3' into 'release/v5.3'
fix(bootloader): Fix documentation as ESP32 does not support secure download mode (v5.3)

See merge request espressif/esp-idf!40215
2025-07-01 10:36:23 +05:30
wanckl
77eff50f99 fix(driver_spi): master driver change esp32p4 default src to pll 2025-07-01 11:35:21 +08:00
Chen Dejin
f0b9769955 fix(openthread/discovery): use mesh local for self-hosted service if OMR is not preferred
* esp-openthread: thread_zigbee/esp-openthread@f54481eb0
* openthread: espressif/openthread@b945928d7
* esp-idf: espressif/esp-idf@31fde3403
2025-07-01 02:58:21 +00:00
chendejin
31fde34037 feat(openthread): move mesh local address judeging function to public 2025-07-01 10:49:04 +08:00
Abhik Roy
b25ea94c45 fix(dhcps): Fixed DNS server handling for previous breaking changes 2025-07-01 10:29:11 +08:00
Lorenzo Consolaro
a5e37f8cdf feat(dhcps): Support for multiple DNS servers 2025-07-01 10:29:11 +08:00
Shu Chen
838a24e7f6 Merge branch 'feat/rcp_over_usb_v5.3' into 'release/v5.3'
feat(openthread): support rcp based on USB Serial JTAG (v5.3)

See merge request espressif/esp-idf!40247
2025-07-01 02:10:32 +00:00
Erhan Kurubas
4e18115483 fix(apptrace): calculate crc16 of the current block before swap 2025-06-30 14:38:19 +02:00
Simonas Kazlauskas
c400fb4ff6 feat(openthread): support rcp based on USB Serial JTAG 2025-06-30 20:17:03 +08:00
Roland Dobai
6ce783f89c Merge branch 'feat/update_ccache_to_4.11.2_v5.3' into 'release/v5.3'
feat(tools): Update ccache 4.10.2 -> 4.11.2 (v5.3)

See merge request espressif/esp-idf!39574
2025-06-30 13:20:04 +02:00
David Cermak
f8aa0fcb6a fix(esp_netif): Fix incorrect DHCP call for PPP interfaces
Closes https://github.com/espressif/esp-protocols/issues/800
2025-06-30 12:21:46 +02:00
sibeibei
74c3f70e8e fix(wifi): rx bcn failed when sta off channel under modem state 2025-06-30 18:10:05 +08:00
Rahul Tank
11f3b141b4 fix(nimble): Add missing ble_hs_unlock() call 2025-06-30 15:21:04 +05:30
Roland Dobai
4c68cdec62 Merge branch 'change/support_lowercase_kconfig_filename_v5.3' into 'release/v5.3'
Backport: Support misspelled Kconfig[.projbuild] files (v5.3)

See merge request espressif/esp-idf!39584
2025-06-30 11:49:37 +02:00
Marek Fiala
be7070611d feat(tools): Update ccache 4.10.2 -> 4.11.2
Closes https://github.com/espressif/idf-installer/issues/305
2025-06-30 17:48:00 +08:00
Li Shuai
72009edd6f fix(esp_hw_support): fix modem wakeup req always high caused by pmu min slp cycle update 2025-06-30 16:32:37 +08:00
Li Shuai
03ba1cfb8b change(esp_hw_support): add interface to calculate slow clock period by clock frequency 2025-06-30 16:32:37 +08:00
sibeibei
6da81c80c0 fix(wifi):fix modem state rx bcn failed when tbtt update, support modem state for coexist 2025-06-30 16:32:37 +08:00
liuning
c309d9e4d9 feat(docs): update connectionless module window syncronization documentation 2025-06-30 16:32:36 +08:00
wangtao@espressif.com
38a96587f2 fix(wifi): add check for esp_wifi_set_config 2025-06-30 16:32:36 +08:00
liuning
40fe7efe33 fix(wifi): fix cant sleep if connection breaks during sending probe 2025-06-30 16:32:36 +08:00
morris
86ccf6354f Merge branch 'change/remove_mmap_paddr_remap_warning_log_v5.3' into 'release/v5.3'
mmu: remove paddr remap warning log (v5.3)

See merge request espressif/esp-idf!40205
2025-06-30 16:06:57 +08:00
Zhang Shuxian
eda1becb44 docs: Update CN for usb_host.rst 2025-06-30 14:45:59 +08:00
Tomas Rezucha
4addf21286 feat(usb/host): Add option to choose peripheral for USB host library
Starting with ESP32-P4 we can have targets that have more than 1 USB-OTG peripheral.
This commit adds an option to choose which peripherals will be used by USB Host lib.

Internally, we will still have only 1 Root HUB but with multiple Root ports.

# Conflicts:
#	components/usb/host_test/usb_host_layer_test/main/usb_host_install_unit_test.cpp
#	components/usb/hub.c
#	components/usb/test_apps/common/phy_common.c
#	components/usb/test_apps/common/phy_common.h
#	components/usb/test_apps/hcd/main/test_hcd_common.c
#	components/usb/test_apps/usb_host/main/test_app_main.c
#	components/usb/usb_host.c
2025-06-30 14:45:59 +08:00
harshal.patil
748d29c394 fix(bootlaoder): Fix documentation as ESP32 does not support secure download mode 2025-06-30 10:27:30 +05:30
Jiang Jiang Jian
02447c9e0d Merge branch 'fix/improve_tcp_performance_v53' into 'release/v5.3'
fix(wifi): improve esp32c2 and esp32s2 tcp performance

See merge request espressif/esp-idf!40154
2025-06-30 11:08:36 +08:00
armando
55f91f78d8 change(mmu): remove paddr remap warning log 2025-06-30 10:51:25 +08:00
Jiang Jiang Jian
de842b0694 Merge branch 'feature/softAP_sae_ext_key_v5.3' into 'release/v5.3'
Add SAE-EXT-KEY feature on softAP (release/v5.3)

See merge request espressif/esp-idf!40080
2025-06-30 10:38:43 +08:00
Zhou Xiao
b1a7241a8a fix(ble): ensure internal malloc in ble log spi out 2025-06-30 10:32:37 +08:00
Adam Múdry
df1a14bd96 fix(sdmmc): Send status (CMD13) even if write/read command fails 2025-06-27 13:54:45 +08:00
Adam Múdry
9b3cebf741 fix(sdmmc): Improve SD card state checking after write/read command 2025-06-27 13:54:45 +08:00
Island
c5f689649e Merge branch 'change/ble_update_lib_20250613_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20250613 - Update ESP BLE Controller Lib (v5.3)

See merge request espressif/esp-idf!40159
2025-06-27 11:10:12 +08:00
Kapil Gupta
7d3734065a fix(esp_wifi): Set default ap mgmt cipher 2025-06-26 15:46:33 +05:30
cjin
e6b5188f5f feat(ble): add sm count reserve cnt setting on ESP32-H2 2025-06-26 15:03:09 +08:00
cjin
84eb3f5821 feat(ble): add sm count reserve cnt setting on ESP32-C6 2025-06-26 15:03:09 +08:00
cjin
d06b73a2c4 change(ble): update lib_esp32c6 to ea6c58c7 2025-06-26 15:03:09 +08:00
cjin
dc67130238 change(ble): update lib_esp32h2 to ea6c58c7 2025-06-26 15:03:09 +08:00
Zhou Xiao
9a48a7e2bd change(ble): [AUTO_MR] Update lib_esp32c6 to b8770ab2 2025-06-26 15:03:09 +08:00
Zhou Xiao
07f78c01b5 change(ble): [AUTO_MR] Update lib_esp32c2 to e865b4f9 2025-06-26 15:03:09 +08:00
Zhou Xiao
20de9b641a change(ble): [AUTO_MR] Update lib_esp32h2 to b8770ab2 2025-06-26 15:03:09 +08:00
wangtao@espressif.com
c3798f5c7a fix(wifi): improve esp32c2 and esp32s2 tcp performance 2025-06-26 11:11:42 +08:00
tarun.kumar
6094d14616 fix(wifi): Made changes in api for sending bcast deauth frames 2025-06-25 16:14:13 +05:30
tarun.kumar
7dba716272 fix(wifi): Resolve out-of-bounds memory access in ieee80211w_kde_add 2025-06-25 16:14:13 +05:30
tarun.kumar
5c9d2bbc0d feat(wifi): Add SAE-EXT-KEY feature on softAP 2025-06-25 16:14:13 +05:30
Island
bcba4339d4 Merge branch 'feat/add_cte_iq_report_example_v5.3' into 'release/v5.3'
Add Bluetooth LE CTE connless example. (v5.3)

See merge request espressif/esp-idf!39781
2025-06-25 17:09:34 +08:00
Aditya Patwardhan
cddc6685f1 Merge branch 'feature/enable_support_for_deterministic_mode_and_ecdsa_192_v5.3' into 'release/v5.3'
Feature/enable support for deterministic mode and ecdsa 192 v5.3

See merge request espressif/esp-idf!40102
2025-06-25 14:37:58 +05:30
Island
d7ec47f336 Merge branch 'bugfix/fix_some_ble_build_fail_v5.3' into 'release/v5.3'
fix(ble/bluedroid): fix build failure when some BLE features are disabled (v5.3)

See merge request espressif/esp-idf!40129
2025-06-25 16:25:12 +08:00
Jiang Jiang Jian
abf31e3c1a Merge branch 'bugfix/wpa2_suiteb_192bit_reason_code_v5.3' into 'release/v5.3'
Sending disconnect event in connect fail and add enterprise check...

See merge request espressif/esp-idf!40098
2025-06-25 16:23:07 +08:00
Dong Heng
65c340e36f fix(esp_driver_cam): Fix DVP get trans buffer error 2025-06-25 15:53:34 +08:00
Island
118dd9cdc4 Merge branch 'docs/update_ble_feature_status_latest_v5.3' into 'release/v5.3'
Updated BLE feature status (v5.3)

See merge request espressif/esp-idf!38990
2025-06-25 14:35:05 +08:00
tarun.kumar
c8eeb28f5e fix(wifi): Sending disconnect event in connect fail and add enterprise check in Suite-B 192-bit certification 2025-06-25 11:59:17 +05:30
Zhang Shuxian
0378ed1cc1 docs: Update CN translation for ecdsa.rst 2025-06-25 10:51:13 +05:30
nilesh.kale
2a6e018ee8 feat: enable support for deterministic mode for esp32h2 2025-06-25 10:51:01 +05:30
Zhang Hai Peng
77a6c6c979 fix(ble/bluedroid): fix build failure when some BLE features are disabled
(cherry picked from commit a29cd4ad5f)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-06-25 11:53:36 +08:00
Geng Yu Chao
e3bac054e3 feat(ble): Add Bluetooth LE CTE connectionless AoA/AoD examples
(cherry picked from commit d8631ed3db)

Co-authored-by: Geng Yuchao <gengyuchao@espressif.com>
2025-06-25 11:49:28 +08:00
Wei Yuhan
86beac2bca Update BLE feature status table 2025-06-25 11:45:14 +08:00
Mahavir Jain
abe692eeaf Merge branch 'feat/adding_different_strategy_to_perform_tls_using_dynamic_feature_v5.3' into 'release/v5.3'
Add configuration to control dynamic buffer strategy in mbedtls (v5.3)

See merge request espressif/esp-idf!39921
2025-06-25 08:58:08 +05:30
Jiang Jiang Jian
717be30714 Merge branch 'bugfix/scan_stop_when_conenct_v5.3' into 'release/v5.3'
fix(esp_wifi): Fix locking in incorrect state when stop_scan is called after connect

See merge request espressif/esp-idf!39483
2025-06-25 10:45:12 +08:00
Shu Chen
3b10897b38 Merge branch 'feat/call_meshcop_mdns_publish_in_idf_v5.3' into 'release/v5.3'
Handle MeshCoP mDNS service in state change callback, update OpenThread upstream (v5.3)

See merge request espressif/esp-idf!40084
2025-06-25 02:28:41 +00:00
Xiao Xufeng
0cb4e3dfe1 fix(esp_flash): fixed issue of escaping boundary check
Also patched corresponding ROM functions
2025-06-25 01:40:40 +08:00
Michael (XIAO Xufeng)
a81456e0d0 Merge branch 'fix/fix_c3_c2_cache_freeze_soc_caps_issue_v5.3' into 'release/v5.3'
cache: fixed SOC_CACHE_FREEZE_SUPPORTED not defined on C3 / C2 issue (v5.3)

See merge request espressif/esp-idf!39884
2025-06-24 23:14:11 +08:00
hrushikesh.bhosale
636eb4b62f feat(mbedtls): Add configuration to control dynamic buffer strategy in mbedtls
Problem:
1. In low-memory scenarios, the dynamic buffer feature can fail due to memory fragmentation.
2. It requires a contiguous 16KB heap chunk, but continuous allocation and deallocation of
the RX buffer can lead to fragmentation.
3. If another component allocates memory between these operations, it can break up the
available 16KB block, causing allocation failure.

Solution:
1. Introduce configurable strategy for using dynamic buffers in TLS connections.
2. For example, convert RX buffers to static after the TLS handshake.
3. Allow users to select the strategy via a new field in the esp_http_client_cfg_t structure.
4. The strategy can be controlled independently for each TLS session.
2025-06-24 17:44:04 +05:30
Jiang Jiang Jian
2bfcab5047 Merge branch 'bugfix/connect_before_connected_v5.3' into 'release/v5.3'
fix(conn): wifi connect before connected status (v5.3)

See merge request espressif/esp-idf!40101
2025-06-24 19:18:55 +08:00
Xu Si Yu
72ae6874f3 feat(openthread): update border router lib
* esp-openthread: thread_zigbee/esp-openthread@16bfed5ec
* openthread: espressif/openthread@b945928d7
* esp-idf: espressif/esp-idf@5ca96df4a
2025-06-24 10:53:29 +00:00
Xu Si Yu
5ca96df4a2 feat(openthread): update openthread upstream 2025-06-24 18:47:43 +08:00
Xu Si Yu
70a35ac19b feat(openthread): handle MeshCoP mDNS service in state change callback 2025-06-24 18:47:43 +08:00
Xu Si Yu
8142a4d318 feat(openthread): optimize trel reception 2025-06-24 18:47:43 +08:00
Shu Chen
d8d15f0491 Merge branch 'ci/fix-submodule-cache_v5.3' into 'release/v5.3'
ci: remove cached submodule metadata while checking with github (v5.3)

See merge request espressif/esp-idf!40095
2025-06-24 10:45:57 +00:00
Wang Meng Yang
b0781fe4eb Merge branch 'bugfix/auth_collision_v5.3' into 'release/v5.3'
fix(bt/controller): Fixed bugs on LMP legacy and secure authentication collision (v5.3)

See merge request espressif/esp-idf!40012
2025-06-24 17:53:32 +08:00
nilesh.kale
19fcf0e073 feat: enabled ECDSA-P192 support for ESP32H2 2025-06-24 15:03:59 +05:30
ding huan
635c6520ef fix(conn): wifi connect before connected status 2025-06-24 17:07:06 +08:00
Fu Hanxi
f3b34988ea ci: remove cached submodule metadata while checking with github 2025-06-24 10:55:39 +02:00
Shreyas Sheth
04f68ec534 fix(esp_wifi): Fix locking in incorrect state when stop_scan is called after connect 2025-06-24 13:45:34 +05:30
armando
2784693977 fix(cache): fixed SOC_CACHE_FREEZE_SUPPORTED not defined on c3/c2 issue 2025-06-24 15:44:56 +08:00
liqigan
4b81bad597 fix(bt/controller): Fixed bugs on LMP legacy and secure authentication collision 2025-06-24 14:46:53 +08:00
morris
c60f52b724 Merge branch 'contrib/github_pr_16130_v5.3' into 'release/v5.3'
esp_adc: Release the peripheral after calibration (GitHub PR) (v5.3)

See merge request espressif/esp-idf!40003
2025-06-24 12:18:09 +08:00
morris
aed007c26a Merge branch 'camera/add_dvp_example_v5.3' into 'release/v5.3'
P4 DVP example and bugfix (v5.3)

See merge request espressif/esp-idf!39910
2025-06-24 11:53:11 +08:00
gaoxu
216cf17fc1 fix(adc): fix P4 ADC2 oneshot error and refactor apb claim macor 2025-06-24 10:33:59 +08:00
morris
f15d0e8bbb Merge branch 'refactor/migrate_i2c_driver_in_es7210_example_v5.3' into 'release/v5.3'
refactor(i2s_es7210): refactor es7210 example (v5.3)

See merge request espressif/esp-idf!40068
2025-06-23 21:55:15 +08:00
laokaiyao
d99b7f5701 refactor(i2s_es7210): refactor es7210 example 2025-06-23 20:39:26 +08:00
Jiang Jiang Jian
778e50116e Merge branch 'feat/impl_bt_coex_timer_event_v5.3' into 'release/v5.3'
feat(coex): impl bt coex timer event (Backport v5.3)

See merge request espressif/esp-idf!40028
2025-06-23 20:38:19 +08:00
Jiang Jiang Jian
4baebdcdc0 Merge branch 'bugfix/fix_some_external_coexist_issues_v5.3' into 'release/v5.3'
fix(coex): fix some external coexist issue(Backport v5.3)

See merge request espressif/esp-idf!40016
2025-06-23 19:55:18 +08:00
gaoxu
724c28c405 feat(cam): add cam sensor handle and deinit api 2025-06-23 16:17:59 +08:00
gaoxu
bdfcd6b2c1 docs(camera): add lcd_cam dvp driver docs for camera 2025-06-23 16:17:59 +08:00
gaoxu
1ba2bf3152 fix(cam): fix dvp do not generate clock 2025-06-23 16:17:59 +08:00
gaoxu
102d57f858 feat(cam): add esp32p4 dvp example 2025-06-23 16:17:57 +08:00
linruihao
c61ca564d7 fix(coex): Fix ble disconnect when coexisting wifi on esp32c2 2025-06-23 15:30:29 +08:00
linruihao
16436f5cd5 feat(coex): implement BT coex timer event 2025-06-23 15:30:16 +08:00
muhaidong
f6c0f937bd fix(coex): fix some external coexist issue 2025-06-23 15:15:03 +08:00
Jiang Jiang Jian
96b3442c6d Merge branch 'fix/retry_cnt_issue_for_non_pmf_sta_v5.3' into 'release/v5.3'
fix(failure_retry_cnt): Prevent NON-PMF STA retries if esp_wifi_disconnect() before handshake (Backport v5.3)

See merge request espressif/esp-idf!39545
2025-06-23 14:29:25 +08:00
Jiang Jiang Jian
792f5c177d Merge branch 'feat/socket_count_checks_v5.3' into 'release/v5.3'
feat(network/lwip): Add checks for maximum socket count (v5.3)

See merge request espressif/esp-idf!38866
2025-06-23 13:56:42 +08:00
morris
0e9e85f993 Merge branch 'refactor/upgrade_i2s_codec_example_dependency_v5.3' into 'release/v5.3'
refactor(i2s_es8311): refactor es8311 example (v5.3)

See merge request espressif/esp-idf!40051
2025-06-23 13:41:10 +08:00
laokaiyao
f5422fcf0b refactor(i2s_es8311): remove esp-box bsp support 2025-06-23 12:20:44 +08:00
laokaiyao
84e0c81583 refactor(i2s_es8311): refactor es8311 example 2025-06-23 12:03:19 +08:00
Jiang Jiang Jian
9a8d1bf38f Merge branch 'bugfix/incorrect_sae_pk_flag_v5.3' into 'release/v5.3'
Disable SAE-PK indication in Assoc Request when not configured (Backport v5.3)

See merge request espressif/esp-idf!39076
2025-06-23 11:18:25 +08:00
Jiang Jiang Jian
7d6c319945 Merge branch 'docs/fetch-all-tags-while-deploying_v5.3' into 'release/v5.3'
docs: fetch all tags while deploying (v5.3)

See merge request espressif/esp-idf!40007
2025-06-23 10:53:14 +08:00
Jiang Jiang Jian
95f455cd97 Merge branch 'feat/support_fallback_to_default_pattern_when_psram_id_not_match_v5.3' into 'release/v5.3'
psram: support fallback to use default driver pattern when id isn't match (v5.3)

See merge request espressif/esp-idf!39996
2025-06-23 10:52:35 +08:00
Jiang Jiang Jian
dc625ba12b Merge branch 'refactor/p4_touch_channel_increase_1_v5.3' into 'release/v5.3'
refactor(touch): adjust touch channel number on P4 from 0-13 to 1-14 (v5.3)

See merge request espressif/esp-idf!39793
2025-06-23 10:50:12 +08:00
Jiang Jiang Jian
7597b556a0 Merge branch 'refactor/change_mmap_cache_lock_type_v5.3' into 'release/v5.3'
mmu: use cache freeze for mmap APIs (v5.3)

See merge request espressif/esp-idf!39787
2025-06-23 10:49:55 +08:00
Island
c0783d6f05 Merge branch 'bugfix/fixed_set_conn_mode_assert_on_esp32c2_v5.3' into 'release/v5.3'
fix(ble): fixed assertion issue in connection state on ESP32C2-ECO4 (v5.3)

See merge request espressif/esp-idf!40022
2025-06-23 10:48:23 +08:00
Jiang Jiang Jian
0c7bd3e961 Merge branch 'fix/lp_periph_use_int_raw_v5.3' into 'release/v5.3'
change(lp-core): Update LP I2C and LP UART drivers to use raw interrupt status (v5.3)

See merge request espressif/esp-idf!39250
2025-06-23 10:42:43 +08:00
Tomáš Rohlínek
f27f0b10c7 feat(network/lwip): Add checks for maximum socket count 2025-06-23 10:41:15 +08:00
wuzhenghui
bd79398ec6 feat(esp_hw_support): enable wakeup tests for more chips 2025-06-23 10:01:24 +08:00
wuzhenghui
34035452af fix(hal): fix pmu_ll_ext1_clear_wakeup_status API 2025-06-23 10:00:52 +08:00
Roland Dobai
5028d9e0fa Merge branch 'fix/idf_tools_install_tool_version_v5.3' into 'release/v5.3'
fix(tools): fixed command `idf_tools.py install tool@version` (v5.3)

See merge request espressif/esp-idf!40039
2025-06-20 16:05:54 +02:00
Roland Dobai
4b013690b2 Merge branch 'ci/add-kconfig-pre-commit_v5.3' into 'release/v5.3'
docs:fix spelling/"casing" of the word "Kconfig" (v5.3)

See merge request espressif/esp-idf!40018
2025-06-20 15:52:16 +02:00
Marek Fiala
17346297e6 fix(tools): idf_tools.py uninstall decide based on preferred tool version
idf_tools.py uninstall now doesn't take only recommended version, but
makes the decision based on preferred installed versions.
2025-06-20 13:25:51 +02:00
Marek Fiala
207d728348 test(tools): Added test for installing supported tool version
Added test_export_supported_version_cmake in `test_idf_tools.py`,
that installs and exports supported version of tool - cmake.
2025-06-20 13:25:51 +02:00
Marek Fiala
dd60e20ea0 fix(tools): idf_tools.py install tool@version 2025-06-20 13:25:51 +02:00
Jiang Jiang Jian
231ee11bab Merge branch 'fix/update_dfs_compensate_table_v5.3' into 'release/v5.3'
fix(esp_hw_support): update esp32 dfs table to make the timing drift always negative (v5.3)

See merge request espressif/esp-idf!39898
2025-06-20 17:21:12 +08:00
Sarvesh Bodakhe
3f23211fe4 fix(wif): Prevent NON-PMF STA retries if esp_wifi_disconnect() before handshake
Ensure that NON-PMF station does not attemp connection retries when
'esp_wifi_disconnect()' is called before the 4-way-handshake completes,
even if 'failure_retry_cnt' allows retries.
2025-06-20 13:23:02 +05:30
Zhao Wei Liang
e98fd57bea fix(ble): fixed assertion issue in connection state on ESP32C2-ECO4
(cherry picked from commit 83fd955f11)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-06-20 15:31:29 +08:00
Jan Beran
ec612efa03 docs: Fix spelling of the word "Kconfig" 2025-06-20 09:19:43 +02:00
Fu Hanxi
e0703dfec8 docs: fetch all tags while deploying 2025-06-20 08:19:59 +02:00
Jiang Jiang Jian
84ddb4101f Merge branch 'fix/bootloader_reserved_area_alignment_v5.3' into 'release/v5.3'
fix(esp_system): fix RTC reserved area alignment in the linker script (backport v5.3)

See merge request espressif/esp-idf!39252
2025-06-20 10:57:11 +08:00
Jiang Jiang Jian
d2b851d72c Merge branch 'bugfix/wps_pbc_overlap_uuid_v5.3' into 'release/v5.3'
fix(wpa_supplicant): Ensure pbc_overlap event is posted correctly (Backport v5.3)

See merge request espressif/esp-idf!39057
2025-06-20 10:41:15 +08:00
Deomid rojer Ryabkov
704a4fd610 fix(esp_adc): Release the peripheral after calibration 2025-06-20 10:14:38 +08:00
armando
df9659dda2 feat(psram): support fallback to use default driver pattern when id isn't match 2025-06-20 09:38:43 +08:00
Jan Beran
88fec757d1 change: detect misspelled Kconfig[.projbuild] file names
Original issue: https://github.com/espressif/esp-idf-kconfig/issues/14
2025-06-19 16:05:10 +08:00
Jiang Jiang Jian
575007a244 Merge branch 'bugfix/ag_data_callback_cleared_after_deinit_v5.3' into 'release/v5.3'
fix(bt): Fixed HFP AG data callback cleared after profile is re-initialized (v5.3)

See merge request espressif/esp-idf!39975
2025-06-19 10:31:52 +08:00
Jiang Jiang Jian
5545ae09e0 Merge branch 'bugfix/onewire_internal_pullup_v5.3' into 'release/v5.3'
fix(rmt): enable internal pull-up resistor for onewire bus (v5.3)

See merge request espressif/esp-idf!39931
2025-06-19 10:31:04 +08:00
akshat
784d4d63ef fix(wpa_supplicant): Disconnect from previous AP while initiating WPS 2025-06-19 10:29:18 +08:00
akshat
fa2769f428 fix(wpa_supplicant): Detect PBC overlap even when UUID is null 2025-06-19 10:29:18 +08:00
akshat
7522fbafe7 fix(wpa_supplicant): Ensure pbc_overlap event is posted correctly
Preserves the pbc_overlap flag to allow proper event posting.
This ensures that pbc overlap detection functions as expected.
2025-06-19 10:29:18 +08:00
akshat
aa81dc647b bugfix(wifi): Fix incorrect SAE-PK advertisement in assoc request 2025-06-19 10:27:21 +08:00
Wang Mengyang
c71431df1b fix(bt): Fixed HFP AG data callback cleared after profile is re-initialized 2025-06-19 07:30:45 +08:00
Shu Chen
32e479c20f Merge branch 'fix/rx_abort_next_op_v5.3' into 'release/v5.3'
fix(openthread): disable rx_abort events in next operation (v5.3)

See merge request espressif/esp-idf!39960
2025-06-18 12:32:15 +00:00
Rahul Tank
be58299dcd Merge branch 'fix/gatt_cache_peer_init_incl_svc_v5.3' into 'release/v5.3'
fix(nimble): Added parameter in peer_init for included service allocation (v5.3)

See merge request espressif/esp-idf!39914
2025-06-18 16:25:14 +05:30
Aditya Patwardhan
96567cb17b Merge branch 'bugfix/http_client_test_failure_v5.3' into 'release/v5.3'
fix: update root certificate for postman-echo endpoint (v5.3)

See merge request espressif/esp-idf!39848
2025-06-18 14:16:04 +05:30
Tan Yan Quan
83e7d5fbd8 feat(openthread): use apb_freq_max mode for esp_openthread_sleep pm lock 2025-06-18 15:35:15 +08:00
Xu Si Yu
f5f6a217a3 feat(openthread): add some configurations in Kconfig 2025-06-18 15:35:15 +08:00
Tan Yan Quan
0535298ef7 fix(openthread): disable rx_abort events in next operation 2025-06-18 15:35:15 +08:00
Island
a5e7c6c7a7 Merge branch 'feat/ble_mesh_micellaneous_fix_v5.3' into 'release/v5.3'
Feat/ble mesh micellaneous fix (v5.3)

See merge request espressif/esp-idf!39636
2025-06-18 10:17:04 +08:00
Sergei Silnov
d2cb5330ed ci: Use new release-zips-action with shallow history 2025-06-17 11:27:49 +02:00
Omar Chebib
9a3fa8be12 fix(esp_hw_support): clear the memory protection interrupt status on boot
Fixes https://github.com/espressif/esp-idf/issues/15359
2025-06-17 16:50:21 +08:00
Omar Chebib
67b64ce555 fix(esp_system): fix RTC reserved area alignment in the linker script
Make sure the size of the RTC reserved area complies with the alignment requirement.

Closes https://github.com/espressif/esp-idf/issues/13082
2025-06-17 16:50:10 +08:00
morris
99562576f1 fix(rmt): enable internal pull-up resistor for onewire bus 2025-06-17 15:32:54 +08:00
Astha Verma
8fecf4b1c2 fix(nimble): Added parameter in peer_init for included service allocation 2025-06-17 11:58:31 +05:30
Rahul Tank
fed967df46 Merge branch 'feat/auto_security_initiate_v5.3' into 'release/v5.3'
feat(nimble): Automatically initiate security if a GATT service request fails (v5.3)

See merge request espressif/esp-idf!39865
2025-06-17 11:47:02 +05:30
morris
9f5cea4dd9 Merge branch 'fix/jpeg_encode_msync_v5.3' into 'release/v5.3'
fix(jpeg): Fix wrong parameter in jpeg encoder msync ,eliminate random black line on jpeg decoder (backport v5.3)

See merge request espressif/esp-idf!39889
2025-06-17 10:33:07 +08:00
morris
074a7306d4 Merge branch 'docs/p4_eco1_usb_pins_backport_v5.3' into 'release/v5.3'
docs(usb): Update ESP32-P4 USB pins to MP version (backport to v5.3)

See merge request espressif/esp-idf!39904
2025-06-17 10:32:26 +08:00
gaoxu
6eaba4e3f7 fix(cam): fix dvp can not get cam_buffer 2025-06-17 09:33:34 +08:00
gaoxu
e48a4147a0 fix(cam): decrease i2c sccb frequency for camera 2025-06-17 09:33:34 +08:00
Tomas Rezucha
6d28c1a5ba docs(usb): Update ESP32-P4 USB pins to MP version
Closes https://github.com/espressif/esp-idf/issues/16136
2025-06-16 16:39:08 +02:00
Sumeet Singh
0cdcf41916 feat(nimble): Added two GATT features:
1. Automatically initiate security if a GATT service request fails
2. Encryption, Authentication, and Authorization requirement on CCCD
2025-06-16 17:00:47 +05:30
Rahul Tank
cf343ab4e8 Merge branch 'fix/nimble_pr_issues_v5.3' into 'release/v5.3'
fix(nimble): Add fixes for compilation issues in nimble (v5.3)

See merge request espressif/esp-idf!39843
2025-06-16 15:45:08 +05:30
Island
84bbb92b9f Merge branch 'feat/add_ble_dtm_on_cert_test_v5.3' into 'release/v5.3'
feat(ble): add dtm test code to cert test example on ESP32-C6 (v5.3)

See merge request espressif/esp-idf!39833
2025-06-16 17:40:48 +08:00
wuzhenghui
80267209c7 change(bt): increase BTDM_MODEM_WAKE_UP_DELAY 2025-06-16 17:27:08 +08:00
wuzhenghui
e25f0faf89 change(esp_timer): make esp_timer timming drift always be negative 2025-06-16 17:27:08 +08:00
wuzhenghui
cc10f1e54a fix(esp_hw_support): config lact in critical 2025-06-16 17:27:08 +08:00
C.S.M
b9364776e7 bugfix(jpeg): eliminate random black line on jpeg decoder 2025-06-16 14:37:30 +08:00
C.S.M
7409674b09 fix(jpeg): Fix wrong parameter in jpeg encoder msync 2025-06-16 14:37:30 +08:00
laokaiyao
cd3572c55a fix(touch): fixed touch interval freq unit convert issue 2025-06-13 19:44:38 +08:00
laokaiyao
2cd4640666 fix(touch): fixed incorrect interval clock source 2025-06-13 19:44:38 +08:00
laokaiyao
565267ca34 refactor(touch): adjust touch channel number on P4 from 0-13 to 1-14 2025-06-13 19:44:38 +08:00
Rahul Tank
34868cf387 Merge branch 'bugfix/pawr_sync_v5.3' into 'release/v5.3'
fix(nimble): memset the sync structs to prevent uncertainty for ext_adv reports (v5.3)

See merge request espressif/esp-idf!39717
2025-06-13 15:24:59 +05:30
Marius Vikhammer
fd806756ac Merge branch 'change/update-esp-event-register-doxygen_v5.3' into 'release/v5.3'
change(esp-event): Update the doxygen comment of esp_event_handler_register (v5.3)

See merge request espressif/esp-idf!39855
2025-06-13 17:17:16 +08:00
Guillaume Souchere
ede772445f change(esp-event): Update the doxygen comment of esp_event_handler_register
Add a comment to specify what happens when registering a handler several times
to the same event.
2025-06-13 08:22:38 +02:00
Mahavir Jain
a9c62e02e4 fix: update root certificate for postman-echo endpoint
The certificate chain for postman-echo endpoint has switched to
Let's Encrypt root CA
2025-06-13 11:05:57 +05:30
zwl
f96430915e feat(ble): add dtm test code to cert test example on ESP32-C6 2025-06-13 11:46:39 +08:00
Island
96c50f997c Merge branch 'bugfix/fix_blecibr25_119_v5.3' into 'release/v5.3'
fix(ble/bluedroid): Fixed extended adv restart failure during reconnection (v5.3)

See merge request espressif/esp-idf!39776
2025-06-13 10:59:27 +08:00
morris
f2e7b746d6 Merge branch 'docs/fix_p4_usb_jtag_pins_v5.3' into 'release/v5.3'
docs(jtag): fix esp32p4 usb jtag pins (v5.3)

See merge request espressif/esp-idf!39158
2025-06-13 10:47:05 +08:00
morris
83b9e29158 Merge branch 'fix/fix_xip_psram_ptr_check_v5.3' into 'release/v5.3'
psram: fixed psram ptr check issue under xip_psram condition for ESP32P4 (v5.3)

See merge request espressif/esp-idf!39734
2025-06-13 10:44:40 +08:00
Rahul Tank
c3e556b510 fix(nimble): Add fixes for compilation issues in nimble
1. Fix compile failures when CSFCS is 0
2. Wrap BLE service API with extern "C"
2025-06-12 20:58:29 +05:30
Rahul Tank
42856071ea Merge branch 'bugfix/fix_kconfig_names_v5.3' into 'release/v5.3'
fix(nimble): Modified Kconfig information to make it more user friendly (v5.3)

See merge request espressif/esp-idf!39645
2025-06-12 20:28:49 +05:30
Rahul Tank
9fc65dca56 Merge branch 'feat/ram_optimization_v5.3' into 'release/v5.3'
fix(nimble): Add support to minimize ram consumption (v5.3)

See merge request espressif/esp-idf!39620
2025-06-12 20:23:45 +05:30
Island
4009aa6ed0 Merge branch 'feat/reduce_bin_size_and_iram_for_ble_rom_code_v5.3' into 'release/v5.3'
feat(ble/controller): Reduce bin size and IRAM for BLE rom code on ESP32-C3 and ESP32-S3 (v5.3)

See merge request espressif/esp-idf!39451
2025-06-12 21:51:51 +08:00
Roland Dobai
16dcf5012d Merge branch 'fix/enable_remove_requirements_file_v5.3' into 'release/v5.3'
fix(tools): handle missing `requirements.*.txt` files for enabled features (v5.3)

See merge request espressif/esp-idf!39804
2025-06-11 15:04:00 +02:00
Marek Fiala
aff708b067 fix(tools): Enabled removing requirements.* files 2025-06-11 11:15:33 +02:00
armando
7a7b1d2707 feat(mmu): use cache freeze for mmap apis 2025-06-11 14:50:45 +08:00
chenjianhua
18597b1139 feat(ble/bluedroid): Support anonymous address type for white list 2025-06-11 11:11:07 +08:00
chenjianhua
6a2e6d8d98 feat(ble/bluedroid): Add config for BLE vendor hci command and event 2025-06-11 11:11:01 +08:00
chenjianhua
7b613ab0a9 feat(ble/bluedroid): Support BLE vendor event reporting with params 2025-06-11 11:10:55 +08:00
chenjianhua
2e63a39e41 fix(bt/bluedroid): Fixed BLE connection active count getting 2025-06-11 11:10:48 +08:00
Chen Jian Hua
bfc8495686 fix(ble/bluedroid): Fixed extended adv restart failure during reconnection
(cherry picked from commit 6392180813)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-06-10 21:33:27 +08:00
Island
4a01630b37 Merge branch 'change/ble_update_lib_20250606_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20250606 - Update ESP BLE Controller Lib (v5.3)

See merge request espressif/esp-idf!39738
2025-06-10 11:05:54 +08:00
zhanghaipeng
7eac7d773c fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(4713a69)
- Fixed double free exception during BLE init under low memory
2025-06-10 10:31:34 +08:00
Alexey Gerenkov
e64f3d7559 Merge branch 'ci/fix-custom-oocd-setting_v5.3' into 'release/v5.3'
ci: select OpenOCD binary based on runner (v5.3)

See merge request espressif/esp-idf!39378
2025-06-09 23:17:49 +08:00
Island
d1159f634d Merge branch 'bugfix/fix_ble_smp_fail_0x82_v5.3' into 'release/v5.3'
Bugfix/fix ble smp fail 0x82 (v5.3)

See merge request espressif/esp-idf!39661
2025-06-09 14:38:48 +08:00
morris
86cb813f1d Merge branch 'docs/add_doc_link_for_esp32p4_v5.3' into 'release/v5.3'
docs: Update hw-reference/index.rst for esp32p4 (v5.3)

See merge request espressif/esp-idf!39731
2025-06-09 11:50:50 +08:00
Zhao Wei Liang
bd57080585 fix(ble): change the default ble cca thresh on ESP32-C2
(cherry picked from commit a10696d7e1)

Co-authored-by: cjin <jinchen@espressif.com>
2025-06-09 11:04:17 +08:00
Zhao Wei Liang
37b2119b5d fix(ble): change the default ble cca thresh on ESP32-H2
(cherry picked from commit a2fab0ad60)

Co-authored-by: cjin <jinchen@espressif.com>
2025-06-09 11:04:15 +08:00
Zhao Wei Liang
5a2166c96b fix(ble): change the default ble cca thresh on ESP32-C6
(cherry picked from commit 581521526b)

Co-authored-by: cjin <jinchen@espressif.com>
2025-06-09 11:04:13 +08:00
Zhao Wei Liang
8807b30463 fix(ble): change ld file on ESP32-C2
(cherry picked from commit 6c5bff1bd8)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-06-09 11:04:11 +08:00
Zhao Wei Liang
4eca2abbaf fix(ble): fixed an occasional assertion issue during sync on ESP32-C6
(cherry picked from commit 3c8ba488e0)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-06-09 11:04:09 +08:00
Zhao Wei Liang
15b7fa98c1 change(ble): [AUTO_MR] Update lib_esp32c2 to 7f72c031
(cherry picked from commit 4be18a2469)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-06-09 11:04:07 +08:00
Zhao Wei Liang
65ea7eb2c8 change(ble): [AUTO_MR] Update lib_esp32c6 to 35fe65f4
(cherry picked from commit 57c8d23800)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-06-09 11:04:04 +08:00
Zhao Wei Liang
3f9a7589e1 change(ble): [AUTO_MR] Update lib_esp32h2 to 35fe65f4
(cherry picked from commit dbf7835a6b)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-06-09 11:04:02 +08:00
armando
29a7e5f35f fix(psram): fixed psram ptr check under xip_psram condition
Closes https://github.com/espressif/esp-idf/pull/15999
Closes https://github.com/espressif/esp-idf/issues/15997
2025-06-09 10:34:44 +08:00
John Boiles
9faf8c3a52 fix(memory-utils): Add _instruction_reserved_start/end to esp_psram_check_ptr_addr
Adds missing range check that can be used when SPIRAM_XIP_FROM_PSRAM is enabled.
2025-06-09 10:34:40 +08:00
John Boiles
a2b21a9070 fix(freertos): Use ESP_EARLY_LOGE in vPortTLSPointersDelCb for RISCV
Using ESP_LOG* in this function causes a crash
2025-06-09 10:34:37 +08:00
Zhang Shuxian
4611b10db7 docs: Update hw-reference/index.rst for esp32p4 2025-06-09 10:27:48 +08:00
Rahul Tank
f506bf2777 Merge branch 'bugfix/add_missing_deinit_call_v5.3' into 'release/v5.3'
fix(nimble): Add invocation for mempool_deinit (v5.3)

See merge request espressif/esp-idf!39672
2025-06-07 18:36:04 +05:30
Abhinav Kudnar
009ed01b68 fix(nimble): memset the sync structs to prevent uncertainty for ext_adv reports 2025-06-06 17:14:29 +05:30
Jiang Jiang Jian
37acb543a7 Merge branch 'bugfix/supplicant_analyzer_fixes_v5.3' into 'release/v5.3'
Bugfix/supplicant analyzer fixes (v5.3)

See merge request espressif/esp-idf!39456
2025-06-06 19:04:08 +08:00
luoxu
9b9b5c335f feat(ble_mesh): update lib to f15b27e2d2 2025-06-06 14:37:08 +08:00
luoxu
a99d369dc2 fix(ble_mesh): fixed issue with recv ntf before ccc done 2025-06-06 14:35:16 +08:00
luoxu
3fd78bf329 fix(ble_mesh): fixed proxy server might send segment message with incorrect format
refer commit: 7738bca124
2025-06-06 14:35:08 +08:00
Wang Meng Yang
7242379726 Merge branch 'change/opt_hid_device_connect_description_v5.3' into 'release/v5.3'
docs(bt/bluedroid): Updated HID Device connect API description (v5.3)

See merge request espressif/esp-idf!39605
2025-06-06 09:25:11 +08:00
Sergei Silnov
d8333672f0 Merge branch 'ci/disable-plugin-idf_ci_v5.3' into 'release/v5.3'
ci: disable idf-ci plugin (v5.3)

See merge request espressif/esp-idf!39667
2025-06-05 06:12:12 -03:00
morris
3c5910db24 Merge branch 'fix/s2_adc_cali_loss_resolution_v5.3' into 'release/v5.3'
fix(adc): fix s2 cali loss resolution (v5.3)

See merge request espressif/esp-idf!38596
2025-06-05 14:36:48 +08:00
gaoxu
a68af096e6 fix(adc): fix s2 cali loss resolution 2025-06-05 11:31:59 +08:00
morris
79cfb2630c Merge branch 'ci/fix_c5_related_build_failure' into 'release/v5.3'
ci(esp32c5): bypass the build failure

See merge request espressif/esp-idf!39504
2025-06-05 11:30:13 +08:00
Jiang Jiang Jian
b22ca79669 Merge branch 'bugfix/add_more_checks_when_receiving_espnow_v5.3' into 'release/v5.3'
fix(wifi): Added more check when receiving espnow data (v5.3)

See merge request espressif/esp-idf!39520
2025-06-05 11:07:53 +08:00
Rahul Tank
1a6c26d7b7 Merge branch 'feat/nimble_ancs_final_v5.3' into 'release/v5.3'
fix(nimble): Added support for ANCS in nimble (v5.3)

See merge request espressif/esp-idf!39657
2025-06-04 19:13:42 +05:30
Rahul Tank
2197b5b066 fix(nimble): Add invocation for mempool_deinit 2025-06-04 17:01:09 +05:30
Fu Hanxi
e97adbf002 ci: disable idf-ci plugin
this plugin will be re-enabled with compatible code in !38755
2025-06-04 13:18:40 +02:00
Zhang Hai Peng
c053f1d908 fix(ble/bluedroid): Fixed BLE SMP state machine inconsistency on disconnection
(cherry picked from commit 99121258d4)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-06-04 17:13:34 +08:00
Zhang Hai Peng
504818372c feat(ble/bluedroid): Include SMP state in BLE status reporting
(cherry picked from commit de9a367f13)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-06-04 17:13:32 +08:00
Astha Verma
722a42f6e4 fix(nimble): Added support for ANCS in nimble 2025-06-04 14:29:33 +05:30
Island
8ef869122d Merge branch 'bugfix/fix_ble_crash_when_check_send_pkts_v5.3' into 'release/v5.3'
fix(ble/bluedroid): Fixed null pointer assert in l2c_link_check_send_pkts (v5.3)

See merge request espressif/esp-idf!39597
2025-06-04 16:53:22 +08:00
Shu Chen
39515e2273 Merge branch 'feat/and_function_to_exit_ot_mainloop_v5.3' into 'release/v5.3'
feat(openthread): add a function to exit openthread mainloop safely (v5.3)

See merge request espressif/esp-idf!39612
2025-06-04 08:24:13 +00:00
Rahul Tank
daeca6d07b fix(nimble): Modified Kconfig information to make it more user friendly 2025-06-04 10:44:35 +05:30
Island
45ad092517 Merge branch 'fix/ble_log_spi_out_timer_delete_v5.3' into 'release/v5.3'
fix(ble): set timer handle to null after deletion (v5.3)

See merge request espressif/esp-idf!39558
2025-06-04 11:26:51 +08:00
laokaiyao
39591137c8 ci(esp32c5): bypass the build failure 2025-06-04 11:21:28 +08:00
morris
d11bc380ae Merge branch 'test/c61_disable_build_test_v5.3' into 'release/v5.3'
test(ci): disable c61 helloworld build

See merge request espressif/esp-idf!39629
2025-06-03 22:06:00 +08:00
Roland Dobai
bb24b4fdd5 Merge branch 'fix/gen_soc_caps_v5.3' into 'release/v5.3'
change: config options of the same name must have the same type (v5.3)

See merge request espressif/esp-idf!39571
2025-06-03 15:38:25 +02:00
wanckl
85e28b74aa test(ci): disable c61 helloworld build 2025-06-03 19:49:43 +08:00
Shreeyash
ba39a51377 fix(nimble): Add support to minimize ram consumption 2025-06-03 16:07:10 +05:30
Xu Si Yu
2be5e88549 feat(openthread): add a function to exit openthread main loop safely 2025-06-03 16:45:37 +08:00
Island
eb5c41678f Merge branch 'fix/ble_mesh_solic_tx_pdu_fix_v5.3' into 'release/v5.3'
fix(ble_mesh): fixed issues with proxy solic pdu adv (v5.3)

See merge request espressif/esp-idf!39526
2025-06-03 15:53:55 +08:00
liqigan
f20f53f153 docs(bt/bluedroid): Updated HID Device connect API description
Closes https://github.com/espressif/esp-idf/issues/16020
2025-06-03 15:38:17 +08:00
morris
15bc442a88 Merge branch 'feat/usb-explicit-fifo-config_v5.3' into 'release/v5.3'
feat(usb/hal): Add HAL API to configure custom FIFO layout (backport v5.3)

See merge request espressif/esp-idf!39264
2025-06-03 14:35:32 +08:00
Zhang Hai Peng
d9fd25fc94 fix(ble/bluedroid): Fixed null pointer assert in l2c_link_check_send_pkts
(cherry picked from commit 8150573012)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-06-03 12:13:32 +08:00
morris
fa230832a3 Merge branch 'feature/usb_host_ext_hub_collective_backport_v5.3' into 'release/v5.3'
feat(usb_host): External Hub collective backport to v5.3

See merge request espressif/esp-idf!39578
2025-06-03 11:40:26 +08:00
zhangyanjiao
d6ec5a5225 fix(wifi): Added more check when receiving espnow data 2025-06-03 11:07:59 +08:00
Jiang Jiang Jian
cb1e34073d Merge branch 'bugfix/fix_sta_connection_info_error_on_c5_c6_v5.3' into 'release/v5.3'
fix(wifi): fix the issue that sta connection info loss lr info on C5/C6 (v5.3)

See merge request espressif/esp-idf!39440
2025-06-03 10:57:54 +08:00
Roman Leonov
e550fb11c3 fix(ext_hub): Added processing waiting_release flag while dev changed to IDLE
11382a2a fix(ext_hub): Added processing waiting_release flag while dev changed to IDLE

Co-authored-by: Roman Leonov <roman.leonov@espressif.com>
2025-06-02 11:45:29 +02:00
Roman Leonov
59aa1cbaf8 refactor(ext_hub): Device release (allows to run usb_host test with ext hub)
754d357f refactor(ext_hub): Fixed device release, optimized the order of closing usbh device
fc61875a refactor(ext_hub): Pospone the device release, if device is not IDLE
3fd17b8b refactor(hub): Applied new ext_hub api, refactor func names
3003362b refactor(usb_host): Cancel hub porpagation to the user, rename non-critical func
19ce9ed6 refactor(test_usb_host_async): Added host_lib_task finish notification
f238d75b refactor(ext_port): Remove the error verification, as error will be handled in ext hub driver

Co-authored-by: Roman Leonov <roman.leonov@espressif.com>
2025-06-02 11:45:19 +02:00
Jan Beran
2ee0b6c4dd change(gen_soc_caps_kconfig): check if config options have the same type
Also introduce ignore pragma to prevent some #defines from .h files to
be translated to Kconfig files.
2025-06-02 10:21:36 +02:00
morris
da5f469d16 Merge branch 'refactor/improve_p4_psram_timing_tuning_point_selection_v5.3' into 'release/v5.3'
mspi: improve p4 psram timing tuning point selection (v5.3)

See merge request espressif/esp-idf!38193
2025-05-31 13:54:31 +08:00
Zhou Xiao
75c85605df fix(ble): set timer handle to null after deletion
(cherry picked from commit 1614e71eb6)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-30 19:53:33 +08:00
Wang Meng Yang
ede2d093bf Merge branch 'feat/add_avrcp_init_state_event_v5.3' into 'release/v5.3'
feat(bt/bluedroid): Add events to indicate the initialization states of AVRCP(v5.3)

See merge request espressif/esp-idf!39536
2025-05-30 18:42:21 +08:00
Mahavir Jain
064a724466 Merge branch 'feat/httpd_register_uri_handler_strdup_failure_case_check_v5.3' into 'release/v5.3'
Handling httdp_register_uri_handler() strdup function failure case check (v5.3)

See merge request espressif/esp-idf!39513
2025-05-30 10:04:14 +05:30
luoxu
08852439ce fix(ble_mesh): fixed issues with proxy solic pdu adv 2025-05-30 11:09:29 +08:00
xiongweichao
00512cd39a feat(bt/bluedroid): Add events to indicate the initialization states of AVRCP 2025-05-30 10:14:32 +08:00
Wang Meng Yang
ed87d1d3c7 Merge branch 'fix/incorrect_setting_of_sco_packet_type_mask_v5.3' into 'release/v5.3'
fix(bt): fixed incorrect mask was used to exclude sco packets (backport v5.3)

See merge request espressif/esp-idf!39501
2025-05-30 07:12:16 +08:00
Rahul Tank
62bedaceaa Merge branch 'bugfix/add_ci_files_v5.3' into 'release/v5.3'
fix(nimble): Add CI files for base configurations (v5.3)

See merge request espressif/esp-idf!39243
2025-05-29 14:06:27 +05:30
zhangyanjiao
d08c56a92f fix(wifi): fix the issue that sta connection info loss lr info on C5/C6 2025-05-29 14:25:36 +08:00
hrushikesh.bhosale
6559ae7ec2 feat(http_server): httpd register handler strdup failure case check
In httpd_register_uri_handler api, for the strdup function failure case was not
checked and not returned any error by freeing previously allocated memory, if the memory
allocation for strdup function did not gets successful.

Closes https://github.com/espressif/esp-idf/issues/15878
2025-05-29 11:50:27 +05:30
Mahavir Jain
d2f79c406b Merge branch 'fix/suppress_cert_bundle_serial_number_warning_v5.3' into 'release/v5.3'
fix(mbedtls/esp_crt_bundle): Suppress non-negative serial number warning (v5.3)

See merge request espressif/esp-idf!39403
2025-05-29 10:29:03 +05:30
gongyantao
96b9efad27 fix(bt): fixed incorrect mask was used to exclude sco packets 2025-05-29 09:55:48 +08:00
Rahul Tank
1db2b14f40 fix(nimble): Added CI files for various configurations 2025-05-28 21:49:45 +05:30
Island
1dd628e4a0 Merge branch 'bugfix/fix_send_delete_link_key_cmd_1_v5.3' into 'release/v5.3'
Bugfix/fix send delete link key cmd 1 (v5.3)

See merge request espressif/esp-idf!39444
2025-05-28 10:58:42 +08:00
armando
4c0dcf94ed refactor(mspi): improve p4 timing tuning delayline configurations 2025-05-28 02:56:32 +00:00
armando
e8dc8b5388 refactor(mspi): improved timing tuning max consecutive success points calculation 2025-05-28 02:56:32 +00:00
Island
4e7e58f458 Merge branch 'fix/ble_mesh_micellaneous_update_v5.3' into 'release/v5.3'
Fix/ble mesh micellaneous update v5.3

See merge request espressif/esp-idf!39461
2025-05-28 10:37:40 +08:00
Island
61cc298f77 Merge branch 'feat/ble_log_spi_out_dev_phase_3_v5.3' into 'release/v5.3'
Feat/ble log spi out dev phase 3 (v5.3)

See merge request espressif/esp-idf!39354
2025-05-28 10:35:50 +08:00
Kapil Gupta
541628045a Merge branch 'fix/rrm_config_set_v5.3' into 'release/v5.3'
Set rrm config condition in case RRM monitoring is enabled

See merge request espressif/esp-idf!39432
2025-05-27 18:32:55 +05:30
luoxu
06992821d7 feat(ble_mesh): update lib to bbb57d10f9 2025-05-27 20:11:21 +08:00
luoxu
70d888ddb0 feat(ble_mesh): Change the type of rpl size from uint8 to uint16 2025-05-27 16:59:45 +08:00
luoxu
cf321a1647 fix(ble_mesh): update ble 50 macro on unsupported version 2025-05-27 16:59:45 +08:00
Kapil Gupta
7a07743ecc ci(esp_wifi): Extend eloop test to verify wifi deinit properly 2025-05-27 13:45:32 +05:30
Kapil Gupta
56b6b03e57 fix(esp_wifi): Fixed some concurrency issues in eloop deinit 2025-05-27 13:45:27 +05:30
Kapil Gupta
bc9d6c093f fix(esp_wifi): Add eloop blocking call API for public APIs 2025-05-27 13:45:20 +05:30
Kapil Gupta
7cfa2617af fix(esp_wifi): Fixed static analyzer issues 2025-05-27 13:39:46 +05:30
Kapil Gupta
4ab256a441 fix(esp_wifi): Disble IP renew skip by default 2025-05-27 13:39:46 +05:30
Zhi Wei Jian
ad523cf3ff feat(ble/controller): Reduce bin size and IRAM for BLE rom code
(cherry picked from commit 1d739291ca)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2025-05-27 16:03:29 +08:00
luoxu
bd4fee986c fix(ble_mesh): fixed issue where private beacon used incorrect adv type 2025-05-27 15:31:49 +08:00
luoxu
6df436f63c fix(ble_mesh): fixed some issues with ble50 2025-05-27 15:31:43 +08:00
luoxu
6ff7b65c34 feat(ble_mesh): Remote Provisioning Server UUID Matchs Supported 2025-05-27 15:31:31 +08:00
luoxu
876a4aac1f fix(ble_mesh): Remote Provisioning Client/Server bugs fixed 2025-05-27 15:28:46 +08:00
Zhang Hai Peng
9344c8873a fix(ble/bluedroid): Fixed clear BLE device recored
(cherry picked from commit 21391a45fd)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-05-27 15:13:46 +08:00
Zhang Hai Peng
37ac34cff0 fix(ble/bluedroid): Fixed issue with deleting link key when classic Bluetooth is not used
(cherry picked from commit 7c16bce827)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-05-27 15:13:43 +08:00
Jiang Jiang Jian
18b48329df Merge branch 'backport/backport_some_wifi_changes_250526_v5.3' into 'release/v5.3'
fix(wifi): fix some wifi bugs(backport v5.3)

See merge request espressif/esp-idf!39409
2025-05-27 14:36:27 +08:00
tarun.kumar
52040c6a77 fix(wifi) : Set rrm config condition in case RRM monitoring is enabled 2025-05-27 11:03:12 +05:30
Mahavir Jain
30630c6666 Merge branch 'change/exclude_cve-2023-53154_v5.3' into 'release/v5.3'
change: adds CVE-2023-53154 to cJSON sbom exclude list (v5.3)

See merge request espressif/esp-idf!39417
2025-05-27 10:52:07 +05:30
Jiang Jiang Jian
433f0ab716 Merge branch 'fix/nvs_logger_json_output_v5.3' into 'release/v5.3'
fix(nvs_flash/nvs_tool): Fix nvs_tool.py to output required values (v5.3)

See merge request espressif/esp-idf!38682
2025-05-26 20:03:37 +08:00
Jiang Jiang Jian
080ad8423c Merge branch 'bugfix/hwlp_coproc_saving_master_v5.3' into 'release/v5.3'
fix(freertos): workaround a hardware bug related to HWLP coprocessor (backport v5.3)

See merge request espressif/esp-idf!38060
2025-05-26 20:02:48 +08:00
Jiang Jiang Jian
c06e9d3a73 Merge branch 'fix/fix_esp32p4_retention_cost_v5.3' into 'release/v5.3'
fix(esp_hw_support): optimize retention cost and update sleep time compensation (v5.3)

See merge request espressif/esp-idf!38745
2025-05-26 20:01:56 +08:00
Jiang Jiang Jian
3f160107a3 Merge branch 'fix/fix_usj_pad_leakage_v5.3' into 'release/v5.3'
fix(esp_hw_support): always disable USJ pad in sleep to supress leakage (v5.3)

See merge request espressif/esp-idf!39107
2025-05-26 19:57:41 +08:00
Jiang Jiang Jian
96037e9cc3 Merge branch 'fix/fix_usb_hs_phy_leakage_on_deepsleep_v5.3' into 'release/v5.3'
fix(esp_hw_support): Fix deepsleep leakage after initializing USB HS phy (v5.3)

See merge request espressif/esp-idf!39169
2025-05-26 19:56:41 +08:00
Jiang Jiang Jian
b7cdd6ead9 Merge branch 'fix/fix_esp32p4_stuck_in_pd_ana_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix esp32p4 may get stuck when entering deepsleep (v5.3)

See merge request espressif/esp-idf!39284
2025-05-26 19:56:12 +08:00
Jiang Jiang Jian
b78ef76005 Merge branch 'fix/fix_esp_timer_accuracy_when_do_dfs_v5.3' into 'release/v5.3'
fix(esp_hw_support): improve esp timer accuracy on DFS for esp32 & esp32s2 (v5.3)

See merge request espressif/esp-idf!39341
2025-05-26 19:54:44 +08:00
Ashish Sharma
f8795b4e10 change: adds CVE-2023-53154 to cJSON sbom exclude list 2025-05-26 17:31:57 +08:00
yinqingzhao
7bcbc483c6 fix(wifi): fix some wifi bugs 2025-05-26 16:43:59 +08:00
harshal.patil
38452e4cc8 fix(mbedtls/esp_crt_bundle): Suppress non-negative serial number warning
Co-authored-by: Mahavir Jain <mahavir.jain@espressif.com>
2025-05-26 13:55:08 +05:30
Zhou Xiao
154c162d99 change(ble): make falling edge when disabling ts sync 2025-05-26 15:35:07 +08:00
Zhou Xiao
8736c4c0a3 fix(ble): fixed spi log init failure return value for ESP32 2025-05-26 10:47:25 +08:00
Zhou Xiao
098d0a1e5f fix(ble): fixed ts sync sleep support trigger 2025-05-23 19:12:45 +08:00
morris
46ac830333 Merge branch 'bugfix/lp_uart_baudrate_limitation_v5.3' into 'release/v5.3'
fix(uart): LP UART does not have the pre-divider for its clock source (v5.3)

See merge request espressif/esp-idf!37595
2025-05-23 17:10:39 +08:00
morris
2e89dce260 Merge branch 'feature/add_uart_io_deinit_process_v5.3' into 'release/v5.3'
fix(uart): eliminate garbled data on TX/RX line in sleep (v5.3)

See merge request espressif/esp-idf!39281
2025-05-23 16:46:37 +08:00
Zhou Xiao
5872bf889f fix(ble): fixed printf va list cross function pass failure 2025-05-23 12:31:42 +08:00
Samuel Obuch
e75d5b9c46 ci: select OpenOCD binary based on runner 2025-05-23 00:42:49 +02:00
Rahul Tank
e4f973dcf3 Merge branch 'bugfix/coverity_fix_v5.3' into 'release/v5.3'
fix(nimble): Add changes for coverity reported issue (v5.3)

See merge request espressif/esp-idf!39315
2025-05-22 16:29:09 +05:30
Zhou Xiao
afbbf72002 fix(ble): fixed upper layer trans append failure bug
(cherry picked from commit 1e6bc70837)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:54:39 +08:00
Zhou Xiao
3105d10cbb feat(ble): support ts sync for sleep app
(cherry picked from commit e10460ce14)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:54:37 +08:00
Zhou Xiao
16383af1ae feat(ble): support controller raw log print out
(cherry picked from commit ed09e97c66)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:54:35 +08:00
Zhou Xiao
91ce842f01 feat(ble): refactored loss report module and represent frame using struct
(cherry picked from commit 9800d715a5)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:54:32 +08:00
Zhou Xiao
cc4744cffd feat(ble): support le audio log buffer separation
(cherry picked from commit cd3aa6527c)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:54:30 +08:00
Zhou Xiao
fb0bb82e1a feat(ble): optimized printf functions code size and speed
(cherry picked from commit e4be25ba63)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:54:28 +08:00
Zhou Xiao
4e8e6b7920 feat(ble): refactored flush module and provided public flush api
(cherry picked from commit 70792443c7)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:54:25 +08:00
Zhou Xiao
b9a06476f1 feat(ble): refactored ll isr buffer append and buffer flush using event handler
(cherry picked from commit bba90309e7)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:54:23 +08:00
Zhou Xiao
ac35a6e8f2 feat(ble): provided dynamic spi enable/disable api
(cherry picked from commit 3568f19fef)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:54:20 +08:00
Zhou Xiao
5558bef466 feat(ble): support hci log buffer separation
(cherry picked from commit 16a3b2c71b)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:54:18 +08:00
Zhou Xiao
43dfe06c05 feat(ble): optimized macros readability
(cherry picked from commit f8699785e9)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:54:16 +08:00
wuzhenghui
162681d8ea ci(esp_timer): add UT case for esp_timer period alarm with DFS 2025-05-22 15:14:44 +08:00
wuzhenghui
326b32bd74 feat(esp_hw_support): compensate the error introduced to LACT during APB frequency switching 2025-05-22 15:14:43 +08:00
wuzhenghui
bc1624879c fix(esp_hw_support): update systimer step immediately when XTAL changes on esp32s2 2025-05-22 15:14:43 +08:00
wuzhenghui
85aad225d0 fix(esp_hw_support): update LACT clock prescale immediately when APB changes on esp32 2025-05-22 15:14:39 +08:00
Mahavir Jain
c0ab30f33c Merge branch 'feat/some_xip_psram_related_optimisations_and_fixes_v5.3' into 'release/v5.3'
feat(esp_psram): Add some wasted XIP PSRAM memory in heap and XIP PSRAM protection (v5.3)

See merge request espressif/esp-idf!38873
2025-05-22 12:00:14 +05:30
Song Ruo Jing
8baffe22cb fix(uart): LP UART does not have the pre-divider for its clock source
Closes https://github.com/espressif/esp-idf/issues/15427
2025-05-22 11:51:19 +08:00
Song Ruo Jing
6f9979451b fix(gpio): fix bad bit shift operation and OOB (h2) in io_mux.c 2025-05-22 11:51:19 +08:00
Song Ruo Jing
84f8be2e31 refactor(uart): increase test app memory leak tolerance 2025-05-22 11:51:19 +08:00
Island
ade43f3b00 Merge branch 'bugfix/fix_ble_scan_no_adv_report_when_connected_v5.3' into 'release/v5.3'
Fixed missing ADV reports after bonding and connection on ESP32-C3 and ESP32-S3 (v5.3)

See merge request espressif/esp-idf!39274
2025-05-21 18:19:24 +08:00
harshal.patil
5e15adfae9 fix(esp_psram): Add XIP PSRAM alignment gaps in heap only if PSRAM protection is enabled 2025-05-21 15:36:41 +05:30
harshal.patil
29f7654c2b feat(cpu_region_protect): Enable basic memory protection for SPIRAM 2025-05-21 15:36:41 +05:30
harshal.patil
8d42a711c4 feat(esp_psram): Add the gap created due to alignment of XIP segments in heap 2025-05-21 15:36:41 +05:30
harshal.patil
2cb93cd926 feat(esp_psram): Add some helper APIs to get usable PSRAM memory size 2025-05-21 15:36:41 +05:30
Armando
21bd94f116 fix(linker): fixed extern linker symbol type from int to char 2025-05-21 15:36:40 +05:30
morris
a2c53e5690 Merge branch 'fix/slot0_requires_all_pins_in_1bit_mode_issue_v5.3' into 'release/v5.3'
sd: fixed all pins need to be set when using slot0 on esp32p4 issue (v5.3)

See merge request espressif/esp-idf!39307
2025-05-21 15:11:13 +08:00
Song Ruo Jing
266c576d20 fix(ci): remove esp32c5 from the build template app for release/v5.3 2025-05-21 14:37:26 +08:00
Rahul Tank
ae995b34d7 fix(nimble): Add changes for coverity reported issue 2025-05-21 11:38:18 +05:30
Rahul Tank
95b3176fdd Merge branch 'bugfix/handle_flow_control_flag_v5.3' into 'release/v5.3'
fix(nimble): Add chip dependancy flag for Flow control feature (v5.3)

See merge request espressif/esp-idf!39295
2025-05-21 09:53:13 +05:30
armando
870e1f2204 fix(sd): fixed menuconfig multi pin definitions issue 2025-05-21 11:16:22 +08:00
armando
8c89c9b9d5 fix(sd): fixed slot0 requires all pins to be set when using 1bit iomux mode on p4 2025-05-21 11:13:28 +08:00
Rahul Tank
9a2a3d0d86 Merge branch 'feat/min_size_builds_v5.3' into 'release/v5.3'
fix(nimble): Add support for minimilistic builds (v5.3)

See merge request espressif/esp-idf!39100
2025-05-20 21:03:50 +05:30
igor.masar
d98a828c7e feat(usb/hal): Add support for explicit FIFO configuration
Introduce a new HAL API `usb_dwc_hal_set_fifo_config()` that allows advanced users
to manually configure RX, Non-Periodic TX, and Periodic TX FIFO sizes. This offers
fine-grained control beyond the previous bias-based sizing approach.

The HAL function no longer returns `esp_err_t`, and internal validations are enforced
via `HAL_ASSERT()`. Responsibility for input validation has been moved to the HCD layer.

FIFO configuration must be applied before any USB pipes are created or activated.
This feature is intended for use during `usb_host_install()`.

If no custom FIFO configuration is provided (i.e., all values are zero),
the driver falls back to a bias-based default layout based on Kconfig settings
(`CONFIG_USB_HOST_HW_BUFFER_BIAS_*`). Bias resolution is done inside `hcd_port_init()`.

The `port_obj_t` structure has been extended with a `fifo_config` field, which stores
the configuration to allow re-application after a USB port reset.

Obsolete FIFO bias enums (`usb_hal_fifo_bias_t`, `hcd_port_fifo_bias_t`) and related
APIs (`hcd_port_set_fifo_bias()`) have been removed in favor of the new structure-based mechanism.

The HCD initialization and port reset flow has been updated to use the explicit
FIFO configuration.

USB Host maintainer documentation (`maintainers.md`) has been updated accordingly.
Test cases were updated to remove the usage of removed bias API and now rely on default
or custom FIFO configuration.
2025-05-20 15:44:54 +02:00
Rahul Tank
f2c577ae51 fix(nimble): Add chip dependancy flag for Flow control feature 2025-05-20 18:10:35 +05:30
Song Ruo Jing
674113bfcc fix(gpio): add some detailed error log for gpio_pullup_en and gpio_pulldown_en 2025-05-20 16:49:47 +08:00
Song Ruo Jing
501fb2fab2 fix(uart): eliminate garbled data on UART TX/RX line in sleep 2025-05-20 16:49:47 +08:00
Song Ruo Jing
752df66332 feat(uart): add pin release process to uart driver 2025-05-20 16:49:39 +08:00
wuzhenghui
6866e9d40e fix(esp_hw_support): fix esp32p4 may get stuck when entering deepsleep 2025-05-20 16:01:20 +08:00
Mahavir Jain
2be4cef6f2 Merge branch 'feat/cjson_update_to_upstream_v5.3' into 'release/v5.3'
feat(cjson): update to latest upstream (v5.3)

See merge request espressif/esp-idf!39227
2025-05-20 09:50:26 +05:30
Mahavir Jain
7d97a53953 Merge branch 'contrib/github_pr_15059_v5.3' into 'release/v5.3'
feat(https): Get TLS errors from http client (GitHub PR) (v5.3)

See merge request espressif/esp-idf!39143
2025-05-20 09:49:12 +05:30
Song Ruo Jing
74a496e3d0 fix(dedic_gpio): fix calloc to heap_caps_calloc 2025-05-20 11:54:44 +08:00
Song Ruo Jing
5383558bb9 fix(uart): fix nmea0183 example wrong knots to m/s unit conversion
Closes https://github.com/espressif/esp-idf/issues/15695
2025-05-20 11:54:26 +08:00
Song Ruo Jing
7c4a6bf9d6 fix(uart): correct C3/S3 module enable porcedure to avoid undesired line noise 2025-05-20 11:54:15 +08:00
Song Ruo Jing
52cd954e41 fix(sleep): uart suspend/flush should also check if port is enabled on esp32 2025-05-20 11:53:59 +08:00
Song Ruo Jing
3de0b669e7 docs(uart): improve set/get baud rate API docs
Closes https://github.com/espressif/esp-idf/issues/15449
2025-05-20 11:53:42 +08:00
Song Ruo Jing
96372d2091 fix(uart): fixed coverity ininitialized scalar variable in uart_tcgetattr 2025-05-20 11:52:22 +08:00
Island
88cb3027f5 Merge branch 'change/ble_update_lib_20250516_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20250516 - Update ESP BLE Controller Lib (v5.3)

See merge request espressif/esp-idf!39236
2025-05-20 11:39:56 +08:00
Zhang Hai Peng
a689510a6c fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(4713205)
- Fix: Missing ADV reports after bonding and connection


(cherry picked from commit 244d4f8fa7)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-05-20 11:13:27 +08:00
Alexey Gerenkov
811fa4e9f1 Merge branch 'ci/enable_gcov_test_v5.3' into 'release/v5.3'
ci: enable gcov example for all chips (v5.3)

See merge request espressif/esp-idf!39173
2025-05-20 02:04:24 +08:00
Alexey Gerenkov
ef4c750d39 Merge branch 'feat/apptrace-crc16_v5.3' into 'release/v5.3'
Store CRC16 checksum value in the PERFMON1 reg (v5.3)

See merge request espressif/esp-idf!39210
2025-05-20 01:50:54 +08:00
zwl
75fcb6b5d5 fix(ble): fixed occasional assert issue in scan and connection scenarios on ESP32-C6 2025-05-19 20:37:37 +08:00
Sudeep Mohanty
ee995a79f3 change(lp-core): Update LP I2C and LP UART drivers to use raw interrupt status
This commit updates the LP I2C and LP UART drivers to use the raw
interrupt status without enabling the interrupts.
2025-05-19 10:38:07 +02:00
Rahul Tank
03dfb8e411 fix(nimble): Add support for minimilistic builds 2025-05-19 12:48:32 +05:30
Rahul Tank
7e99457c8f Merge branch 'fix/gattc_proc_comparison_v5.3' into 'release/v5.3'
fix(nimble): Fix proc rx entry comparison (v5.3)

See merge request espressif/esp-idf!39189
2025-05-19 12:32:58 +05:30
Zhao Wei Liang
d42c0c88ef fix(ble): added missed printf for ll log interface
(cherry picked from commit d12e072b35)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-19 12:04:01 +08:00
Zhao Wei Liang
6f73cb187c feat(ble): support creating connections during scanning process on ESP32-H2
(cherry picked from commit 207d85a5f7)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-05-19 12:03:59 +08:00
Zhao Wei Liang
3a52c0443c change(ble): [AUTO_MR] Update lib_esp32c2 to 664e4255
(cherry picked from commit 3cfd4d0166)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-05-19 12:03:56 +08:00
Zhao Wei Liang
e248ccd543 change(ble): [AUTO_MR] Update lib_esp32c6 to 1304a9d0
(cherry picked from commit 69158d5064)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-05-19 12:03:54 +08:00
Zhao Wei Liang
4ba0a8310b change(ble): [AUTO_MR] Update lib_esp32h2 to 1304a9d0
(cherry picked from commit 29f89efea6)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-05-19 12:03:52 +08:00
Ashish Sharma
ecc61d4e45 feat(cjson): update to latest upstream 2025-05-19 09:51:18 +08:00
morris
292114f622 Merge branch 'refactor/usb_dwc_buff_delay_on_p4_backport_v5.3' into 'release/v5.3'
refactor(hcd_dwc): Apply ls_via_fs_hub delay for all targets (backport to v5.3)

See merge request espressif/esp-idf!39150
2025-05-16 23:04:43 +08:00
Jiang Jiang Jian
df274a328e Merge branch 'bugfix/fix_twt_just_post_one_event_for_multiple_flow_v5.3' into 'release/v5.3'
fix(wifi): fix twt just post one event for multiple flow(Backport v5.3)

See merge request espressif/esp-idf!37758
2025-05-16 19:56:13 +08:00
Erhan Kurubas
6cafe499ed feat(apptrace): Store CRC16 checksum value of exposed block in the perfmon reg 2025-05-16 11:33:12 +02:00
morris
c590bc5beb Merge branch 'refactor/add_dfs_init_auto_test_v5.3' into 'release/v5.3'
fix(mcpwm): the wrong pm lock type on esp32 and esp32s3 (v5.3)

See merge request espressif/esp-idf!39194
2025-05-16 14:34:49 +08:00
morris
3260fd31cf fix(mcpwm): the wrong pm lock type on esp32 and esp32s3 2025-05-16 10:51:37 +08:00
morris
995b09e792 Merge branch 'fix/usbjtag_after_tinyusb_backport_v5.3' into 'release/v5.3'
fix(usb/phy): Fix ability to switch back to USB/JTAG after uninstalling TinyUSB (backport to v5.3)

See merge request espressif/esp-idf!39125
2025-05-16 10:23:04 +08:00
Sumeet Singh
e7e6577568 fix(nimble): Fix proc rx entry comparison (v5.3) 2025-05-15 19:51:00 +05:30
Samuel Obuch
64d8dfa024 ci: fix app_trace_basic test 2025-05-15 14:00:22 +02:00
Samuel Obuch
b1922f4de3 ci: enable gcov example for all chips 2025-05-15 14:00:18 +02:00
wuzhenghui
e0d1641281 fix(esp_hw_support): Fix deepsleep leakage after initializing USB HS phy 2025-05-15 16:05:34 +08:00
Omar Chebib
8943314799 fix(freertos): optimize HWLP context switch by disabling it when unused 2025-05-15 15:48:45 +08:00
Omar Chebib
acd976161f fix(freertos): workaround a hardware bug related to HWLP coprocessor
This commit manually sets the HWLP context to dirty when a Task that needs it is scheduled it.
2025-05-15 15:48:45 +08:00
Alexey Gerenkov
087d7db455 Merge branch 'freertos_sysview_deadlock_fix_v5.3' into 'release/v5.3'
fix(app_trace): prevent deadlock on sysview start (v5.3)

See merge request espressif/esp-idf!39138
2025-05-15 15:46:22 +08:00
Anton Maklakov
3dba09b93f docs(jtag): fix esp32p4 usb jtag pins 2025-05-15 12:13:42 +07:00
morris
711836a6a0 Merge branch 'feat/usb_host_move_dma_cap_mem_to_psram_p4_backport_v5.3' into 'release/v5.3'
feat(usb_host): Move DMA capable memory to external ram on P4 (backport v5.3)

See merge request espressif/esp-idf!39081
2025-05-14 22:20:50 +08:00
Rahul Tank
4d86268751 Merge branch 'bugfix/fix_few_nimble_issues_10052025_v5.3' into 'release/v5.3'
fix(nimble): fix nimble issues 10052025(v5.3)

See merge request espressif/esp-idf!39015
2025-05-14 20:41:42 +08:00
Shu Chen
c16caab061 Merge branch 'feat/calibrate_bus_latency_v5.3' into 'release/v5.3'
Feat/calibrate bus latency v5.3

See merge request espressif/esp-idf!39132
2025-05-14 20:04:49 +08:00
Roman Leonov
bc7c612c1f refactor(hcd_dwc): Apply ls_via_fs_hub delay for all targets 2025-05-14 13:52:16 +02:00
nilesh.kale
7853142e6e fix(esp_http_client): update code format for API
This commit update code format as per IDF standard for API
esp_http_client_get_and_clear_last_tls_error().
2025-05-14 15:25:18 +05:30
Lorenzo Consolaro
81382d93a5 feat(https): Get TLS errors from http client
update PR

update mr

Update components/esp_http_client/esp_http_client.c

Co-authored-by: Nilesh Kale <nilesh.kale@espressif.com>
2025-05-14 15:25:18 +05:30
Island
60cd7f506c Merge branch 'bugfix/fix_some_ble_bugs_0422_v5.3' into 'release/v5.3'
Bugfix/fix some ble bugs 0422 (v5.3)

See merge request espressif/esp-idf!39071
2025-05-14 17:23:20 +08:00
Samuel Obuch
5281c04d97 fix(sysview): do not use freertos ticks to prevent deadlock 2025-05-14 11:22:30 +02:00
Tan Yan Quan
63a287101e feat(openthread): change border agent to kconfig option 2025-05-14 16:15:57 +08:00
Tan Yan Quan
964285f73b fix(openthread): handle SetTimeSyncState when ifconfig up or down 2025-05-14 16:15:51 +08:00
Tan Yan Quan
71d42ab61d feat(openthread): support bus_latency for dual-chip BR solution 2025-05-14 16:15:43 +08:00
Marius Vikhammer
83bac55998 Merge branch 'fix/memory-utils-ptr-executable_v5.3' into 'release/v5.3'
fix(memory-utils): Missing case in esp_ptr_executable logic (backport v5.3)

See merge request espressif/esp-idf!37100
2025-05-14 16:14:50 +08:00
Marius Vikhammer
49025e7140 Merge branch 'fix/memprot-config-used-in-memory-layouts_v5.3' into 'release/v5.3'
fix(heap): Fix wrong config to enable MALLOC_CAP_EXEC in memory_layout.c (backport v5.3)

See merge request espressif/esp-idf!35201
2025-05-14 14:32:22 +08:00
John Boiles
362cca224a fix(usb/phy): Fix ability to switch back to USB/JTAG after uninstalling TinyUSB
Fixes #15912. This is a revert of a change made in 005ae0554 that breaks the
ability to re-initalize the USB/JTAG device after uninstalling TinyUSB.

Closes https://github.com/espressif/esp-idf/issues/15912
2025-05-14 08:25:43 +02:00
Sumeet Singh
e17ed5d738 fix(nimble): Fixed async race condition with HCI outstanding packets counter 2025-05-14 10:29:40 +05:30
Rahul Tank
3e97fa00a2 fix(nimble): Extend support for allow connect during scan for more chips 2025-05-14 10:29:33 +05:30
Rahul Tank
577563840a fix(nimble): Add support for anonymous address type for whitelist 2025-05-14 10:29:25 +05:30
Rahul Tank
378216daf1 fix(nimble): Add configurable option to select ext adv v2 command 2025-05-14 10:29:21 +05:30
Shu Chen
4c8ebb9831 Merge branch 'feat/ot_br_esp32p4_v5.3' into 'release/v5.3'
feat(br): support ot_br example for esp32p4 (v5.3)

See merge request espressif/esp-idf!39009
2025-05-14 09:26:37 +08:00
Rahul Tank
37c0d836ab Merge branch 'fix/gatt_cache_inc_services_uuid_type_error_v5.3' into 'release/v5.3'
fix(nimble): Fixed UUID type error in gatt caching included service search (v5.3)

See merge request espressif/esp-idf!39089
2025-05-14 09:26:22 +08:00
wuzhenghui
ce414f6ca6 fix(esp_hw_support): always disable USJ pad in sleep to supress leakage 2025-05-13 20:13:42 +08:00
Sumeet Singh
8cab86decd fix(nimble): Fixed UUID type error in gatt caching included service search (v5.3) 2025-05-13 17:34:15 +05:30
peter.marcisovsky
196bc310e5 feat(usb_host): Move DMA capable memory to external ram on P4
- DWC-OTG internal DMA can access psram on esp32p4
    - Move DMA memory buffs to psram, to save internal ram
    - HCD tests and MSC example runs in CI with psram enabled
2025-05-13 13:32:38 +02:00
Zhang Hai Peng
0ac1d27ea7 fix(ble/bluedroid): Reduce Bluedroid host log output over SPI
(cherry picked from commit 0586d10317)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-05-13 16:13:59 +08:00
Zhang Hai Peng
31fecc616d fix(ble/bluedroid): Added value len check in esp_ble_gatts_send_indicate()
(cherry picked from commit bfa0fff2e5)

Co-authored-by: Nebojsa Cvetkovic <nebkat@gmail.com>
2025-05-13 16:13:56 +08:00
Zhang Hai Peng
9c282d6e12 fix(ble/bluedroid): Change maximum length of attribute value to 517
(cherry picked from commit df8c1f7a96)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-05-13 16:13:54 +08:00
Zhang Hai Peng
c27dbdf1a9 docs(ble): clarify meaning of 0 value for esp_ble_gap_start_ext_scan() parameters
(cherry picked from commit ebb76933d0)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-05-13 16:13:51 +08:00
Zhang Hai Peng
668739a675 fix(ble/bluedroid): Fixed BLE GAP appearance configuration check
(cherry picked from commit 6552854cb5)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-05-13 16:13:48 +08:00
yinqingzhao
ced26468d4 fix(wifi): fix some wifi bugs 2025-05-13 14:49:53 +08:00
Marius Vikhammer
acea1fc047 Merge branch 'contrib/github_pr_15132_v5.3' into 'release/v5.3'
fix(newlib): usleep returning early (GitHub PR) (v5.3)

See merge request espressif/esp-idf!38709
2025-05-13 14:38:55 +08:00
Guillaume Souchere
7ab1b601ad fix(heap): Fix wrong config to enable MALLOC_CAP_EXEC in memory_layout.c
In esp32c2 and esp32c61 memory_layout.c files, the config used to allow
MALLOC_CAP_EXEC was CONFIG_ESP_SYSTEM_MEMPROT_FEATURE when
CONFIG_ESP_SYSTEM_PMP_IDRAM_SPLIT should be used.

Closes https://github.com/espressif/esp-idf/issues/14836
2025-05-13 08:17:28 +02:00
Guillaume Souchere
cb076f2097 fix(memory-utils): Missing case in esp_ptr_executable logic
esp_ptr_executable does not consider that the PSRAM and FLASH
memory mapping are not always matching.

Added a "pointer is in PSRAM" specific check in the logic to
fix the issue.
2025-05-13 08:16:59 +02:00
Rahul Tank
d56f1b5cb7 Merge branch 'feat/gatt_cache_info_v5.3' into 'release/v5.3'
fix(nimble): Added api's to fetch gatt cache info (v5.3)

See merge request espressif/esp-idf!39031
2025-05-13 13:54:44 +08:00
hrushikesh.bhosale
ad18796692 feat(nvs_tool): Test for print_minimal_json
Added the test for the print_minimal_json function
and setup_minimal_json function to setup the test.
2025-05-12 14:10:08 +02:00
hrushikesh.bhosale
b642feb67e fix(nvs_flash/nvs_tool): Fix nvs_tool.py to output required values
nvs_tool.py did not provide the minimal output support which outputs
the only necessary data.

nvs_tool.py minimal text ouptut, the deliminators were not handled
in the output

Closes https://github.com/espressif/esp-idf/issues/15274
2025-05-12 14:00:31 +02:00
Martin Vychodil
8db2dcca76 Merge branch 'feat/nvs_pytest_add_non_ascii_string_test_v5.3' into 'release/v5.3'
feat: Add NVS generator check test for CRC of non-ASCII strings (v5.3)

See merge request espressif/esp-idf!38843
2025-05-12 19:48:40 +08:00
morris
bc6a2359a4 Merge branch 'fix/rmt_race_condition_v5.3' into 'release/v5.3'
fix(rmt): fix race condition and add receive config error message (v5.3)

See merge request espressif/esp-idf!38999
2025-05-12 15:14:53 +08:00
Astha Verma
8e72311441 fix(nimble): Added api's for fetching gatt cache data and for discovering included service 2025-05-12 11:56:24 +05:30
Rahul Tank
d00ce57499 Merge branch 'bugfix/provide_user_option_delete_pair_v5.3' into 'release/v5.3'
fix(nimble): Added option to stack to handle repeat pairing internally (v5.3)

See merge request espressif/esp-idf!38960
2025-05-12 13:03:04 +08:00
morris
93953299c6 Merge branch 'bugfix/fixed_mismatch_of_tx_queue_statue_v5.3' into 'release/v5.3'
fix(i2s): fixed the false buf catenate while use preload (v5.3)

See merge request espressif/esp-idf!38968
2025-05-12 10:38:03 +08:00
Tan Yan Quan
d7ff344c4f fix(openthread): standardize disable_test to exclude certain targets 2025-05-12 10:37:50 +08:00
Rahul Tank
c15ce89435 fix(nimble): Added option to stack to handle repeat pairing internally 2025-05-10 20:26:11 +05:30
Tan Yan Quan
5f026d7533 feat(openthread/br): update thread-lib for esp32p4 and OT upstream ec2b0d487
* esp-openthread: thread_zigbee/esp-openthread@ac1715a6f
* openthread: espressif/openthread@ec2b0d487
* esp-idf: espressif/esp-idf@eb703e4f0
2025-05-09 11:51:20 +00:00
Tan Yan Quan
eb703e4f0f feat(openthread): update OT upstream to ec2b0d487 2025-05-09 19:41:59 +08:00
Tan Yan Quan
c975aa6aef feat(openthread): support esp32p4 as ot_br 2025-05-09 19:41:34 +08:00
morris
53ab7b89f8 Merge branch 'feat/customize_i2c_operation_transaction_v5.3' into 'release/v5.3'
feat(i2c): Add api for customize i2c transaction interface for un-standard i2c device (backport v5.3)

See merge request espressif/esp-idf!37416
2025-05-09 18:05:27 +08:00
Mahavir Jain
df74d2bc70 Merge branch 'fix/async_handler_example_stack_overflow_issue_v5.3' into 'release/v5.3'
fix(esp_http_server): Async handler example stack overflow fix (v5.3)

See merge request espressif/esp-idf!38997
2025-05-09 17:18:07 +08:00
Island
29c26da8d2 Merge branch 'change/ble_update_lib_20250430_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20250430 - Update ESP BLE Controller Lib (v5.3)

See merge request espressif/esp-idf!38973
2025-05-09 14:05:19 +08:00
Island
f4b2885b22 Merge branch 'fix/ble_mesh_trans_pending_fix_v5.3' into 'release/v5.3'
fix(ble_mesh): remove tx pending assert (v5.3)

See merge request espressif/esp-idf!38939
2025-05-09 14:03:52 +08:00
Chen Jichang
46f81894b8 fix(rmt): fix race condition and add receive config error message
Closes https://github.com/espressif/esp-idf/issues/15842
Closes https://github.com/espressif/esp-idf/issues/15836
2025-05-09 13:44:29 +08:00
hrushikesh.bhosale
5722889fe3 fix(esp_http_server): Async handler example stack overflow fix
1. In async handler example, on hitting /long URI and closing the
connection forcefully from client (example ctrl + c) cause more stack
size (almost 200 bytes) than successfull request.
2. The connection should be closed from the server as soon as the client
closes the connect (i.e. handler should return ESP_FAIL to close the
connection)
2025-05-09 10:18:27 +05:30
Jiang Jiang Jian
fe6f2d08af Merge branch 'feat/add_svc_info_in_sdf_v5.3' into 'release/v5.3'
Add extended SSI support for NAN Services  (Backport v5.3)

See merge request espressif/esp-idf!38110
2025-05-09 12:14:05 +08:00
Wang Meng Yang
82b1690b10 Merge branch 'feat/add_sdkconfig_for_secure_connection_v5.3' into 'release/v5.3'
fix(bt): disable dm1 for acl-u when aes-ccm is on in peripheral(backport v5.3)

See merge request espressif/esp-idf!38976
2025-05-09 09:38:44 +08:00
Rahul Tank
9e99b2afa3 Merge branch 'feat/autopts_and_ssc_fixes_v5.3' into 'release/v5.3'
feat(nimble): Added fixes related to SSC and AutoPTS testing (v5.3)

See merge request espressif/esp-idf!38797
2025-05-08 21:45:07 +08:00
gongyantao
0de1fab085 fix(bt): disable dm1 for acl-u when aes-ccm is on in peripheral 2025-05-08 18:21:42 +08:00
Shen Wei Long
8f2c00f18a fix(ble): update ld file on ESP32-C2
(cherry picked from commit ee6607b489)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-05-08 14:54:01 +08:00
Shen Wei Long
4103766c1e change(ble): [AUTO_MR] Update lib_esp32c2 to 16e16586
(cherry picked from commit 26754d8e71)

Co-authored-by: Shen Weilong <shenweilong@espressif.com>
2025-05-08 14:53:58 +08:00
Shen Wei Long
6494b57fe8 change(ble): [AUTO_MR] Update lib_esp32c6 to 9ecb81c8
(cherry picked from commit a477bfb140)

Co-authored-by: Shen Weilong <shenweilong@espressif.com>
2025-05-08 14:53:56 +08:00
Shen Wei Long
396c10c618 change(ble): [AUTO_MR] Update lib_esp32h2 to 9ecb81c8
(cherry picked from commit a3cc91dbf0)

Co-authored-by: Shen Weilong <shenweilong@espressif.com>
2025-05-08 14:53:53 +08:00
laokaiyao
c5ead79fce fix(i2s): fixed the false buf catenate while use preload
Closes https://github.com/espressif/esp-idf/issues/15775
2025-05-08 14:24:44 +08:00
Shu Chen
165bacc967 Merge branch 'feat/mtd_parent_search_v5.3' into 'release/v5.3'
feat(openthread): enable parent search function for MTD (v5.3)

See merge request espressif/esp-idf!38821
2025-05-08 14:12:44 +08:00
Shu Chen
0a3fd1aa02 Merge branch 'fix/calibrate_csl_rx_v5.3' into 'release/v5.3'
fix(openthread): calibrate CSL parameters (v5.3)

See merge request espressif/esp-idf!38534
2025-05-08 14:11:43 +08:00
akshat
3f27399ef4 feat(esp_wifi): Add extended SSI support for NAN Services 2025-05-08 11:14:57 +05:30
Mahavir Jain
fbcfce1f20 Merge branch 'feat/c6_v002_compatibility_v5.3' into 'release/v5.3'
hw_support: Add Kconfig option for c6 v0.2 (v5.3)

See merge request espressif/esp-idf!38943
2025-05-08 13:33:17 +08:00
C.S.M
87c6979b97 fix(i2c): Fix that fsm reset cause i2c scl frequency changed on esp32s2 2025-05-08 13:01:30 +08:00
C.S.M
debbb61451 fix(i2c): Fix some i2c coverity issue 2025-05-08 13:01:30 +08:00
C.S.M
0fdd061500 fix(i2c): I2C should not clear bus in a nack state 2025-05-08 13:01:30 +08:00
Jonathan Swoboda
5c7211ed3a fix(i2c): Fix clear bus issue in legacy i2c driver,
Closes https://github.com/espressif/esp-idf/pull/15638
2025-05-08 13:01:30 +08:00
C.S.M
31999770a6 fix(i2c): Fix i2c customize only read one byte issue 2025-05-08 13:01:30 +08:00
C.S.M
1ac593a956 docs(i2c): Add document for customize i2c transaction interface for un-standard i2c device 2025-05-08 13:01:30 +08:00
C.S.M
d5ceed3d96 feat(i2c): Add api for customize i2c transaction interface for un-standard i2c device 2025-05-08 13:01:30 +08:00
Jiang Jiang Jian
6389791949 Merge branch 'bugfix/espnow_send_issue_v53' into 'release/v5.3'
fix(esp_wifi): Fix for issue in esp_now_send when wifi tx callback registered(v5.3)

See merge request espressif/esp-idf!37944
2025-05-08 10:39:34 +08:00
Rahul Tank
c84c699166 Merge branch 'bugfix/conn_with_scan_c6_h2_v5.3' into 'release/v5.3'
fix(nimble): Enable support for Connect with scan for 32/ c6/ h2 chip (v5.3)

See merge request espressif/esp-idf!38853
2025-05-08 08:39:05 +08:00
Sumeet Singh
cbeef453a8 feat(nimble): Added some fixes for autopts testing (v5.3) 2025-05-07 17:02:56 +05:30
Island
44782e53b6 Merge branch 'bugfix/fix_scan_stopped_with_high_rtc_freq_v5.3' into 'release/v5.3'
fix(ble): fix rtc freq set too high on ESP32-C2 (v5.3)

See merge request espressif/esp-idf!38930
2025-05-07 18:47:17 +08:00
Martin Vychodil
a3aa438820 Merge branch 'feat/sdmmc_support_concurrent_use_v5.3' into 'release/v5.3'
feat(sdmmc): Concurrent use of SDMMC peripheral (v5.3)

See merge request espressif/esp-idf!32871
2025-05-07 18:43:43 +08:00
Xiao Xufeng
cdb0c79383 feat(soc): add config option for c6 v0.2 2025-05-07 16:47:31 +08:00
Island
c30b17ee80 Merge branch 'fix/ble_mesh_fixed_insufficient_link_close_v5.3' into 'release/v5.3'
fix(ble_mesh): fixed issue with insufficient link close transmit cnt (v5.3)

See merge request espressif/esp-idf!38897
2025-05-07 15:40:01 +08:00
Rahul Tank
63c0035225 fix(nimble): Enable support for Connect with scan for esp32/c6/ h2 chip 2025-05-07 12:45:38 +05:30
luoxu
92eb463704 fix(ble_mesh): remove tx pending assert 2025-05-07 14:54:39 +08:00
Aditi
f93379abcf fix(esp_wifi): Fix for issue in esp_now_send when wifi tx callback registered 2025-05-07 10:42:00 +05:30
Rahul Tank
207db463bf Merge branch 'fix/optimize_nimble_throughput_example_v5.3' into 'release/v5.3'
fix(nimble): Added support of Dynamic switching between different Phy modes. (v5.3)

See merge request espressif/esp-idf!38911
2025-05-07 12:39:08 +08:00
wuzhenghui
9321f7ef75 fix(esp_hw_support): specify optimize options to avoid dirtying L2 mem after L1D$ writeback 2025-05-07 11:42:36 +08:00
wuzhenghui
ad4f0a8708 fix(esp_hw_support): fix wrong APB clock freq on retenion 2025-05-07 11:42:35 +08:00
wuzhenghui
38d6e17516 feat(esp_hw_support): count pau backup time into sleep rejection judgment 2025-05-07 11:42:35 +08:00
wuzhenghui
61e32da02c feat(esp_hw_support): remeasure sleep_time_overhead_out if min_freq_mhz changed 2025-05-07 11:42:35 +08:00
wuzhenghui
1b47abed1b feat(esp_hw_support): use non-lock regi2c fast-up cpll/mpll enable process after sleep wakeup 2025-05-07 11:42:33 +08:00
Mahavir Jain
4d7f1a4b31 Merge branch 'change/secure_boot_config_description_v5.3' into 'release/v5.3'
Improve description of the config SECURE_BOOT_V2_ALLOW_EFUSE_RD_DIS (v5.3)

See merge request espressif/esp-idf!38909
2025-05-07 11:38:19 +08:00
Jiang Jiang Jian
e65ad010ef Merge branch 'bugfix/tsens_read_abnormal_value_v5.3' into 'release/v5.3'
fix: tsens read abnormal value in esp32c2eco4(backport v5.3)

See merge request espressif/esp-idf!38902
2025-05-07 11:37:47 +08:00
wuzhenghui
50846c2595 feat(esp_hw_support): optimize esp32p4 GPIO retention link 2025-05-07 11:36:44 +08:00
wuzhenghui
86d68da4ed fix(esp_hw_support): iomux slp_sel is not avaliable to isolate mspi pin leakage on esp32p4 2025-05-07 11:36:44 +08:00
morris
52215a763f Merge branch 'feature/usb_host_ext_hub_collective_backport_v5.3' into 'release/v5.3'
feat(usb_host): External Hub collective backport to v5.3

See merge request espressif/esp-idf!37268
2025-05-07 10:49:46 +08:00
Jin Chen
2c782de873 fix(ble): fix rtc freq set too high on ESP32-C2
(cherry picked from commit 6a80deac03)

Co-authored-by: cjin <jinchen@espressif.com>
2025-05-07 10:18:33 +08:00
Roman Leonov
add4213c6b refactor(ext_port): Removed ext_hub dependency 2025-05-06 15:21:39 +02:00
Roman Leonov
166a79a764 refactor(ext_port): Changed the mechanism for hub class request
Merged all Hub Class specific request to one function.
Added a callback for the External Port Driver to break the dependency from ext_hub.h
2025-05-06 15:01:33 +02:00
Roman Leonov
02b96db4ae feat(ext_hub): Added device error handling 2025-05-06 14:54:58 +02:00
Roman Leonov
622eab9bad feat(usbh): Added uid presence check in USBH device object list 2025-05-06 14:54:58 +02:00
Shreeyash
d236459656 fix(nimble): Added support for 1m, 2m, coded phy channels and optimized throughput 2025-05-06 18:00:59 +05:30
Rahul Tank
a564be34c6 Merge branch 'bugfix/add_adv_type_parse_v5.3' into 'release/v5.3'
fix(nimble): Add API to parse adv report for given type (v5.3)

See merge request espressif/esp-idf!38790
2025-05-06 19:56:07 +08:00
Roland Dobai
318dbef100 Merge branch 'docs/fix-kconfserver-link_v5.3' into 'release/v5.3'
docs: Fix link to the kconfserver documentation (v5.3)

See merge request espressif/esp-idf!38906
2025-05-06 18:29:05 +08:00
Jiang Jiang Jian
0a0b9bf02d Merge branch 'bugfix/wps_msg_timeout_increase_v5.3' into 'release/v5.3'
fix(esp_wifi): Increase WPS message timeout (v5.3)

See merge request espressif/esp-idf!38876
2025-05-06 16:38:35 +08:00
harshal.patil
53321dd030 change(bootloader_support/secure_boot): Improve description of the config SECURE_BOOT_V2_ALLOW_EFUSE_RD_DIS 2025-05-06 13:48:30 +05:30
Jan Beran
0fc301b94c docs: Fix link to the kconfserver documentation 2025-05-06 09:15:19 +02:00
sibeibei
8fe39c57cc fix: tsens read abnormal value in esp32c2eco4 2025-05-06 14:26:11 +08:00
morris
4066380f48 Merge branch 'fix/usb_host_hcd_dma_ls_via_fs_hubs_backport_v5.3' into 'release/v5.3'
fix(hcd): Added delay to slow down scatter-gather dma for ls device via fs hubs (backport v5.3)

See merge request espressif/esp-idf!38649
2025-05-06 13:40:40 +08:00
Luo Xu
29107a553d fix(ble_mesh): fixed issue with insufficient link close transmit cnt
(cherry picked from commit ad1073693e)

Co-authored-by: luoxu <luoxu@espressif.com>
2025-05-06 12:23:28 +08:00
Jiang Jiang Jian
d63d26d580 Merge branch 'feature/add_ds_param_in_probe_req_v5.3' into 'release/v5.3'
Add DS parameter in probe requests from STA (Backport v5.3)

See merge request espressif/esp-idf!38173
2025-05-06 11:19:17 +08:00
Nachiket Kukade
e4b89c0de0 Merge branch 'feat/eap_domain_check_v5.3' into 'release/v5.3'
esp_wifi: Add EAP domain validation support (v5.3)

See merge request espressif/esp-idf!38279
2025-05-05 19:53:24 +08:00
Adam Múdry
f369caa5d2 fix(sdmmc): SDMMC concurrency change active slot only after the slot is initialized
Fixes counting of initialized slots
2025-05-05 18:58:58 +08:00
Adam Múdry
1e04e7cdbb fix(sdmmc): Fix SDMMC slot switch timing related issue on ESP32-P4 2025-05-05 18:58:58 +08:00
Ivan Grokhotkov
6773164b6a fix(sdmmc): don't disable SDIO interrupts when switching slots 2025-05-05 18:58:58 +08:00
Adam Múdry
d29f0f3e21 feat(sdmmc): Concurrent use of SDMMC peripheral
Host and device (card, etc.) initialization is not thread-safe.
After initialization transactions are serialized and guarded by mutex.
Changed `SDMMC_HOST_DEFAULT()` default deinit function to `sdmmc_host_deinit_slot`
which has a slot number as argument.
2025-05-05 18:58:58 +08:00
Adam Múdry
c81c37fe1e refactor(sdmmc): Allow sdmmc_host_init to be called multiple times
Along with slight refactor for sdmmc_host.c
2025-05-05 18:58:58 +08:00
Rahul Tank
7d3abe2c8c Merge branch 'bugfix/fix_ext_disc_example_usage_v5.3' into 'release/v5.3'
fix(nimble): Corrected structure field name usage in examples (v5.3)

See merge request espressif/esp-idf!38859
2025-05-05 13:44:46 +08:00
Aditya Patwardhan
c50e49dd0f Merge branch 'bugfix/esp32_c6_rev0_ecdsa_build_v5.3' into 'release/v5.3'
fix: Secure boot (ECDSA) build failure for C6 rev0 target (v5.3)

See merge request espressif/esp-idf!38835
2025-05-02 10:38:03 +08:00
morris
3a1bd70fea Merge branch 'fix/usb_comprehensive_heap_backport_v5.3' into 'release/v5.3'
fix(usb/host): Do not call heap_caps_get_allocated_size() in USB host driver (backport to v5.3)

See merge request espressif/esp-idf!38863
2025-05-01 07:59:30 +08:00
Kapil Gupta
c2560ed96d fix(esp_wifi): Flush PMK when EAP config is changed 2025-04-30 15:34:16 +05:30
Kapil Gupta
b3baf8c026 fix(esp_wifi): Code cleanup for PR#15550 PR#15551
Closes https://github.com/espressif/esp-idf/pull/15550
Closes https://github.com/espressif/esp-idf/pull/15551
2025-04-30 17:57:37 +08:00
Michael Stoll
05a6990049 fix: Force validate when using the default crt bundle 2025-04-30 17:57:37 +08:00
Michael Stoll
832bd03971 feat: Add domain match to wifi_enterprise example 2025-04-30 17:57:37 +08:00
Michael Stoll
90b7cd0971 feat(esp_wifi): Implement esp_eap_client_set_domain_match 2025-04-30 17:57:37 +08:00
akshat
2922213f7d bugfix(wpa_supplicant): Fix build errors when Supplicant logs are enabled 2025-04-30 15:25:10 +05:30
Kapil Gupta
b6cc3a4abc fix(esp_wifi): Increase WPS timeout 2025-04-30 15:25:10 +05:30
Roland Dobai
f640db4613 Merge branch 'ci/rename-packages_v5.3' into 'release/v5.3'
ci: rename local idf_ci folder, avoid name collision (v5.3)

See merge request espressif/esp-idf!38758
2025-04-30 17:17:53 +08:00
Shu Chen
da117743b2 Merge branch 'fix/fix_ot_set_mac_framecounter_v5.3' into 'release/v5.3'
backport: OpenThread features and bug fixes to v5.3

See merge request espressif/esp-idf!38817
2025-04-30 15:44:24 +08:00
morris
48deddea70 Merge branch 'fix/fix_image_check_16_mega_bytes_limit_v5.3' into 'release/v5.3'
bootloader: fixed image cannot exceed 16MB issue (v5.3)

See merge request espressif/esp-idf!38845
2025-04-30 14:49:51 +08:00
Tomas Rezucha
35e354c77f fix(usb/host): Do not call heap_caps_get_allocated_size() in USB host driver
It causes heap corruption if heap poisoning is enabled on ESP32-P4.
It returns incorrect size on ESP32-S3.

Closes https://github.com/espressif/esp-idf/issues/15815
2025-04-30 08:38:19 +02:00
akshat
199ec4c82b feat(esp_wifi): Add DS parameter in probe requests from STA
Parse the DS IE to get intended channel when softAP rx request,
send probe response only if request is intended for the channel
2025-04-30 11:27:54 +05:30
Mahavir Jain
8e825839dd Merge branch 'feat/configurable_mbedtls_sha1_v5.3' into 'release/v5.3'
feat(mbedtls): Make mbedtls SHA1 support configurable (v5.3)

See merge request espressif/esp-idf!37981
2025-04-30 12:42:19 +08:00
Island
6946068a0e Merge branch 'bugfix/fix_cble50y25_207_v5.3' into 'release/v5.3'
Fixed MIC error disconnection when pairing with iOS devices on ESP32-C3 and ESP32-S3(edf923e) (v5.3)

See merge request espressif/esp-idf!38763
2025-04-30 11:16:49 +08:00
armando
956d74a22b fix(bootloader): fixed image cannot exceed 16MB issue
flash 32-bit-addr is an experimental feature that has multiple
dependencies, e.g. flash chip vendor, etc.

If CONFIG_BOOTLOADER_CACHE_32BIT_ADDR_QUAD_FLASH can be enabled
successfully and tests are passed, we can allow images to be
placed on higher-than-16MB flash addresses
2025-04-30 10:34:55 +08:00
Rahul Tank
0675f2be27 fix(nimble): Corrected structure field name usage in examples 2025-04-29 21:48:12 +05:30
Adam Múdry
26bd3313aa feat: Add NVS generator check test for CRC of non-ASCII strings 2025-04-29 16:45:29 +02:00
Mahavir Jain
ffc4ceb1a5 fix: Secure boot (ECDSA) build failure for C6 rev0 target
Closes https://github.com/espressif/esp-idf/issues/15856
2025-04-29 18:06:08 +08:00
Alexey Gerenkov
d1af51f3fd Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20250422_v5.3' into 'release/v5.3'
feat(tools): update openocd version to v0.12.0-esp32-20250422 (v5.3)

See merge request espressif/esp-idf!38800
2025-04-29 16:20:21 +08:00
Rahul Tank
26ec118faf fix(nimble): Add API to parse adv report for given type 2025-04-29 12:24:59 +05:30
Tan Yan Quan
223ed69c9b feat(openthread): enable parent search function for MTD 2025-04-29 14:37:16 +08:00
Xu Si Yu
300a5ed9f4 feat(openthread): add a callback to handle rcp reset failure 2025-04-29 14:23:17 +08:00
Xu Si Yu
105fe8d804 feat(openthread): dns server of border router bind unspecified netif 2025-04-29 14:23:16 +08:00
Xu Si Yu
6aa0f96ae8 fix(openthread): use esp_netif_tcpip_exec when sending a trel message 2025-04-29 14:23:16 +08:00
Xu Si Yu
b6c5152231 feat(openthread): add a function to ensure monotonically increasing frame counter 2025-04-29 14:12:59 +08:00
Kapil Gupta
adfec6463d fix(esp_wifi): Use supplicant's internal SHA1 if not available from IDF 2025-04-29 11:21:34 +05:30
harshal.patil
5bd3fb9f0c fix(mbedtls): Fix config dependencies when ROM mbedtls is used 2025-04-29 11:20:25 +05:30
harshal.patil
031ca5cc9b fix(wpa_supplicant): Disable fastpbkdf2 when s/w and h/w SHA1 is disabled 2025-04-29 11:20:18 +05:30
Jiang Jiang Jian
eaf03eeca9 Merge branch 'refactor/sae_pt_flag_v5.3' into 'release/v5.3'
refactor(wifi): Optimize wifi bin size for station mode (Backport v5.3)

See merge request espressif/esp-idf!38307
2025-04-29 13:48:37 +08:00
harshal.patil
86fb48da77 fix(esp-tls): Fix build failure when CONFIG_MBEDTLS_SHA1_C is disabled 2025-04-29 11:17:27 +05:30
Kapil Gupta
502229f409 fix(esp_wifi): Add alternate SHA1 APIs in WiFi
Add alternate SHA1 APIs to handle cases when
`CONFIG_MBEDTLS_SHA1_C` is disabled.
2025-04-29 11:17:27 +05:30
harshal.patil
36e5d6c695 feat(mbedtls): Make mbedtls SHA1 support configurable 2025-04-29 11:17:27 +05:30
Sudeep Mohanty
5f5fc0882f test(newlib): Added unit tests for usleep and sleep_for functions
This commit adds unit tests to verify the basic functionality of
usleep() and this_thread::sleep_for() std functions.
2025-04-28 17:13:07 +02:00
Stephen Noonan
3dda3d2438 fix(newlib): usleep returning early
This commit updates usleep() to always sleep for the required sleep
period or more. This fixes a bug where the usleep() could sleep for less
than the request sleep period.

Closes https://github.com/espressif/esp-idf/pull/15132
2025-04-28 17:12:20 +02:00
Rahul Tank
9e042f6d71 Merge branch 'bugfix/blufi_add_missing_adv_stop_v5.3' into 'release/v5.3'
fix(nimble): Added code for missing adv stop in blufi (v5.3)

See merge request espressif/esp-idf!38719
2025-04-28 19:19:43 +08:00
Sajia
17427b5314 refactor(wifi): Optimize wifi bin size for station mode 2025-04-28 14:39:19 +05:30
chenjianhua
c82cabb576 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(edf923e)
- Fixed ble lib linkage issue
2025-04-28 14:11:25 +08:00
Chen Jian Hua
7f3f15f5f1 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(edf923e)
- Fixed MIC error disconnection when pairing with iOS devices


(cherry picked from commit 0df0b53b0a)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-04-28 14:11:11 +08:00
Jiang Jiang Jian
8e95ca2923 Merge branch 'bugfix/fix_some_wifi_bugs_250427_v5.3' into 'release/v5.3'
fix(phy): fix phy data partition restoring default fails issue(Backport v5.3)

See merge request espressif/esp-idf!38776
2025-04-28 11:42:08 +08:00
Jiang Jiang Jian
be21344c3c Merge branch 'fix/fix_usj_pad_retention_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix usj pad config bad retention (v5.3)

See merge request espressif/esp-idf!38747
2025-04-27 19:31:30 +08:00
Rahul Tank
4df0a64c83 Merge branch 'bugfix/ios_hid_failure_v5.3' into 'release/v5.3'
fix(nimble): Update hid device example in nimble to work with iOS (v5.3)

See merge request espressif/esp-idf!38677
2025-04-27 18:36:51 +08:00
muhaidong
3a6d14649a fix(wifi): fix association timeout timer issue for wep shared auth 2025-04-27 16:55:25 +08:00
muhaidong
57336f2a81 fix(phy): fix phy data partition restoring default fails issue
Closes https://github.com/espressif/esp-idf/issues/14698
2025-04-27 16:21:31 +08:00
Jiang Jiang Jian
d950dde7c1 Merge branch 'bugfix/crypto_reset_on_exit_v5.3' into 'release/v5.3'
fix(esp_system): reset crypto peripherals before device restart (v5.3)

See merge request espressif/esp-idf!38476
2025-04-27 14:26:47 +08:00
Jiang Jiang Jian
13091e4a14 Merge branch 'fix/remove-unnecessary-select_v5.3' into 'release/v5.3'
fix(esp_system): Remove unnecessary select from esp_system/Kconfig (v5.3)

See merge request espressif/esp-idf!37521
2025-04-27 14:22:29 +08:00
Jiang Jiang Jian
dcd92c96bf Merge branch 'fix/rmii_ref_ckl_v5.3' into 'release/v5.3'
fix(esp_eth): fixed ESP32P4 EMAC REF RMII CLK output mode (v5.3)

See merge request espressif/esp-idf!38040
2025-04-27 14:21:28 +08:00
Jiang Jiang Jian
7ca3e628e5 Merge branch 'contrib/github_pr_15637_v5.3' into 'release/v5.3'
fix(esp_eth): Fix order of fields in ETH_ESP32_EMAC_DEFAULT_CONFIG on P4 (GitHub PR) (v5.3)

See merge request espressif/esp-idf!38166
2025-04-27 14:20:55 +08:00
Jiang Jiang Jian
9b3e257d48 Merge branch 'fix/memory-utils-esp_ptr_in_rtc_dram_fast_v5.3' into 'release/v5.3'
fix(esp_hw_support): esp_ptr_in_rtc_iram_fast check to return false (backport v5.3)

See merge request espressif/esp-idf!36932
2025-04-27 14:20:10 +08:00
Jiang Jiang Jian
5eb2b8625e Merge branch 'fix/ulp_riscv_interrupt_bug_v5.3' into 'release/v5.3'
fix(ulp): fix ULP RISC-V interrupt handler corrupting the stack (backport v5.3)

See merge request espressif/esp-idf!35226
2025-04-27 14:19:20 +08:00
Island
b158614c9e Merge branch 'feat/add_sync_cte_type_in_pa_sync_v5.3' into 'release/v5.3'
Feat/add sync cte type in pa sync (v5.3)

See merge request espressif/esp-idf!38591
2025-04-27 14:11:50 +08:00
Island
e85aaaaf98 Merge branch 'feat/spi_ble_log_improvement_v5.3' into 'release/v5.3'
feat(ble): Improved SPI BLE Log functionality (v5.3)

See merge request espressif/esp-idf!38740
2025-04-27 14:05:28 +08:00
Jiang Jiang Jian
7615c09c60 Merge branch 'bugfix/pmf_enabled_sae_query_v5.3' into 'release/v5.3'
fix(wifi): SA Query responses not transmitted (Backport v5.3)

See merge request espressif/esp-idf!38244
2025-04-27 10:26:50 +08:00
Island
c854f7f1fd Merge branch 'feat/optimize_cble50y24_109_v5.3' into 'release/v5.3'
feat(bt/bluedroid): Added throughput mode for BLE SPP example (v5.3)

See merge request espressif/esp-idf!38692
2025-04-27 10:14:48 +08:00
Wang Meng Yang
c34c3feed6 Merge branch 'feat/add_api_get_avrc_status_v5.3' into 'release/v5.3'
feat(bt): Add API to get some information of Classic Bluetooth profile(v5.3)

See merge request espressif/esp-idf!38687
2025-04-27 09:52:58 +08:00
Alexey Gerenkov
585da85759 feat(tools): update openocd version to v0.12.0-esp32-20250422 2025-04-26 12:41:10 +02:00
akshat
2ec6169144 fix(wifi): Fix occasional dropping of SA Query responses by SoftAP 2025-04-25 17:46:43 +05:30
Jiang Jiang Jian
6a98af1fa0 Merge branch 'fix/update_os_time_struct_v5.3' into 'release/v5.3'
Modifying os_time_t datatype for platform and compiler independence

See merge request espressif/esp-idf!36718
2025-04-25 18:01:07 +08:00
Fu Hanxi
b27dd7c77a ci: rename local idf_ci folder, avoid name collision 2025-04-25 11:28:13 +02:00
Ivan Grokhotkov
f3782f6701 Merge branch 'fix/keep-got-sections-for-riscv_v5.3' into 'release/v5.3'
feat(esp_system): drop .got* sections and add hint (v5.3)

See merge request espressif/esp-idf!33370
2025-04-25 17:01:49 +08:00
morris
d68e22c828 Merge branch 'bugfix/remove_invalid_link_in_parlio_rx_example_v5.3' into 'release/v5.3'
fix(parlio_rx): remove invalid link in example readme (v5.3)

See merge request espressif/esp-idf!38751
2025-04-25 16:57:04 +08:00
laokaiyao
3455a47bd7 fix(parlio_rx): remove invalid link in example readme 2025-04-25 16:06:14 +08:00
wuzhenghui
c9946759dd fix(esp_hw_support): fix usj pad config bad retention
Closes https://github.com/espressif/esp-idf/issues/15797
2025-04-25 15:55:22 +08:00
tarun.kumar
f7ccfd2293 fix(wifi): Modify authmode to sta for sta connect event 2025-04-25 12:26:59 +05:30
tarun.kumar
155f41760a fix(esp_wifi): Modifying os_time_t datatype for platform and compiler independence 2025-04-25 12:26:38 +05:30
Zhou Xiao
ca8689dfdc feat(ble): Improved SPI BLE Log functionality
* Added checksum for every frame
* Added SPI slave transaction interval workaround
* Added SPI tx done isr issue workaround
* Turned buffer flush to a menuconfig and disabled by default
* Modified packet loss write operation and trigger condition
* Optimized buffer append efficiency for controller ISR


(cherry picked from commit 243705c143)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-04-25 14:53:41 +08:00
xiongweichao
60f188198b feat(bt): Add API to get some information of Classic Bluetooth profile 2025-04-25 14:47:57 +08:00
Wang Meng Yang
1977c705f4 Merge branch 'bugfix/l2cap_no_report_stop_server_evt_v5.3' into 'release/v5.3'
fix(bt): Fixed l2cap not reporting stop server completion event(v5.3)

See merge request espressif/esp-idf!38699
2025-04-25 12:04:22 +08:00
morris
d47c37f233 Merge branch 'test/parlio_rx_cache_safe_v5.3' into 'release/v5.3'
Reenable parlio rx cache safe test (v5.3)

See merge request espressif/esp-idf!38684
2025-04-24 18:47:42 +08:00
Rahul Tank
cc455c05d2 fix(nimble): Added code for missing adv stop in blufi 2025-04-24 14:22:11 +05:30
Alexey Lapshin
bbb257f893 feat(esp_system): drop .got* sections and add hint
Closes https://github.com/espressif/esp-idf/issues/14296
2025-04-24 16:36:31 +08:00
zwl
ae8047d36a feat(ble): add configuration command during RF testing 2025-04-24 16:08:05 +08:00
zhangbowen
3f6cc98495 feat(bt/bluedroid): Added throughput mode for BLE SPP example 2025-04-24 16:07:42 +08:00
xiongweichao
d909fe2156 fix(bt): Fixed l2cap not reporting stop server completion event 2025-04-24 15:14:45 +08:00
Marius Vikhammer
201b376200 Merge branch 'fix/freertos_tickless_idle_tick_jump_v5.3' into 'release/v5.3'
fix(freertos): Fixed tickless idle tick count accounting (v5.3)

See merge request espressif/esp-idf!38511
2025-04-24 13:35:26 +08:00
Marius Vikhammer
2f084e47c9 Merge branch 'fix/dram_dma_aligned_attr_for_p4_v5.3' into 'release/v5.3'
fix(esp_common): Fix DRAM_DMA_ALIGNED_ATTR for ESP32-P4 (v5.3)

See merge request espressif/esp-idf!38644
2025-04-24 13:34:35 +08:00
Marius Vikhammer
ae2b54430d Merge branch 'fix/multi_core_race_cond_in_panic_handler_v5.3' into 'release/v5.3'
fix(panic_handler): Prevent race condition in panic handler (v5.3)

See merge request espressif/esp-idf!38665
2025-04-24 11:34:47 +08:00
Shu Chen
0da8ecd5f3 Merge branch 'fix/meshcop_udp_port_v5.3' into 'release/v5.3'
fix(openthread/meshcop): get right udp port for publishing meshcop-e (v5.3)

See merge request espressif/esp-idf!38658
2025-04-24 11:06:14 +08:00
Shu Chen
0d1b3956cc Merge branch 'fix/ieee802154_tx_ack_timeout_crash_v5.3' into 'release/v5.3'
fix(802.15.4): fix 15.4 process for unsupported frame (v5.3)

See merge request espressif/esp-idf!38670
2025-04-24 10:59:08 +08:00
morris
fef5594966 fix(parlio): reenable parlio rx driver cache safe test 2025-04-24 10:47:11 +08:00
morris
fa3ee29633 fix(spi): allocate driver memory with caps explicitly 2025-04-24 10:47:11 +08:00
Jiang Jiang Jian
181aeb8245 Merge branch 'bugfix/fix_scan_info_error_in_lr_only_mode_v5.3' into 'release/v5.3'
fix(wifi): Fixed the scan information error in LR only mode (v5.3)

See merge request espressif/esp-idf!37809
2025-04-24 10:39:56 +08:00
Island
c367f335e5 Merge branch 'feat/support_136k_rc_clk_on_ble_sleep_v5.3' into 'release/v5.3'
Feat/support 136k rc clk on ble sleep (v5.3)

See merge request espressif/esp-idf!38620
2025-04-24 10:37:52 +08:00
morris
bbe8bfba44 Merge branch 'bugfix/fix_i2s_assign_and_check_sequence_v5.3' into 'release/v5.3'
fix(i2s): fixed i2s inappropriate check and assign sequence (v5.3)

See merge request espressif/esp-idf!38606
2025-04-24 10:34:09 +08:00
Jiang Jiang Jian
3a0d5d7854 Merge branch 'bugfix/fix_bt_access_ext_mem_in_intr_v5.3' into 'release/v5.3'
fix(bt/controller): Fixed access external memory in isr context (v5.3)

See merge request espressif/esp-idf!38573
2025-04-24 10:22:13 +08:00
Martin Vychodil
2b1150c223 Merge branch 'fix/nvs_tool_false_duplicate_warning_v5.3' into 'release/v5.3'
fix(nvs): nvs_tool.py refactor, reduce false duplicate warnings, add a test (v5.3)

See merge request espressif/esp-idf!33775
2025-04-23 22:14:44 +08:00
Rahul Tank
eac2f08842 fix(nimble): Update hid device example in nimble to work with iOS 2025-04-23 17:19:41 +05:30
Rahul Tank
a11b8f79da Merge branch 'fix/pawr_docs_v5.3' into 'release/v5.3'
feat(nimble):Added tutorials for PAwR examples (v5.3)

See merge request espressif/esp-idf!38623
2025-04-23 19:45:02 +08:00
Rahul Tank
33eb5fc7d7 Merge branch 'feat/pawr_bugfix_v5.3' into 'release/v5.3'
fix(nimble): Fix sync handle assignment for pawr connection (v5.3)

See merge request espressif/esp-idf!38503
2025-04-23 19:36:33 +08:00
zwx
7105516bc1 fix(802.15.4): fix 15.4 process for unsupported frame 2025-04-23 19:01:45 +08:00
Sudeep Mohanty
3dfb9cec3f fix(panic_handler): Prevent race condition in panic handler
This commit updates all RTC WDT contexts to be local instead of global
to avoid race conditions when both cores enter the panic handler
simultaneously.
2025-04-23 12:53:50 +02:00
Tan Yan Quan
a54cc0f79f fix(openthread/meshcop): get right udp port for publishing meshcop-e
* esp-openthread: thread_zigbee/esp-openthread@ad81e1b23
* openthread: espressif/openthread@8c30b93fe
* esp-idf: espressif/esp-idf@aa5357ab7
2025-04-23 10:09:51 +00:00
Roman Leonov
c44f46751a fix(usb_host): Correctly initialize set pipe ep char 2025-04-23 09:59:28 +02:00
Roman Leonov
3750d02cb1 fix(hcd): Added delay to slow down scatter-gather dma for ls device via fs hubs 2025-04-23 09:59:16 +02:00
Konstantin Kondrashov
e89352080f fix(esp_common): Fix DRAM_DMA_ALIGNED_ATTR for P4 2025-04-23 10:37:19 +03:00
Island
aa5357ab70 Merge branch 'bugfix/fix_some_ble_bugs_250331_esp32c3_v5.3' into 'release/v5.3'
Fixed some BLE bugs 250331 on esp32c3 (v5.3)

See merge request espressif/esp-idf!38579
2025-04-23 10:32:45 +08:00
Island
ee7e35a3fc Merge branch 'feat/optimize_cble50y24_111_v5.3' into 'release/v5.3'
feat(bt/bluedroid): Added BLE eddystone sender example (v5.3)

See merge request espressif/esp-idf!38157
2025-04-23 10:32:26 +08:00
Abhinav Kudnar
2f56e5e490 feat(nimble):Added tutorials for PAwR examples 2025-04-22 19:18:45 +08:00
cjin
7d88bc78f9 feat(ble): support ble sleep using 136 kHz RC on ESP32-C6 2025-04-22 19:09:58 +08:00
Jin Chen
31269f3f44 feat(ble): support ble sleep using 136 kHz RC on ESP32-H2
(cherry picked from commit 6c8ee69151)

Co-authored-by: cjin <jinchen@espressif.com>
2025-04-22 19:05:37 +08:00
Jin Chen
e851ff6671 feat(ble): support ble sleep using 136 kHz RC on ESP32-C2
(cherry picked from commit 73f1084bf8)

Co-authored-by: cjin <jinchen@espressif.com>
2025-04-22 19:05:35 +08:00
morris
5bcebb94ed Merge branch 'bugfix/fix_esp32_touch_example_task_watchdog_issue_v5.3' into 'release/v5.3'
fix(legacy_touch): fixed touch read WDT issue on esp32 (v5.3)

See merge request espressif/esp-idf!38582
2025-04-22 18:37:21 +08:00
Sudeep Mohanty
6d9ed9f905 test(freertos): Added a unit test for tickless idle tick jump scenario
This commit adds a unit test to test that tickless idle mode does not
cause an unexpected jump in tick count after tickless idle mode is
exited.
2025-04-22 16:32:20 +08:00
Sudeep Mohanty
f69d77bcb6 fix(freertos): Fixed tickless idle tick count accounting
This commit fixes an issue where the FreeRTOS kernel does not account
for the pended ticks occuring during automatic light-sleep mode and
hence causing a jump in the tick count at a later stage in the
application lifetime.

Closes: https://github.com/espressif/esp-idf/issues/15642
2025-04-22 16:32:20 +08:00
laokaiyao
cdb6426d2e fix(i2s): add check for the minimum sample rate
Closes https://github.com/espressif/esp-idf/issues/15659
2025-04-22 15:41:56 +08:00
laokaiyao
fdcf1dcecc fix(i2s): reset the dma buf_size while allocation failed
Closes https://github.com/espressif/esp-idf/issues/15648
2025-04-22 15:19:51 +08:00
Mahavir Jain
635c4190f8 Merge branch 'feat/add_config_to_set_addrfamily_v5.3' into 'release/v5.3'
feat(tcp_transport): add an api to configure the addr family (v5.3)

See merge request espressif/esp-idf!37912
2025-04-22 12:21:34 +08:00
zhangyanjiao
bccec2b6c1 fix(wifi): update wifi lib for scan and connect issues 2025-04-22 11:59:30 +08:00
zhangyanjiao
e8c42bd62d fix(wifi): fix the noise floor error on ESP32C5
Closes https://github.com/espressif/esp-idf/issues/15594
2025-04-22 11:59:21 +08:00
zhangyanjiao
3f15dfa313 fix(wifi): Update the doc for espnow add peer 2025-04-22 11:52:18 +08:00
zhangyanjiao
63f167570d fix(wifi): Fixed the scan information error when AP in LR only mode 2025-04-22 11:52:01 +08:00
zhangyanjiao
b8a242abca fix(wifi): Fixed the max log level not work when it exceeds the default log level 2025-04-22 11:51:30 +08:00
zhangyanjiao
1c63e3e70c docs(wifi): update the description for esp_mesh_send() return value
Closes https://github.com/espressif/esp-idf/issues/14440
2025-04-22 11:51:17 +08:00
Island
9201b68d1b Merge branch 'fix/blemesh25-92_v5.3' into 'release/v5.3'
fix(ble_mesh): fixed issues with decrypt failed when resending messages (v5.3)

See merge request espressif/esp-idf!38559
2025-04-22 11:50:20 +08:00
Island
2216ed92a0 Merge branch 'bugfix/fix_some_ble_bugs_2503_v5.3' into 'release/v5.3'
Bugfix/fix some ble bugs 2503 (v5.3)

See merge request espressif/esp-idf!38290
2025-04-22 11:48:59 +08:00
Island
8c0f374926 Merge branch 'feat/support_read_periodic_adv_size_v5.3' into 'release/v5.3'
feat(ble/bluedroid): Support read periodic advertiser list size command (v5.3)

See merge request espressif/esp-idf!37503
2025-04-22 11:48:45 +08:00
Island
2a45026a41 Merge branch 'feat/ble_read_long_value_v5.3' into 'release/v5.3'
feat(ble/bluedroid): Add Read Long Characteristic Values example (v5.3)

See merge request espressif/esp-idf!37488
2025-04-22 11:48:32 +08:00
Island
f3dc80e9f6 Merge branch 'bugfix/fix_ble_kconfig_v5.3' into 'release/v5.3'
fix(ble/controller): Fix BLE Kconfig on ESP32 to avoid unexpected behavior (v5.3)

See merge request espressif/esp-idf!37421
2025-04-22 11:48:20 +08:00
Jiang Jiang Jian
0ac4b9a486 Merge branch 'bugfix/sae_send_confirm_v5.3' into 'release/v5.3'
fix(esp_wifi): Fix send_confirm according to specification provided by IEEE 802.11 (v5.3)

See merge request espressif/esp-idf!38435
2025-04-22 10:21:13 +08:00
Jiang Jiang Jian
9312c3595e Merge branch 'esp32/run_panic_debug_v5.3' into 'release/v5.3'
fix(esp32): Fixed qa program may fail issue when cpu 240m (v5.3)

See merge request espressif/esp-idf!37233
2025-04-22 10:20:30 +08:00
laokaiyao
781ccfbd0c fix(touch): fixed tie option take no effect 2025-04-21 20:46:33 +08:00
Chen Jian Hua
eea10e1039 feat(bt/bluedroid): Added BLE eddystone sender example
(cherry picked from commit 06366353d8)

Co-authored-by: zhangbowen <zhangbowen@espressif.com>
2025-04-21 20:24:03 +08:00
Abhinav Kudnar
7dce8f8ecd fix(nimble): Fix sync handle assignment for pawr connection 2025-04-21 18:04:20 +08:00
Zhi Wei Jian
77f5da2cb4 feat(ble/bluedroid): Add sync_cte_type in creat_periodic_adv_sync function
(cherry picked from commit eb647d10c6)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2025-04-21 17:03:27 +08:00
Zhi Wei Jian
31d8a68a0b fix(ble/bluedroid): Fixed BLE_FEAT_CREATE_SYNC_ENH define error in bluedroid host
(cherry picked from commit cf6135c990)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2025-04-21 17:03:25 +08:00
Roland Dobai
8b725deb56 Merge branch 'bugfix/esp32p4_linker_script_v5.3' into 'release/v5.3'
fix(esp_system): add missing `arrays` attribute in the ESP32-P4 linker script (backport v5.3)

See merge request espressif/esp-idf!36095
2025-04-21 15:54:05 +08:00
Roland Dobai
833adbc27c Merge branch 'fix/linux_std_flags_v5.3' into 'release/v5.3'
fix(build): don't call enable_language() before project() (v5.3)

See merge request espressif/esp-idf!37881
2025-04-21 15:53:28 +08:00
Roland Dobai
d618bb56e1 Merge branch 'fix/remove-unused-from-gdbinit_cmake_v5.3' into 'release/v5.3'
fix(tools): remove unused variables in gdbinit.cmake (v5.3)

See merge request espressif/esp-idf!38046
2025-04-21 15:53:06 +08:00
Roland Dobai
d73b3d8129 Merge branch 'fix/check_python_dependencies_v5.3' into 'release/v5.3'
fix(tools): handle packages with dots in their names during dependency checks (v5.3)

See merge request espressif/esp-idf!38063
2025-04-21 15:49:39 +08:00
Roland Dobai
81968004de Merge branch 'feat/deactivate_idf_env_every_run_v5.3' into 'release/v5.3'
feat(tools): Deactivate current ESP-IDF environment with every export run (v5.3)

See merge request espressif/esp-idf!38027
2025-04-21 15:49:13 +08:00
Roland Dobai
58c14765ae Merge branch 'fix/install_input_validation_v5.3' into 'release/v5.3'
fix(idf_tools): Validate input features (v5.3)

See merge request espressif/esp-idf!37890
2025-04-21 15:48:52 +08:00
Roland Dobai
3f2690aa78 Merge branch 'fix/extractall_deprecation_v5.3' into 'release/v5.3'
fix(idf_tools): Patch extractall() deprecation warning (v5.3)

See merge request espressif/esp-idf!37884
2025-04-21 15:48:34 +08:00
Roland Dobai
28b2914c95 Merge branch 'fix/fix_kconfig_files_v5.3' into 'release/v5.3'
fix(kconfig): Fix issues with Kconfig files (v5.3)

See merge request espressif/esp-idf!37576
2025-04-21 15:48:18 +08:00
Roland Dobai
65699a0bda Merge branch 'change/move_deprecated_kconfig_checker_v5.3' into 'release/v5.3'
change: move check_deprecated_configs.py logic to esp-idf-kconfig (v5.3)

See merge request espressif/esp-idf!37406
2025-04-21 15:48:00 +08:00
laokaiyao
be96ad682b fix(legacy_touch): fixed the concurrent issue in esp32 touch driver 2025-04-21 15:04:43 +08:00
laokaiyao
584092aec1 fix(touch): fixed touch read WDT issue on esp32
Closes https://github.com/espressif/esp-idf/issues/15629
2025-04-21 14:47:38 +08:00
Chen Jian Hua
3dbcb7b7f8 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(a684dd5)
- Fixed clear legacy adv error when adv not exist
- Disable anonymous extended adv reporting
- Fixed BLE assert lld_adv.c 2992
- Fixed heap assert due to adv data buffer double freeing
- Fixed BLE 0x08 disconnect when the win size is greater than half of the conn interval


(cherry picked from commit 4602665e5d)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-04-21 14:33:34 +08:00
linruihao
2d39af8aa0 fix(bt/controller): Fixed access external memory in isr context 2025-04-21 14:22:56 +08:00
Jin Cheng
4173a7f896 fix(bt/controller): update libbtdm_app.a
- fixed errors in the coexistance of ACL and SCO
- fixed dynamic priority config error in dual mode
2025-04-21 14:22:56 +08:00
Jiang Jiang Jian
a8381ef00d Merge branch 'bugfix/pmkid_password_mismatch_v5.3' into 'release/v5.3'
fix(wifi): Fix wrong PMKSA cache entry being used when wifi password is changed (Backport v5.3)

See merge request espressif/esp-idf!37472
2025-04-21 14:21:53 +08:00
Island
182b1583c7 Merge branch 'change/ble_update_lib_20250417_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20250417 - Update ESP BLE Controller Lib (v5.3)

See merge request espressif/esp-idf!38544
2025-04-21 10:40:43 +08:00
Marius Vikhammer
9e2fe50fb0 Merge branch 'fix/lp_wakeup_cause_bits_accumulation_v5.3' into 'release/v5.3'
fix(ulp): Fix accumulation of wakeup cause bits in ULP (v5.3)

See merge request espressif/esp-idf!38562
2025-04-21 08:53:00 +08:00
morris
7356a99938 Merge branch 'bugfix/ppa_srm_scale_frag_yuv420_v5.3' into 'release/v5.3'
fix(ppa): fix ppa srm potentially get blocked when scaling to YUV420 (v5.3)

See merge request espressif/esp-idf!37593
2025-04-19 23:13:40 +08:00
Sarvesh Bodakhe
04a0e6304b fix(wifi): Fix wrong PMKSA cache entry being used when wifi password is changed
Co-authored-by: yinqingzhao <yinqingzhao@espressif.com>
2025-04-19 16:39:56 +05:30
Konstantin Kondrashov
d41fc36511 fix(ulp): Fix accumulation of wakeup cause bits in ULP
Closes https://github.com/espressif/esp-idf/issues/15794
2025-04-18 15:52:46 +03:00
Luo Xu
3679e52a89 fix(ble_mesh): fixed issues with decrypt failed when resending messages
(cherry picked from commit 4803cea3cc)

Co-authored-by: luoxu <luoxu@espressif.com>
2025-04-18 20:23:43 +08:00
Wang Meng Yang
916f1992bd Merge branch 'fix/some_issues_in_bt_controller_v5.3' into 'release/v5.3'
fix(bt): fixed some issues in bt controller(backport v5.3)

See merge request espressif/esp-idf!38449
2025-04-18 17:51:23 +08:00
Shen Wei Long
758eeb45a7 change(ble): [AUTO_MR] Update lib_esp32c6 to cd6ba0ec
(cherry picked from commit a89916eef4)

Co-authored-by: Shen Weilong <shenweilong@espressif.com>
2025-04-18 14:10:06 +08:00
Shen Wei Long
e6d2a5debb change(ble): [AUTO_MR] Update lib_esp32h2 to cd6ba0ec
(cherry picked from commit d48cc9ce2a)

Co-authored-by: Shen Weilong <shenweilong@espressif.com>
2025-04-18 14:10:04 +08:00
Tan Yan Quan
0a0da0ce97 fix(openthread): check state for ot wake 2025-04-18 12:15:36 +08:00
Tan Yan Quan
b605247441 fix(openthread): relax CSL accuracy default value 2025-04-18 12:15:36 +08:00
Island
c399ca8fab Merge branch 'change/ble_update_lib_20250414_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20250414 - Update ESP BLE Controller Lib (v5.3)

See merge request espressif/esp-idf!38493
2025-04-18 11:07:12 +08:00
morris
c4f2a9b192 Merge branch 'fix/usb_host_docs_host_num_chan_reference_backport_v5.3' into 'release/v5.3'
fix(usb_host): Fixing reference to OTG_NUM_HOST_CHAN in docs backport to v5.3

See merge request espressif/esp-idf!37390
2025-04-18 10:25:57 +08:00
morris
643a78d0c4 Merge branch 'docs/add_note_about_twai_instance_install_v5.3' into 'release/v5.3'
docs: Add a note about TWAI multiple instances install (v5.3)

See merge request espressif/esp-idf!37966
2025-04-18 10:25:49 +08:00
morris
950c9df5e5 Merge branch 'fix/fix_mmu_map_concurrent_issue_v5.3' into 'release/v5.3'
mmu: fix mmu map concurrent issue (v5.3)

See merge request espressif/esp-idf!38410
2025-04-17 21:13:28 +08:00
Jiang Jiang Jian
e63d13e0bd Merge branch 'change/allow_keep_sar_poweron_in_light_sleep_v5.3' into 'release/v5.3'
change(esp_hw_support): allow sar power keep on during lightsleep (v5.3)

See merge request espressif/esp-idf!38455
2025-04-17 17:19:22 +08:00
Jiang Jiang Jian
a34413811c Merge branch 'fix/fix_current_leakage_after_ext_osc_detect_failed_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix current leakage if ext32k slow clock source not exists (v5.3)

See merge request espressif/esp-idf!38440
2025-04-17 17:16:46 +08:00
Jiang Jiang Jian
0e84a52417 Merge branch 'fix/esp32p4_xtal_path_not_on_top_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix esp32p4 xtal_xpd depends on TOP power domain (v5.3)

See merge request espressif/esp-idf!38453
2025-04-17 17:14:56 +08:00
Rocha Euripedes
ba53fb402e Merge branch 'fix/fix-test-socks-transport_v5.3' into 'release/v5.3'
fix(tcp_transport): Fix test for socks transport (v5.3)

See merge request espressif/esp-idf!38294
2025-04-17 16:16:29 +08:00
Zhou Xiao
d1b7a2adbd change(ble): bugs fixed on spi ble log
* removed spi master in iram select for flash only firmware
* fixed memory issue in transaction init function
* fixed memory issue in transaction deinit function
2025-04-17 13:43:12 +08:00
Jiang Jiang Jian
a96e966f69 Merge branch 'fix/fix_uart_console_broken_after_sleep_v5.3' into 'release/v5.3'
fix(esp_hw_support): fixed gpio sleep switching filling junk data to the console UART FIFO (v5.3)

See merge request espressif/esp-idf!38445
2025-04-17 11:01:39 +08:00
chaijie@espressif.com
bb0dac0a72 fix(esp32): Fixed qa program may fail issue when cpu 240m (v5.3) 2025-04-17 10:58:51 +08:00
Jiang Jiang Jian
10a20f3388 Merge branch 'ci/add_test_for_ecos_wifi_enterprise_v53' into 'release/v5.3'
ci(c2/c3): add major eco version tests(v5.3)

See merge request espressif/esp-idf!37806
2025-04-17 10:56:45 +08:00
Zhou Xiao
2f511e9a87 fix(ble): remove null pointer assert in npl event deinit
(cherry picked from commit ece108c0bf)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-04-17 10:54:35 +08:00
Zhou Xiao
47ff853520 feat(ble): support configurable rxbuf opt feat on ESP32-C6
(cherry picked from commit 5fbbec8655)

Co-authored-by: cjin <jinchen@espressif.com>
2025-04-17 10:54:33 +08:00
Zhou Xiao
659d7ad3cc feat(ble): support configurable rxbuf opt feat on ESP32-H2
(cherry picked from commit 4937d3c883)

Co-authored-by: cjin <jinchen@espressif.com>
2025-04-17 10:54:31 +08:00
Zhou Xiao
c5ac5e42b3 feat(ble): use new section for ble sleep on ESP32-C2
(cherry picked from commit ce4e012c8b)

Co-authored-by: cjin <jinchen@espressif.com>
2025-04-17 10:54:29 +08:00
Zhou Xiao
246b1ca89d change(ble): [AUTO_MR] Update lib_esp32c2 to fca2b9ea
(cherry picked from commit 09467baed0)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-04-17 10:54:26 +08:00
Zhou Xiao
8c4a9675f7 change(ble): [AUTO_MR] Update lib_esp32c6 to 76549818
(cherry picked from commit e2d1a5509e)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-04-17 10:54:24 +08:00
Zhou Xiao
a666e3edbf change(ble): [AUTO_MR] Update lib_esp32h2 to 76549818
(cherry picked from commit c11bb1ddd0)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-04-17 10:54:22 +08:00
Wang Meng Yang
8b83368211 Merge branch 'feat/add_l2cap_register_event_v5.3' into 'release/v5.3'
feat(bt): Added events for l2cap register and unregister vfs(v5.3)

See merge request espressif/esp-idf!38422
2025-04-17 08:10:51 +08:00
Mahavir Jain
5b2e8f2b38 fix(esp_system): reset crypto peripherals before device restart
This change addresses a rare but critical issue observed on certain
ESP32-C3 and ESP32-S3 devices, where secure boot verification
intermittently fails due to improper cleanup of crypto peripherals
during a restart.

Background – Restart Behavior in IDF
------------------------------------
In ESP-IDF, when the device restarts (via `esp_restart()` or due to a
panic/exception), a partial peripheral reset is performed followed by a
CPU reset. However, until now, crypto-related peripherals were not
included in this selective reset sequence.

Problem Scenario
----------------
If a restart occurs while the application is in the middle of a bignum
operation (i.e., using the MPI/Bignum peripheral), the ROM code may
encounter an inconsistent peripheral state during the subsequent boot.
This leads to transient RSA-PSS secure boot verification failures.

Following such a failure, the ROM typically triggers a full-chip reset
via the watchdog timer (WDT). This full reset clears the crypto
peripheral state, allowing secure boot verification to succeed on the
next boot.

Risk with Aggressive Revocation
-------------------------------
If secure boot aggressive revocation is enabled (disabled by default in
IDF), this transient verification failure could mistakenly lead to
revocation of the secure boot digest.

If your product configuration has aggressive revocation enabled,
applying this fix is strongly recommended.

Frequency of Occurrence
-----------------------
The issue is rare and only occurs in corner cases involving
simultaneous use of the MPI peripheral and an immediate CPU reset.

Fix
---
This fix ensures that all crypto peripherals are explicitly reset prior
to any software-triggered restart (including panic scenarios),
guaranteeing a clean peripheral state for the next boot and preventing
incorrect secure boot behavior.
2025-04-16 20:31:44 +08:00
wuzhenghui
5ce6c51c28 fix(esp_hw_support): fix unused OSC source deinit breaks XTAL32K configuration 2025-04-16 17:19:08 +08:00
wuzhenghui
8d55741d32 fix(esp_hw_support): fix current leakage if ext32k slow clock source not exists 2025-04-16 17:19:04 +08:00
wuzhenghui
9131a6f556 change(esp_hw_support): allow sar power keep on during lightsleep
Closes https://github.com/espressif/esp-idf/issues/12426
2025-04-16 16:05:38 +08:00
wuzhenghui
d8e9167dcf fix(esp_hw_support): fix esp32p4 xtal_xpd depends on TOP power domain 2025-04-16 15:43:05 +08:00
Marius Vikhammer
b187b74bfc Merge branch 'fix/ringbuf_allow_split_receive_crash_v5.3' into 'release/v5.3'
fix(ringbuf): xRingbufferReceive() crashes for allow-split buffers (v5.3)

See merge request espressif/esp-idf!37923
2025-04-16 15:31:12 +08:00
gongyantao
fb5a67c1d3 fix(bt): fixed some issues in bt controller
- add check for Wi-Fi channel
- fix the incorrect unit of duration_min in cpb tx
- recalculate the channel map when afh is enabled
- fix incorrect vendor event count causing an assertion failure
2025-04-16 15:31:04 +08:00
wuzhenghui
1677013d7b fix(esp_hw_support): fixed gpio sleep switching filling junk data to the console UART FIFO 2025-04-16 15:24:52 +08:00
Island
5de769cba4 Merge branch 'change/ble_update_lib_20250313_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20250313 - Update ESP BLE Controller Lib (v5.3)

See merge request espressif/esp-idf!37821
2025-04-16 14:38:01 +08:00
Shreyas Sheth
d5b8462f5b ci(wifi): Add build test for with wpa3 disabled for station and softap 2025-04-16 11:56:31 +05:30
Shreyas Sheth
08993cd527 fix(esp_wifi): Fix send_confirm according to specification provided by IEEE 802.11 2025-04-16 11:56:31 +05:30
Rahul Tank
5ac3846998 Merge branch 'bugfix/fix_few_nimble_issues_15042025_v5.3' into 'release/v5.3'
fix(nimble): Fix few nimble issues_15042025 (v5.3)

See merge request espressif/esp-idf!38424
2025-04-16 14:20:13 +08:00
Song Ruo Jing
ca8c9a297f fix(ppa): fix ppa srm potentially get blocked when scaling to YUV420
YUV420 requires scale_x_frag, scale_y_frag be even
2025-04-16 11:33:26 +08:00
Song Ruo Jing
bf147686a7 fix(dma2d): dma2d_force_end should not crash when rx channel is idle 2025-04-16 11:33:20 +08:00
Island
9a97296876 Merge branch 'feat/support_blecrt_359_v5.3' into 'release/v5.3'
Support BLE vendor hci set rx sensie and max gain on esp32c3 (v5.3)

See merge request espressif/esp-idf!38129
2025-04-16 11:25:15 +08:00
Mahavir Jain
52b43b318d Merge branch 'feat/update_mbedtls_3.6.3_v5.3' into 'release/v5.3'
feat(component/mbedtls): update to upstream v3.6.3 (v5.3)

See merge request espressif/esp-idf!38179
2025-04-16 11:15:26 +08:00
Marius Vikhammer
ce31db18b8 Merge branch 'bugfix/heap_in_flash_v5.3' into 'release/v5.3'
fix(heap): fixed CONFIG_HEAP_PLACE_FUNCTION_INTO_FLASH not working together with CONFIG_HEAP_TLSF_USE_ROM_IMPL (v5.3)

See merge request espressif/esp-idf!38122
2025-04-16 11:11:43 +08:00
morris
a29e9974d0 Merge branch 'fix/flash_encryption_verify_write_etc_v5.3' into 'release/v5.3'
fix(spi_flash): Fix flash encryption write verify (backport v5.3)

See merge request espressif/esp-idf!38270
2025-04-16 10:29:13 +08:00
morris
94f6398f35 Merge branch 'fix/i2s_iram_safe_issue_while_use_psram_v5.3' into 'release/v5.3'
fix(i2s): fixed failure when dma is iram_safe but i2s not (v5.3)

See merge request espressif/esp-idf!38004
2025-04-16 10:27:59 +08:00
morris
3fc84fdbca Merge branch 'fix/usb-hal-dwc-host-channel-num_v5.3' into 'release/v5.3'
fix(usb/hal/dwc): Correct host channel number calculation (backport v5.3)

See merge request espressif/esp-idf!37373
2025-04-16 10:21:29 +08:00
morris
b4baef0e47 Merge branch 'fix/usb_phy_pull_override_backport_v5.3' into 'release/v5.3'
fix(usb_phy): Removed pad pull override config for Full-speed (backport to v5.3)

See merge request espressif/esp-idf!36775
2025-04-16 10:21:11 +08:00
morris
f1bc85de12 Merge branch 'fix/usb_host_enum_unchecked_return_coverity_backport_v5.3' into 'release/v5.3'
fix(usb_host): Fixed unchecked return value in enum driver (coverity) (backport to v5.3)

See merge request espressif/esp-idf!36670
2025-04-16 10:20:38 +08:00
morris
3f9d5cac2a Merge branch 'bugfix/clear_ledc_gamma_ram_v5.3' into 'release/v5.3'
fix(ledc): left-off gamma ram registers should be cleared (v5.3)

See merge request espressif/esp-idf!37573
2025-04-16 10:19:51 +08:00
morris
aa9900290a Merge branch 'fix/usb-host-device-close-err-give-semaphore_v5.3' into 'release/v5.3'
fix(usb_host): Give semaphore on attempted close of non-opened device (backport v5.3)

See merge request espressif/esp-idf!38152
2025-04-16 10:19:08 +08:00
morris
7c447b5525 Merge branch 'bugfix/gpio_dump_io_config_v5.3' into 'release/v5.3'
fix(gpio): fix pu, pd, drv value incorrect from gpio_dump_io_configuration on esp32 (v5.3)

See merge request espressif/esp-idf!37909
2025-04-16 10:17:44 +08:00
morris
ba27554f0c Merge branch 'feat/allow_rmt_tx_channel_to_switch_other_gpios_v5.3' into 'release/v5.3'
feat(rmt_tx): allow to switch gpio in tx channal (v5.3)

See merge request espressif/esp-idf!38395
2025-04-16 10:13:08 +08:00
Alexey Gerenkov
67d7cde1f1 Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20250226_v5.3' into 'release/v5.3'
feat(tools): update openocd version to v0.12.0-esp32-20250226 (v5.3)

See merge request espressif/esp-idf!37527
2025-04-16 00:12:14 +08:00
Alexey Gerenkov
de7d36f0e9 Merge branch 'fix/apptrace_basic_tests_v5.3' into 'release/v5.3'
test(apptrace): run tests from custom OpenOCD class (v5.3)

See merge request espressif/esp-idf!37603
2025-04-16 00:11:05 +08:00
Alexey Gerenkov
7c1972c120 Merge branch 'fix/esp32p4_apptrace_v5.3' into 'release/v5.3'
fix(apptrace): replace ctrl block into noncache-able TCM  memory (v5.3)

See merge request espressif/esp-idf!38363
2025-04-16 00:08:16 +08:00
Alexey Gerenkov
17fea0dabe Merge branch 'fix/coredump_uart_checksum_error_v5.3' into 'release/v5.3'
Fix/coredump uart checksum error (v5.3)

See merge request espressif/esp-idf!38365
2025-04-15 23:58:21 +08:00
morris
430695b85d Merge branch 'fix/jpeg_dma_stuck_v5.3' into 'release/v5.3'
fix(jpeg): use dma2d empty rx desc event to avoid a stuck on bad quality image (backport v5.3)

See merge request espressif/esp-idf!38263
2025-04-15 21:52:55 +08:00
morris
d808131b51 Merge branch 'fix/i2c_race_condition_etc_v5.3' into 'release/v5.3'
fix(i2c_master): Fix i2c master race condition issue, etc. (backport v5.3)

See merge request espressif/esp-idf!38266
2025-04-15 21:44:29 +08:00
Jiang Jiang Jian
52331299e9 Merge branch 'feature/support_sco_coexist_v5.3' into 'release/v5.3'
feat(coex): Support BR/EDR (e)SCO and Wi-Fi coexistence

See merge request espressif/esp-idf!38134
2025-04-15 19:59:46 +08:00
Shreeyash
fc72283f48 fix(nimble): Fix incorrect OTA address assignment 2025-04-15 17:15:16 +05:30
Rahul Tank
e4da6e3155 fix(nimble): Fixed one missing ble_hs_unlock() 2025-04-15 17:15:01 +05:30
Rahul Tank
27a137cf43 fix(nimble): Handle connection posting condition 2025-04-15 17:14:35 +05:30
Rahul Tank
3182b8381f Merge branch 'bugfix/fix_sscanf_usage_v5.3' into 'release/v5.3'
fix(nimble): Updated sscanf usage in examples to work for all versions (v5.3)

See merge request espressif/esp-idf!38022
2025-04-15 19:24:10 +08:00
Shu Chen
7f7eaf8046 Merge branch 'feature/add_ot_cli_ci_case_v5.3' into 'release/v5.3'
feat(openthread): add openthread ci ssed case v5.3

See merge request espressif/esp-idf!38255
2025-04-15 19:20:13 +08:00
Rahul Tank
c0935d4208 Merge branch 'bugfix/replace_sizeof_with_strlen_v5.3' into 'release/v5.3'
fix(nimble): Replaced incorrect sizeof with strnlen (v5.3)

See merge request espressif/esp-idf!37798
2025-04-15 19:18:30 +08:00
Rahul Tank
84c416079f Merge branch 'fix/periodic_adv_example_v5.3' into 'release/v5.3'
fix(nimble):Fix conversion for min-max itvl of periodic adv param (v5.3)

See merge request espressif/esp-idf!38092
2025-04-15 19:17:14 +08:00
Rahul Tank
002c737d39 Merge branch 'feat/added_change_to_ble_spp_client_v5.3' into 'release/v5.3'
feat(nimble): Allow BLE SPP Client to subscribe to the server (v5.3)

See merge request espressif/esp-idf!37456
2025-04-15 19:16:42 +08:00
xiongweichao
a2d88bf700 fix(bt): fixed spp not reporting write event 2025-04-15 19:07:35 +08:00
xiongweichao
7e3efc45ad fix(bt): Fixed the issue with l2cap not using dynamic memory 2025-04-15 19:07:31 +08:00
xiongweichao
4a64e655de fix(bt): Fixed write_read task stack overflow in l2cap example 2025-04-15 19:07:26 +08:00
xiongweichao
259bc660b3 feat(bt): Added events for l2cap register and unregister vfs 2025-04-15 19:07:21 +08:00
Shu Chen
f8886ebb72 Merge branch 'fix/ldgen_section_name_v53' into 'release/v5.3'
fix(ldgen): extend section name regex to include '_' (v5.3)

See merge request espressif/esp-idf!38326
2025-04-15 14:56:36 +08:00
chenjianhua
2a30f64b71 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(566c8e3)
- Support BLE vendor hci set RX sensitivity and AGC gain command
- Fixed enhanced TX power setting and getting for legacy adv
- Fixed BLE assert lld_con.c 2387
- Fixed compatibility issues during the encryption procedure
- Support BLE vendor hci enable CCA command
2025-04-15 14:48:25 +08:00
morris
13cf4ba87c Merge branch 'bugfix/sdmmc_high_prio_timeout_v5.3' into 'release/v5.3'
fix(sdmmc): move DMA descriptor refilling into the ISR (v5.3)

See merge request espressif/esp-idf!37688
2025-04-15 14:47:50 +08:00
morris
4bab63dc26 Merge branch 'fix/pr_15513_psram_bss_noinit_calc_issue_v5.3' into 'release/v5.3'
psram: correct .bss and .noinit vaddr calculation (v5.3)

See merge request espressif/esp-idf!37663
2025-04-15 14:45:42 +08:00
Chen Jichang
392422573d feat(rmt_tx): allow to switch gpio in tx channal 2025-04-15 14:40:51 +08:00
armando
231694ac25 test(system): increased 200B memory leak thresh due to mmu mmap mutex
200B to extend the thresh, real increase to the memory usage will be smaller
2025-04-15 14:24:23 +08:00
armando
1b763ce920 test(mmu): added esp_mmu_map concurrency test 2025-04-15 14:23:59 +08:00
armando
17f3a1e353 fix(mmu): fixed esp_mmu_map concurrent issue and add related docs 2025-04-15 14:23:56 +08:00
baohongde
a90116fdd1 feat(coex): Support BR/EDR (e)SCO and Wi-Fi coexistence 2025-04-15 14:17:21 +08:00
Ashish Sharma
ededcccda5 feat(mbedtls): new config to allow weak cert verification 2025-04-15 13:10:26 +08:00
Ashish Sharma
45bf1239d6 feat(mbedtls): update to version 3.6.3 2025-04-15 13:10:26 +08:00
C.S.M
6efaf6b85c fix(i2c_master): Fix the stretch happen cause timeout in probe,
Closes https://github.com/espressif/esp-idf/issues/15589
2025-04-15 13:09:12 +08:00
C.S.M
e225e29196 fix(i2c): Fix i2c slave auto selection issue,
Closes https://github.com/espressif/esp-idf/issues/15644
2025-04-15 13:09:12 +08:00
C.S.M
3aeeb7585d fix(i2c): Fix the array size of static operation,
Closes https://github.com/espressif/esp-idf/issues/15583
2025-04-15 13:09:12 +08:00
C.S.M
7f37a6fd66 fix(i2c_master): Fix i2c master race condition issue,
Closes https://github.com/espressif/esp-idf/issues/15444
2025-04-15 13:09:12 +08:00
Mahavir Jain
352704257a Merge branch 'fix/examples_python3.13_ssl_conn_failure_v5.3' into 'release/v5.3'
Change in Python3.13's default ssl context caused SSL connection failure (v5.3)

See merge request espressif/esp-idf!38200
2025-04-15 12:37:07 +08:00
Rahul Tank
70c9a757c7 Merge branch 'fix/ble_issue_10032025_v5.3' into 'release/v5.3'
fix(nimble): Fix some nimble issues ble_issue_10032025_v5.3

See merge request espressif/esp-idf!37623
2025-04-15 12:32:44 +08:00
Shen Weilong
af828cc8f5 fix(ble): fixed a heap assertion issue when enabling BLE for esp32c2 v2.0 2025-04-15 12:21:25 +08:00
Shen Weilong
7856fefea1 feat(ble/controller): Added memory boundary check for ESP32-C2 2025-04-15 12:20:31 +08:00
Shen Weilong
353abd8d22 feat(ble/controller): Added memory boundary check for ESP32-C6 and ESP32-H2 2025-04-15 12:20:20 +08:00
Geng Yuchao
6b123e9cc7 fix(ble): Add link requires esp_phy for ble. 2025-04-15 12:17:03 +08:00
Zhou Xiao
9fc5f5c1ef fix(ble): fix ble log init failure mem leak for ESP32 2025-04-15 12:17:03 +08:00
Zhou Xiao
e4225026b5 fix(ble): fix ble log init failure mem leak for ESP32-C3 2025-04-15 12:17:03 +08:00
cjin
4ad5cebd84 fix(ble): remove macro in lpclk src get api on ESP32-C6 2025-04-15 12:17:03 +08:00
cjin
8e93f25f4d fix(ble): remove macro in lpclk src get api on ESP32-C5 2025-04-15 12:17:03 +08:00
zwl
87838acaed feat(ble): add enhanced connect function on ESP32-C2 2025-04-15 12:17:03 +08:00
Zhou Xiao
c3d2bc6302 feat(ble): support ble log simple output via SPI interface for ESP32-C6 2025-04-15 12:17:03 +08:00
Zhou Xiao
90954505ff feat(ble): support ble log simple output via SPI interface for ESP32-C5 2025-04-15 12:17:03 +08:00
Zhou Xiao
e22a8ff4fc feat(ble): support ble log simple output via SPI interface for ESP32-H2 2025-04-15 12:17:03 +08:00
Zhou Xiao
9c27284fd5 feat(ble): support ble log simple output via SPI interface for ESP32-C2 2025-04-15 12:17:03 +08:00
Zhou Xiao
1dac25fab7 fix(ble): add feed wdts during ble log dump for ESP32-C2 2025-04-15 12:17:03 +08:00
Zhou Xiao
e7dd876456 feat(ble): support ble log simple output via SPI interface 2025-04-15 12:17:03 +08:00
Shu Chen
935f66096f Merge branch 'feature/add_txrx_frame_dump_debugging_v5.3' into 'release/v5.3'
feat(802.15.4): supported tx/rx frame dumping (v5.3)

See merge request espressif/esp-idf!38235
2025-04-15 12:11:08 +08:00
Shu Chen
aa220e7b65 Merge branch 'fix/154_txpower_set_api_v5.3' into 'release/v5.3'
fix(802.15.4): fix the behavior of the `esp_ieee802154_set_txpower` (v5.3)

See merge request espressif/esp-idf!37737
2025-04-15 12:10:44 +08:00
Shu Chen
d84c417459 Merge branch 'feat/update_ot_upstream_v53' into 'release/v5.3'
feat(openthread): update openthread upstream submodule to support BR DNS resolution (v5.3)

See merge request espressif/esp-idf!38187
2025-04-15 12:09:54 +08:00
Shu Chen
4eddf0c42b Merge branch 'fix/csl_rx_off_when_idle_v5.3' into 'release/v5.3'
fix(openthread): turn off rx for SSED running CSL during idle (v5.3)

See merge request espressif/esp-idf!37993
2025-04-15 12:09:42 +08:00
Shu Chen
0ed17a246e Merge branch 'bugfix/fix_ot_ci_cases_avahi_service_issue_v5.3' into 'release/v5.3'
feat(openthread): fix ci avahi service cases issue (v5.3)

See merge request espressif/esp-idf!37862
2025-04-15 12:09:03 +08:00
Shu Chen
0161f5e59c Merge branch 'support/ieee802154_set_txon_delay_using_phylib_impl_v5.3' into 'release/v5.3'
feat(802.15.4): configure tx on delay using phylib implementation (v5.3)

See merge request espressif/esp-idf!37657
2025-04-15 12:07:54 +08:00
Island
97016c986c Merge branch 'feat/optimize_hci_data_recv_process_v5.3' into 'release/v5.3'
Feat/optimize hci data recv process (v5.3)

See merge request espressif/esp-idf!37833
2025-04-15 11:35:08 +08:00
Island
4615344118 Merge branch 'feat/support_bluedroid_host_iso_feature_master_v5.3' into 'release/v5.3'
Fixed controller flash only bug if hci-uart is enabled (v5.3)

See merge request espressif/esp-idf!38162
2025-04-15 11:34:53 +08:00
Marius Vikhammer
7fea3ef20f Merge branch 'bug/xtensa_cpu1_sys_lockup_v5.3' into 'release/v5.3'
fix(panic_handler): Updated panic handler to use RTC WDT (v5.3)

See merge request espressif/esp-idf!37115
2025-04-15 11:05:57 +08:00
morris
5ad0818c9f Merge branch 'refactor/ana_cmpr_driver_v5.3' into 'release/v5.3'
refactor(ana_cmpr): enhanced the driver implementation (v5.3)

See merge request espressif/esp-idf!38389
2025-04-15 10:57:27 +08:00
morris
3816f5f281 Merge branch 'fix/parlio_add_gdma_fifo_reset_v5.3' into 'release/v5.3'
fix(parlio_tx): add clock and fifo reset in disable function (v5.3)

See merge request espressif/esp-idf!36274
2025-04-15 10:47:25 +08:00
Jiang Jiang Jian
fe5e048a56 Merge branch 'fix/fix_sleep_reject_on_esp32_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix short duration sleep requests rejected in pd_flash lightsleep (v5.3)

See merge request espressif/esp-idf!38222
2025-04-15 10:33:19 +08:00
Jiang Jiang Jian
c1c257d47f Merge branch 'bugfix/remove_broken_link_for_wifi_expansion_v5.3' into 'release/v5.3'
bugfix: Remove the broken link in wifi-expansion.rst (v5.3)

See merge request espressif/esp-idf!38333
2025-04-15 10:32:30 +08:00
morris
949b0451d7 Merge branch 'bugfix/ledc_fade_stop_race_condition_v5.3' into 'release/v5.3'
fix(ledc): fix race condition in ledc_fade_stop causing assert failure (v5.3)

See merge request espressif/esp-idf!38081
2025-04-15 10:32:17 +08:00
Jiang Jiang Jian
ca42f3e1a2 Merge branch 'doc/add_wakeup_source_usage_precautions_v5.3' into 'release/v5.3'
change(doc): added more usage notes & warings about PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP (v5.3)

See merge request espressif/esp-idf!37392
2025-04-15 10:32:09 +08:00
Jiang Jiang Jian
71f774e3ca Merge branch 'update/version_5_3_3' into 'release/v5.3'
Update version to 5.3.3

See merge request espressif/esp-idf!38314
2025-04-15 10:30:48 +08:00
morris
086e129cd3 Merge branch 'bugfix/enable_additional_lp_io_wakeup_v5.3' into 'release/v5.3'
fix(lp_io): enable setting edge type wakeup sources for targets that support this (v5.3)

See merge request espressif/esp-idf!36012
2025-04-15 10:30:26 +08:00
morris
1eb1fad16d Merge branch 'bugfix/uart_async_rxtxtasks_example_stack_overflow_v5.3' into 'release/v5.3'
fix(uart): enlarged task stack size for uart_async_rxtxtasks example (v5.3)

See merge request espressif/esp-idf!37591
2025-04-15 10:27:53 +08:00
Jiang Jiang Jian
02dcf4f33d Merge branch 'feature/github_pull_15073_v5.3' into 'release/v5.3'
feat(wpa_supplicant): Add optimized PSK implementation (v5.3)

See merge request espressif/esp-idf!38105
2025-04-15 10:25:53 +08:00
morris
cff4d595e5 Merge branch 'fix/jpeg_decoder_collective_backport_v5.3' into 'release/v5.3'
fix(jpeg_decoder): JPEG Decoder collective backport to v5.3

See merge request espressif/esp-idf!37508
2025-04-15 10:24:04 +08:00
Marius Vikhammer
6d8f288bbc Merge branch 'bugfix/p4_lpwdt_efuse_v5.3' into 'release/v5.3'
fix(lpwdt): P4 LP-WDT now takes into account the EFUSE_WDT_DELAY for the timeout (v5.3)

See merge request espressif/esp-idf!38393
2025-04-15 10:22:09 +08:00
morris
befa9bb4d2 Merge branch 'doc/touch_element_support_esp32s3_v5.3' into 'release/v5.3'
docs(touch): build the touch element doc for esp32s3 (v5.3)

See merge request espressif/esp-idf!38391
2025-04-15 10:21:16 +08:00
morris
5a3ef8e515 Merge branch 'contrib/github_pr_15484_v5.3' into 'release/v5.3'
fix(twai): fixed twai assert fail during recover (GitHub PR) (v5.3)

See merge request espressif/esp-idf!37989
2025-04-15 10:20:15 +08:00
morris
9e58fe0004 Merge branch 'feat/unilc_psram_s3_v5.3' into 'release/v5.3'
psram: supported UnilC octal psram on s3 (v5.3)

See merge request espressif/esp-idf!37855
2025-04-15 10:16:44 +08:00
morris
1a79c5e1ad Merge branch 'bugfix/missing_kconfig_definition_v5.3' into 'release/v5.3'
fix(i2c): add Kconfig to skip driver conflict check (v5.3)

See merge request espressif/esp-idf!37762
2025-04-15 10:15:05 +08:00
morris
46e271ea7c Merge branch 'bugfix/usj_wrong_return_value_v5.3' into 'release/v5.3'
fix(usb_serial_jtag): wrong return value in usb_serial_jtag_write_bytes (v5.3)

See merge request espressif/esp-idf!37970
2025-04-15 10:14:40 +08:00
morris
d69f12a7aa Merge branch 'fix/fix_cam_iram_safe_compile_error_v5.3' into 'release/v5.3'
cam: fix cam iram safe compile error (v5.3)

See merge request espressif/esp-idf!37607
2025-04-15 10:13:57 +08:00
morris
b1c16b8382 Merge branch 'fix/rmt_lim_thres_incorrect_v5.3' into 'release/v5.3'
fix(rmt): fix the received symbols issue (v5.3)

See merge request espressif/esp-idf!37900
2025-04-15 10:13:13 +08:00
morris
227bae6fea Merge branch 'docs/update_i2c_static_v5.3' into 'release/v5.3'
docs: Update static for i2c.rst (v5.3)

See merge request espressif/esp-idf!37765
2025-04-15 10:12:14 +08:00
morris
8bb21fda7c Merge branch 'feat/enable_l2mem_burst_buffer_mode_v5.3' into 'release/v5.3'
improve AXI-ICM QoS function (v5.3)

See merge request espressif/esp-idf!37469
2025-04-15 10:10:52 +08:00
morris
220910fb7e Merge branch 'feat/can_bypass_buffer_align_check_v5.3' into 'release/v5.3'
feat(gdma): allow bypass the alignment check in the link driver (v5.3)

See merge request espressif/esp-idf!37424
2025-04-15 10:10:20 +08:00
morris
89c81ac2c8 Merge branch 'bugfix/rmt_simple_encoder_example_v5.3' into 'release/v5.3'
fix(example): wrong ws2812 reset duration (v5.3)

See merge request espressif/esp-idf!37467
2025-04-15 10:10:12 +08:00
morris
214ba70ed6 Merge branch 'refactor/spi_remove_unnecessary_dependency_v5.3' into 'release/v5.3'
fix(spi): removed PERIPH_CTRL_FUNC_IN_IRAM dependency (v5.3)

See merge request espressif/esp-idf!37564
2025-04-15 10:10:08 +08:00
morris
b4fd30cd5c Merge branch 'contrib/github_pr_15499_v5.3' into 'release/v5.3'
Add missing break statements to usb_serial_jtag_ll_phy_select (GitHub PR) (v5.3)

See merge request espressif/esp-idf!38125
2025-04-15 10:09:21 +08:00
Jiang Jiang Jian
6c1754a0a6 Merge branch 'bugfix/roaming_app_issues_v5.3' into 'release/v5.3'
fix(wifi): Fix some issues observed in roaming app (v5.3)

See merge request espressif/esp-idf!37415
2025-04-15 10:06:57 +08:00
Jiang Jiang Jian
72ae23c6f5 Merge branch 'fix/fix_dhcp_server_recv_decline_issue_v53' into 'release/v5.3'
fix(dhcp): fix dhcp server recv decline issue v53

See merge request espressif/esp-idf!38132
2025-04-15 10:03:39 +08:00
Marius Vikhammer
01a90d2175 fix(newlib): fixed newlib malloc wrappers IRAM/flash placement
If HEAP_PLACE_FUNCTION_INTO_FLASH = y then we should also place
the newlib wrappers for the heap in to flash.
2025-04-15 09:53:21 +08:00
Marius Vikhammer
046a26af5c fix(heap): fixed HEAP_PLACE_FUNCTION_INTO_FLASH disabled if heap impl in ROM 2025-04-15 09:53:21 +08:00
Wang Meng Yang
dd8d184f0a Merge branch 'bugfix/spp_mem_leak_v5.3' into 'release/v5.3'
fix(bt/bluedroid): fixed memory leaks in SPP callback mode (v5.3)

See merge request espressif/esp-idf!37386
2025-04-15 07:51:10 +08:00
Wang Meng Yang
5a011faf69 Merge branch 'feature/add_profile_stat_v5.3' into 'release/v5.3'
feat(bt): Add API to get profile status(v5.3)

See merge request espressif/esp-idf!38276
2025-04-15 07:50:13 +08:00
Wang Meng Yang
91a8ee9057 Merge branch 'bugfix/sec_service_record_conn_fail_v5.3' into 'release/v5.3'
fix(bt/bluedroid): fix the issue of connection failure when initializing multiple profiles(v5.3)

See merge request espressif/esp-idf!38075
2025-04-15 07:47:50 +08:00
Wang Meng Yang
4adf4003a2 Merge branch 'bugfix/err_disc_state_changed_evt_v5.3' into 'release/v5.3'
fix(bt/bluedroid): fixed other events being reported when disconnected(v5.3)

See merge request espressif/esp-idf!37937
2025-04-15 07:46:24 +08:00
Wang Meng Yang
60341250b4 Merge branch 'bugfix/spp_free_server_slot_err_v5.3' into 'release/v5.3'
fix(bt/bluedroid): Fixed freeing spp server memory when disconnected(v5.3)

See merge request espressif/esp-idf!37609
2025-04-15 07:46:14 +08:00
Tan Yan Quan
0573caeb54 feat(openthread): add esp_system dependency for SSED CI 2025-04-14 16:34:36 +08:00
Tan Yan Quan
1c019f6dff feat(openthread): relax conditions for trel case approval 2025-04-14 16:34:32 +08:00
Tan Yan Quan
fd0df9d04a feat(openthread): add openthread ci ssed case 2025-04-14 16:34:27 +08:00
Tan Yan Quan
2685cc10e0 feat(openthread): use freertos timer for debug logs 2025-04-14 16:34:21 +08:00
Marius Vikhammer
c15953acee fix(lpwdt): P4 LP-WDT now takes into account the EFUSE_WDT_DELAY forthe timeout 2025-04-14 14:52:23 +08:00
morris
50efd81fc5 docs(touch): build the touch element doc for esp32s3
Closes https://github.com/espressif/esp-idf/issues/15755
2025-04-14 14:51:35 +08:00
morris
f4968da7ce fix(ana_cmpr): ETM event not work for Unit 1 2025-04-14 14:42:21 +08:00
Erhan Kurubas
31b0956051 fix(coredump): make sure consistency with uart data and calculated checksum
Closes https://github.com/espressif/esp-idf-monitor/issues/23
2025-04-10 16:29:13 +02:00
Erhan Kurubas
0206d8442e fix(apptrace): replace esp32p4 ctrl block into noncache-able TCM memory 2025-04-10 16:22:07 +02:00
diplfranzhoepfinger
1d7d24b160 fix(twai): fixed twai assert fail when recover
driver try start new frame in ISR however already bus off

Closes https://github.com/espressif/esp-idf/issues/9697
2025-04-10 20:07:16 +08:00
Rahul Tank
517d3b1749 fix(nimble): Updated sscanf usage in examples to work for all versions 2025-04-09 18:29:44 +05:30
Zhang Shuxian
563c21f930 bugfix: Remove the broken link in wifi-expansion.rst 2025-04-09 19:05:23 +08:00
Alexey Lapshin
6bb3dce495 fix(ldgen): extend section name regex to include '_' (e.g.: used by picolibc) 2025-04-09 16:51:38 +08:00
C.S.M
2881da7024 fix(spi_flash): Add suspend check on esp32c6 and esp32h2 for some reason 2025-04-09 10:14:26 +08:00
Martin Vychodil
6db3dc25df change(version): Update version to 5.3.3 2025-04-08 15:34:04 +02:00
Zhang Hai Peng
d72a674119 fix(ble/bluedroid): Fix potential uint32_t overflow in BLE btu_start_timer
(cherry picked from commit a9286567f0)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-04-08 16:42:27 +08:00
Zhang Hai Peng
4729fba793 fix(ble/bluedrooid): Fixed memory leak issue when deinit the host
(cherry picked from commit 6becf74cbb)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-04-08 16:42:27 +08:00
zhanghaipeng
4f136cca74 feat(bluedroid): Support get bt config path 2025-04-08 16:34:32 +08:00
zhanghaipeng
6886dc78c6 feat(ble/bluedroid): Implement BLE channel map reading API 2025-04-08 16:34:12 +08:00
luaijun
2f749a21e7 ci(c2/c3): add major eco version tests 2025-04-08 10:34:19 +08:00
xiongweichao
805543ce42 fix(bt): Fix ci failure due to code spelling errors 2025-04-08 10:05:51 +08:00
glmfe
94e26900cb fix(tcp_transport): Fix test for socks transport
- Removed out of scope stack acess
2025-04-07 12:09:50 -03:00
Zhang Hai Peng
6bdad836ea fix(ble/bluedroid): Fix missing event reporting in esp_ble_create_sc_oob_data
(cherry picked from commit f291725936)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-04-07 21:13:59 +08:00
Zhang Hai Peng
a5b43c72c8 fix(ble/bluedroid): Fixed BLE crash when disable bluedroid host
(cherry picked from commit 9dfa6ab0e9)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-04-07 21:13:57 +08:00
xiongweichao
3721a43afc feat(bt): Add API to get profile status 2025-04-07 19:17:01 +08:00
Kapil Gupta
d4151643ca fix(esp_wifi): Fix some compilation errors in roaming app 2025-04-07 18:58:08 +08:00
Kapil Gupta
ef9da59ea9 fix(esp_wifi): Removed unnecessary handlers to cleanup 2025-04-07 18:58:08 +08:00
Kapil Gupta
dc802d98d3 fix(esp_wifi): Roaming app, sync api naming 2025-04-07 18:58:08 +08:00
Kapil Gupta
2aa64cefae fix(esp_wifi): Some more cleanup for roaming app 2025-04-07 18:58:08 +08:00
Kapil Gupta
5deeaecdf4 fix(esp_wifi): moving around roaming app code a bit 2025-04-07 18:58:08 +08:00
Kapil Gupta
0b8775e1c7 fix(roaming_app): Add get set config params for the app 2025-04-07 18:58:08 +08:00
Kapil Gupta
b353ab7427 fix(wifi): Provide a config option to skip IP renew during roam 2025-04-07 18:58:08 +08:00
Kapil Gupta
a34e915a2a fix(esp_wifi): Set minimum scan time to 30ms in roaming app 2025-04-07 18:58:08 +08:00
Kapil Gupta
9e6700110a fix(wifi): Fix some issues observed in roaming app 2025-04-07 18:58:08 +08:00
Kapil Gupta
e7480577f0 fix(ci): Update UT to verify fast psk calculations
Also update some comments
2025-04-07 18:56:56 +08:00
Kapil Gupta
2a2f77b5b5 fix(esp_wifi): Add some comments in github PR 15073
Closes https://github.com/espressif/esp-idf/pull/15073
2025-04-07 18:56:56 +08:00
Chien Wong
06c2fd5ffe feat(wpa_supplicant): Add optimized PSK impl
Signed-off-by: Chien Wong <m@xv97.com>
2025-04-07 18:56:56 +08:00
zhiweijian
2fd56b7ed8 feat(ble/bluedroid): report cte_type in periodic adv report if CTE feature is enabled 2025-04-07 17:03:07 +08:00
zhiweijian
94ada16554 fix(bt/controller): Fixed controller flash only bug if hci-uart is enabled 2025-04-07 17:02:58 +08:00
C.S.M
0e7fa10217 fix(spi_flash): Return false directly in suspend caps check 2025-04-07 15:26:21 +08:00
C.S.M
e691cbef4d fix(spi_flash): Fix flash encryption write verify,
Closes https://github.com/espressif/esp-idf/issues/15380
2025-04-07 15:26:14 +08:00
C.S.M
acd6896872 fix(jpeg): use dma2d empty rx desc event to avoid a stuck 2025-04-07 13:48:35 +08:00
C.S.M
3ae39a039c feat(dma2d): Add a rx empty event callback 2025-04-07 13:40:57 +08:00
Jiang Jiang Jian
60d077eadd Merge branch 'ci/disable_deploy_stable_docs_v5_3' into 'release/v5.3'
ci(docs): disable stable docs deployment (v5.3)

See merge request espressif/esp-idf!38221
2025-04-03 19:53:28 +08:00
Jiang Jiang Jian
246917f51d Merge branch 'fix/fix_l2_cache_miss_issue_5.3_2' into 'release/v5.3'
cache: fixed l2 cache suspended/frozen but l1cache triggers l2 writeback issue (v5.3 full version)

See merge request espressif/esp-idf!38204
2025-04-03 19:52:37 +08:00
zwx
ee150dbf1c feat(802.15.4) add a build CI test for debugging feature 2025-04-03 17:30:59 +08:00
zwx
6e560ba1de feat(802.15.4): supported tx/rx frame dumping 2025-04-03 17:30:59 +08:00
harshal.patil
28e42429f4 fix(examples): Example CA certs must contain the Key Usage parameter
- Example CA certificates that are used for self-signed client certificates
need to include the Key Usage parameter.
- Python3.13 changed the default context of the SSL context that is
generated using ssl.create_default_context() by enabling the VERIFY_X509_STRICT
flag by default
2025-04-03 10:52:47 +05:30
Rahul Tank
b869b7fd87 fix(nimble): Replaced incorrect sizeof with strnlen 2025-04-03 10:25:53 +05:30
wuzhenghui
28882e9b29 fix(esp_hw_support): fix min sleep time calculation missmatch in powerdown flash decision 2025-04-03 11:44:31 +08:00
Marius Vikhammer
2cda6dc0f5 ci(docs): disable stable docs deployment 2025-04-03 11:06:35 +08:00
armando
9dfbc9a59c fix(cache): fixed l2 cache suspended/frozen but l1cache triggers l2 writeback issue 2025-04-02 18:11:02 +08:00
armando
950e54fc96 Revert "fix(cache): fixed l2 cache suspended/frozen but l1cache triggers l2 writeback issue"
This reverts commit df1f0f51f4.
2025-04-02 18:07:49 +08:00
armando
7948c53dde Revert "fix(cache): disable branch predictor when cache freeze"
This reverts commit 6bb78e4573.
2025-04-02 18:07:40 +08:00
Tan Yan Quan
ba45546620 feat(openthread): increase CI timeout for dns CLI commands 2025-04-02 14:42:19 +08:00
Tan Yan Quan
2164e3e7db feat(openthread): update thread-lib to support BR DNS resolution 2025-04-02 14:41:46 +08:00
Tan Yan Quan
a823db9e5d feat(openthread): revert to OT upstream main branch 2025-04-02 14:32:12 +08:00
Tan Yan Quan
7af1de5a82 fix(openthread): change include statement to updated upstream path 2025-04-02 14:32:06 +08:00
Tan Yan Quan
7a84aa6623 fix(openthread): update openthread upstream to support BR DNS resolution 2025-04-02 14:31:13 +08:00
Ondrej Kosta
babd94dd66 ci(esp_eth): enabled Ethernet target tests 2025-04-01 12:42:11 +02:00
zwx
d756c7d25f fix(802.15.4) fix the behavior of the esp_ieee802154_set_txpower 2025-04-01 17:49:22 +08:00
Jonathan Swoboda
680989eb56 fix(esp_eth): Fix order of fields in ETH_ESP32_EMAC_DEFAULT_CONFIG on P4 2025-04-01 07:24:30 +00:00
Ondrej Kosta
87e77f3154 fix(esp_eth): fixed emac_ll_pause_frame_enable for ESP32P4 2025-04-01 08:34:45 +02:00
Ondrej Kosta
9f4acf245a fix(esp_eth): fixed ESP32P4 EMAC REF RMII CLK output mode
fixed units returned and used by periph_rtc_mpll_freq_set function
2025-04-01 08:34:45 +02:00
Zhi Wei Jian
4e24544d1c fix(ble/bluedroid): move setting host feature API to GAP
(cherry picked from commit 79b706ccb0)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2025-04-01 11:03:43 +08:00
Zhi Wei Jian
e145fe0566 feat(bt/bluedroid): Support ble bluedroid host connection subrating feature
(cherry picked from commit fc58f2f67d)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2025-04-01 11:03:41 +08:00
Zhi Wei Jian
6d44d49dd0 feat(bt/bluedroid): Support ble bluedroid host power control feature
(cherry picked from commit 4f05f6e280)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2025-04-01 11:03:39 +08:00
Zhi Wei Jian
7daadbcd90 feat(bt/bluedroid): Support BLE CTE in bluedroid host
(cherry picked from commit fcad8b7ebd)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2025-04-01 11:03:37 +08:00
Zhi Wei Jian
a025c1870a feat(bt/bluedroid): Support BLE iso in bluedroid host
(cherry picked from commit 7128087646)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2025-04-01 11:03:34 +08:00
igor.masar
ddd9d02794 fix(usb_host): Fix return code and description
Changed error code from ESP_ERR_INVALID_STATE to ESP_ERR_NOT_FOUND
when the client never opened the device.
Updated function documentation to correctly reflect return values.
2025-03-31 23:44:32 +02:00
Myk Melez
5750b151cf fix(usb_host): Give semaphore on attempted close of non-opened device
If you call *usb_host_device_close()* for a device that isn't open, the function exits early,
without giving back the semaphore it took, which causes any other call that tries to take
that semaphore to hang indefinitely.

Strangely, there's redundant handling of this condition, with two checks in a row that both handle
the case where `_check_client_opened_device(client_obj, dev_addr)` returns `false`:

```c
    HOST_CHECK_FROM_CRIT(_check_client_opened_device(client_obj, dev_addr), ESP_ERR_NOT_FOUND);
    if (!_check_client_opened_device(client_obj, dev_addr)) {
        // Client never opened this device
        ret = ESP_ERR_INVALID_STATE;
        HOST_EXIT_CRITICAL();
        goto exit;
    }
…
exit:
    xSemaphoreGive(p_host_lib_obj->constant.mux_lock);
    return ret;
```

The first line is the one that exits early, as HOST_CHECK_FROM_CRIT returns its second parameter
if its first parameter is false, without giving back the semaphore (although it does exit
the critical section).

The subsequent block handles the exact same case, except that it ensures the semaphore is given
back before returning. Currently, this block is never reached.

Perhaps the first check was added, then someone noticed the issue and added the second check,
but they forgot to remove the first one.

In any case, this PR removes the first check, so the second check can properly handle this case
by giving back the semaphore before returning.

This bug appears to have been present in the initial commit of the USB Host library to the ESP-IDF
repo: accbaee57c

Of course, if you never try to close a non-opened device, then you won't encounter it!
Unfortunately, I have some code that tried to do that, which is how I found the issue.
2025-03-31 23:44:32 +02:00
Frantisek Hrbata
b8d0de64f8 fix(build): don't call enable_language() before project()
For the Linux target, we currently attempt to fallback to older C/CXX
lagnuage standards in the __build_set_lang_version() function. The
language standard support is checked using CMake's language-specific
functions, such as check_c_compiler_flag(). These functions require the
language to be enabled[1] in CMake beforehand, which is done by calling
project() or by enabling the languages later with enable_language(). At
present, we use enable_language() to enable C and CXX languages in
CMake, allowing us to set the standard early, before invoking project().
However, newer CMake versions (>3.29) issue a warning[2] if
enable_language() is called before project(), as noted in CMP0165[3].

It should generally be acceptable to call __build_set_lang_version()
after __project(), but doing so would alter the behavior of the
COMPILE_OPTIONS also for non-Linux targets. Currently, users can
add to COMPILE_OPTIONS even before calling project() in the project's
CMakeLists.txt and the options will be in the desired order. In other
words, appending to COMPILE_OPTIONS can occur either before or after
calling project() in the project's CMakeLists.txt, with the outcome
remaining consistent. This means the user's settings will appear later
and take priority. However, if __build_set_lang_version() is called
after __project(), the user's COMPILE_OPTIONS settings would be
overridden if set before calling project(). Our documentation[4] explicitly
states that COMPILE_OPTIONS and similar properties should be modified
using idf_build_set_property() after calling project() to prevent
default values from overwriting them.

Even with this guidance, some existing components that modify
COMPILE_OPTIONS before invoking project() might be impacted by this
change. Therefore, separate the language standard settings for non-Linux
and Linux targets. For non-Linux targets, these settings are applied in
__build_set_default_build_specifications(), maintaining the current
behavior. For the Linux target, the language standard is set with
__linux_build_set_lang_version() after calling __project(), ensuring the
languages are already enabled in CMake and no warning is issued. Since the Linux
target is still in preview, this approach should be acceptable,
especially with the existing documentation[4].

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

[1] https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#languages
[2] https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9396
[3] https://cmake.org/cmake/help/latest/policy/CMP0165.html#policy:CMP0165
[4] https://docs.espressif.com/projects/esp-idf/en/v5.4/esp32/api-guides/
    build-system.html#overriding-default-build-specifications

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2025-03-31 14:51:01 +08:00
wangtao@espressif.com
8e11fdf1fd fix(dhcp): fix dhcp server recv decline issue 2025-03-31 14:11:44 +08:00
Renze Nicolai
cb7cdb315e fix: add missing break statements to usb_serial_jtag_ll_phy_select,
Closes https://github.com/espressif/esp-idf/pull/15499
2025-03-31 10:39:18 +08:00
Abhinav Kudnar
3e4a0c2876 fix(nimble): Fix conversion for min-max itvl of periodic adv param 2025-03-28 14:19:40 +08:00
Song Ruo Jing
7b4ac061db fix(ledc): fix race condition in ledc_fade_stop causing assert failure
Closes https://github.com/espressif/esp-idf/issues/15580
2025-03-27 20:17:03 +08:00
xiongweichao
8d5543b191 fix(bt/bluedroid): fix the issue of connection failure when initializing multiple profiles
- Due to the number of service security records exceeding the maximum value, the connection failed
2025-03-27 19:56:52 +08:00
Frantisek Hrbata
99a08577b4 fix(tools): handle packages with dots in their names during dependency checks
The `setuptools` package starting with `v70.1.0`[1] contains built-in
`bdist_wheel` command. Before this version `setuptools` relied on the
`bdist_wheel` command implementation from the `wheel` package. Starting with
`setuptools` `v75.8.1` the `PEP 491`[3] restrictions on the distribution name
of a wheel package are enforced[4], replacting also `.` with `_`.  Note that
`PEP 491` actually allows `.` in the distribution name, but for some reason the
latest packaging docs[10][11] does not, stating that `.` should be replaced
with `_`. This was discussion here[12].

Also the `wheel` package starting with `v0.45.0`[5] is using the `bdist_wheel`
command from `setuptools`.  This means that any package which has `.` in its
distribution name, like `ruamel.yaml.clib`, can have different wheel name,
depending on which version of the `bdist_wheel` command was used.

The `bdist_wheel` command from setuptools prior `v75.8.1` or `wheel` prior
`v0.45.0` will keep the dots in distribution name preserved.  For exaple the
`ruamel.yaml.clib` package will have distribution name
`ruamel.yaml.clib-0.2.12.dist-info. Newer versions will replace the dots with
`_` according to [10][11], creating distribution like
`ruamel_yaml_clib-0.2.12.dist-info`.

From packaging point of view `ruamel.yaml.clib-0.2.12.dist-info` and
`ruamel_yaml_clib-0.2.12.dist-info` are the same packages, but this is not
reflected in `importlib.metadata` prior python 3.10[9], which does not perform
name normalization prior the distribution search. This causes the `version`
from `importlib.metadata` to fail on python prior the 3.10 version if the
package with dots in distribution name was generated with normalized paths with
newer `setuptools`. Note that the distribution name normalization was
backported to some later 3.9 python version.

Let's demonstrate this behavior on a simple package with the
`my.minimal.package` name.

```
my_minimal_package/
├── pkg
│   └── __init__.py
└── setup.py

from setuptools import setup, find_packages

setup(
    name='my.minimal.package',
    version='0.1.0',
    packages=find_packages(),
    install_requires=[],
    entry_points={},
)
```

With python 3.9.0 search for `my.minimal.package` fails because
of the missing name normalization.
```
docker run --rm -it --platform linux/x86_64 python:3.9.0 bash
python -m venv venv
. venv/bin/activate
pip install setuptools==v75.8.1
python setup.py bdist_wheel
pip install dist/my_minimal_package-0.1.0-py3-none-any.whl
python
Python 3.9.0 (default, Nov 18 2020, 13:28:38)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from importlib.metadata import version as get_version
>>> get_version('my.minimal.package')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.9/importlib/metadata.py", line 551, in version
    return distribution(distribution_name).version
  File "/usr/local/lib/python3.9/importlib/metadata.py", line 524, in distribution
    return Distribution.from_name(distribution_name)
  File "/usr/local/lib/python3.9/importlib/metadata.py", line 187, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: my.minimal.package
>>> get_version('my_minimal_package')
'0.1.0'
```

With python 3.10.0 search for both `my.minimal.package` and
`my_minimal_package` succeeds.
```
docker run --rm -it --platform linux/x86_64 python:3.10.0 bash
python
Python 3.10.0 (default, Dec  3 2021, 00:21:30) [GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from importlib.metadata import version as get_version
>>> get_version('my.minimal.package')
'0.1.0'
>>> get_version('my_minimal_package')
'0.1.0'
```

In our `tools/check_python_dependencies.py` we cannot relay on the default
distribution finder, used in the `version` function from `importlib.metadata`,
to do name normalization on older python versions.  To cope with this,
implement a fallback version search. If `version` fails with
`PackageNotFoundError`, do the name normalization according to [10][11] and try
again.

Note: There is also a `wheel`[6][7] `v0.43.0` package embeded in `setuptools`
along with the new implementation[8].  This one seems to be used if the
external `wheel` package is not available but imported. TBH this is all kinda
messy and I may have overlooked something.

* [1] https://setuptools.pypa.io/en/stable/history.html#v70-1-0
* [2] https://setuptools.pypa.io/en/stable/history.html#v75-8-1
* [3] https://peps.python.org/pep-0491/#escaping-and-unicode
* [4] https://github.com/pypa/setuptools/pull/4766/files
* [5] https://wheel.readthedocs.io/en/stable/news.html
* [6] https://github.com/pypa/setuptools/blob/main/setuptools/_vendor/wheel/__init__.py
* [7] https://github.com/pypa/setuptools/issues/1386
* [8] https://github.com/pypa/setuptools/blob/main/setuptools/command/bdist_wheel.py
* [9] c6ca368867
* [10] https://packaging.python.org/en/latest/specifications/name-normalization/#name-normalization
* [11] https://packaging.python.org/en/latest/specifications/binary-distribution-format/
       #escaping-and-unicode
* [12] https://github.com/pypa/setuptools/issues/3777

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2025-03-27 08:05:07 +01:00
Jiang Jiang Jian
517e489c75 Merge branch 'fix/fix_l2_cache_miss_issue_v5.3' into 'release/v5.3'
cache: fixed l2 cache suspended/frozen but l1cache triggers l2 writeback issue (v5.3)

See merge request espressif/esp-idf!37999
2025-03-27 00:41:08 +08:00
Alexey Lapshin
b64ddb1893 fix(tools): remove unused variables in gdbinit.cmake
Closes https://github.com/espressif/esp-idf/issues/15035
2025-03-26 19:51:33 +07:00
armando
6bb78e4573 fix(cache): disable branch predictor when cache freeze 2025-03-26 18:59:37 +08:00
armando
df1f0f51f4 fix(cache): fixed l2 cache suspended/frozen but l1cache triggers l2 writeback issue 2025-03-26 18:59:33 +08:00
Island
07f4ff8c00 Merge branch 'feature/add_vendor_ble_cmd_definitions_5.3' into 'release/v5.3'
Feature/add vendor ble cmd definitions (v5.3)

See merge request espressif/esp-idf!37957
2025-03-26 13:58:31 +08:00
Marek Fiala
f6ddf27a90 feat(tools): Deactivate current ESP-IDF environment with every export run
Unix systems only
2025-03-25 14:20:52 +01:00
laokaiyao
26833a82dd fix(i2s): add check for i2s DMA buffer array allocation
Closes https://github.com/espressif/esp-idf/issues/15607
2025-03-25 15:24:06 +08:00
laokaiyao
8c9ed6c4e1 fix(i2s): fixed mismatch of the i2s and gdma iram-safe config
Closes https://github.com/espressif/esp-idf/issues/15533
2025-03-25 15:17:59 +08:00
zhiweijian
fe6e6b3613 feat(bt): fixed some doc error and add ocf parameters description 2025-03-25 14:22:15 +08:00
Tan Yan Quan
f4d3a0396d fix(openthread): add some bugfixes to pass CI pipeline 2025-03-25 12:22:53 +08:00
Tan Yan Quan
59909d648d refactor(openthread): move isr_handle_timerX to esp_ieee802154_timer 2025-03-25 12:22:53 +08:00
Tan Yan Quan
70bbe45f32 fix(openthread): calibrate CSL tx parameters 2025-03-25 12:22:53 +08:00
Tan Yan Quan
dc2500bd08 fix(openthread): turn off rx for SSED running CSL during idle 2025-03-25 12:06:18 +08:00
Shen Weilong
e45c7dadd1 feat(bt): added definitions for bluetooth hci vendor commands and events 2025-03-24 20:20:35 +08:00
Shen Wei Long
92ddd1cccb feat(ble/controller): Deleted useless functions for ESP32-C6/H2/C2 2025-03-24 20:20:35 +08:00
Jan Beran
4b3d7a33f4 fix(kconfig): Fix issues with Kconfig files 2025-03-24 10:32:00 +01:00
Geng Yu Chao
c28b58a059 feat(ble): Add Kconfig support for direction finding feature
(cherry picked from commit 8c7af817d89c254714dc9c93414499fead3717d3)

Co-authored-by: Geng Yuchao <gengyuchao@espressif.com>
2025-03-24 11:56:05 +05:30
Geng Yuchao
31e4d7e31b feat(ble):Support Bluetooth LE 5.1 direction finding feature 2025-03-24 11:56:05 +05:30
Rahul Tank
2ebf77da91 fix(nimble): Fix SMP command allocation 2025-03-24 11:56:05 +05:30
Shreeyash
7a6f552df3 feat(nimble): support vendor event mask set and vendor HCI event on nimble host 2025-03-24 11:56:05 +05:30
Rahul Tank
c80e35cbbb fix(nimble): Fix incorrect event deinit in gatt caching discovery 2025-03-24 11:56:05 +05:30
Rahul Tank
27590a7c0c fix(nimble): Exposed the ble_gap_wl_tx_add API to add a device in whitelist 2025-03-24 11:56:05 +05:30
Shen Weilong
e05aee0fa4 feat(bt): support hardware ecc acceleration for bt tinycrypt 2025-03-24 11:56:05 +05:30
Shen Weilong
50d8535b4f change(bt): moved porting/ext/tinycrypt into common 2025-03-24 11:56:05 +05:30
Rahul Tank
fde9c35242 fix(nimble): Fix SC only pairing failure 2025-03-24 11:56:05 +05:30
morris
c15432fc79 fix(usb_serial_jtag): wrong return value in usb_serial_jtag_write_bytes
Closes https://github.com/espressif/esp-idf/issues/15620
2025-03-24 11:46:56 +08:00
Zhang Shuxian
288a133930 docs: Add a note about TWAI multiple instances install 2025-03-24 11:07:50 +08:00
zhiweijian
8c132bbbd8 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3 (86a4da5c)
- Remove unused functions in the controller
2025-03-21 19:48:44 +08:00
baohongde
78667d6d40 feat(bt): added definitions for BR/EDR hci vendor commands and events 2025-03-21 19:36:20 +08:00
chenjianhua
b1f85271ff fix(bt): Update bt lib for ESP32(dc1cd581)
- Remove unused functions in the controller
- Add an SDK config for the minimum size of encryption key
2025-03-21 19:34:37 +08:00
Mahavir Jain
8685219916 Merge branch 'fix/incorrect_calculation_of_used_xip_pages_v5.3' into 'release/v5.3'
fix(esp_psram): Fix incorrect calculation of used XIP PSRAM pages (v5.3)

See merge request espressif/esp-idf!37496
2025-03-21 16:13:10 +08:00
Mahavir Jain
611b0f0d5b Merge branch 'bugfix/fix_github_cert_verification_simpleota_v5.3' into 'release/v5.3'
fix: failing Github certificate verification (v5.3)

See merge request espressif/esp-idf!37825
2025-03-21 16:12:52 +08:00
xiongweichao
51591ba7b9 fix(bt/bluedroid): fixed other events being reported when disconnected
- Since no initial value is assigned, the variable evt is a random value,
causing the ESP_BT_GAP_DISC_STATE_CHANGED_EVT event to be reported when
the connection is disconnected.
2025-03-21 11:17:43 +08:00
Sudeep Mohanty
db9d88c0d4 fix(ringbuf): xRingbufferReceive() crashes for allow-split buffers
This commit adds an assert check to xRingbufferReceive() and
xRingbufferReceiveFromISR() functions to prevent them from being used to
retrieve items from an allow-split buffer. Corresponding documentation
has also been updated.
2025-03-20 11:49:14 +01:00
Song Ruo Jing
0077f642df fix(gpio): fix 8/16-bit gpio, rtc/lp_io register access 2025-03-20 17:09:36 +08:00
Song Ruo Jing
47f1a2c81b fix(gpio): fix pu, pd, drv value incorrect from gpio_dump_io_configuration on esp32
Closes https://github.com/espressif/esp-idf/issues/14931
2025-03-20 17:09:28 +08:00
Xu Si Yu
074be51f83 feat(tcp_transport): add an api to configure the addr family 2025-03-20 16:08:02 +08:00
Jiang Jiang Jian
72a684c1f0 Merge branch 'bugfix/11r_compile_error_v5.3' into 'release/v5.3'
fix(wifi): Fixed compilation error when 11KV is disabled and 11R is enabled (v5.3)

See merge request espressif/esp-idf!37866
2025-03-20 13:57:35 +08:00
Jiang Jiang Jian
352c4de224 Merge branch 'bugfix/provisioning_sec2_aes_iv_usage_v5.3' into 'release/v5.3'
fix(provisioning): fix incorrect AES-GCM IV usage in security2 scheme (v5.3)

See merge request espressif/esp-idf!37615
2025-03-20 13:56:26 +08:00
Jiang Jiang Jian
142a63219a Merge branch 'bugfix/fix_esp32_bt_disable_crash_v5.3' into 'release/v5.3'
fix(bt): Fix controller disable cause iwdt timeout on esp32 (v5.3)

See merge request espressif/esp-idf!37773
2025-03-20 13:55:45 +08:00
Jiang Jiang Jian
a3427837d5 Merge branch 'bugfix/fix_ersu_compatibility_issue_v5.3' into 'release/v5.3'
fix(wifi): fix ersu compatibility issue(Backport v5.3)

See merge request espressif/esp-idf!37749
2025-03-20 11:04:27 +08:00
Chen Jichang
0a063c4997 fix(rmt): fix the received symbols issue 2025-03-20 10:36:53 +08:00
morris
04dd4c7c47 fix(i2c): add Kconfig to skip driver conflict check 2025-03-20 10:11:58 +08:00
Radim Karniš
3c8d99d8ef fix(idf_tools): Validate input features 2025-03-19 21:44:43 +01:00
Radim Karniš
61f3968e91 fix(idf_tools): Patch extractall() deprecation warning 2025-03-19 13:48:36 +01:00
yiwenxiu
2fc3a282bb feat(openthread): fix ci avahi service cases issue 2025-03-19 18:07:11 +08:00
Kapil Gupta
18d8bc4286 ci(wifi): Add builds for FT, RRM and WNM configs 2025-03-19 12:42:24 +05:30
Kapil Gupta
31bb54373d fix(wifi): Fixed compilation error when 11R is enabled without 11KV 2025-03-19 12:42:12 +05:30
armando
d7eb89c7f7 feat(psram): supported new octal psram on s3 2025-03-19 10:23:07 +08:00
muhaidong
e9aefff1ed fix(wifi): fix ersu compatibility issue 2025-03-19 10:10:17 +08:00
linruihao
7e654ca887 fix(bt): Fix controller disable cause iwdt timeout on esp32 2025-03-18 20:21:57 +08:00
Zhao Wei Liang
7399bd6ca4 feat(ble): change nimble whitelist max size to 31
(cherry picked from commit 93357e8613)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-18 16:04:35 +08:00
Zhao Wei Liang
c70eac403d feat(ble): change whitelist max size to 31 on ESP32-C2
(cherry picked from commit 578f2358c6)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-18 16:04:33 +08:00
Zhao Wei Liang
a921ffacee feat(ble): change whitelist max size to 31 on ESP32-C6
(cherry picked from commit 2b435687b0)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-18 16:04:30 +08:00
Zhao Wei Liang
12453eac2b fix(ble): Fixed warning that the gpio is not usable when reconfig hci uart pin
(cherry picked from commit 57417ca30f)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-18 16:04:28 +08:00
Zhao Wei Liang
6c7416bc9a fix(ble): fixed hci driver stack protection fault issue on ESP32-C2
(cherry picked from commit afd44d14b9)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-18 16:04:26 +08:00
Zhao Wei Liang
c4d62abfe9 fix(ble): fixed hci driver stack protection fault issue on ESP32-C6
(cherry picked from commit ec4a1324f5)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-18 16:04:24 +08:00
Zhao Wei Liang
02dc949a8f fix(ble): delete ble_hci_trans header file
(cherry picked from commit 327182e3e6)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-18 16:04:21 +08:00
Zhao Wei Liang
234e604f27 fix(ble): fixed hci assertion issue when uart interference occurs
(cherry picked from commit 84f0b39e4d)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-18 16:04:19 +08:00
Ashish Sharma
9357b6c606 fix(component/mbedtls): Adds github root cert to cmn_crt_authorities.csv 2025-03-18 14:39:32 +08:00
Mahavir Jain
73ecbfce69 feat(protocomm): add (hidden) config option to indicate security patch feature 2025-03-17 13:35:38 +05:30
morris
8bb65e6d85 Merge branch 'fix/change_pm_lock_type_v5.3' into 'release/v5.3'
fix(pm): use CPU lock in dirvers use axi dma to access psram (v5.3)

See merge request espressif/esp-idf!37713
2025-03-17 11:11:01 +08:00
Island
5a170dfb1b Merge branch 'bugfix/reduce_controller_bin_size_v5.3' into 'release/v5.3'
fix(ble/controller): reduce controller bin size(backport v5.3)

See merge request espressif/esp-idf!37756
2025-03-14 19:26:20 +08:00
Zhang Shuxian
c0ba5274a9 docs: Update static for i2c.rst 2025-03-14 12:08:36 +08:00
zhiweijian
8f7ed33e18 fix(ble/controller): reduce controller bin size 2025-03-14 10:53:03 +08:00
Chen Jichang
3590ddc7f6 fix(drivers): use CPU_MAX lock in dirvers use axi dma to access psram 2025-03-13 15:42:30 +08:00
morris
8a1c9e3cfa fix(axi_icm): qos can be applied to read and write independently 2025-03-12 21:37:29 +08:00
Jiang Jiang Jian
9e2dc78364 Merge branch 'bugfix/wps_reconnect_failure_v5.3' into 'release/v5.3'
fix(wpa_suppplicant): Fix for issue in wps reconnection (Backport v5.3)

See merge request espressif/esp-idf!37643
2025-03-12 15:14:26 +08:00
Ivan Grokhotkov
924ad0c3a9 test(sdmmc): add test for high-prio task busy while writing
Related to https://github.com/espressif/esp-idf/issues/13934
2025-03-12 13:06:57 +08:00
Ivan Grokhotkov
f824a827dc fix(sdmmc): move DMA descriptor refilling into the ISR
Previously, as DMA descriptors were processed, the task performing
SDMMC transfer would get woken up and would refill the descriptors.
This design didn't work correctly when higher priority tasks occupied
the CPU for too long, resulting in SDMMC transfer timing out.

This change moves DMA descriptor refilling into SDMMC ISR. Now the
"DMA done" interrupt is delivered back to task context only when
the entire transfer is completed.

Closes https://github.com/espressif/esp-idf/issues/13934
2025-03-12 13:06:57 +08:00
xiongweichao
d127ebb160 fix(bt/bluedroid): Fixed freeing spp server memory when disconnected 2025-03-11 12:03:19 +08:00
armando
9af8b5468c refactor(psram): rename .bss .noinit segments to sections
Closes https://github.com/espressif/esp-idf/pull/15513
2025-03-11 11:43:56 +08:00
Erki Aring
ed2b78e4ce fix(psram): correct heap vaddr calculation
- fixes https://github.com/espressif/esp-idf/issues/15496

Signed-off-by: armando <douyiwen@espressif.com>
2025-03-11 11:43:53 +08:00
zwx
17ae917039 feat(802.15.4): configure tx on delay using phylib impl 2025-03-11 11:37:19 +08:00
Island
efec039d9f Merge branch 'bugfix/disable_dbg_hci_cmd_on_esp32_v5.3' into 'release/v5.3'
Disable debug vendor hci command on ESP32 (v5.3)

See merge request espressif/esp-idf!37629
2025-03-11 11:07:56 +08:00
Omar Chebib
7721dd5d5d fix(ulp): fix ULP RISC-V interrupt handler corrupting the stack
* Closes https://github.com/espressif/esp-idf/issues/14930
2025-03-10 18:07:26 +08:00
Sarvesh Bodakhe
c80ed51aac fix(wifi): Resolved WPS connectivity issue with pre-connected stations
This fixes the issue where station was not able connect using WPS if it was
already in connected state.

wifi_wps_scan_done() issues an esp_wifi_disconnect() before
calling esp_wifi_connect() to associate with the newly discovered AP. This
behavior incorrectly triggered a failure event (WIFI_EVENT_STA_WPS_ER_FAILED)
even though the disconnection was part of the normal WPS flow. This commit
prevents sending the false failure event, ensuring expected WPS behavior.
2025-03-10 15:16:22 +05:30
Aditi
22296cb613 fix(wpa_suppplicant): Add fix for issue in wps reconnection 2025-03-10 15:16:17 +05:30
chenjianhua
49243e1ad8 fix(bt): Update bt lib for ESP32(e250cf1)
- Disable debug vendor hci command
2025-03-10 15:28:50 +08:00
gongyantao
c1d5cb63cc fix(bt): fixed some issues in bt controller
- fixed the issue where the NULL pointer was deferenced in lc_free state
- avoid accessing released ACL resources in SCO logic
2025-03-10 15:28:32 +08:00
Jin Cheng
73508cf7b4 fix(bt/controller): fixed some controller bugs on ESP32.
1. added a VSC to control whether to initiate lmp_auto_rate
        - Closes https://github.com/espressif/esp-idf/issues/15133
    2. fixed EA resource cleanup error after SNIFF negotiation failure
        - Closes https://github.com/espressif/esp-idf/issues/13605
    3. removed an assertion in SCO data TX handler after disconnection
        - Closes https://github.com/espressif/esp-idf/issues/15176
2025-03-10 15:28:22 +08:00
shenmengjing
e6dea1b9fb docs(provisioning): Sync CN translation and EN source 2025-03-10 10:00:17 +05:30
Mahavir Jain
0a329ab9a4 fix(esp_local_ctrl): update for changes in protocomm security2 scheme 2025-03-10 10:00:12 +05:30
Mahavir Jain
1b319631b8 fix(docs): update for changes in provisioning security2 scheme 2025-03-10 10:00:06 +05:30
Mahavir Jain
af1bd1472c fix(provisioning): fix incorrect AES-GCM IV usage in security2 scheme
Using same IV in AES-GCM across multiple invocation of
encryption/decryption operations can pose a security risk. It can help
to reveal co-relation between different plaintexts.

This commit introduces a change to use part of IV as a monotonic
counter, which must be incremented after every AES-GCM invocation
on both the client and the device side.

Concept of patch version for a security scheme has been introduced here
which can help to differentiate a protocol behavior for the provisioning
entity. The security patch version will be available in the JSON
response for `proto-ver` endpoint request with the field
`sec_patch_ver`.

Please refer to documentation for more details on the changes required
on the provisioning entity side (e.g., PhoneApps).
2025-03-10 10:00:00 +05:30
Mahavir Jain
7e8251d16b fix(protocomm): memory leak issue for session command0 failure case 2025-03-10 09:59:57 +05:30
armando
dbb06fb027 test(cam): added cache-safe build test 2025-03-10 10:39:28 +08:00
armando
737a858dab refactor(cam): rename IRAM-Safe to Cache-Safe 2025-03-10 10:38:40 +08:00
armando
241389134b fix(cam): fixed cam iram safe build error 2025-03-10 10:36:35 +08:00
Erhan Kurubas
cf53484fad test(apptrace): run tests from custom OpenOCD class 2025-03-09 17:34:43 +01:00
Jiang Jiang Jian
4d62ea01b6 Merge branch 'fix/sleep_cpu_mspi_freq_mismatch_issue_p4_v5.3' into 'release/v5.3'
mspi: fixed cpu and mspi freq mismatch issue when in dfs/sleep on p4 (v5.3)

See merge request espressif/esp-idf!37584
2025-03-08 18:45:20 +08:00
Jiang Jiang Jian
d5b8419620 Merge branch 'fix/fix_esp32s3_reboot_cache_failure_v5.3' into 'release/v5.3'
fix(esp_system): fix possible cache_error by another core accessing flash in esp_restart (v5.3)

See merge request espressif/esp-idf!37585
2025-03-08 15:04:16 +08:00
wuzhenghui
fbda052593 change(esp_hw_support): only do mpll disable in lightsleep process 2025-03-08 14:17:05 +08:00
Armando
51280e0e8a fix(mspi): fixed cpu and mspi freq mismatch issue when in dfs/sleep on p4 2025-03-08 14:17:02 +08:00
Song Ruo Jing
5f08f68aa6 docs(uart): aligned the config order in the programming guide with examples
Closes https://github.com/espressif/esp-idf/issues/13182
2025-03-07 21:01:26 +08:00
Song Ruo Jing
6b7c57b520 fix(uart): enlarged task stack size for uart_async_rxtxtasks example
Meanwhile, added CI pytest for some UART examples

Closes https://github.com/espressif/esp-idf/issues/15363
2025-03-07 21:01:26 +08:00
Song Ruo Jing
0ced5fbd21 fix(ledc): overflowed integer argument in ledc_hal_clear_left_off_fade_param 2025-03-07 20:30:20 +08:00
Jiang Jiang Jian
51fafde80b Merge branch 'bugfix/fix_some_wifi_bugs_202502_v5.3' into 'release/v5.3'
fix(sniffer): fix channel in rx_ctrl is zero when using sniffer(Backport v5.3)

See merge request espressif/esp-idf!37561
2025-03-07 20:07:09 +08:00
Chen Jichang
546b60f6f1 fix(parlio): fix non-free running test case 2025-03-07 19:44:23 +08:00
Guillaume Souchere
5c62675f45 fix(esp_hw_support): esp_ptr_in_rtc_iram_fast check to return false
esp_ptr_in_rtc_iram_fast logic should be executed if
SOC_RTC_FAST_MEM_SUPPORTED is set but it should also be executed
if IRAM and DRAM region mapping is the same. Remove the
SOC_RTC_IRAM_LOW != SOC_RTC_DRAM_LOW part of the check.

Update heap component to use the modify function appropriately.
2025-03-07 12:24:07 +01:00
igor.masar
e0679b5ba0 fix(usb/hal/dwc): Correct host channel number calculation
The hardware field `ghwcfg2.numhstchnl` is zero-based, meaning the actual
number of available host channels is `numhstchnl + 1`. This off-by-one
error caused the USB Host controller to report N-1 channels instead of N,
leading to premature "No more HCD channels available" errors when
connecting multiple devices.

This issue affects ESP32-S2, ESP32-S3, and ESP32-P4.
2025-03-07 18:30:44 +08:00
Song Ruo Jing
346d084a5d docs(ledc): add notes for ledc_set_fade_with_time API reference
Closes https://github.com/espressif/esp-idf/issues/15085
2025-03-07 17:30:40 +08:00
peter.marcisovsky
3e8d088748 fix(jpeg_decoder): Correctly handle invalid 0xffff JPEG marker 2025-03-07 10:30:10 +01:00
Song Ruo Jing
d173affef0 fix(ledc): left-off gamma ram registers should be cleared
Hardware reads in (range_number+1) fade parameter registers, which could
cause output waveform error.
2025-03-07 17:30:05 +08:00
peter.marcisovsky
1d99ad74fc feat(jpeg_decode): Add support for default Huffman tables
- In case of a missing Huffman table, while decoding a JPEG image
    - Define a default Huff table and add it to JPEG image header
2025-03-07 10:30:04 +01:00
Song Ruo Jing
a1bd7abd1d fix(ledc): updated docs for esp32h2 eco5 bugfix 2025-03-07 17:22:49 +08:00
morris
382466d03a fix(spi): removed PERIPH_CTRL_FUNC_IN_IRAM dependency 2025-03-07 15:45:09 +08:00
yinqingzhao
79df1a8657 fix(sniffer): fix channel in rx_ctrl is zero when using sniffer 2025-03-07 15:24:49 +08:00
Jiang Jiang Jian
7d8b308352 Merge branch 'bugfix/fix_scan_bitmap_channel_14_fail_issue_v5.3' into 'release/v5.3'
fix(wifi): fix scan bitmap channel 14 fail issue

See merge request espressif/esp-idf!37519
2025-03-07 14:25:13 +08:00
wuzhenghui
f99c3c6343 fix(esp_system): fix possible cache_error by another core accessing flash in esp_restart 2025-03-07 11:05:41 +08:00
Jiang Jiang Jian
31d1ceb29b Merge branch 'bugfix/11kv_config_break_v5.3' into 'release/v5.3'
fix(esp_wifi): Correctly break 11kv config into wnm and rrm configs (v5.3)

See merge request espressif/esp-idf!37477
2025-03-07 10:56:05 +08:00
Roman Leonov
26ba099bd1 fix(usb_host): Fixed unchecked return value in enum driver (coverity) 2025-03-06 20:19:39 +08:00
Sudeep Mohanty
81109e8bdd fix(panic_handler): Updated panic handler to use RTC WDT
This commit updates the following:
- Updates the panic handler to use only the RTC WDT to reset the system.
- Refactors some of the panic handler code.
- Updates Bluetooth files where in they now feed the WDTs instead of
  reconfiguring them.
- Removes some unnecessary configuration of WDTs from various files.
- Added a unit test to verify that the system does not lock up when the
  panic handler is stuck.
- Updates the memprot unit tests to work with the refactored panic
  handler.

Closes https://github.com/espressif/esp-idf/issues/15166
Closes https://github.com/espressif/esp-idf/issues/15018
Closes https://github.com/espressif/esp-idf/issues/10110
2025-03-06 09:13:17 +01:00
Erhan Kurubas
5d442d0054 test(hmac_soft_jtag): check jtag connection status properly 2025-03-05 15:34:43 +01:00
Erhan Kurubas
47c014f117 feat(tools): update openocd version to v0.12.0-esp32-20250226 2025-03-05 15:34:43 +01:00
Jan Beran
2a401c768c fix(esp_system): Remove unnecessary select from esp_system/Kconfig 2025-03-05 15:09:25 +01:00
muhaidong
d3031add26 fix(wifi): fix scan bitmap channel 14 fail issue 2025-03-05 21:44:36 +08:00
peter.marcisovsky
0f58c571cf feat(jpeg_decoder): Correctly set JPEG restart interval 2025-03-05 10:43:07 +01:00
Island
f6997a73ef Merge branch 'bugfix/fix_link_estab_compile_failure_v5.3' into 'release/v5.3'
fix(nimble): Handle probable release breaking change (v5.3)

See merge request espressif/esp-idf!37435
2025-03-05 17:02:28 +08:00
Zhang Hai Peng
ca9ca7d021 feat(ble/bluedroid): Support read periodic advertiser list size command
(cherry picked from commit dcc26e3e4f)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-03-05 15:13:26 +08:00
Kapil Gupta
1c5d468279 fix(esp_wifi): Prevent flushing of FT data mistakenly 2025-03-05 12:39:23 +05:30
Kapil Gupta
91622962fc fix(esp_wifi): Correctly break 11kv config into wnm and rrm configs 2025-03-05 12:39:11 +05:30
Shreeyash
5c4ff82aeb feat(nimble): Allow BLE SPP Client to subscribe to the server 2025-03-05 11:40:11 +05:30
harshal.patil
223b25e1f3 fix(esp_psram): Fix incorrect calculation of used XIP PSRAM pages
The functions mmu_config_psram_text_segment() and mmu_config_psram_rodata_segment()
used to return the value of next start page in *out_page instead of the number
of pages used as mentioned in the documentation
2025-03-05 10:37:42 +05:30
Zhang Hai Peng
587eae152f feat(ble/bluedroid): Add Read Long Characteristic Values example
(cherry picked from commit 32e4fb79e8)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-03-04 22:13:35 +08:00
Jiang Jiang Jian
f8fdca6fdb Merge branch 'bugfix/fix_regression_while_reverting_wpa3_ent' into 'release/v5.3'
fix(wifi): Re-introduce parsing for Enterprise APs during the connecting scan (Regression v5.3)

See merge request espressif/esp-idf!37443
2025-03-04 21:25:54 +08:00
morris
709fe57efd fix(example): wrong ws2812 reset duration
Closes https://github.com/espressif/esp-idf/issues/15498
2025-03-04 11:10:55 +08:00
Sarvesh Bodakhe
f6cf94660c fix(wifi): Re-introduce parsing for Enterprise APs during the connecting scan
Fixes the regression introduced in d90f31c29e
2025-03-03 14:07:07 +05:30
Rahul Tank
3b85cba90c fix(nimble): Handle probable release breaking change
link_estab event may be handled by customers in application and the previous would break it.
Revert few changes so as to not break the customer's code
2025-03-03 12:37:23 +05:30
Omar Chebib
105588b113 fix(esp_system): add missing arrays attribute in the ESP32-P4 linker script 2025-03-03 14:21:17 +08:00
morris
8062ad5a0c feat(gdma): allow bypass the alignment check in the link driver
Closes https://github.com/espressif/esp-idf/issues/15228
2025-03-03 11:21:31 +08:00
Zhang Hai Peng
a903c662db fix(ble/controller): Fix BLE Kconfig on ESP32 to avoid unexpected behavior
(cherry picked from commit 9496949132)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-03-03 11:13:40 +08:00
Jan Beran
94e61d005b change: move check_deprecated_configs.py file to esp-idf-kconfig 2025-02-28 14:51:23 +01:00
wuzhenghui
0d8c311296 change(doc): added more usage notes & warings about PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP 2025-02-28 16:45:51 +08:00
peter.marcisovsky
e638cb8845 fix(usb_host): Fixing dererence to OTG_NUM_HOST_CHAN in docs 2025-02-28 09:33:33 +01:00
Jin Cheng
f58c729e8a fix(bt/bluedroid): fixed memory leaks in SPP callback mode 2025-02-28 16:12:46 +08:00
Chen Jichang
f3eec647aa feat(parlio_tx): backport the clock change to v5.3 2025-02-28 15:03:11 +08:00
Jiang Jiang Jian
7b0c6f45aa Merge branch 'fix/reduce_rtc_text_size_v5.3' into 'release/v5.3'
fix(system): linker script: free unused .rtc.text memory for esp32c3, esp32s2 (v5.3)

See merge request espressif/esp-idf!35367
2025-02-28 14:17:45 +08:00
Jiang Jiang Jian
9e4d18461d Merge branch 'fix/ssdmmc_send_cmd_set_relative_addr_rca_v5.3' into 'release/v5.3'
fix(sdmmc): Retry to get another RCA if the previous response was 0 (v5.3)

See merge request espressif/esp-idf!34345
2025-02-28 13:20:56 +08:00
Jiang Jiang Jian
325b4f433c Merge branch 'feature/softap_fixes_for_ceritification_v5.3' into 'release/v5.3'
WiFi: fixes for issues discovered during SoftAP ceritification

See merge request espressif/esp-idf!36511
2025-02-28 12:40:25 +08:00
Jiang Jiang Jian
9bc2babe54 Merge branch 'feat/support_ble_vendor_hci_event_report_v5.3' into 'release/v5.3'
feat(bt/bluedroid): Support BLE vendor hci event reporting (v5.3)

See merge request espressif/esp-idf!37353
2025-02-28 12:02:00 +08:00
Jiang Jiang Jian
eddaf0377b Merge branch 'feat/add_ble_ctrl_log_module_on_esp32c3_v5.3' into 'release/v5.3'
feat(bt): Added BLE log module on ESP32-C3 and ESP32-S3(723439d) (v5.3)

See merge request espressif/esp-idf!37360
2025-02-28 12:01:11 +08:00
Jiang Jiang Jian
4b43d63d73 Merge branch 'bugfix/freertos_wcaps_coproc_v5.3' into 'release/v5.3'
fix(freertos): fix a bug in `prvTaskDeleteWithCaps` related to coprocessors (backport v5.3)

See merge request espressif/esp-idf!37154
2025-02-28 11:56:39 +08:00
Jiang Jiang Jian
064f63d2a0 Merge branch 'fix/fix_bad_dslp_param_after_lightsleep_v5.3' into 'release/v5.3'
fix(esp_hw_support): Fixed the issue that light sleep destroyed the parameters of subsequent deep sleep (v5.3)

See merge request espressif/esp-idf!37303
2025-02-28 11:36:21 +08:00
Kapil Gupta
5a9b16d754 fix(esp_wifi): Address some review comments 2025-02-28 11:35:22 +08:00
Aditi
30264132b5 fix(wpa_supplicant): Remove the btm_rrm task from supplicant
This commit removes btm_rrm_t task and CONFIG_SUPPLICANT_TASK from
wpa_supplicant and make the functions work in wifi task's context.
2025-02-28 11:35:22 +08:00
Aditi
041bc41ccf fix(wpa_supplicant): Fix for sending alternate ft-auth in roaming 2025-02-28 11:35:22 +08:00
Aditi
4724d7c5e7 fix(wpa_supplicant): Add two separate flags for RRM and WNM
Added two separate flags CONFIG_RRM(80211k) and CONFIG_WNM(80211v)
    flags under IEEE80211KV support flag.
2025-02-28 11:35:22 +08:00
Aditi
b2abac0a4e fix(wpa_supplicant): Add some minor fixes in roaming
1) Add a fix in roaming example for 11kvr
    2) Removed length constraint for neighbor report received.
2025-02-28 11:35:22 +08:00
Aditi
9e168a1480 fix(esp_wifi): Add fix for error handling for FT-Auth 2025-02-28 11:35:22 +08:00
Nachiket Kukade
76235525a6 fix(wpa_supplicant): Fix some coverity issues in wpa_supplicant
1. Fix leak in SoftAP while sending SAE Confirm
2. Move NULL check before pointer is getting used
3. Remove some dead code
2025-02-28 11:35:22 +08:00
wangtao@espressif.com
f1f420ad05 fix(wifi): fix build issue when disable wpa3 sae 2025-02-28 11:35:22 +08:00
Shreyas Sheth
e71a1290d6 fix(wifi): Resolve comments for softap fixes 2025-02-28 11:35:22 +08:00
Shreyas Sheth
fedcf1a524 fix(wifi): Resolve comments on feature/softap_fixes_for_ceritification 2025-02-28 11:35:22 +08:00
Shreyas Sheth
bdd9c2a0f1 fix(wifi): Make sure auth is sent after sae process 2025-02-28 11:35:22 +08:00
Shreyas Sheth
d402b239d6 feat(wifi): Add support for transition_disable for softAP
Bugfix rsnxe len for assoc req
2025-02-28 11:35:22 +08:00
Jiang Jiang Jian
d05db91535 Merge branch 'feat/add_h2_config_and_maxver_for_v5.3' into 'release/v5.3'
feat(soc): add Kconfig rev min option and increase max ver for H2 v1.2 (v5.3)

See merge request espressif/esp-idf!36417
2025-02-28 11:33:21 +08:00
Jiang Jiang Jian
cb8d1796b8 Merge branch 'fix/xtensa_nmi_v5.3' into 'release/v5.3'
fix(esp_hw_support): make the NMI interrupts available for the main application (backport v5.3)

See merge request espressif/esp-idf!34268
2025-02-28 11:32:47 +08:00
Jiang Jiang Jian
f98328e9b2 Merge branch 'bugfix/ethernet_example_netif_glue_assignment_v5.3' into 'release/v5.3'
fix(ethernet_basic): Fix second Ethernet device not receiving IP address (v5.3)

See merge request espressif/esp-idf!36946
2025-02-28 10:55:33 +08:00
Jiang Jiang Jian
5f18a9711b Merge branch 'feature/esp32h2_eco5_ecc_v5.3' into 'release/v5.3'
feat(ecc): enable ECC constant time mode for ESP32-H2 ECO5 (v5.3)

See merge request espressif/esp-idf!36585
2025-02-28 10:50:18 +08:00
Alexey Lapshin
2ff0343243 fix(system): linker script: free unused .rtc.text memory for esp32c3/esp32s2/esp32s3 2025-02-28 10:45:53 +08:00
Adam Múdry
8de193ff17 fix(sdmmc): Retry to get another RCA if the previous response was 0 2025-02-28 10:43:22 +08:00
Jiang Jiang Jian
8c4d2464d5 Merge branch 'fix/fix_max_idle_priod_issue_v53' into 'release/v5.3'
fix(wifi): fix max idle period 1 issue

See merge request espressif/esp-idf!37309
2025-02-28 10:41:03 +08:00
Island
42c78af828 Merge branch 'fix/optimize_ble_example_ci_build_rule_v5.3' into 'release/v5.3'
fix(ble): Optimizied the bluetooth build test rules (v5.3)

See merge request espressif/esp-idf!35326
2025-02-28 10:35:45 +08:00
Rahul Tank
e53eed0cd1 Merge branch 'bugfix/deprecate_link_estab_v5.3' into 'release/v5.3'
fix(nimble): Deprecate link_estab event (v5.3)

See merge request espressif/esp-idf!37058
2025-02-27 23:13:53 +08:00
Tomas Rezucha
3b2c3cb854 fix(usb/phy): Fixed crash on external PHY init with speed != UNDEFINED
Also deprecated usb_phy_otg_dev_set_speed()
and usb_phy_action() which are no longer used in esp-idf
2025-02-27 15:10:13 +01:00
Roman Leonov
b937bd3a1e fix(usb_phy): Removed pad pull override config for Full-speed 2025-02-27 15:10:13 +01:00
Island
5db0534f7e Merge branch 'feat/add_ble_spi_log_v5.3' into 'release/v5.3'
fix(ble/bluedroid): Support SPI log output options for HCI (v5.3)

See merge request espressif/esp-idf!37340
2025-02-27 20:17:56 +08:00
Roland Dobai
284120b0f4 Merge branch 'fix/docker_qemu_seg_v5.3' into 'release/v5.3'
CI: Fixed docker build

See merge request espressif/esp-idf!37366
2025-02-27 20:13:29 +08:00
Roland Dobai
73b6a8c263 ci(github): Fixed docker build caused by Qemu segmentation fault
Works around issue from
https://github.com/espressif/esp-idf/actions/runs/13531037397/job/37813060700
caused by Qemu segmentation fault.

    Errors were encountered while processing: libc-bin

The workaround is from https://github.com/docker/setup-qemu-action/issues/198.
2025-02-27 12:45:15 +01:00
morris
ae09425178 Merge branch 'fix/spi_master_halt_using_rc_fast_v5.3' into 'release/v5.3'
fix(spi_master): fix spi halt when remove device who using rc_fast (v5.3)

See merge request espressif/esp-idf!37004
2025-02-27 16:48:23 +08:00
chenjianhua
2b80f7506d feat(bt): Update bt lib for ESP32-C3 and ESP32-S3(723439d)
- Added BLE controller debug log trace
- Added BLE controller log module
2025-02-27 15:46:45 +08:00
Shu Chen
5c06d62702 Merge branch 'fix/fix_ot_uart_init_bug_v5.3' into 'release/v5.3'
fix(openthread): fix a bug of openthread uart init port (v5.3)

See merge request espressif/esp-idf!37323
2025-02-27 15:36:18 +08:00
Chen Jichang
25f35910a7 fix(parlio): fix rempty interrupt during resetting fifo
Move the fifo reset to after disabling the tx core clock.
And add external non-free running clock src test.
2025-02-27 15:12:33 +08:00
Linda
9655032d2b docs: update the API description for esp-wifi_scan_get_ap_records 2025-02-27 15:12:01 +08:00
wangtao@espressif.com
b5477c5532 fix(wifi): fix max idle period 1 issue 2025-02-27 14:47:43 +08:00
Marius Vikhammer
8d6d6957ce fix(lp_io): allow edge wakeup types for LP-IO on chips which support it 2025-02-27 14:31:00 +08:00
morris
195d7f47a4 Merge branch 'feat/add_temperature_calib_v5.3' into 'release/v5.3'
feat(temperature_sensor): Add temperature sensor calibration support(backport v5.3)

See merge request espressif/esp-idf!37314
2025-02-27 14:28:06 +08:00
Jiang Jiang Jian
9c5aefac91 Merge branch 'docs/fix_some_coexist_doc_issue_v5.3' into 'release/v5.3'
docs(coex): update rf coexistence documents (v5.3)

See merge request espressif/esp-idf!37345
2025-02-27 14:03:31 +08:00
Jiang Jiang Jian
b2f08a80dc Merge branch 'bugfix/ifdef_cplusplus_bracket_v5.3' into 'release/v5.3'
bugfix(wifi): Add missing brackets in the C++ guard (Backport v5.3)

See merge request espressif/esp-idf!36845
2025-02-27 13:41:24 +08:00
Mahavir Jain
eb9019a1eb Merge branch 'feature/enable_ota_resumption_support_for_release5.3' into 'release/v5.3'
feat(app_update): enabled ota resumption support for release/v5.3

See merge request espressif/esp-idf!37212
2025-02-27 13:41:07 +08:00
Chen Jian Hua
7527948b6b feat(bt/bluedroid): Support BLE vendor hci event reporting
(cherry picked from commit 1003ced6e9)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-02-27 12:33:32 +08:00
Chen Jian Hua
4913618b07 feat(bt/bluedroid): Support BLE setting vendor event mask
(cherry picked from commit fd4094e502)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-02-27 12:33:29 +08:00
wanlei
b43104538b fix(spi_master): fix spi halt when remove device who using rc_fast 2025-02-27 11:42:15 +08:00
Jiang Jiang Jian
e40304b2ec Merge branch 'bugfix/fix_some_wifi_bugs_250226_v5.3' into 'release/v5.3'
fix(wifi): fix some wifi bugs 250226(Bbackport v5.3)

See merge request espressif/esp-idf!37308
2025-02-27 11:38:10 +08:00
akshat
f8c552b560 bugfix(wifi): Fix header file errors and remove esp_supplicant from check_public_headers_exceptions.txt 2025-02-27 11:09:30 +08:00
akshat
1c231b4401 bugfix(wifi): Add missing brackets in the C++ guard
Closes https://github.com/espressif/esp-idf/issues/14991
2025-02-27 11:09:30 +08:00
linruihao
5da35cadb6 docs(coex): update rf coexistence documents
- remove BLE connecting state in coexistence scenario
- remove WIFI section in H2 docs
2025-02-27 11:07:55 +08:00
Shu Chen
eadfab049f docs(coex): add the supported coexistence scenario for Wi-Fi and 802.15.4 2025-02-27 11:07:45 +08:00
Island
a71e0aac53 Merge branch 'feat/add_save_debug_context_250226_v5.3' into 'release/v5.3'
Feat/add save debug context 250226 (v5.3)

See merge request espressif/esp-idf!37296
2025-02-27 10:40:05 +08:00
Zhou Xiao
ac9ac0a46c fix(ble): fix flushout and sync issues
(cherry picked from commit b144337020)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-27 09:53:39 +08:00
Xiao Xufeng
1ce83d7b36 feat(soc): add Kconfig rev min option and increase max ver for H2 v1.2 2025-02-27 09:04:14 +08:00
Zhang Hai Peng
5927173177 fix(ble/bluedroid): Added SPI output support for Bluedroid host log
(cherry picked from commit b6903296ad)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-02-26 23:13:41 +08:00
Zhang Hai Peng
efdf380fb9 fix(ble/bluedroid): Support SPI log output options for HCI
(cherry picked from commit e00ba3cbd1)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-02-26 23:13:39 +08:00
Martin Vychodil
313c3406f9 Merge branch 'fix/esp_vfs_register_fd_range_warning_message_v5.3' into 'release/v5.3'
fix(storage/vfs): incorrect log level in esp_vfs_register_fd_range (v5.3)

See merge request espressif/esp-idf!36319
2025-02-26 21:39:04 +08:00
Aditya Patwardhan
2390e81fb7 fix(hal): Fixed ecc_ll for esp32c5 beta3 2025-02-26 17:04:28 +05:30
Zhang Shuxian
d464d7b150 docs: Update CN translation for size.rst 2025-02-26 17:04:28 +05:30
Aditya Patwardhan
78874d7f7c feat(docs): Update minimizing binary size
The ESP32-H2 software countermeasure may not be necessary
        for ESP32-H2 v1.2 and above, this commit updates
        the relevant documentation
2025-02-26 17:04:28 +05:30
laokaiyao
25322aeb81 refactor(ecdsa): rely on efuse to get chip revision 2025-02-26 17:04:27 +05:30
Aditya Patwardhan
08e250d081 fix(soc): Fixed ECDSA register compatibility 2025-02-26 17:04:27 +05:30
Aditya Patwardhan
68eb689b35 fix(hal): Make the ECDSA countermeasure dynamically applicable
This commit makes the ECDSA countermeasure dynamically applicable
    across different revisions of the ESP32H2 SoC.
2025-02-26 17:04:19 +05:30
Xu Si Yu
3b770e7307 fix(openthread): fix a bug of openthread uart init port 2025-02-26 19:22:20 +08:00
morris
70e8021aa7 Merge branch 'bugfix/gpio_rom_patch_fix_v5.3' into 'release/v5.3'
fix(gpio): fix esp_rom_gpio_connect_out_signal for gpio num over 31 on esp32/s2 (v5.3)

See merge request espressif/esp-idf!36866
2025-02-26 19:09:11 +08:00
Chen Jichang
1ff5e64acd fix(parlio_tx): add clock and fifo reset in disable function 2025-02-26 18:41:49 +08:00
C.S.M
77e69fa036 feat(temperature_sensor): Add temperature sensor calibration support 2025-02-26 17:54:36 +08:00
wuzhenghui
f72d3ea516 fix(esp_hw_support): fix lightsleep destroys deepsleep rtc parameters 2025-02-26 17:31:35 +08:00
Island
af4ad22e9a Merge branch 'feat/optimize_ble_config_reduce_bin_v5.3' into 'release/v5.3'
Feat/optimize bluedroid host config and reduce bin size (v5.3)

See merge request espressif/esp-idf!37260
2025-02-26 17:23:29 +08:00
muhaidong
2e5099261f fix(wifi): fix some wifi bugs 250226
1. fix(wifi): fix some esp32p4 host issues
2. fix(wifi): fix wep shared auth connect fail issue
3. fix(coex): fix disable external coex fail issue
2025-02-26 17:09:43 +08:00
morris
67c6ae91ab Merge branch 'feat/allow_setting_rmt_group_prescale_v5.3' into 'release/v5.3'
refactor(rmt): set group clock prescale dynamically (v5.3)

See merge request espressif/esp-idf!36738
2025-02-26 17:03:16 +08:00
Yuhan Wei
24aecbbc39 fix(ble): Fixed the bluetooth examples build rule 2025-02-26 16:52:03 +08:00
Alexey Gerenkov
d0f9dc4b80 Merge branch 'update_usb_jtag_doc_v5.3' into 'release/v5.3'
docs(jtag): add esp32p4 usb jtag pin numbers (v5.3)

See merge request espressif/esp-idf!37242
2025-02-26 16:39:26 +08:00
muhaidong
810a9149e7 feat(phy): add gpio cmd for cert test 2025-02-26 16:04:47 +08:00
morris
53ecffa92f Merge branch 'refactor/gptimer_isr_logs_opt_int_v5.3' into 'release/v5.3'
feat(gptimer): make start and stop function idempotent (v5.3)

See merge request espressif/esp-idf!37249
2025-02-26 15:51:24 +08:00
Jiang Jiang Jian
709c9221e9 Merge branch 'feature/c3_libphy_20250120_v5.3' into 'release/v5.3'
feat(phy): update libphy for RXDC cal opt, no antenna current opt, add cca api(Backport v5.3)

See merge request espressif/esp-idf!37225
2025-02-26 15:05:55 +08:00
Zhao Wei Liang
be9de2b50e feat(ble): add a debug way to retain scene on ESP32-C6
(cherry picked from commit bc299e784c)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-02-26 15:03:37 +08:00
Zhao Wei Liang
bcbaa93cf7 fix(ble): fixed common kconfig error when controller enable only
(cherry picked from commit 5b8ac71ace)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-02-26 15:03:34 +08:00
Island
4aa1a3712f Merge branch 'bugfix/fix_ble_report_len_v5.3' into 'release/v5.3'
fix(ble/bluedroid): Fix adv data and scan rsp data not reported together in BLE active scan (v5.3)

See merge request espressif/esp-idf!37202
2025-02-26 14:12:00 +08:00
Chen Jichang
e98ded4e7b refactor(rmt): set group clock prescale dynamically
Closes https://github.com/espressif/esp-idf/issues/14760
2025-02-26 11:22:51 +08:00
Omar Chebib
9b0b5b4613 fix(examples): fix NMI interrupt example to work on ESP32-S3 2025-02-26 10:06:44 +08:00
Omar Chebib
209cfa313b fix(esp_hw_support): make the NMI interrupts available for the main application
Closes https://github.com/espressif/esp-idf/issues/13629

NMI interrupt level has been freed for all the Xtensa targets, making it possible
for the main application to use it. An example has been added to show how to
proceed.
2025-02-26 10:06:44 +08:00
zhiweijian
5f389f7270 feat(ble/bluedroid): reduce bluedrois host bin size and disable BLE_HOST_BG_CONNECT_EN 2025-02-25 17:59:11 +08:00
Wang Meng Yang
73d6bd722f Merge branch 'bugfix/fix_hid_reconnect_issue_v5.3' into 'release/v5.3'
feat(bt/bluedroid): Add Kconfig option to keep device bonding info when HID unplugging (v5.3)

See merge request espressif/esp-idf!37182
2025-02-25 17:51:06 +08:00
Wang Meng Yang
2abf7c6ec5 Merge branch 'bugfix/sdp_uuid16_match_err_v5.3' into 'release/v5.3'
fix(bt): Fix the incorrect record found using uuid16 search(v5.3)

See merge request espressif/esp-idf!36844
2025-02-25 17:01:25 +08:00
zhiweijian
27fa98772a feat(ble/bluedroid): disable bluedroid host unused functions 2025-02-25 16:48:38 +08:00
zhiweijian
b0725698e2 feat(bt/bluedroid): optimize bluedroid menuconfig 2025-02-25 16:48:29 +08:00
zhiweijian
386f94a807 feat(bt/bluedroid): delete unused host congest check 2025-02-25 16:48:17 +08:00
Song Ruo Jing
dfa95bfe6e fix(gpio): fix esp_rom_gpio_connect_out_signal for gpio num over 31 on esp32/s2
Closes https://github.com/espressif/esp-idf/issues/15209
2025-02-25 16:23:08 +08:00
Marius Vikhammer
79bf6acddb Merge branch 'fix/esp-log-put-function-in-iram_v5.3' into 'release/v5.3'
fix(log): Modified linker script to move functions from flash to iram (backport v5.3)

See merge request espressif/esp-idf!36816
2025-02-25 16:00:46 +08:00
Island
192edf0bab Merge branch 'change/ble_update_lib_20250217_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20250217 - Update ESP BLE Controller Lib (v5.3)

See merge request espressif/esp-idf!37130
2025-02-25 15:09:23 +08:00
morris
509b9d9a54 feat(gptimer): make start and stop function idempotent
Closes https://github.com/espressif/esp-idf/issues/12325
Closes https://github.com/espressif/esp-idf/issues/13486
2025-02-25 11:45:01 +08:00
Wang Meng Yang
af429c89a2 Merge branch 'feat/add_sdk_config_for_sdp_size_option_v5.3' into 'release/v5.3'
feat(bt): Implement SDK Config SDP size options(backport v5.3)

See merge request espressif/esp-idf!37211
2025-02-25 07:51:25 +08:00
Erhan Kurubas
9f9ddd246f docs(jtag): add esp32p4 usb jtag pin numbers 2025-02-24 14:44:35 +01:00
Jiang Jiang Jian
fbddf2af95 Merge branch 'feat/add_inq_page_coex_schm_v5.3' into 'release/v5.3'
feat(coex): add coexist scheme for bt inquiry/page coexist with wifi

See merge request espressif/esp-idf!36989
2025-02-24 19:42:25 +08:00
muhaidong
42bd89e725 feat(phy): update libphy for RXDC cal opt, no antenna current opt, add cca api 2025-02-24 14:23:35 +08:00
Island
4418394bc3 Merge branch 'feat/add_ble_log_spi_out_printf_v5.3' into 'release/v5.3'
feat(ble): add printf interface for ble log spi out (v5.3)

See merge request espressif/esp-idf!37186
2025-02-24 14:01:42 +08:00
Island
99e15e90ea Merge branch 'fix/ble_log_spi_out_api_fix_v5.3' into 'release/v5.3'
fix(ble): changed DMA malloc api to v5.3

See merge request espressif/esp-idf!37208
2025-02-24 14:01:36 +08:00
liuning
07a0f94779 feat(coex): add coexist scheme for bt inquiry/page coexist with wifi 2025-02-24 10:42:15 +08:00
Marius Vikhammer
37413d2148 Merge branch 'docs/fix_gps_broken_link_v5.3' into 'release/v5.3'
docs(examples): fixed broken link in uart example readme (v5.3)

See merge request espressif/esp-idf!37150
2025-02-24 10:03:34 +08:00
Rahul Tank
6515dc1d2e fix(nimble): Keep only BLE_GAP_EVENT_CONNECT gap event 2025-02-23 15:11:27 +05:30
Martin Vychodil
6226e07ce4 Merge branch 'bugfix/memprot_s2_intr_peri1_v5.3' into 'release/v5.3'
fix(security): ESP32S2 memory protection check for Peri1 RTCSLOW interrupt (v5.3)

See merge request espressif/esp-idf!37118
2025-02-23 03:44:10 +08:00
Adam Múdry
1d09158bb5 fix: test_nvs_gen_check.py support for read-only NVS partitions 2025-02-21 14:26:48 +01:00
Adam Múdry
14b8dc77a3 fix(nvs): Fix the nvs generator test (write_namespace safer behavior change) 2025-02-21 14:26:36 +01:00
Adam Múdry
9620508388 docs(nvs): Document nvs_check.py functions 2025-02-21 14:26:36 +01:00
Adam Múdry
1eacc6c2a8 feat(nvs): Add raw_data variable to NVS_Partition class in nvs_parser.py 2025-02-21 14:26:36 +01:00
xiongweichao
059a6cdd65 fix(bt): Fixed SDP record integrity check bug 2025-02-21 18:02:02 +08:00
xiongweichao
b3521b51f1 fix(bt/bluedroid): fixed the format error of passkey printing 2025-02-21 18:02:02 +08:00
xiongweichao
c3bfb484d0 fix(bt/bluedroid): Fixed incorrect types of some variables in SDP 2025-02-21 18:02:02 +08:00
xiongweichao
ff81e4b9ee fix(bt): Fix incorrect type returned when searching SAP record 2025-02-21 18:02:02 +08:00
xiongweichao
9e33139206 fix(bt): Fix the incorrect record found using uuid16 search 2025-02-21 18:02:02 +08:00
nilesh.kale
a64afccafc feat(app_update): enabled ota resumption support for release/v5.3 2025-02-21 15:28:21 +05:30
gongyantao
7c28af0945 change(bt): optimize the macro definition for sdp_max_pad_len 2025-02-21 17:54:18 +08:00
Mitch Cairns
2e30c74883 feat(bt): Implement SDK Config SDP size options
Closes https://github.com/espressif/esp-idf/pull/15321
2025-02-21 17:50:17 +08:00
Zhou Xiao
8372c3d4d9 fix(ble): changed DMA malloc api to v5.3 2025-02-21 17:12:18 +08:00
Martin Vychodil
2c26a7e11e fix(security): Fixed ESP32S2 memory protection check for Peri1 RTCSLOW interrupt
- fixes the issue found in https://github.com/espressif/esp-idf/issues/15359
- extends debug printouts in the related tests
2025-02-21 16:29:04 +08:00
Zhang Hai Peng
18973c0c61 fix(ble/bluedroid): Fix adv data and scan rsp data not reported together in BLE active scan
(cherry picked from commit 7f2cedc048)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-02-21 16:13:46 +08:00
cjin
bb232d627d change(ble): update esp32c6 lib to 7ead2d29 2025-02-21 12:24:09 +08:00
cjin
d6410d2aad change(ble): update esp32h2 lib to 7ead2d29 2025-02-21 12:24:09 +08:00
zwl
8ef5a044d2 feat(ble): implement ble capture info user handler on ESP32-C6 and ESP32-H2 2025-02-21 12:24:09 +08:00
Shen Weilong
838dd8e567 change(ble): Supported cuttable architecture for ble 2025-02-21 12:24:09 +08:00
Zhou Xiao
6c54ce599f feat(ble): add printf and write with timestamp interface for ble log spi out
(cherry picked from commit f8efa4cd80)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-21 11:53:54 +08:00
linruihao
5d8955ebac feat(bt/bluedroid): Add Kconfig option to keep device bonding info when HID unplugging 2025-02-21 11:53:08 +08:00
Jiang Jiang Jian
fed7e38609 Merge branch 'fix/esp32p4_lightsleep_fixes_v5.3' into 'release/v5.3'
fix(esp_hw_support): some fixes of esp32p4 lightsleep retention & power switch process (v5.3)

See merge request espressif/esp-idf!37097
2025-02-21 11:03:20 +08:00
Jiang Jiang Jian
c327f4c4a7 Merge branch 'fix/fix_s2_s3_rtc_iomux_clock_management_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix esp32s2/esp32s3 RTC IOMUX clock management (v5.3)

See merge request espressif/esp-idf!37166
2025-02-21 11:02:40 +08:00
morris
061faa21c2 Merge branch 'bugfix/fix_cache_count_flash_pages_patchs_return_wrong_value_v5.3' into 'release/v5.3'
fix(rom): Fix s2 and s3 Cache_Count_Flash_Pages rom function wrapper (v5.3)

See merge request espressif/esp-idf!37156
2025-02-21 10:17:09 +08:00
wuzhenghui
1f6d8d4e5d fix(esp_hw_support): fix esp32s2/esp32s3 RTC IOMUX clock management 2025-02-20 19:39:02 +08:00
Tomasz Kramkowski
664b7821f7 fix(rom): Fix s2 and s3 Cache_Count_Flash_Pages rom function wrapper
The rom function on the s2 and s3 only counts one page for any pages
which are mapped to page 0 of flash as the Cache_Flash_To_SPIRAM_Copy
function attempts to map all flash page 0 mapped pages to one PSRAM
page.

As this function can be called for multiple regions, it needs to track
if a page mapped to page 0 has previously been accounted for by a
previous call. It does this using the page0_mapped in-out parameter.
This logic contains an error:

```
if (*page0_mapped == 0) {
    // BUG: If page0_count is 0, 1 is still added
    count = valid_flash_count + 1 - page0_count;
} else {
    count = valid_flash_count - page0_count;
}
*page0_mapped += page0_count;
return count;
```

The current Cache_Count_Flash_Pages wrapper in the idf attempts to
compensate for this bug by checking if the page0_mapped parameter was
changed by a call to the function and reducing the count if it has not.

This, however, will incorrectly over-compensate in situations where the
initial value of page0_mapped was not zero as the code above only
miscounts when it was zero.

This patch addresses the issue in this wrapper function by correctly
compensating for the bug only in cases where the final page0_mapped
value is 0.
2025-02-20 16:06:02 +08:00
Omar Chebib
24fd631d97 fix(freertos): fix a bug in prvTaskDeleteWithCaps related to coprocessors
When a coprocessor is used, the stack pointer is altered. It must be restored
before freeing the memory allocated to the task.
2025-02-20 15:40:01 +08:00
Song Ruo Jing
5ed33be402 fix(pmu): enable all func clock icg during retention
This should only increase a tiny amount of the power consumption in the retention process,
but save debug time since some module register read/write relies not only APB but also func clock.
2025-02-20 15:04:13 +08:00
Island
9eeff2e97e Merge branch 'feat/improve_bt_log_spi_output_interface_v5.3' into 'release/v5.3'
Feat/improve bt log spi output interface (v5.3)

See merge request espressif/esp-idf!37136
2025-02-20 14:48:02 +08:00
Island
d76e076fc3 Merge branch 'change/ble_update_lib_20250212_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20250212 - Update ESP BLE Controller Lib (v5.3)

See merge request espressif/esp-idf!37043
2025-02-20 14:47:57 +08:00
morris
cac01ada13 Merge branch 'fix/build_when_rom_patch_disable_v5.3' into 'release/v5.3'
fix(spi_flash): Fix build fail when rom_patch config disabled (backport v5.3)

See merge request espressif/esp-idf!37104
2025-02-20 13:54:38 +08:00
Marius Vikhammer
1812f701ba docs(examples): fixed broken link in uart example readme 2025-02-20 12:49:32 +08:00
morris
4d88d8ec08 Merge branch 'fix/i2c_scl_freq_s2_v5.3' into 'release/v5.3'
fix(i2c): Fix scl frequency is wrong on esp32s2 in legacy i2c driver (backport v5.4)

See merge request espressif/esp-idf!37114
2025-02-20 11:51:30 +08:00
Jiang Jiang Jian
ec02fb249e Merge branch 'feat/wait_pll_stable_after_sleep_wakeup_fix_xtal_v5.3' into 'release/v5.3'
feat(esp_hw_support): wait pll stable after sleep wakeup (v5.3)

See merge request espressif/esp-idf!36019
2025-02-20 11:22:18 +08:00
morris
03a2fca29d Merge branch 'feature/flash_software_resume_v5.3' into 'release/v5.3'
feat(spi_flash): Add config for adding auto check status after suspend to improve performance (backport v5.3)

See merge request espressif/esp-idf!36526
2025-02-20 11:01:11 +08:00
morris
7354091eb2 Merge branch 'bugfix/fix_i2s_std_initializer_order_for_cpp_compiler_v5.3' into 'release/v5.3'
fix(i2s): fixed i2s_std initializer order for cpp compiler (v5.3)

See merge request espressif/esp-idf!37048
2025-02-20 11:00:21 +08:00
morris
c1b32c87de Merge branch 'fix/esp_mmu_vaddr_to_paddr_cannot_figure_psram_p4_v5.3' into 'release/v5.3'
mmu: vaddr to paddr cannot figure psram vaddr on esp32p4 (v5.3)

See merge request espressif/esp-idf!37050
2025-02-20 10:59:35 +08:00
morris
a698b26012 Merge branch 'bugfix/dma_alignment_for_encryption_memory_v5.3' into 'release/v5.3'
fix(gdma): relax alignment constraint for internal memory (v5.3)

See merge request espressif/esp-idf!37094
2025-02-20 10:12:13 +08:00
Mahavir Jain
e97c51ea24 feat(ecc): enable ECC constant time mode for ESP32-H2 ECO5 2025-02-19 19:15:17 +05:30
wuzhenghui
7147d7b366 change(esp_hw_support): wrapper sleep dcdc/ldo ops with ll 2025-02-19 21:37:38 +08:00
wuzhenghui
367fda4447 feat(esp_hw_support): add branch prediction config retention 2025-02-19 21:37:16 +08:00
wuzhenghui
2445545a17 fix(esp_hw_support): fix DCDC switch bad software powerdown 2025-02-19 21:36:40 +08:00
wuzhenghui
08e7ef62da change(esp_hw_support): define Cache invalidate in sleep process to avoid dirtying the L1 Cache 2025-02-19 21:36:13 +08:00
wuzhenghui
022def4ac5 feat(esp_hw_support): do mstatus restore on each core 2025-02-19 21:34:36 +08:00
wuzhenghui
f52b2275d9 feat(esp_hw_support): do esp32p4 l1 cache invalidate by regdma 2025-02-19 21:33:08 +08:00
wuzhenghui
ca9cca73ff feat(esp_hw_support): do esp32p4 l1&l2 cache regs retention by regdma 2025-02-19 21:32:15 +08:00
Zhou Xiao
c3c849b263 feat(ble): support ble log spi out for ESP32-C3 and ESP32-S3
(cherry picked from commit e41f619566)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-19 20:54:16 +08:00
Zhou Xiao
03073ad5a5 feat(ble): support ble log spi out for ESP32
(cherry picked from commit e2fbec5d2e)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-19 20:54:14 +08:00
Zhou Xiao
ce6741163a change(ble): update ble log spi out config for ESP32-H2
(cherry picked from commit 608ecf63e2)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-19 20:54:11 +08:00
Zhou Xiao
7e22702043 change(ble): update ble log spi out config for ESP32-C6
(cherry picked from commit e61089e7e0)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-19 20:54:08 +08:00
Zhou Xiao
d01f32df2d change(ble): update ble log spi out config for ESP32-C2
(cherry picked from commit e4b698fc32)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-19 20:54:05 +08:00
Zhou Xiao
e8daf00ea5 feat(ble): improved ble log spi output interface to support multisource log
(cherry picked from commit 2221133ba8)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-19 20:54:02 +08:00
C.S.M
c96f29f856 fix(i2c): Fix scl frequency is wrong on esp32s2 in legacy i2c driver,
Closes https://github.com/espressif/esp-idf/issues/15301,
Closes https://github.com/espressif/esp-idf/issues/14603
2025-02-19 17:45:44 +08:00
C.S.M
1800d14dc1 refactor(spi_flash): remove redundent flash suspend check 2025-02-19 16:55:27 +08:00
C.S.M
d96f71c5cc fix(spi_flash): Fix build fail when rom_patch config disabled,
Closes https://github.com/espressif/esp-idf/issues/15229
2025-02-19 16:54:37 +08:00
Island
d4bb0e2aa3 Merge branch 'feat/support_ble_debug_with_gpio_v5.3' into 'release/v5.3'
Support change HID task size by Kconfig in HID example (v5.3)

See merge request espressif/esp-idf!36998
2025-02-19 16:37:56 +08:00
morris
6a1cf6bb85 fix(gdma): relax alignment constraint for internal memory
external memory encryption should not affect internal memory alignment

Closes https://github.com/espressif/esp-idf/issues/15228
2025-02-19 15:16:19 +08:00
Armando
f8e84969f9 test(psram): added mem leak thresh for xip test, previous is 600 is close to the actual leak 2025-02-19 14:07:47 +08:00
Armando
04708898a2 test(flash_mmap): added psram enabled test for esp32p4 as mmu is per target 2025-02-19 14:07:47 +08:00
Armando
817961a8a2 test(mmu): added test for checking esp_mmu_vaddr_to_paddr with psram vaddrs 2025-02-19 14:07:47 +08:00
Armando
e1ea5ee810 fix(mmu): fixed esp_mmu_vaddr_to_paddr cannot figure out psram vaddr issue on esp32p4 2025-02-19 14:07:47 +08:00
Jiang Jiang Jian
1698a58881 Merge branch 'fix/add_sleep_duration_check_for_timer_wakeup_v5.3' into 'release/v5.3'
fix(esp_hw_support): add timer wakeup sleep duration check (v5.3)

See merge request espressif/esp-idf!37011
2025-02-19 14:02:53 +08:00
Jiang Jiang Jian
edd28f9cf1 Merge branch 'bugfix/watchdog_timer_ap_sta_esp32c5_v5.3' into 'release/v5.3'
fix(wifi): Prevent overwriting of scan parameters in consecutive scans (Backport v5.3)

See merge request espressif/esp-idf!34073
2025-02-19 13:46:39 +08:00
Shu Chen
9b00dff1b9 Merge branch 'support/ieee802154_get_rssi_comp_from_phy_v5.3' into 'release/v5.3'
feat(802.15.4): support ieee802154 get rssi comp from phylib (v5.3)

See merge request espressif/esp-idf!37052
2025-02-19 11:03:40 +08:00
morris
85cf4c262b Merge branch 'fix/adc_func_register_not_reset_issue_v5.3' into 'release/v5.3'
adc: func register not reset issue (v5.3)

See merge request espressif/esp-idf!37046
2025-02-19 10:33:33 +08:00
Island
f258a14894 Merge branch 'bugfix/h2_ble_timer_clk_enable_fix_v5.3' into 'release/v5.3'
fix: H2 ble timer clk enable issue. (v5.3)

See merge request espressif/esp-idf!36544
2025-02-18 15:45:38 +08:00
laokaiyao
a137775d11 fix(i2s): fixed i2s_std initializer order for cpp compiler
Closes https://github.com/espressif/esp-idf/issues/15405
2025-02-18 15:06:51 +08:00
Marius Vikhammer
fa4706e4cb Merge branch 'fix/usb-cdc-non-blocking-read_v5.3' into 'release/v5.3'
fix(esp_vfs_console): USB CDC read when non blocking (backport v5.3)

See merge request espressif/esp-idf!36749
2025-02-18 12:17:26 +08:00
zwx
c1adbead0c feat(802.15.4): use btbb function to get rssi comp for h2 2025-02-18 12:10:24 +08:00
zwl
192ba32e6d feat(ble): add channel assessment and enhanced connect function on ESP32-C6 2025-02-18 10:48:58 +08:00
Armando
aad78c3022 fix(adc): fixed adc function register not reset issue 2025-02-18 10:35:59 +08:00
Zhou Xiao
8ca2a45a16 feat(ble): support enhanced controller log capabilities on ESP32-C2
(cherry picked from commit bbcb4a2e1f)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-02-18 10:23:26 +08:00
Zhou Xiao
add7feb191 feat(ble): support enhanced controller log capabilities on ESP32-C6 and ESP32-H2
(cherry picked from commit f598976c6b)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-02-18 10:23:23 +08:00
Zhou Xiao
02b0d6495e feat(ble): add channel assessment and enhanced connect function on ESP32-H2
(cherry picked from commit 0ffac92586)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-02-18 10:23:21 +08:00
Zhou Xiao
532570f5e8 change(ble): [AUTO_MR] Update lib_esp32c6 to 1d7eebaf
(cherry picked from commit 4579e083ef)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-18 10:23:17 +08:00
Zhou Xiao
74263fffa8 change(ble): [AUTO_MR] Update lib_esp32h2 to 1d7eebaf
(cherry picked from commit 4f0e0f371a)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-18 10:23:14 +08:00
wuzhenghui
cbd3df38d9 fix(esp_hw_support): fix lp/hp clock wait time calculation 2025-02-17 21:49:26 +08:00
Roland Dobai
dc36761eed Merge branch 'fix/ldgen_interm_no_secs_v5.3' into 'release/v5.3'
fix(ldgen): don't emit intermediate placements without sections (v5.3)

See merge request espressif/esp-idf!36968
2025-02-17 19:41:20 +08:00
wuzhenghui
812a609eca change(esp_hw_support): wait pll calibration done in regdma link instead of wait fixed value 2025-02-17 19:13:17 +08:00
wuzhenghui
0e2335f6f9 fix(esp_hw_support): add timer wakeup sleep duration check
Closes https://github.com/espressif/esp-idf/issues/15255
2025-02-17 19:09:44 +08:00
Jiang Jiang Jian
752c5e6b1e Merge branch 'bugfix/fix_delete_queue_error_in_espnow_example_v5.3' into 'release/v5.3'
fix(wifi): fix the delete queue error in espnow exapmle (v5.3)

See merge request espressif/esp-idf!37015
2025-02-17 16:19:38 +08:00
Nachiket Kukade
35d0114354 fix(wifi): Prevent overwriting of scan parameters in consecutive scans 2025-02-17 13:08:25 +05:30
Frantisek Hrbata
a60c3c4f29 fix(ldgen): don't emit intermediate placements without sections
When a symbol needs to be placed to a different target than the one
designated for the object file, the object file is expanded, which
includes the following steps:

1. Creating a new placement for the symbol's input section with the
   specified target.
2. Excluding the object placement from the orignal target.
3. Creating a new intermediate placement for the object for the original
   target, where its input sections are expanded, excluding the input
   section for the symbol.

Let's illustrate the object expansion process with the following example:

[sections:rodata]
entries:
    .rodata+
    .sdata2+
    .srodata+

[scheme:default]
entries:
    text -> flash_text
    rodata -> flash_rodata

[scheme:noflash]
entries:
    text -> iram0_text
    rodata -> dram0_data

[mapping:soc_pm]
archive: libsoc.a
entries:
    gpio_periph: GPIO_HOLD_MASK (noflash)

gpio_periph section headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0   0  0
  [ 1] .text             PROGBITS        00000000 000034 000000 00  AX  0   0  2
  [ 2] .data             PROGBITS        00000000 000034 000000 00  WA  0   0  1
  [ 3] .bss              NOBITS          00000000 000034 000000 00  WA  0   0  1
  [ 4] .rodata.GPIO_HOLD_MASK PROGBITS        00000000 000034 000058 00   A  0   0  4
  [ 5] .rodata.GPIO_PIN_MUX_REG PROGBITS        00000000 00008c 000058 00   A  0   0  4
  [ 6] .debug_info       PROGBITS        00000000 0000e4 0000d8 00      0   0  1
  [ 7] .rela.debug_info  RELA            00000000 0009d4 000108 0c   I 16   6  4
  [ 8] .debug_abbrev     PROGBITS        00000000 0001bc 000070 00      0   0  1
  [ 9] .debug_aranges    PROGBITS        00000000 00022c 000018 00      0   0  1
  [10] .rela.debug_aranges RELA            00000000 000adc 00000c 0c   I 16   9  4
  [11] .debug_line       PROGBITS        00000000 000244 0001ab 00      0   0  1
  [12] .debug_str        PROGBITS        00000000 0003ef 00022d 01  MS  0   0  1
  [13] .comment          PROGBITS        00000000 00061c 000030 01  MS  0   0  1
  [14] .note.GNU-stack   PROGBITS        00000000 00064c 000000 00      0   0  1
  [15] .riscv.attributes RISCV_ATTRIBUTES 00000000 00064c 000044 00      0   0  1
  [16] .symtab           SYMTAB          00000000 000690 000260 10     17  36  4
  [17] .strtab           STRTAB          00000000 0008f0 0000e1 00      0   0  1
  [18] .shstrtab         STRTAB          00000000 000ae8 0000d1 00      0   0  1

1. Creating a new placement
.dram0.data :
{
    *libsoc.a:gpio_periph.*(.rodata.GPIO_HOLD_MASK .sdata2.GPIO_HOLD_MASK .srodata.GPIO_HOLD_MASK)
}

2. Excluding the object placement
.flash.rodata :
{
    *(EXCLUDE_FILE(*libsoc.a:gpio_periph.*) .rodata.* ...)
}

3. Creating a new intermediate placement
.flash.rodata :
{
    *libsoc.a:gpio_periph.*(.rodata.GPIO_PIN_MUX_REG)
}

Now, let's do the same, but also move GPIO_PIN_MUX_REG to noflash with an updated mapping.

[mapping:soc_pm]
archive: libsoc.a
entries:
    gpio_periph: GPIO_HOLD_MASK (noflash)
    gpio_periph: GPIO_PIN_MUX_REG (noflash)

1. Creating a new placement
.dram0.data :
{
    *libsoc.a:gpio_periph.*(.rodata.GPIO_HOLD_MASK .sdata2.GPIO_HOLD_MASK .srodata.GPIO_HOLD_MASK)
    *libsoc.a:gpio_periph.*(.rodata.GPIO_PIN_MUX_REG .sdata2.GPIO_PIN_MUX_REG
                            .srodata.GPIO_PIN_MUX_REG)
}

2. Excluding the object placement
.flash.rodata :
{
    *(EXCLUDE_FILE(*libsoc.a:gpio_periph.*) .rodata.* ...)
}

3. Creating a new intermediate placement
.flash.rodata :
{
    *libsoc.a:gpio_periph.*
}

The *libsoc.a:gpio_periph.* entity in step 3 no longer has input
sections, as there are no remaining .rodata input sections in the object
file. The linker behavior for this mapping is to include all object
input sections that have not yet been placed as described in
https://sourceware.org/binutils/docs/ld.html#Input-Section-Basics
"If you use a file name without a list of sections, then all sections in
the input file will be included in the output section. This is not
commonly done, but it may by useful on occasion."

The map file for such mapping now contains following input sections

 .flash.rodata   0x3c0a0120    0x19b34
     *libsoc.a:gpio_periph.*()
     .debug_info    0x3c0b95bf       0xd8 esp-idf/soc/libsoc.a(gpio_periph.c.obj)
     .debug_abbrev  0x3c0b9697       0x70 esp-idf/soc/libsoc.a(gpio_periph.c.obj)
     .debug_aranges
                    0x3c0b9707       0x18 esp-idf/soc/libsoc.a(gpio_periph.c.obj)
     .debug_line    0x3c0b971f      0x1ab esp-idf/soc/libsoc.a(gpio_periph.c.obj)
     .debug_str     0x3c0b98ca      0x21a esp-idf/soc/libsoc.a(gpio_periph.c.obj)
                                    0x22d (size before relaxing)
     .comment       0x3c0b9ae4       0x30 esp-idf/soc/libsoc.a(gpio_periph.c.obj)
     .note.GNU-stack
                    0x3c0b9ae4        0x0 esp-idf/soc/libsoc.a(gpio_periph.c.obj)
     .riscv.attributes
                    0x3c0b9ae4       0x44 esp-idf/soc/libsoc.a(gpio_periph.c.obj)

This is incorrect, and such intermediate placement should not be
generated. This type of placement can be recognized because it is not
explicitly defined in the mapping and lacks input sections. We can
identify this in the significant function and prevent issuing commands
for such placement.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2025-02-17 15:33:19 +08:00
zhangyanjiao
9b5d325650 fix(wifi): fix the delete queue error in espnow exapmle
Closes https://github.com/espressif/esp-idf/issues/15383
2025-02-17 14:56:16 +08:00
Zhang Hai Peng
d30c46cf98 feat(ble/bluedroid): Support change HID task size by Kconfig in HID example
(cherry picked from commit d4b3a7e99d)

Co-authored-by: Mitch Cairns <mitch.cairns@handheldlegend.com>
2025-02-17 11:15:21 +08:00
Zhang Hai Peng
61893e9fe5 docs(ble/bluedroid): Optimize doc for implementation of a characteristic with 128 bit UUID
(cherry picked from commit fa40d971a5)

Co-authored-by: Erast  <78802792+MatoiDev@users.noreply.github.com>
2025-02-17 11:15:19 +08:00
Zhang Hai Peng
ff6425d301 fix(ble/bluedroid): Don't log error on 16/128-bit UUID mixed descriptors
(cherry picked from commit fed1d41aa7)

Co-authored-by: Nebojša Cvetković <nebkat@gmail.com>
2025-02-17 11:15:16 +08:00
Zhang Hai Peng
4a00e8d6b0 refactor(ble/bluedroid): Fix typos in gatt_sr.c
(cherry picked from commit 63b2dcc3a7)

Co-authored-by: Nebojsa Cvetkovic <nebkat@gmail.com>
2025-02-17 11:15:13 +08:00
Zhang Hai Peng
eab6ad5bd7 fix(ble/bluedroid): Allow 0 length indications
(cherry picked from commit 9b5a52e2f7)

Co-authored-by: Nebojsa Cvetkovic <nebkat@gmail.com>
2025-02-17 11:15:11 +08:00
Zhang Hai Peng
1b3771276c refactor(ble/bluedroid): Fix typos in bta_gatts_act.c
(cherry picked from commit a8041a9953)

Co-authored-by: Nebojsa Cvetkovic <nebkat@gmail.com>
2025-02-17 11:15:08 +08:00
Zhang Hai Peng
04a238f88a fix(ble): Update bt lib for ESP32(2a2631f)
- Support ESP32 BLE GPIO DEBUG


(cherry picked from commit 0a7888f839)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-02-17 11:13:49 +08:00
Island
c09aadf60c Merge branch 'feat/add_spi_output_v5.3' into 'release/v5.3'
Feat/add spi output (v5.3)

See merge request espressif/esp-idf!36955
2025-02-17 11:04:33 +08:00
Rahul Tank
92cf6566aa Merge branch 'bugfix/handle_slave_extra_disconn_v5.3' into 'release/v5.3'
fix(nimble): Handle not sending disconnect event if connect was not sent (v5.3)

See merge request espressif/esp-idf!36921
2025-02-15 22:42:50 +08:00
Rahul Tank
de76f43e11 fix(nimble): Handle not sending disconnect event if connect was not sent 2025-02-15 09:24:20 +05:30
Rahul Tank
4dd97f4847 Merge branch 'feat/long_read_offset_v5.3' into 'release/v5.3'
feat(nimble): Add offset in GATT server long read context (v5.3)

See merge request espressif/esp-idf!36977
2025-02-15 11:26:58 +08:00
Martin Vychodil
b11b31016f Merge branch 'bugfix/storage_generic_pytests_v5.3' into 'release/v5.3'
fix(ci): Removed storage related entries in known generate test child pipeline warnings (v5.3)

See merge request espressif/esp-idf!36685
2025-02-15 00:07:25 +08:00
Fu Hanxi
11142cffb3 ci: set app_list to empty list when not None 2025-02-14 14:04:18 +01:00
Jiang Jiang Jian
68556198ff Merge branch 'bugfix/stack_corruption_btm_task' into 'release/v5.3'
fix(esp_wifi): Fix stack curruption in btm task (v5.3)

See merge request espressif/esp-idf!36970
2025-02-14 19:02:01 +08:00
Aditya Patwardhan
f62b178a65 Merge branch 'refactor/security_docs_re-org_v5.3' into 'release/v5.3'
refactor(docs): re-organize security docs for better navigation (v5.3)

See merge request espressif/esp-idf!36961
2025-02-14 16:32:42 +08:00
Kapil Gupta
746abfa199 fix(esp_wifi): Fix stack curruption in btm task (v5.3) 2025-02-14 12:53:59 +05:30
Jiang Jiang Jian
2ff653bc56 Merge branch 'bugfix/skip_memory_reordering_wpa2_semaphr_v5.3' into 'release/v5.3'
fix(esp_wifi): fixed stack corruption in WiFi tasks (v5.3)

See merge request espressif/esp-idf!36937
2025-02-14 14:31:29 +08:00
Mahavir Jain
570b01fd9b refactor(docs): re-organize security docs for better navigation 2025-02-14 11:48:24 +05:30
Abhinav Kudnar
4bba68caeb feat(nimble): Add offset in GATT server long read context 2025-02-14 11:22:28 +05:30
Rahul Tank
a106371679 Merge branch 'fix/blesync_periodic_adv_v5.3' into 'release/v5.3'
fix(nimble): Added sync reattempt for periodic adv (v5.3)

See merge request espressif/esp-idf!36788
2025-02-14 13:45:40 +08:00
Jiang Jiang Jian
b96b91c6a5 Merge branch 'feat/sleep_retention_expand_module_bitmap_v5.3' into 'release/v5.3'
backport v5.3: expand the number of sleep retention modules supported on different chips

See merge request espressif/esp-idf!35491
2025-02-14 13:29:03 +08:00
Zhou Xiao
96e01bf510 feat(ble): support esp ble controller spi output interface for ESP32-H2
(cherry picked from commit 9c98c7e040)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-14 11:54:05 +08:00
Zhou Xiao
8f2c1c02ce feat(ble): support esp ble controller spi output interface for ESP32-C6
(cherry picked from commit 58b8775f95)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-14 11:54:02 +08:00
Zhou Xiao
d6fb7d4c0b feat(ble): support esp ble controller spi output interface for ESP32-C2
(cherry picked from commit 0b57f8ae87)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-14 11:53:59 +08:00
Zhou Xiao
c8456b78d3 feat(ble): add spi output interface for esp ble controller log
(cherry picked from commit 52106c9895)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-14 11:53:56 +08:00
radek.tandler
b4af220c1e fix(storage/nvs): Fixed failing test cases in example folder 2025-02-13 20:40:06 +01:00
radek.tandler
f78620853b fix(storage/vfs): Fixed failing test cases in test_apps 2025-02-13 20:40:06 +01:00
radek.tandler
0f5073ea2c fix(ci): Removed storage related ignore warnings 2025-02-13 20:40:05 +01:00
Astha Verma
68420c726e fix(nimble): Added sync reattempt for periodic adv 2025-02-13 18:26:58 +05:30
Jiang Jiang Jian
8835b4d2e6 Merge branch 'bugfix/mem_leak_sae_pk_v5.3' into 'release/v5.3'
fix(wifi): Bugfix memory leak due to sae public key (v5.3)

See merge request espressif/esp-idf!36926
2025-02-13 20:36:19 +08:00
Bogdan Kolendovskyy
f2e4f97853 fix(ethernet_basic): Fix second Ethernet device not receiving IP address 2025-02-13 12:52:05 +01:00
Rahul Tank
b80c387c9f Merge branch 'fix/core_err_code_def_v5.3' into 'release/v5.3'
fix(nimble): Enhanced error handling by adding to print core error definitions (v5.3)

See merge request espressif/esp-idf!36655
2025-02-13 19:45:04 +08:00
Mahavir Jain
562ca9f2e0 Merge branch 'bugfix/http_client_select_read_error_v5.3' into 'release/v5.3'
fix(tcp_tranport): Fix handling of select() return value (v5.3)

See merge request espressif/esp-idf!36918
2025-02-13 19:19:22 +08:00
Kapil Gupta
135a320b3c fix(esp_wifi): Fix stack corruption in wpa3 task 2025-02-13 14:23:35 +05:30
Kapil Gupta
70ad8d04ed fix(esp_wifi): fixed Stack corruption in DPP task 2025-02-13 14:23:35 +05:30
Kapil Gupta
d6dec98447 fix(esp_wifi): fixed Stack corruption in WPS processing 2025-02-13 14:23:35 +05:30
Kapil Gupta
565b8914ae fix(esp_wifi): Fixed memory corruption in wifi enterprise
Closes https://github.com/espressif/esp-idf/issues/15370
2025-02-13 14:23:35 +05:30
Li Shuai
88c1c9c344 change(esp_hw_support): fix some sleep retention build error 2025-02-13 16:33:30 +08:00
Li Shuai
af5a9c87cd change(soc): define sleep retention module total number to 64 for esp32p4 2025-02-13 16:33:30 +08:00
Li Shuai
62633bcdae change(esp_hw_support): update power domain pd allowed check logic 2025-02-13 16:33:28 +08:00
Shu Chen
377c208320 Merge branch 'feat/add_ot_br_lib_check_case_v5.3' into 'release/v5.3'
feat(openthread): add br library check case (v5.3)

See merge request espressif/esp-idf!36886
2025-02-13 15:49:31 +08:00
Li Shuai
44001a9d70 change(esp_hw_support): update some modules sleep retention init dependency bitmap 2025-02-13 15:35:19 +08:00
Li Shuai
61b7a971d3 change(soc): add sleep retention module total number definition 2025-02-13 15:17:55 +08:00
Shreyas Sheth
467524f067 fix(wifi): Fixed memory leak occurring in SAE PK connection 2025-02-13 12:03:16 +05:30
morris
a916a250ea Merge branch 'bugfix/lcd_driver_with_flash_encryption_v5.3' into 'release/v5.3'
fix(dma): also consider buffer alignment when calculating the DMA nodes (v5.3)

See merge request espressif/esp-idf!36818
2025-02-13 14:16:07 +08:00
Li Shuai
c60d991c28 feat(esp_hw_support): extend sleep retention module bitmap bit width 2025-02-13 11:28:25 +08:00
Astha Verma
e142d1c760 fix(nimble): Enhanced error handling by adding to print core error definitions 2025-02-13 08:56:33 +05:30
Rahul Tank
75dbaca030 Merge branch 'fix/NVS_corruption_v5.3' into 'release/v5.3'
fix(nimble): Handle NVS corruption caused by non removal of security records (v5.3)

See merge request espressif/esp-idf!36895
2025-02-13 11:19:41 +08:00
nilesh.kale
9ec7e06ddf fix(tcp_tranport): Fix handling of select() return value
When both readset/writeset and errset are set for a single socket,
the HTTP client incorrectly handled the condition, causing premature termination.
Added a check to ensure readset/writeset is prioritized before errset.

Closes https://github.com/espressif/esp-idf/issues/14673
2025-02-12 20:23:35 +05:30
Alexey Gerenkov
6fc456715f Merge branch 'fix/__atomic_test_and_set' into 'release/v5.3'
fix(newlib): fix __atomic_test_and_set to ensure atomicity

See merge request espressif/esp-idf!36707
2025-02-12 21:52:48 +08:00
Alexey Gerenkov
f46d4f6c1c Merge branch 'fix/coredump_note_section_alignment_v5.3' into 'release/v5.3'
Fix/coredump note section headers and alignments (v5.3)

See merge request espressif/esp-idf!36881
2025-02-12 21:33:06 +08:00
Jiang Jiang Jian
ca8638aaad Merge branch 'fix/heap-allocate-in-rtc-iram_v5.3' into 'release/v5.3'
fix(heap): MALLOC_CAP_EXEC does not allocate in RTC IRAM (backport v5.3)

See merge request espressif/esp-idf!35622
2025-02-12 16:17:20 +08:00
Jiang Jiang Jian
a46ac40ca8 Merge branch 'bugfix/wps_scan_freq_v5.3' into 'release/v5.3'
fix(esp_wifi): Reduce scan frequency in WPS (v5.3)

See merge request espressif/esp-idf!36820
2025-02-12 16:15:57 +08:00
Jiang Jiang Jian
a7ce0206bd Merge branch 'bugfix/analyzer_issues_supplicant_v5.3' into 'release/v5.3'
fix(esp_wifi): fix some analyzer issues (v5.3)

See merge request espressif/esp-idf!36826
2025-02-12 13:57:44 +08:00
Astha Verma
f1ecb0a72f fix(nimble): fix NVS corruption 2025-02-12 10:51:51 +05:30
Rahul Tank
cb0501e313 Merge branch 'bugfix/fix_warn_write_string_v5.3' into 'release/v5.3'
fix(nimble): Fixed warnings with COMPILTER_WARN_WRITE_STRINGS set (v5.3)

See merge request espressif/esp-idf!36700
2025-02-12 12:57:43 +08:00
Mahavir Jain
5f7897837e Merge branch 'bugfix/fix_blufi_crash_opt_v5.3' into 'release/v5.3'
fix(blufi): Enhance security in BLUFI example (v5.3)

See merge request espressif/esp-idf!36860
2025-02-12 12:32:01 +08:00
Jiang Jiang Jian
830b5c57e2 Merge branch 'fix/stack_overuse_by_failure_retry_cnt_v5.3' into 'release/v5.3'
fix(wifi): Fix stack overflow when failure_retry_cnt is set and add WIFI_EVENT_AP_WRONG_PASSWORD feature (Backport v5.3)

See merge request espressif/esp-idf!36846
2025-02-12 11:13:29 +08:00
morris
30d1ae3088 Merge branch 'feat/mmu_find_paddr_caps_by_any_offset_v5.3' into 'release/v5.3'
mmu: supported find paddr caps by any paddr offset (v5.3)

See merge request espressif/esp-idf!36838
2025-02-12 10:30:42 +08:00
yiwenxiu
f5cbe394c0 feat(openthread): add br library check case 2025-02-12 09:33:54 +08:00
Wang Meng Yang
ab25b7eb6c Merge branch 'bugfix/add_bluedroid_init_migration_v5.3' into 'release/v5.3'
docs(bt/bluedroid): Added migration guide for bluedroid init API[backport v5.3]

See merge request espressif/esp-idf!36876
2025-02-12 09:21:55 +08:00
Erhan Kurubas
e2818f6ff4 fix(coredump): disable uart txd pullup using gpio hal 2025-02-11 16:53:37 +01:00
Erhan Kurubas
ca9d3c487d fix(coredump): fix note section alignments 2025-02-11 16:53:37 +01:00
Erhan Kurubas
43d4c319c7 fix(coredump): only clear high bit in PC when set 2025-02-11 16:53:37 +01:00
liqigan
3f4cd77c50 docs(bt/bluedroid): Added migration guide for bluedroid init API
Closes https://github.com/espressif/esp-idf/issues/15352
2025-02-11 19:39:08 +08:00
Wang Meng Yang
6fd6c4d475 Merge branch 'feat/add_vsc_to_support_test_v5.3' into 'release/v5.3'
feat(bt): add vendor hci command and event to support test (v5.3)

See merge request espressif/esp-idf!36570
2025-02-11 17:54:49 +08:00
Armando
9d724fdebe test(mmu): test can find paddr caps by any paddr offset 2025-02-11 15:56:08 +08:00
Armando
36900880d8 feat(mmu): supported find paddr caps by any paddr offset
Closes https://github.com/espressif/esp-idf/issues/14988
2025-02-11 15:56:08 +08:00
Zhang Hai Peng
f40aa9c587 fix(blufi): Enhance security in BLUFI example
(cherry picked from commit 3fc6c93936)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-02-11 15:13:42 +08:00
Sarvesh Bodakhe
dac80a87a4 fix(wifi): Add some wifi bugfixes and features
1. Fix issue of increased stack usage when failure_retry_cnt is set
   and wifi driver internally retries connection attempts

2. Add WIFI_EVENT_AP_WRONG_PASSWORD in SoftAP.
   This event is triggered when external station tries connecting to softAP
   with wrong password.

   Current supported softAP AUTH modes: WPA-PSK, WPA2-PSK and WPA3-PSK (SAE-auth)
2025-02-11 12:14:10 +05:30
Jiang Jiang Jian
344d3c220a Merge branch 'revert/use_wpa3_ent_authmode_naming_v5.3' into 'release/v5.3'
revert(wifi): Revert support for WPA3 Enterprise authentication modes (Backport v5.3)

See merge request espressif/esp-idf!36808
2025-02-11 13:56:36 +08:00
Shu Chen
b544acb95a Merge branch 'feature/support_hw_reset_when_handling_rcp_failure_v5.3' into 'release/v5.3'
feat(openthread): support hardware reset RCP while processing RCP failure (v5.3)

See merge request espressif/esp-idf!36554
2025-02-11 11:30:20 +08:00
Sarvesh Bodakhe
d90f31c29e revert(wifi): Revert support for WPA3 Enterprise authentication modes
This reverts commit ca4d97bb22.
2025-02-11 10:52:53 +08:00
Rahul Tank
f7e86fa548 fix(nimble): Fixed warnings with COMPILTER_WARN_WRITE_STRINGS set 2025-02-10 21:51:37 +05:30
Rahul Tank
36cf635137 Merge branch 'fix/spp_server_readme_change_v5.3' into 'release/v5.3'
docs: Updated README.md by removing unclear lines (v5.3)

See merge request espressif/esp-idf!36743
2025-02-10 23:59:51 +08:00
Rahul Tank
ed91973947 Merge branch 'fix/wifi_provisioning_ble_v5.3' into 'release/v5.3'
fix(nimble): Handle nested locks when BT_NIMBLE_DEBUG enabled (v5.3)

See merge request espressif/esp-idf!36498
2025-02-10 23:58:37 +08:00
Jiang Jiang Jian
14a1fa8b41 Merge branch 'bugfix/wpa3_enterprise_mode_detection_v5.3' into 'release/v5.3'
fix(wifi): Fix bug in authmode detection for wpa2/wpa3 enterprise (Backport v5.3)

See merge request espressif/esp-idf!36248
2025-02-10 21:45:05 +08:00
Sarvesh Bodakhe
141030941c fix(wifi): Fix bug in authmode detection for wpa2/wpa3 enterprise
WPA3-Enterprise mandates the use of AKM suite selector
00:0F:AC:5 (IEEE80211 802.1X with SHA-256)
2025-02-10 20:29:36 +08:00
Kapil Gupta
4442fe7787 fix(esp_wifi): Add review comments and some cleanup 2025-02-10 15:46:50 +05:30
Kapil Gupta
0b4bfb451f fix(esp_wifi): fix some analyzer issues
Closes https://github.com/espressif/esp-idf/issues/15097
Closes https://github.com/espressif/esp-idf/issues/15098
Closes https://github.com/espressif/esp-idf/issues/15099
2025-02-10 15:46:50 +05:30
Kapil Gupta
074235e261 fix(esp_wifi): Reduce scan frequency in WPS 2025-02-10 15:31:46 +05:30
morris
1536b00d75 fix(dma): also consider buffer alignment when calculating the DMA nodes
Closes https://github.com/espressif/esp-idf/issues/15228
2025-02-10 17:12:22 +08:00
Jiang Jiang Jian
489d7a2b3a Merge branch 'change/default_value_for_esp_coex_vsc_in_bluedroid_v5.3' into 'release/v5.3'
change(bt): Set default value for BT_BLUEDROID_ESP_COEX_VSC conditionally (v5.3)

See merge request espressif/esp-idf!36735
2025-02-10 16:43:54 +08:00
Jiang Jiang Jian
05e3e2cfa1 Merge branch 'feat/increase_c2_supported_ver_v5.3' into 'release/v5.3'
feat(soc): increase c2 max supported version (v5.3)

See merge request espressif/esp-idf!35971
2025-02-10 16:39:59 +08:00
Jiang Jiang Jian
c5eb636e4d Merge branch 'docs/usb_host_ext_port_driver_backport_v5.3' into 'release/v5.3'
docs(ext_port): Maintainers Notes for the External Port Driver (backport v5.3)

See merge request espressif/esp-idf!35101
2025-02-10 16:37:33 +08:00
Cristian Funes
cc89f7266d fix(log): Modified linker script to move functions from flash to iram 2025-02-10 09:32:24 +01:00
zhanghaipeng
dda01d886f fix(ble): Update bt lib for ESP32(194dd63)
- Fix the issue where disconnection events were not reported as a slave.
- Enhance Access Address validation in compatibility mode.
2025-02-10 15:50:20 +08:00
gongyantao
96293d4575 feat(bt): add vendor hci command and event to support test
- add afh related vendor hci command and event
- add vendor event mask command
2025-02-10 15:50:11 +08:00
linruihao
1ca8daee7a feat(bt): add coexist scheme status support for bt page 2025-02-10 15:50:01 +08:00
Marius Vikhammer
780dc81e96 Merge branch 'fix/esp-event-profiling_v5.3' into 'release/v5.3'
fix(esp_event): Fix event loop profiling in handler_execute function (backport v5.3)

See merge request espressif/esp-idf!36690
2025-02-10 14:47:04 +08:00
Guillaume Souchere
693058a728 fix(esp_hw_support): Unused variables in memory_utils functions 2025-02-10 07:16:08 +01:00
Guillaume Souchere
bee3d8ff86 fix(heap): MALLOC_CAP_EXEC does not allocate in RTC IRAM
This commit fixes the issue when trying to allocate memory
with the MALLOC_CAP_EXEC in RTC memory. Prior to the fix,
the heap allocator was returning an address in RTC DRAM.

To fix this issue:
- modified memory_layout.c of the concerned targets to fill the iram_address
field in the rtc entry of the soc_memory_region array properly.
- modified heap component  related functions to return IRAM address when
an allocation in RTC memory with MALLOC_CAP_EXEC is requested.

Closes https://github.com/espressif/esp-idf/issues/14835
2025-02-10 07:16:07 +01:00
morris
33cc36595d Merge branch 'feat/async_memcpy_any_alignment_v5.3' into 'release/v5.3'
async memcpy destination address doesn't have to be cache aligned (v5.3)

See merge request espressif/esp-idf!36634
2025-02-10 13:32:22 +08:00
morris
57061d6336 Merge branch 'feature/malloc_cap_simd_flag_v5.3' into 'release/v5.3'
feat(heap): add a MALLOC_CAP_SIMD flag (v5.3)

See merge request espressif/esp-idf!36650
2025-02-09 10:45:43 +08:00
Song Ruo Jing
6975924104 feat(heap): add a MALLOC_CAP_SIMD flag
MALLOC_CAP_SIMD can be used to allocate memory to be used for SIMD instructions
2025-02-08 16:29:36 +08:00
Shu Chen
b46c03040f Merge branch 'feat/add_callback_for_esp_ot_radio_spinel_init_v5.3' into 'release/v5.3'
feat(openthread): add an API to set rcp version string (v5.3)

See merge request espressif/esp-idf!36744
2025-02-08 16:26:04 +08:00
morris
74615ed1a7 feat(async_memcpy): support rx buffer unaligned to cache line size 2025-02-08 15:48:11 +08:00
morris
1840d3663a refactor(dma): split rx buffer to cache aligned ones 2025-02-08 15:48:11 +08:00
morris
6cf2f3a8e2 Merge branch 'fix/usb_non_periodic_backport_v5.3' into 'release/v5.3'
fix(usb/host): Set SCHED_INFO for all channels (backport v5.3)

See merge request espressif/esp-idf!36771
2025-02-08 10:07:53 +08:00
Jiang Jiang Jian
1b33c442de Merge branch 'bugfix/remove_unused_sco_state_v5.3' into 'release/v5.3'
Bugfix/remove unused sco state (v5.3)

See merge request espressif/esp-idf!36730
2025-02-07 20:02:32 +08:00
Jiang Jiang Jian
354c0f5b8e Merge branch 'bugfix/sync_buf_crash_v5.3' into 'release/v5.3'
fix(bt/controller): fixed missing critical protections on linked-list structure of (e)SCO buffers (v5.3)

See merge request espressif/esp-idf!36341
2025-02-07 15:43:12 +08:00
Geng Yuchao
d418167af1 fix(esp32h2): H2 ble timer clk enable issue 2025-02-07 11:46:27 +08:00
Wang Mengyang
c7c0def473 change(bt): Set default value for BT_BLUEDROID_ESP_COEX_VSC conditionally
- Set default value of BT_BLUEDROID_ESP_COEX_VSC to n if software coexistence is not required,
in host-controller combined Bluetooth stack configuration.
2025-02-07 10:47:59 +08:00
Guillaume Souchere
7d4d24d198 fix(esp_vfs_console): USB CDC read when non blocking
In non blocking mode, the read function is expected
to return weather data is available for reading or not.

In case data are available but the size does not match
the expected size, the function read should return whatever
data is available.

Previously, the function was returning -1 with errno set
to EWOULDBLOCK even if the size of data in the buffer was
less than the requested size. It would only return the
available data if the size in the buffer was greater or equal
to the requested size.

The implementation of cdcacm_read is modified to return the avilable
data from the buffer even is the size is lesser than the requested
size.
2025-02-06 08:58:44 +01:00
Tomas Rezucha
56620eb23b fix(usb/host): Set SCHED_INFO for all channels
Although the hardware documentation suggests that SCHED_INFO is only used
for periodic channels, empirical evidence shows that omitting this configuration
on non-periodic channels can cause them to freeze.
Therefore, we set this field for all channels to ensure reliable operation.
2025-02-06 08:18:04 +01:00
Astha Verma
25b965deba fix(nimble): Handle nested locks when BT_NIMBLE_DEBUG enabled 2025-02-05 14:49:57 +05:30
Astha Verma
c4a5d869eb Updated README.md by removing unclear lines 2025-02-05 14:17:22 +05:30
morris
4d5a7c9864 Merge branch 'fix/move_spi_lcd_cb_fun_to_iram_v5.3' into 'release/v5.3'
feat(spi_lcd): move callback function to iram (v5.3)

See merge request espressif/esp-idf!36740
2025-02-05 14:56:11 +08:00
Xu Si Yu
6fb839eafc feat(openthread): add an API to set rcp version string 2025-02-05 14:36:06 +08:00
David Cermak
c17f0bb36c fix(esp_eth): Fix test code to unregister event correctly 2025-02-05 07:34:02 +01:00
morris
1de6022c76 Merge branch 'fix/periodic_fs_usb_on_p4_backport_v5.3' into 'release/v5.3'
fix(usb/host): Fixed Full Speed periodic transfers on ESP32-P4 (backport v5.3)

See merge request espressif/esp-idf!36648
2025-02-05 14:18:31 +08:00
Chen Jichang
7aab628ea8 feat(dma): Add helper functions to split aligned buffer
In some cases we will need the dma's buffer to be aligned with specific
requirements. This MR add two helper function to split the unaligned
buffer and merge to the origin buffer. The cost is that each unaligned
buffer requires two stash buffers of spilt alignment size. And this
memory should be managed by callers.
2025-02-05 12:48:25 +08:00
morris
400b1e5d57 Merge branch 'bugfix/fix_i2s_reconfig_slot_issue_v5.3' into 'release/v5.3'
fix(i2s): fixed incorrect logic in slot reconfig (v5.3)

See merge request espressif/esp-idf!36642
2025-02-05 12:32:26 +08:00
Chen Jichang
f6bbf60deb feat(spi_lcd): move callback function to iram
Closes https://github.com/espressif/esp-idf/issues/15160
2025-02-05 11:21:53 +08:00
Jin Cheng
d557699837 fix(bt/controller): fixed missing critical protections on linked-list structure of (e)SCO buffers 2025-02-05 10:24:59 +08:00
Wang Mengyang
72cde9aee5 change(bt): Remove unused state variable for (e)SCO disconnect reason in Bluedroid 2025-02-05 10:08:58 +08:00
Alexey Lapshin
88bbf875bd fix(newlib): fix __atomic_test_and_set to ensure atomicity
Before the change described in
https://gcc.gnu.org/pipermail/gcc-patches/2023-September/631393.html it
appeared that inlining built-in GCC function __atomic_test_and_set() was
incorrect. It resulted in a non-atomic write.
For GCC toolchains which do not have such patch yet, this commit fixes
__atomic_test_and_set to be atomic in IDF's builds.
2025-02-04 15:17:25 +07:00
David Cermak
62be7fea47 fix(esp_event): Fix minor no-ISR post regression
from 15f6775f5d
2025-02-04 09:07:13 +01:00
Alexey Gerenkov
3908e7b7b3 Merge branch 'fix/coredump_test_uart_data_missing_v5.3' into 'release/v5.3'
Fix missing coredump uart data in tests (v5.3)

See merge request espressif/esp-idf!36712
2025-02-03 22:55:07 +08:00
Erhan Kurubas
e9161c62d0 test(coredump): collect all expected uart data first, then process lazily 2025-02-03 15:11:27 +01:00
Rocha Euripedes
2c88dd6b46 Merge branch 'fix/test_app_certificate_v5.3' into 'release/v5.3'
Regenerate certificates for testing (v5.3)

See merge request espressif/esp-idf!36673
2025-01-31 16:00:00 +08:00
Michael (XIAO Xufeng)
0d73471a9d Merge branch 'test/add_cache2phys_xip_tests_v5.3' into 'release/v5.3'
fix(mmap): fixed spi_flash_phys2cache, spi_flash_cache2phys return addr in PSRAM issue (v5.3)

See merge request espressif/esp-idf!33628
2025-01-30 23:08:33 +08:00
Guillaume Souchere
e12090a6c8 fix(esp_event): Handler unregistration by itself issue
when esp_event_handler_unregister_with_internal cannot take
the loop mutex (e.g., when the handler unregisters itself),
create an event with a special base identifier and add it to
the queue of the corresponding loop to postpone the removal
of the handler from the list at a time when the loop mutex can be
successfully taken.
2025-01-30 10:39:20 +01:00
David Čermák
9c7be1d697 Merge branch 'fix/ping_data_race_v5.3' into 'release/v5.3'
fix(lwip): Fix potential data-race in ping tcpip callback (v5.3)

See merge request espressif/esp-idf!36535
2025-01-30 17:34:18 +08:00
Guillaume Souchere
295f691e14 fix(esp_event): Fix event loop profiling in handler_execute function
handler_execute function is looking to match the handler only in the
list of loop events but does not look in the base event handler list
nor the id event handler list. So unless the event handler is
registered to be triggered for all event bases and all event ids of
an event loop, its profiling fields (invoked and time) are not updated
when it is called.

This commit updates the search for the matching handler to also look
in base event list and ID event list.

Closes https://github.com/espressif/esp-idf/issues/15041
2025-01-30 10:33:56 +01:00
Mahavir Jain
2ee980590b Merge branch 'feat/bootloader_nvs_read_encrypted_v5.3' into 'release/v5.3'
fix(esptool_py): NVS partition being incorrectly marked as encrypted by the build system (v5.3)

See merge request espressif/esp-idf!36680
2025-01-30 17:14:36 +08:00
harshal.patil
1318d51dd4 fix(esptool_py): Fix NVS partition being incorrectly marked as encrypted
- The CMake function esptool_py_partition_needs_encryption() in the esptool_py
component used to mark NVS partition as encrypted, instead it should have marked
the NVS keys partition as encrypted.
2025-01-30 12:02:54 +05:30
David Cermak
8da8db7a4e fix(lwip): Fix potential data-race in ping tcpip callback
Need to use tcpip_api_call() instead of tcpip_callback(), since the
former waits for the tcpip task to complete and thus prevents potential
data races with subsequent TCP/IP tasks.
2025-01-29 23:34:27 +08:00
David Čermák
b7d6d7459e Merge branch 'test/bridge_v5.3' into 'release/v5.3'
[network/examples]: Fix build rules to test builds on for all targets (v5.3)

See merge request espressif/esp-idf!36630
2025-01-29 23:22:50 +08:00
Euripedes Rocha
6c83f8a838 fix(mqtt): Regenerate certificates for testing
- Previous fix ommited one of the client certificates by mistaque.
- This regenerates all certificates to clean that up.
2025-01-29 14:04:14 +01:00
Tomas Rezucha
fc39a5b836 refactor(usb): Include supported PHYs information in SoC 2025-01-27 08:07:59 +01:00
Tomas Rezucha
55f5f29517 fix(usb): Fixed missing GPIO drive capability on ESP32-P4
All USB PHYs that share their IOs with GPIOs must set
the GPIO's drive capability to maximum.
2025-01-27 08:07:46 +01:00
Tomas Rezucha
47577b83c5 fix(usb/host): Fixed Full Speed periodic transfers on ESP32-P4
For FS periodic endpoints 'tokens_per_frame' must be set to 8
LL usb_dwc_ll_hctsiz_set_sched_info() function.
2025-01-27 08:07:30 +01:00
laokaiyao
3cb9ab1f1b fix(i2s): fix uninitialize warning for the default macros
Closes https://github.com/espressif/esp-idf/issues/15271
2025-01-27 14:21:31 +08:00
laokaiyao
a1631226d9 fix(i2s): fixed incorrect logic in slot reconfig
Closes https://github.com/espressif/esp-idf/issues/15256
2025-01-27 14:13:19 +08:00
David Cermak
c06e2509f3 fix(network/examples): Fix build rules to test builds on for all targets
Uses wifi defines only if wifi is enabled for this target
2025-01-24 17:01:59 +01:00
David Čermák
f2fe95f31b Merge branch 'ci/iperf_esp32p4_v5.3' into 'release/v5.3'
ci(esp_eth): added ESP32P4 to iperf CI test (v5.3)

See merge request espressif/esp-idf!36390
2025-01-24 19:49:20 +08:00
Wang Meng Yang
0c1a7ad156 Merge branch 'feat/esp32_set_get_bt_lpclk_src_v5.3' into 'release/v5.3'
feat(bt): Added API to get/set low power clock source(v5.3)

See merge request espressif/esp-idf!36563
2025-01-24 19:14:34 +08:00
Mahavir Jain
e1a023e13d Merge branch 'feat/support_aes_pseudo_round_func_in_esp32h2_eco5_v5.3' into 'release/v5.3'
Support AES and XTS-AES's pseudo round function in ESP32H2-ECO5 (v5.3)

See merge request espressif/esp-idf!36464
2025-01-24 14:40:00 +08:00
morris
8f20eac2df Merge branch 'feat/spi_std_timing_and_bit_trans_v5.3' into 'release/v5.3'
feat(driver_spi): support adjust master rx to standard timing (v5.3)

See merge request espressif/esp-idf!36400
2025-01-24 10:24:14 +08:00
renpeiying
db588e04dd docs: Update CN trans for security docs 2025-01-23 14:06:16 +05:30
harshal.patil
ac0dc0d775 feat(bootloader_support): Permanently enable XTS-AES pseudo rounds when FE release mode is enabled 2025-01-23 14:06:16 +05:30
harshal.patil
ae4e693cfc feat(hal/spi_flash_encrypted): Enable pseudo rounds function during XTS-AES operations 2025-01-23 14:06:16 +05:30
harshal.patil
8d30077744 feat(hal/aes): Enable pseudo rounds function during AES operations 2025-01-23 14:06:16 +05:30
Mahavir Jain
ad911e11d1 Merge branch 'feature/efuse_update_for_esp32h2_eco5_v5.3' into 'release/v5.3'
feat(efuse): Adds efuses for esp32h2 eco5 (v5.3)

See merge request espressif/esp-idf!36239
2025-01-23 15:59:02 +08:00
Konstantin Kondrashov
ae7857416e feat(espefuse): Adds efuses for esp32h2 eco5
- Support efuses that are not present in the main efuse table
2025-01-23 13:29:36 +08:00
xiongweichao
5a94c54fb8 feat(bt): Added API to get/set low power clock source 2025-01-23 11:19:36 +08:00
Jiang Jiang Jian
15f4775afc Merge branch 'fix/fix_branch_predictor_access_flash_after_cache_diabled_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix branch predictor access flash after cache disabled (v5.3)

See merge request espressif/esp-idf!36559
2025-01-23 11:05:53 +08:00
Tomáš Rohlínek
090c895f00 fix(storage/vfs): incorrect log level in esp_vfs_register_fd_range
Closes https://github.com/espressif/esp-idf/issues/14327
2025-01-22 21:21:40 +08:00
wuzhenghui
12db9e4225 fix(esp_hw_support): fix branch predictor access flash after cache disabled 2025-01-22 19:27:37 +08:00
Island
4b4bc91ec0 Merge branch 'bugfix/fix_blufi_crash_v5.3' into 'release/v5.3'
fix(blufi): Fixed crash issue during memcpy in example (v5.3)

See merge request espressif/esp-idf!36551
2025-01-22 18:18:22 +08:00
Island
0c8da9f966 Merge branch 'change/ble_update_lib_20250114_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20250114 - Update ESP BLE Controller Lib (v5.3)

See merge request espressif/esp-idf!36479
2025-01-22 18:17:51 +08:00
zwx
6c6c6cb72d feat(openthread): support hardware reset RCP while processing RCP failure 2025-01-22 17:12:23 +08:00
Zhang Hai Peng
12b7a9e6d7 fix(blufi): Fixed some security issue in blufi example
(cherry picked from commit abc18e93eb)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-01-22 16:34:36 +08:00
Sergei Silnov
fa7bbbb2e6 Merge branch 'feat/core_components_v5.3' into 'release/v5.3'
feat: add `COMPONENT_SOURCE` property to component targets (v5.3)

See merge request espressif/esp-idf!34184
2025-01-21 21:50:18 +08:00
C.S.M
4b86e6424b fix(spi_flash): Fix issue that bit_length is wrong on suspend chip because not judge idle correctly 2025-01-21 17:39:39 +08:00
Jiang Jiang Jian
731c461049 Merge branch 'bugfix/pm-300-v5.3' into 'release/v5.3'
backport v5.3: fix some esp32c5 and esp32c61 light sleep wakeup issues

See merge request espressif/esp-idf!36076
2025-01-21 16:47:44 +08:00
Fu Hanxi
539971de6c feat: add component_source property to component targets 2025-01-21 16:45:29 +08:00
C.S.M
d756e6d208 feat(spi_flash): Add config for adding auto check status after suspend to improve performance 2025-01-21 15:04:21 +08:00
C.S.M
d772cb3055 feat(spi_flash): support software resume after suspend in unicore 2025-01-21 15:02:22 +08:00
Shu Chen
aedf0408a6 Merge branch 'fix/ci_restart_avahi_daemon_v5.3' into 'release/v5.3'
fix(ci): restart avahi-daemon in otbr service discovery test case (v5.3)

See merge request espressif/esp-idf!36434
2025-01-21 14:41:39 +08:00
zwx
8681e5ec9c fix(ci): restart avahi-daemon in otbr service discovery test case 2025-01-21 11:25:50 +08:00
Jiang Jiang Jian
427304105d Merge branch 'bugfix/clic_register_issues_v5.3' into 'release/v5.3'
fix(soc): fix clic register definition and description (backport v5.3)

See merge request espressif/esp-idf!35589
2025-01-20 20:20:36 +08:00
Marius Vikhammer
c8f9cedc69 Merge branch 'docs/add_html_download_link_v5.3' into 'release/v5.3'
feat(docs): Replace PDF download link with HTML zip download link (v5.3)

See merge request espressif/esp-idf!35882
2025-01-20 16:18:43 +08:00
Marius Vikhammer
889f7b23dd feat(docs): Replace PDF download link with HTML zip download link
PDF build would randomly fail after S3 docs grew to a certain size.

At 3k+ pages PDF is not very usable anyways.
For offline use an HTML archive makes more sense.
2025-01-20 15:02:33 +08:00
morris
adf1474e2f Merge branch 'refactor/usb_merge_p4_phy_backport_v5.3' into 'release/v5.3'
refactor(usb/phy): Merge P4 and S2/S3 PHYs into one module (backport_v5.3)

See merge request espressif/esp-idf!36448
2025-01-20 15:02:21 +08:00
morris
fb25eb02eb Merge branch 'fix/p4_spi_slave_example_not_work_v5.3' into 'release/v5.3'
fix(driver_spi): fixed slave (and slave_hd) driver and example error with alignment check (v5.3)

See merge request espressif/esp-idf!36404
2025-01-20 10:54:22 +08:00
Martin Vychodil
814cb095c1 Merge branch 'fix/broken_fatfsgen_tests_v5.3' into 'release/v5.3'
fix(storage/fatfsgen): broken test_apps scripts for fatfsgen (v5.3)

See merge request espressif/esp-idf!36489
2025-01-18 05:38:45 +08:00
Tomáš Rohlínek
c1d93799b0 fix(storage/fatfsgen): broken test_apps scripts for fatfsgen 2025-01-17 18:02:32 +01:00
Shu Chen
738ed11aa0 Merge branch 'fix/fix_coex_macro_control_v5.3' into 'release/v5.3'
fix(openthread): use the correct macros to control code compilation (v5.3)

See merge request espressif/esp-idf!36457
2025-01-17 17:14:18 +08:00
Zhou Xiao
7a1dab88e5 change(ble): update esp32c2 rom ld file
(cherry picked from commit e5feba6ed3)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-01-17 16:53:56 +08:00
Zhou Xiao
f7c66806f5 change(ble): [AUTO_MR] Update lib_esp32c2 to 7b7ee440
(cherry picked from commit c263c75897)

Co-authored-by: zhouxiao <zhouxiao@espressif.com>
2025-01-17 16:53:54 +08:00
Zhou Xiao
e7ff7f041c change(ble): [AUTO_MR] Update lib_esp32c6 to bbc1903d
(cherry picked from commit 06a6b311a8)

Co-authored-by: zhouxiao <zhouxiao@espressif.com>
2025-01-17 16:53:52 +08:00
Zhou Xiao
c5ecbf27fc change(ble): [AUTO_MR] Update lib_esp32h2 to bbc1903d
(cherry picked from commit 4f5f0b0954)

Co-authored-by: zhouxiao <zhouxiao@espressif.com>
2025-01-17 16:53:49 +08:00
Jiang Jiang Jian
bb8c9936f5 Merge branch 'bugfix/enable_eap_workarounds_v5.3' into 'release/v5.3'
fix(esp_wifi): Enable EAP workarounds by default (v5.3)

See merge request espressif/esp-idf!36153
2025-01-17 16:06:43 +08:00
Island
403a3e06c4 Merge branch 'change/ble_update_lib_20250103_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20250103 - Update ESP BLE Controller Lib (v5.3)

See merge request espressif/esp-idf!36372
2025-01-17 14:23:03 +08:00
Kapil Gupta
b6a87e7e6d fix(esp_wifi): Enable EAP workarounds by default
Enabling this will make sure our behavior is same as upstream
wpa_supplicant.
2025-01-17 13:53:18 +08:00
Jiang Jiang Jian
c7ad8d795f Merge branch 'bugfix/fix_double_wifi_active_time_v5.3' into 'release/v5.3'
bugfix/fix double wifi active time v5.3

See merge request espressif/esp-idf!36359
2025-01-17 13:51:00 +08:00
morris
8ec35b4d75 Merge branch 'refactor/improve_the_compatible_method_on_h2_v5.3' into 'release/v5.3'
refactor(lpperi): improve compatibility solution (v5.3)

See merge request espressif/esp-idf!36421
2025-01-17 12:40:00 +08:00
Jiang Jiang Jian
4e0cb9a140 Merge branch 'fix/fix_p4_deepsleep_io_leakage_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix esp32p4 JTAG pad deepsleep current leakage (v5.3)

See merge request espressif/esp-idf!36009
2025-01-17 12:10:46 +08:00
Jiang Jiang Jian
92e1c50800 Merge branch 'fix/fix_pm_trace_rtc_domain_keeping_v5.3' into 'release/v5.3'
fix(esp_pm): enable RTC_PERIPH domain once in esp_pm_trace_init (v5.3)

See merge request espressif/esp-idf!35998
2025-01-17 12:10:05 +08:00
Jiang Jiang Jian
087e8a83f3 Merge branch 'fix/fix_flash_leakage_workaroud_config_dependcy_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix FLASH leakage workaround kconfig dependcy (v5.3)

See merge request espressif/esp-idf!35991
2025-01-17 12:09:38 +08:00
Jiang Jiang Jian
86adcd99df Merge branch 'fix/fix_flash_clock_changed_after_sleep_bak_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix mspi clock freq changed after lightsleep (v5.3)

See merge request espressif/esp-idf!36003
2025-01-17 12:03:30 +08:00
Jiang Jiang Jian
04afd65ae6 Merge branch 'fix/fix_tsens_power_after_modem_wakeup_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix tsensor power enable failed after modem state wakeup (v5.3)

See merge request espressif/esp-idf!36227
2025-01-17 12:02:59 +08:00
Jiang Jiang Jian
0590d1c21c Merge branch 'fix/fix_p4_usb_phy_bad_suspend_on_lslp_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix p4 OTG phy bad suspend cause high power consumption on sleep (v5.3)

See merge request espressif/esp-idf!36366
2025-01-17 12:02:10 +08:00
Jiang Jiang Jian
33923d3999 Merge branch 'fix/lwip_ping_getnetif_threadsafe_v5.3' into 'release/v5.3'
fix(lwip): Fix ping session calling thread unsafe API (v5.3)

See merge request espressif/esp-idf!36380
2025-01-17 11:43:55 +08:00
wanckl
c18f258a24 fix(driver_spi): fixed slave example error on esp32p4 2025-01-17 11:18:41 +08:00
wanckl
e1cc1e2568 feat(driver_spi): support using SPI_DEVICE_STD_TIMING to adjust master rx in standard timing 2025-01-17 10:48:52 +08:00
Marius Vikhammer
e3e7243400 Merge branch 'bugfix/rm_redefined_gpio_num_v5.3' into 'release/v5.3'
fix(ulp): remove redefinition and unify gpio enum in ulp (backport v5.3)

See merge request espressif/esp-idf!36437
2025-01-17 10:42:24 +08:00
morris
af9e91c4ab Merge branch 'refactor/cleanup_usb_phy_v5.3' into 'release/v5.3'
Cleanup USB PHY (backport v5.3)

See merge request espressif/esp-idf!36237
2025-01-17 10:40:26 +08:00
Xu Si Yu
527d29409e fix(openthread): use the correct macros to control code compilation 2025-01-17 09:49:18 +08:00
Shu Chen
84e3f04fec Merge branch 'fix/set_154_cca_duration_v5.3' into 'release/v5.3'
fix(15.4): set 15.4 energy scan duration before cca (v5.3)

See merge request espressif/esp-idf!36425
2025-01-17 09:19:11 +08:00
Martin Vychodil
96d3dfbb9a Merge branch 'fix/incorrect_console_open_and_close_behaviour_v5.3' into 'release/v5.3'
fix(storage/vfs_console): stop new console opens from overwriting existing fds (v5.3)

See merge request espressif/esp-idf!35268
2025-01-16 22:08:13 +08:00
Li Shuai
f453380760 fix(uart): fix esp32c61 light sleep uart wakeup failed 2025-01-16 20:34:31 +08:00
Li Shuai
ff3c790ad1 fix(esp_hw_support): fix esp32c5 and esp32c61 wakeup failed when TOP rejects PD 2025-01-16 20:34:16 +08:00
zwl
5fe98f852c feat(ble): support for putting ble code into flash on ESP32-C6 2025-01-16 18:20:43 +08:00
Tomas Rezucha
6d97cd0aa1 refactor(usb/phy): Merge P4 and S2/S3 PHYs into one module
P4 had separate PHY implementation for initial bring-up,
now we can merge it with the original PHY driver.
2025-01-16 10:25:25 +01:00
Tomas Rezucha
19bdc77e55 fix(usb): Backport v5.3 compatibility commit 2025-01-16 09:53:22 +01:00
Tomas Rezucha
144f8a660e refactor(usb/phy): Start using values from usb_dwc_info in PHY driver
Add tests for PHY sanity checks
2025-01-16 16:39:59 +08:00
Tomas Rezucha
005ae0554a refactor(usb/phy): Do not use deprecated variables in usb_phy 2025-01-16 16:39:59 +08:00
Tomas Rezucha
47fd8aac23 feat(hal/usb): Explicitly enable clock and reset USB WRAP on init 2025-01-16 16:39:59 +08:00
Xiaoyu Liu
1ef5be3b39 fix(ulp): remove redefinition and unify gpio enum in ulp
Closes https://github.com/espressif/esp-idf/issues/15219
2025-01-16 09:22:48 +01:00
Xu Si Yu
d0948e250d fix(15.4): set 15.4 energy scan duration before cca 2025-01-16 11:45:42 +08:00
laokaiyao
2abf73d94c refactor(lpperi): improve compatibility solution 2025-01-16 10:18:02 +08:00
Rahul Tank
10db90a2fc Merge branch 'bugfix/fix_compilation_warn_v5.3' into 'release/v5.3'
fix(nimble): Address compilation warnings for different flag combination (v5.3)

See merge request espressif/esp-idf!36393
2025-01-15 21:31:52 +08:00
morris
18714a2e4c Merge branch 'refactor/update_lpperi_regs_for_h2_eco5_v5.3' into 'release/v5.3'
refactor(lpperi): compatible refactor for H2 ECO5 (v5.3)

See merge request espressif/esp-idf!36336
2025-01-15 16:11:38 +08:00
wanckl
ddeb3f1d35 fix(driver_spi): fixed slave_hd driver transaction alignment check 2025-01-15 16:03:58 +08:00
morris
16023f1da7 Merge branch 'change/bs_cmake_cleanup_v5.3' into 'release/v5.3'
feat(gdma): added help function to count the bytes in the receive buffer (v5.3)

See merge request espressif/esp-idf!36376
2025-01-15 13:19:34 +08:00
Rahul Tank
c089950c8b fix(nimble): Fix compilation issues for different flag combinations 2025-01-15 10:11:23 +05:30
Shu Chen
9e58ddd91f Merge branch 'feat/update_thread_lib_v5.3' into 'release/v5.3'
fix(openthread): update SRP server to support zero subtype (v5.3)

See merge request espressif/esp-idf!36337
2025-01-15 10:57:49 +08:00
wuzhenghui
e6808779dc fix(esp_hw_support): fix p4 OTG phy bad suspend cause high power consumption on sleep 2025-01-15 10:20:58 +08:00
Ondrej Kosta
17ebbe0924 ci(esp_eth): added ESP32P4 to iperf CI test
Updated (increased) ETH_THROUGHPUT_SPI_ETH limits.
Improved iperf optimization description
2025-01-14 15:45:55 +01:00
Roland Dobai
a4330d297c Merge branch 'fix/remove_duplicates_from_sdkconfig_renames_v5.3' into 'release/v5.3'
fix: remove duplicit lines from sdkconfig.rename files (v5.3)

See merge request espressif/esp-idf!36347
2025-01-14 19:41:46 +08:00
David Cermak
c2bc4d3797 fix(lwip): Fix ping session calling thread unsafe API
Closes https://github.com/espressif/esp-idf/issues/14982
2025-01-14 11:25:44 +01:00
Zhou Xiao
0a3068236c fix(ble): fixed ld file for c2eco0 and c2eco4
(cherry picked from commit 937fe2a6e3)

Co-authored-by: zhouxiao <zhouxiao@espressif.com>
2025-01-14 17:44:22 +08:00
David Čermák
5231c61b1b Merge branch 'bugfix/ws_head_buf_size_v5.3' into 'release/v5.3'
fix(tcp_transport): Fix websocket header read to handle overflow (v5.3)

See merge request espressif/esp-idf!35668
2025-01-14 16:43:00 +08:00
David Čermák
f78ee19900 Merge branch 'fix/esp_netif_ppp_nullptr_check_v5.3' into 'release/v5.3'
fix(esp_netif): Prevent null deref when checking netif type (v5.3)

See merge request espressif/esp-idf!35671
2025-01-14 16:42:45 +08:00
morris
9a2e7b8686 feat(gdma): added API to count the size of rx buffer until eof 2025-01-14 16:41:05 +08:00
Zhou Xiao
eaf097ef8d fix(ble): fixed esp_ble_tx_power_set api issue on ESP32-H2
(cherry picked from commit d2b62f2130)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-01-14 14:54:29 +08:00
Zhou Xiao
b9fadacf2f fix(ble): fixed esp_ble_tx_power_set api issue on ESP32-C6
(cherry picked from commit 8d6ec12838)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-01-14 14:54:27 +08:00
Zhou Xiao
0740986590 fix(ble): fixed esp_ble_tx_power_set api issue on ESP32-C2
(cherry picked from commit 6a752eeb89)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-01-14 14:54:24 +08:00
Zhou Xiao
c240d04a67 feat(ble): support for putting ble code into flash on ESP32-H2
(cherry picked from commit 5a9acdc379)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-01-14 14:54:22 +08:00
Zhou Xiao
d0976ef837 change(ble): Update lib_esp32c2 to 2a00fb0b
(cherry picked from commit 7cd3fe6953)

Co-authored-by: zhouxiao <zhouxiao@espressif.com>
2025-01-14 14:54:20 +08:00
Zhou Xiao
fcce32a66c change(ble): Update lib_esp32c6 to 3422b706
(cherry picked from commit 4fc95fa91f)

Co-authored-by: zhouxiao <zhouxiao@espressif.com>
2025-01-14 14:54:18 +08:00
Zhou Xiao
1c89a133f2 change(ble): Update lib_esp32h2 to 3422b706
(cherry picked from commit fe5a12e7e7)

Co-authored-by: zhouxiao <zhouxiao@espressif.com>
2025-01-14 14:54:16 +08:00
morris
a5581e8117 Merge branch 'bugfix/uart_single_wire_mode_v5.3' into 'release/v5.3'
fix(uart): allow same pin for tx and rx in uart_set_pin; UART_SELECT_READ_NOTIF race conditon fix (v5.3)

See merge request espressif/esp-idf!36251
2025-01-14 13:12:02 +08:00
Mahavir Jain
74b2b3911f Merge branch 'bugfix/update_api_to_get_url_correctly_v5.3' into 'release/v5.3'
fix(esp_http_client): updated API esp_http_client_get_url() to get URL in correct format (v5.3)

See merge request espressif/esp-idf!36332
2025-01-14 12:44:56 +08:00
morris
4ff6e2cc6b Merge branch 'fix/twai_io_init_glitch_v5.3' into 'release/v5.3'
fix(driver_twai): fixed bus-off when twai_init due to wrong gpio config (v5.3)

See merge request espressif/esp-idf!34816
2025-01-14 11:57:30 +08:00
liuning
5cb0e2e020 fix(wifi): fix double max active time, fix coex pwr period cant been updated by ps type set 2025-01-14 11:17:39 +08:00
liuning
99291fb28d feat(coex): update coexist debug default event 2025-01-14 11:13:27 +08:00
Jiang Jiang Jian
adf5319639 Merge branch 'bugfix/fix_the_wpa3_connect_error_in_mesh_v5.3' into 'release/v5.3'
fix(wifi/mesh): fixed the mesh connection failure in WPA3 mode after erasing flash (v5.3)

See merge request espressif/esp-idf!36329
2025-01-13 19:41:37 +08:00
Jan Beran
0547a0bad9 fix: remove duplicit lines from sdkconfig.rename files 2025-01-13 09:07:32 +01:00
Shu Chen
d043df3778 Merge branch 'feature/support_esp32h2eco5_phylib_v5.3' into 'release/v5.3'
feat(esp_phy): support esp32h2eco5 phylib (v5.3)

See merge request espressif/esp-idf!36209
2025-01-13 15:50:47 +08:00
Tan Yan Quan
50dc1848fe fix(openthread): update SRP server to support zero subtype/v5.3
* esp-openthread: 4f3fd4895
* openthread: 005c5cefc
* esp-idf: ce5ac9571
2025-01-13 14:50:55 +08:00
laokaiyao
90457a9a4e refactor(lpperi): compatible refactor for H2 ECO5 2025-01-13 14:39:33 +08:00
nilesh.kale
bfed3b3dae fix(esp_http_client): updated API esp_http_client_get_url to get URL in correct format
This commit updates the API to include the port number in the URL,
which was previously missing.
2025-01-13 11:14:34 +05:30
Rahul Tank
ce5ac95711 Merge branch 'bugfix/fix_few_nimble_issues_v5.3' into 'release/v5.3'
fix(nimble): Fix few nimble issues 11012025 (v5.3)

See merge request espressif/esp-idf!36311
2025-01-13 13:26:15 +08:00
Mahavir Jain
636ae484d8 Merge branch 'fix/return_esp_err_t_for_httpd_req_get_url_query_str_v5.3' into 'release/v5.3'
feat(https_server): Added checks to verify if uri is empty (v5.3)

See merge request espressif/esp-idf!36287
2025-01-13 11:58:30 +08:00
zhangyanjiao
954de95aac fix(wifi/mesh): fixed the mesh connection failure in WPA3 mode after erasing flash
Closes https://github.com/espressif/esp-idf/issues/14095
2025-01-13 11:44:48 +08:00
Jiang Jiang Jian
8e54a6cc71 Merge branch 'bugfix/fix_some_wifi_bugs_20241221_v5.3' into 'release/v5.3'
fix some wifi bugs 20241221(Backport v5.3)

See merge request espressif/esp-idf!35862
2025-01-13 10:57:26 +08:00
morris
f0fef3aef8 Merge branch 'bugfix/reset_axi_gdma_gracefully_v5.3' into 'release/v5.3'
fix(gdma): stop the axi gdma gracefully on CPU SW reset (v5.3)

See merge request espressif/esp-idf!36284
2025-01-13 10:16:49 +08:00
morris
37e05e9815 Merge branch 'fix/c61_h2_pmu_icg_csv_update_v5.3' into 'release/v5.3'
fix(pmu): c61 and h2 update pmu_icg_mapping.h (v5.3)

See merge request espressif/esp-idf!34797
2025-01-13 09:59:55 +08:00
Abhinav Kudnar
eb4ce28bfc feat(nimble): Additional changes in PAWR IDF Examples/support for ESP IP 2025-01-10 17:13:32 +05:30
Rahul Tank
4fda5fd142 fix(nimble): Fixed a typo in Kconfig file 2025-01-10 17:13:17 +05:30
Astha Verma
b0adb3acac fix(nimble): Added HCI_Read_Remote_Version_Information command 2025-01-10 17:13:02 +05:30
Rahul Tank
45141eb6be fix(nimble): Clear our and peer security records during unpair 2025-01-10 17:12:36 +05:30
Song Ruo Jing
a1ba653952 fix(uart): allow same pin for tx and rx in uart_set_pin
Closes https://github.com/espressif/esp-idf/issues/14787
2025-01-10 15:14:27 +08:00
morris
79b798cac6 Merge branch 'refactor/cleanup_usb_phy_backport_v5.3' into 'release/v5.3'
fix(usb/host): Fix reaction on High-Speed NYET packet (backport v5.3)

See merge request espressif/esp-idf!36120
2025-01-10 14:35:08 +08:00
Island
171a0b9acf Merge branch 'feat/add_config_for_ble_vs_qa_cmd_v5.3' into 'release/v5.3'
fixed interrupt WDT when shutdown bt controller on ESP32(ba6739f) (v5.3)

See merge request espressif/esp-idf!36175
2025-01-10 14:17:36 +08:00
hrushikesh.bhosale
fce6e09463 feat(https_server): Added checks to verify if uri is empty
Added the checks if the URI is empty for the funtions httpd_req_get_url_query_len
and httpd_req_get_url_query_str in httpd_parser.c
2025-01-10 11:09:43 +05:30
wanckl
65d3591cf7 fix(pmu): c61 and h2 update pmu_icg_mapping.h 2025-01-10 10:20:20 +08:00
morris
418768ebc7 fix(dma): abort the axi dma gracefully on CPU SW reset 2025-01-10 10:15:36 +08:00
morris
e4762af4bb Merge branch 'feature/isp_dvp_example_v5.3' into 'release/v5.3'
feat(dvp_isp_dsi_example): add new option to connect a DVP camera sensor (ov2640) through ISP_DVP (v5.3)

See merge request espressif/esp-idf!35996
2025-01-10 10:11:13 +08:00
Jiang Jiang Jian
77eaf678f6 Merge branch 'backport/backport_some_changes_to_v5.3_20250106' into 'release/v5.3'
Backport/backport some changes to v5.3 20250106

See merge request espressif/esp-idf!36234
2025-01-09 19:54:38 +08:00
wanckl
283a192713 fix(twai): currect twai type macro initialize definition 2025-01-09 11:54:56 +08:00
wanckl
06c97f9d1f fix(driver_twai): fixed bus-off when twai_init due to wrong gpio config
Closes https://github.com/espressif/esp-idf/issues/14548
2025-01-09 11:54:56 +08:00
Jiang Jiang Jian
3b9242212c Merge branch 'fix/blufi_example_mem_access_v5.3' into 'release/v5.3'
fix(ble/blufi): Fixed blufi example security issue (v5.3)

See merge request espressif/esp-idf!36163
2025-01-09 11:48:31 +08:00
Island
608ac0bb0a Merge branch 'bugfix/fix_some_ble_bugs_241224_esp32c3_v5.3' into 'release/v5.3'
Fixed some BLE bugs 241224 on ESP32C3(fd62b31) (v5.3)

See merge request espressif/esp-idf!36195
2025-01-09 11:35:00 +08:00
wuzhenghui
f87077b825 fix(esp_hw_support): fix modem power enable failed after modem state wakeup 2025-01-09 11:13:29 +08:00
Song Ruo Jing
33935c5607 fix(uart): fix race condition with the use of UART_SELECT_READ_NOTIF
UART_SELECT_READ_NOTIF needs to be sent after received data got processed
to avoid the potential race condition
2025-01-08 20:47:58 +08:00
Alex Bethel
1639033c66 docs: Fix gpio_dump_io_configuration typo in docs
The mentioned `gpio_dump_all_io_configuration` function doesn't exist,
the correct function is `gpio_dump_io_configuration`.

Merges https://github.com/espressif/esp-idf/pull/15031
2025-01-08 20:47:46 +08:00
Shu Chen
182dcd8261 Merge branch 'feature/154_api_enhancement_for_mp_v5.3' into 'release/v5.3'
feat(802.15.4): support register isr callback (v5.3)

See merge request espressif/esp-idf!36199
2025-01-08 17:12:39 +08:00
yinqingzhao
93582b8221 feat(wifi): avoid compiling components related to wifi when wifi is not supported 2025-01-08 16:47:34 +08:00
yinqingzhao
20cda6424d feat(wifi): wifi support 80211tx using 11ax and 11ac rate 2025-01-08 16:45:49 +08:00
Song Ruo Jing
ce22a85ceb fix(isp): isp_dvp raw->rgb needs a workaround 2025-01-08 16:39:53 +08:00
Tomas Rezucha
875defd3b7 fix(usb/host): Fix reaction on High-Speed NYET packet
In Scatter-Gather DMA mode, the USB-DWC will automatically enable
PING protocol if an OUT packet is NACKed by the High-Speed device.
The PING bit must be manually reset.
2025-01-08 16:29:14 +08:00
Song Ruo Jing
ff0f9cd649 feat(dvp_isp_dsi_example): add an example shows DVP-ISP-DSI combination 2025-01-08 16:20:14 +08:00
Marius Vikhammer
db968c6956 Merge branch 'docs/remove_coex_doxy_v5.3' into 'release/v5.3'
docs(doxygen): removed coex header from doxyfile (v5.3)

See merge request espressif/esp-idf!36223
2025-01-08 10:37:32 +08:00
Marius Vikhammer
f00857b253 docs(doxygen): removed coex header from doxyfile
Failing to build due to missing comments, but the header was
never included in the docs anyway, so might as well remove it.
2025-01-08 09:47:31 +08:00
Marius Vikhammer
ba92aee8c1 Merge branch 'ci/swap-argument-find-app_v5.3' into 'release/v5.3'
ci(ci_build_apps): swap function args (v5.3)

See merge request espressif/esp-idf!36060
2025-01-08 09:10:48 +08:00
Rahul Tank
ba0b5b08a3 Merge branch 'bugfix/fix_csfc_write_nvs_v5.3' into 'release/v5.3'
fix(nimble): Corrected storing method of csfc to nvs (v5.3)

See merge request espressif/esp-idf!36166
2025-01-08 00:43:23 +08:00
zhangwenxu
636c017439 feat(esp_phy): support esp32h2eco5 phylib 2025-01-07 17:52:46 +08:00
Michael (XIAO Xufeng)
4c422b18ff Merge branch 'bugfix/warn_rc32k_use_in_kconfig_v5.3' into 'release/v5.3'
fix(clk): add an inevitable kconfig option to be selected to use rc32k (v5.3)

See merge request espressif/esp-idf!35965
2025-01-07 15:50:42 +08:00
zwx
2ec92c5cd8 feat(802.15.4): introduced a feature for registering 802.15.4 ISR callbacks 2025-01-07 15:26:13 +08:00
Chen Jian Hua
fb815fb6f3 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(fd62b31)
- Fixed periodic adv enable params checking
- Fixed BLE assert lld_scan.c 1728 when receiving directed adv
- Support resolving RPA to identity address when creating connection
- Fixed BLE assert rwble.c 505 param 00400010
- Fixed peer address type error in HCI LE meta event
- Fixed setting random address failed when extended adv is enabled


(cherry picked from commit 326f391f9c)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-01-07 14:33:33 +08:00
Shu Chen
90de6ac550 Merge branch 'feat/support_setting_event_for_154_txrx_5_3' into 'release/v5.3'
feat(15.4): support setting 15.4 txrx pti when coex is enabled (backport to 5.3)

See merge request espressif/esp-idf!36106
2025-01-07 10:30:43 +08:00
Jiang Jiang Jian
e7caff51c1 Merge branch 'bugfix/use_wpa3_ent_authmode_naming_v5.3' into 'release/v5.3'
fix(wifi): Add support to recongize different WPA3 Authentication modes from specifications  (Backport v5.3)

See merge request espressif/esp-idf!36104
2025-01-06 21:10:12 +08:00
morris
9b2d46fde5 Merge branch 'fix/ble_i2c_v5.3' into 'release/v5.3'
fix(i2c): Fix i2c read from fifo issue when enabling bt/wifi/uart, etc... (backport v5.3)

See merge request espressif/esp-idf!36054
2025-01-06 17:27:10 +08:00
Roland Dobai
bc92458d2a Merge branch 'feature/add_utf_8_decoding_v5.3' into 'release/v5.3'
feat(tools): Enforced utf-8 encoding with Python open() functions (v5.3)

See merge request espressif/esp-idf!36126
2025-01-06 17:10:39 +08:00
morris
b545f9cca8 Merge branch 'bugfix/modbus_serial_examples_fix_mode_v53' into 'release/v5.3'
fix(modbus): Fix the mode setup in modbus slave (backport v5.3)

See merge request espressif/esp-idf!36118
2025-01-06 17:05:33 +08:00
Roland Dobai
3652281fb5 Merge branch 'feat/dfu_p4_backport_v5.3' into 'release/v5.3'
feat(dfu): Enable DFU on ESP32-P4 (backport v5.3)

See merge request espressif/esp-idf!35830
2025-01-06 15:41:59 +08:00
Chen Jian Hua
4847e78895 fix(bt): Update bt lib for ESP32(ba6739f)
- Fixed assert in lld_evt.c at line 2353
- Fixed interrupt WDT when shutdown bt controller
- Added config for BLE vendor HCI QA command
- Added config for BLE channel assessment and ping procedure


(cherry picked from commit ad3554fbed)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-01-06 15:20:14 +08:00
morris
d7d3eb3f0a Merge branch 'feat/ldo_can_output_3v3_v5.3' into 'release/v5.3'
feat(ldo): support output rail voltage (3.3V) (v5.3)

See merge request espressif/esp-idf!36131
2025-01-06 15:08:55 +08:00
Rahul Tank
3d36093651 fix(nimble): Corrected storing method of csfc to nvs 2025-01-06 10:58:30 +05:30
Zhang Hai Peng
a43f3c46e2 fix(ble/bluedroid): Fixed BLE feature selection configuration
(cherry picked from commit 117aa74705)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-01-06 11:14:21 +08:00
Zhang Hai Peng
e631e58963 docs(ble/bluedroid): Added BLE log when bond info was deleted
(cherry picked from commit c9cdf51b05)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-01-06 11:13:55 +08:00
Zhang Hai Peng
ed51c0b6b2 docs(ble/bluedroid): Optimize doc for registering BLE callback functions
(cherry picked from commit d84ccadf90)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-01-06 11:13:53 +08:00
Zhang Hai Peng
b6d4dfa565 fix(ble/blufi): Fixed blufi example security issue
(cherry picked from commit 3cb2d9c3c6)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-01-06 11:13:51 +08:00
morris
ad1237a1e4 feat(ldo): support output rail voltage (3.3V) 2025-01-06 10:45:30 +08:00
Xu Si Yu
f5f07d4962 fix(openthread): fix openthread radio spinel deinit 2025-01-06 10:29:40 +08:00
Xu Si Yu
aaab96050a fix(openthread): fix a naming error of kconfig 2025-01-06 10:29:19 +08:00
Xu Si Yu
33ff758293 feat(15.4): support setting 15.4 txrx pti when coex is enabled 2025-01-06 10:29:19 +08:00
morris
c84a7db80f Merge branch 'bugfix/uart_8_16_bit_access_v5.3' into 'release/v5.3'
fix(uart): fix 8/16-bit uart register access (v5.3)

See merge request espressif/esp-idf!35961
2025-01-06 10:10:29 +08:00
Rahul Tank
326e101a76 Merge branch 'bugfix/coverity_fixes_v5.3' into 'release/v5.3'
fix(nimble): Address fixes for coverity reported issues (v5.3)

See merge request espressif/esp-idf!35369
2025-01-05 22:51:20 +08:00
Shu Chen
ad6fd3f2f8 Merge branch 'feat/example_connect_thread_v5_3' into 'release/v5.3'
feat(protocol_examples_common): Add Thread connect to support Thread for the protocol examples(v5.3)

See merge request espressif/esp-idf!36091
2025-01-05 10:58:33 +08:00
Rahul Tank
6e5a8865de fix(nimble): Address few coverity reported issues
1. Overflowed constant (INTEGER_OVERFLOW): Added change to typecast
value
2. Structurally dead code: Removed dead code
3. Resource leak: Added a free for allocated memory, in case of failure
4. too_few_printf_args: Corrected print statement to pass arguments
5. Fixed nesting levels
6. Fixed unused value warnings
7. Illegal memory access fix
2025-01-03 17:55:41 +05:30
Jiang Jiang Jian
21fb91564e Merge branch 'bugfix/fix_sniffer_fail_on_ci_v5.3' into 'release/v5.3'
fix(ci): Enlarge the pcap memory size in sniffer example (v5.3)

See merge request espressif/esp-idf!35697
2025-01-03 19:59:02 +08:00
Shu Chen
8b5008bb28 Merge branch 'feature/ieee802154_txpower_table_v5.3' into 'release/v5.3'
Feature/ieee802154 txpower table (v5.3)

See merge request espressif/esp-idf!36133
2025-01-03 17:05:05 +08:00
Sarvesh Bodakhe
ca4d97bb22 fix(wifi): Add support to recongize different WPA3 Authentication modes from specs
Add support  to recognize APs supporting 'WPA3-Enterprise-Only Mode' and
'WPA3-Enterprise-Transition Mode' using authmodes WIFI_AUTH_WPA3_ENTERPRISE
and WIFI_AUTH_WPA2_WPA3_ENTERPRISE, respectively.
2025-01-03 12:54:58 +05:30
morris
47a4af87a4 Merge branch 'bugfix/channel_resolution_calculation_v5.3' into 'release/v5.3'
fix(rmt): channel resolution divider rounding issue (v5.3)

See merge request espressif/esp-idf!36033
2025-01-03 14:50:11 +08:00
zwx
9d996989d2 fix(802.15.4): fix a typo for 15.4 Kconfig 2025-01-03 14:22:13 +08:00
zwx
5bf1cc9d44 feat(802.15.4): introduce a series of APIs related power table 2025-01-03 14:22:13 +08:00
zwx
52f905b6c7 feat(openthread): support preferred channel mask 2025-01-03 14:22:13 +08:00
Rahul Tank
69129b34ea Merge branch 'bugfix/ieee802154_ble_coex_v5.3' into 'release/v5.3'
fix(nimble): Save the gatt context in case of preemption (v5.3)

See merge request espressif/esp-idf!35436
2025-01-03 13:50:10 +08:00
Marius Vikhammer
4745d09d40 Merge branch 'bugfix/h2_wifi_intr_v5.3' into 'release/v5.3'
fix(interrupt): fixed wrongly reserved interrupt for wifi on H2 (v5.3)

See merge request espressif/esp-idf!36112
2025-01-03 11:11:33 +08:00
Marek Fiala
2b0407eb2a feat(tools): Enforce utf-8 encoding with open() function 2025-01-02 16:48:43 +01:00
Song Ruo Jing
b0a1735b55 fix(clk): rtc_clk_cpu_freq_set_xtal will always disable CPU's PLL
Align C6/H2/C5/C61 rtc_clk_cpu_freq_set_xtal behavior to other chips
For PMU supported chips, powering down CPU PLL in sleep will be done by PMU, not sleep code
2025-01-02 21:16:27 +08:00
Jiang Jiang Jian
ca961274f5 Merge branch 'feat/backport_some_feature_and_bugfix_v53' into 'release/v5.3'
Feat/backport some feature and bugfix v53

See merge request espressif/esp-idf!35925
2025-01-02 20:31:03 +08:00
aleks
fb506232f7 fix(modbus): Fix the mode setup in modbus slave
https://github.com/espressif/esp-idf/pull/14878
2025-01-02 17:58:42 +08:00
Kabir Waraich
74cb39cbca Update slave.c to fix the mode
There is an issue in the lines that I have changed. I think it was copied over from the enum by mistake.
2025-01-02 17:58:42 +08:00
Marius Vikhammer
4531d056e9 fix(interrupt): fixed wrongly reserved interrupt for wifi on H2 2025-01-02 16:44:05 +08:00
morris
ce3bc62076 Merge branch 'bugfix/ledc_get_freq_calc_v5.3' into 'release/v5.3'
fix(ledc): fix ledc_get_freq calculation err due to overflow (v5.3)

See merge request espressif/esp-idf!36020
2025-01-02 15:45:49 +08:00
Jiang Jiang Jian
b5e59fb0af Merge branch 'ci/add_build_test_eco_versions_v5.3' into 'release/v5.3'
ci: add build test for eco versions (v5.3)

See merge request espressif/esp-idf!35819
2025-01-02 15:24:34 +08:00
morris
cfa4a3aa69 Merge branch 'bugfix/esp_rom_gpio_connect_out_signal_patch_v5.3' into 'release/v5.3'
fix(gpio): patched esp_rom_gpio_connect_out_signal for esp32 and esp32s2 (v5.3)

See merge request espressif/esp-idf!35940
2025-01-02 15:09:37 +08:00
morris
2d432ab856 Merge branch 'feat/xmc_32d_support_v5.3' into 'release/v5.3'
feat(spi_flash): support 120M on xmc25q32d flash (backport v5.3)

See merge request espressif/esp-idf!36079
2025-01-02 14:17:13 +08:00
morris
d47aa5b072 Merge branch 'fix/fix_parlio_tx_example_line_address_v5.3' into 'release/v5.3'
fix(parlio_tx): fix line address in simple_rgb_martix example (v5.3)

See merge request espressif/esp-idf!36071
2025-01-02 14:12:01 +08:00
Shu Chen
e27cc7cb5d Merge branch 'feat/set_get_ack_timeout_v5.3' into 'release/v5.3'
feat(802.15.4): add api for set/get ack timeout (v5.3)

See merge request espressif/esp-idf!36086
2025-01-02 12:21:52 +08:00
Zhuang Hang
b3830bed43 feat(802.15.4): add api for set/get ack timeout (v5.3) 2025-01-02 12:21:52 +08:00
C.S.M
09321904dc docs(i2c): Add type declaration in i2c docs,
Closes https://github.com/espressif/esp-idf/issues/15086
2024-12-31 15:36:24 +08:00
Xu Si Yu
eed839d11a feat(openthread): update build test rules 2024-12-31 14:33:33 +08:00
WanqQixiang
6ae2ed32c3 fix(openthread): Fix CI failure of ot_trel example build 2024-12-31 14:33:27 +08:00
WanqQixiang
43ae52b87a feat(protocol_examples_common): Add Thread connect to support Thread for the protocol examples 2024-12-31 14:33:17 +08:00
C.S.M
385fa9870f fix(i2c): Add bus handle check so that it will not be panic when there is no free bus,
Closes https://github.com/espressif/esp-idf/issues/14819
2024-12-31 12:01:10 +08:00
Shu Chen
238d7038ec Merge branch 'feature/use_fixed_dut_in_ot_ci_cases_v5.3' into 'release/v5.3'
feat(openthread): use fixed port in ot ci cases (Backport v5.3)

See merge request espressif/esp-idf!36047
2024-12-31 12:00:08 +08:00
C.S.M
768f746036 feat(spi_flash): support 120M on xmc25q32d flash 2024-12-31 11:34:27 +08:00
Abhinav Kudnar
1c195041d2 fix(nimble): Save the gatt context in case of preemption 2024-12-30 20:00:05 +08:00
Rahul Tank
05b7732547 Merge branch 'bugfix/fix_ext_reconn_compilation_v5.3' into 'release/v5.3'
fix(nimble): Fix compilation issue for combination of Ext Adv and Reattempt conn flag (v5.3)

See merge request espressif/esp-idf!35932
2024-12-30 19:46:49 +08:00
Chen Jichang
7cd877b0d3 fix(parlio_tx): fix line address in simple_rgb_martix example 2024-12-30 17:08:59 +08:00
Song Ruo Jing
191c2aee72 fix(ledc): fix ledc_get_freq calculation err due to overflow
Closes https://github.com/espressif/esp-idf/pull/14882
2024-12-30 17:05:24 +08:00
Rahul Tank
cc83b057b9 fix(nimble): Fix compilation issue for combination of Ext Adv and Reattempt conn flag 2024-12-30 14:27:57 +05:30
igor.udot
8abb36267b ci(ci_build_apps): swap function args 2024-12-30 15:03:33 +08:00
Roland Dobai
67e7a935c7 Merge branch 'fix/missing_header_hint_v5.3' into 'release/v5.3'
fix(hints): improve suggestion for missing header file (v5.3)

See merge request espressif/esp-idf!36044
2024-12-30 13:59:40 +08:00
C.S.M
056f0bdb0e fix(i2c_slave): Support 10-bit address on esp32 2024-12-30 13:41:01 +08:00
C.S.M
5729fd2952 fix(i2c): Fix lose byte during data reading in i2c master on esp32,
Closes https://github.com/espressif/esp-idf/issues/12860
2024-12-30 13:40:49 +08:00
C.S.M
d4f3c9c0d5 fix(i2c): Enhance lp clock source and avoid deadlock,
Closes https://github.com/espressif/esp-idf/issues/14908,
Closes https://github.com/espressif/esp-idf/issues/14906
2024-12-30 13:40:37 +08:00
yiwenxiu
b3a7c9f79d feat(openthread): use fixed port in ot ci cases 2024-12-30 10:02:24 +08:00
Frantisek Hrbata
af605b12d2 fix(hints): improve suggestion for missing header file
Currently, we are only suggesting that the header file is likely not
part of the component's INCLUDE_DIRS. However, the header file may be
missing also because of the configuration settings. For instance, the
component might be disabled in sdkconfig, or the feature that supplies
the header might not be enabled. Enhance the hint message to address
this scenario as well.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-12-29 18:56:46 +01:00
Xiao Xufeng
91964c9ad5 ci(app_update): move test_apps to subfolder with a name 2024-12-28 02:01:16 +08:00
Rahul Tank
c889978a12 Merge branch 'bugfix/force_att_tx_q_cleanup_v5.3' into 'release/v5.3'
fix(nimble): Add ATT Tx queue cleanup during link disconnection (v5.3)

See merge request espressif/esp-idf!36006
2024-12-27 20:07:59 +08:00
Island
31b7c82a8f Merge branch 'docs/refactor_ceva_bt_controller_api_v5.3_1215' into 'release/v5.3'
docs(ble): Refactored the API reference for esp32/c3/s3 BT controller (v5.3)

See merge request espressif/esp-idf!35636
2024-12-27 18:45:10 +08:00
Xiao Xufeng
4d75a8118f ci(spi_flash): add tests for cache2phys with XIP 2024-12-27 18:04:51 +08:00
Xiao Xufeng
a4886829f5 fix(mmap): fixed spi_flash_phys2cache return addr in PSRAM issue
When SPIRAM_FETCH_INSTRUCTIONS or SPIRAM_RODATA enabled
2024-12-27 18:04:51 +08:00
Xiao Xufeng
c4cccdedd0 fix(mmap): fixed spi_flash_cache2phys return addr in PSRAM issue
When SPIRAM_FETCH_INSTRUCTIONS or SPIRAM_RODATA enabled
2024-12-27 18:04:51 +08:00
morris
a68cda3c86 fix(rmt): channel resolution divider rounding issue
Closes https://github.com/espressif/esp-idf/issues/15092
2024-12-27 16:57:57 +08:00
Wang Meng Yang
93178f26db Merge branch 'bugfix/fix_btqabr2023330_v5.3' into 'release/v5.3'
fix(bt): Fix error code returned by create_conn_cancel_cmd at different status (backport v5.3)

See merge request espressif/esp-idf!35734
2024-12-27 11:02:59 +08:00
Jiang Jiang Jian
c1e2b60be3 Merge branch 'feature/support_to_query_phy_rf_used_time_v5.3' into 'release/v5.3'
feat(phy): support to query phy used time

See merge request espressif/esp-idf!35877
2024-12-27 10:35:20 +08:00
morris
883829f490 Merge branch 'bugfix/reserve_mspi_pin_regarding_line_mode_v5.3' into 'release/v5.3'
fix(gpio_reserve): reserve the mspi pin regarding line mode (v5.3)

See merge request espressif/esp-idf!35906
2024-12-27 10:19:03 +08:00
Shu Chen
53a38bd9cb Merge branch 'fix/openthread_dns_hook_v5_3' into 'release/v5.3'
fix(openthread): Fix external DNS resolve hook for DNS64 client(v5.3)

See merge request espressif/esp-idf!35984
2024-12-27 10:15:13 +08:00
wuzhenghui
d1475b5d72 fix(esp_hw_support): fix mspi clock freq changed after lightsleep 2024-12-26 19:26:44 +08:00
wuzhenghui
a18fe20e9b fix(esp_hw_support): fix esp32p4 JTAG pad deepsleep current leakage 2024-12-26 16:05:14 +08:00
Rahul Tank
8a2ba98b8b fix(nimble): Add ATT Tx queue cleanup during link disconnection 2024-12-26 12:57:10 +05:30
Island
d0a157e723 Merge branch 'refactor/optimize_ble_gatt_api_doc_v5.3' into 'release/v5.3'
refactor(bt/bluedroid): Optimize BLE GATT related APIs reference (v5.3)

See merge request espressif/esp-idf!35918
2024-12-26 14:25:08 +08:00
Island
4dd4435bc2 Merge branch 'feat/add_get_started_example_on_bluedroid_v5.3' into 'release/v5.3'
feat(bt/bluedroid): Added BLE get started examples for Bluedroid (v5.3)

See merge request espressif/esp-idf!35652
2024-12-26 14:24:51 +08:00
wuzhenghui
3260d95cab fix(esp_pm): enable RTC_PERIPH domain once in esp_pm_trace_init 2024-12-26 14:10:29 +08:00
wuzhenghui
f2f87de88d fix(esp_hw_support): fix FLASH leakage workaround kconfig dependcy 2024-12-26 11:36:00 +08:00
Island
505a359f36 Merge branch 'bugfix/fixed_ble_issues_241220_v5.3' into 'release/v5.3'
Bugfix/fixed ble issues 241220 (v5.3)

See merge request espressif/esp-idf!35923
2024-12-26 11:30:17 +08:00
morris
e62af45d60 Merge branch 'bugfix/rtc_clk_cpu_freq_set_xtal_behavior_v5.3' into 'release/v5.3'
fix(clk): rtc_clk_cpu_freq_set_xtal will always disable CPU's PLL (v5.3)

See merge request espressif/esp-idf!35944
2024-12-26 10:48:02 +08:00
WanqQixiang
5950b8f2b1 fix(openthread): Fix external DNS resolve hook for DNS64 client 2024-12-26 10:18:58 +08:00
morris
09abea3d98 Merge branch 'fix/fix_psram_mode_reg_wrong_timing_v5.3' into 'release/v5.3'
psram: fixed mode reg read bad timing on octal and hex psrams (v5.3)

See merge request espressif/esp-idf!35949
2024-12-26 10:17:09 +08:00
Xiao Xufeng
73c9de5eab feat(soc): increase c2 max supported version 2024-12-25 20:30:29 +08:00
Song Ruo Jing
a2178b0fa2 fix(clk): add an inevitable kconfig option to be selected to use rc32k 2024-12-25 20:01:37 +08:00
Song Ruo Jing
340c0d1280 fix(uart): fix 8/16-bit uart register access 2024-12-25 19:08:05 +08:00
morris
a7781f3662 Merge branch 'feat/rgb_lcd_increase_pclk_v5.3' into 'release/v5.3'
feat(lcd): increase the upper limit of pclk frequency for RGB LCD (v5.3)

See merge request espressif/esp-idf!35929
2024-12-25 16:24:59 +08:00
Song Ruo Jing
97ef2f36d2 fix(uart): eliminated potential glitch on TX at setup if TX signal is inversed
Closes https://github.com/espressif/esp-idf/issues/14285
2024-12-25 15:19:49 +08:00
morris
73a155f988 Merge branch 'feat/rmt_return_real_channel_resolution_v5.3' into 'release/v5.3'
feat(rmt): add API to return the real clock resolution of a channel (v5.3)

See merge request espressif/esp-idf!35902
2024-12-25 14:33:02 +08:00
laokaiyao
fa118a24cd fix(gpio_reserve): reserve the mspi pin regarding line mode 2024-12-25 11:07:01 +08:00
Armando
03f12395de fix(psram): fixed mode reg read bad timing on octal and hex psrams 2024-12-25 11:02:38 +08:00
chenqingqing
b7148ab71f fix(bt): Fix error code returned by create_conn_cancel_cmd at different status
- Closes https://github.com/espressif/esp-idf/issues/7763
2024-12-25 10:01:57 +08:00
morris
4d5d5defd5 feat(lcd): increase the upper limit of pclk frequency for RGB LCD 2024-12-24 22:47:52 +08:00
Song Ruo Jing
c73be9a62d fix(clk): rtc_clk_cpu_freq_set_xtal will always disable CPU's PLL
Align C6/H2/C5/C61 rtc_clk_cpu_freq_set_xtal behavior to other chips
2024-12-24 22:08:46 +08:00
Song Ruo Jing
983653de9a fix(gpio): patched esp_rom_gpio_connect_out_signal for esp32 and esp32s2
The original ROM function enabled output for the pad first, and then connected the signal
This could result in an undesired level change at the pad

Closes https://github.com/espressif/esp-idf/issues/12826
2024-12-24 20:17:28 +08:00
zwl
eb0c5ed331 feat(ble): add dtm configuration command in hci example 2024-12-24 19:30:30 +08:00
morris
cfea4f7c98 Merge branch 'bugfix/fix_i2s_24b_buf_size_calc_v5.3' into 'release/v5.3'
fix(i2s): fixed some issues in I2S driver (v5.3)

See merge request espressif/esp-idf!35769
2024-12-24 18:36:09 +08:00
Shu Chen
fbdf9d919b Merge branch 'fix/add_macros_for_otbr_v5.3' into 'release/v5.3'
fix(openthread): add macros for ot_br (v5.3)

See merge request espressif/esp-idf!35893
2024-12-24 17:55:29 +08:00
wangtao@espressif.com
4e335ed5a7 fix(wifi): backport some wifi feature and bugfixs 2024-12-24 15:39:08 +08:00
Zhao Wei Liang
ea2cf71b2f feat(ble): Support get ble controller free heap size on ESP32-C2
(cherry picked from commit 2cb7d2437b)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-24 15:21:36 +08:00
Zhao Wei Liang
9c0c5af372 feat(ble): Support get ble controller free heap size on ESP32-H2
(cherry picked from commit 12f226be7d)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-24 15:21:34 +08:00
Zhao Wei Liang
c0d8e44cda feat(ble): Support get ble controller free heap size on ESP32-C6
(cherry picked from commit aa7feb9449)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-24 15:21:31 +08:00
Zhao Wei Liang
132f4b27e8 feat(ble): fixed some ble issues on ESP32-C2
(cherry picked from commit 5f9a3cdd1a)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-24 15:21:29 +08:00
Zhao Wei Liang
08d741dff3 feat(ble): adjust bt default scheme position
(cherry picked from commit 446239251c)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-24 15:21:27 +08:00
Chen Jian Hua
d366629761 Merge branch 'refactor/optimize_ble_gatt_api_doc' into 'master'
refactor(bt/bluedroid): Optimize BLE GATT related APIs reference

See merge request espressif/esp-idf!34650

(cherry picked from commit 19b5381c99)

7320c77d refactor(bt/bluedroid): Optimize BLE GATT related APIs reference
8a80617c refactor(bt/bluedroid): Optimize BLE GATT related APIs reference
0ac97e98 refactor(bt/bluedroid): Optimize BLE GATT related APIs reference
27b17c69 refactor(bt/bluedroid): Optimize BLE GATT related APIs reference
ea8d7686 docs: Update gattc & gatts api header files
f508772f Apply 3 suggestion(s) to 2 file(s)
03469b52 Apply 2 suggestion(s) to 1 file(s)
aa2cf7a5 docs: fix minor issue
46dc6e96 docs(ble): Replaced "closed" with "terminated" for physical connection.

Co-authored-by: Wei Yu Han <weiyuhan@espressif.com>
2024-12-24 15:19:59 +08:00
wangtao@espressif.com
a8de5a6c2b fix(wifi): fix spiram ignore issue 2024-12-24 15:17:47 +08:00
wangtao@espressif.com
da39fcebc4 feat(wifi): fix SPIRAM_IGNORE_NOTFOUND releated config 2024-12-24 15:15:31 +08:00
wangtao@espressif.com
d8599406a8 change(wifi): change softap default dtim period to 1 2024-12-24 15:13:51 +08:00
wangtao@espressif.com
e8f8bf2995 fix(wifi): fix esp32c2eco4 sta_rx_csa ld 2024-12-24 15:09:23 +08:00
laokaiyao
fdc8275b37 fix(i2s): add check for the tdm frame bits num 2024-12-24 12:21:29 +08:00
laokaiyao
01d1aecd19 fix(i2s): fix the es8311 example on P4
Closes https://github.com/espressif/esp-idf/issues/14297
2024-12-24 12:07:45 +08:00
Gustavo Litovsky
c475820f54 change(esp32): undo forcing two slots in I2S
fix(i2s): fixed the issue in PR 14879

Closes https://github.com/espressif/esp-idf/pull/14879

[Kevin: Update to only remove the limitation for PCM short format]
2024-12-24 12:07:45 +08:00
laokaiyao
75fb8bbe04 refactor(i2s): refactor i2s examples common dependencies
Closes https://github.com/espressif/esp-idf/issues/14751

Make the common I2S dependencies as an example common component,
so that to avoid slash & backslash issue on windows
when use absolute include path.
2024-12-24 12:07:45 +08:00
laokaiyao
85be1550ab docs(example): added troubleshooting for i2s_es8311 example
Closes https://github.com/espressif/esp-idf/issues/15047
2024-12-24 12:07:44 +08:00
laokaiyao
9b46827d00 fix(i2s): return error when mclk_div is smaller than 2 2024-12-24 12:07:44 +08:00
laokaiyao
33f490d69c fix(i2s): fixed incorrect buf size calculation 2024-12-24 12:07:44 +08:00
morris
3bc10aa81b feat(rmt): add API to return the real clock resolution of a channel
Closes https://github.com/espressif/esp-idf/pull/15074
2024-12-24 11:17:11 +08:00
Tan Yan Quan
5f19eb45b8 fix(openthread): add macros for ot_br 2024-12-23 21:31:08 +08:00
Marius Vikhammer
c042aad969 Merge branch 'fix/ringbuf_receives_after_aq_wraparound_v5.3' into 'release/v5.3'
fix(esp_ringbuf): Fixed no-split ringbuf issue where acquire pointer  wraps around (v5.3)

See merge request espressif/esp-idf!35868
2024-12-23 14:51:08 +08:00
Rahul Tank
98f9bdb7fa Merge branch 'bugfix/fix_compile_issue_v5.3' into 'release/v5.3'
fix(nimble): Fix compilation issues when BLE_MAX_STORE_BOND is set to 0 (v5.3)

See merge request espressif/esp-idf!34442
2024-12-23 12:31:49 +08:00
liuning
ce18873e7a feat(phy): support to query phy used time 2024-12-23 10:56:54 +08:00
morris
8273d98760 Merge branch 'fix/flash_noos_issues_v5.3' into 'release/v5.3'
flash: fixed some no_os API issues (v5.3)

See merge request espressif/esp-idf!35792
2024-12-23 10:21:04 +08:00
Rahul Tank
3e9375e9f9 fix(nimble): Fix compilation issues when BLE_MAX_STORE_BOND is set to 0 2024-12-22 15:20:59 +05:30
Rahul Tank
c21e1af174 Merge branch 'fix/added_change_for_invalid_offset_v5.3' into 'release/v5.3'
fix(nimble): Added a check for invalid offset (v5.3)

See merge request espressif/esp-idf!35752
2024-12-22 17:44:40 +08:00
Shreeyash
cb108dd39b fix(nimble): Added a check for invalid offset 2024-12-22 11:58:24 +05:30
Rahul Tank
13a627e91b Merge branch 'fix/update_peer_ota_addr_type_v5.3' into 'release/v5.3'
fix(nimble):Updated peer OTA address type (v5.3)

See merge request espressif/esp-idf!35344
2024-12-22 14:22:43 +08:00
shreeyash
8f6aac5d17 fix(nimble): Updated peer OTA address type 2024-12-21 21:18:02 +05:30
Yuhan Wei
d7cf748dbc docs(ble): Optimized bluetooth controller API reference 2024-12-21 23:46:09 +08:00
Rahul Tank
2d965b65ab Merge branch 'bugfix/blufi_deinit_memory_leak_v5.3' into 'release/v5.3'
fix(nimble): Fix memory leak issue in Blufi example (v5.3)

See merge request espressif/esp-idf!35313
2024-12-21 23:43:04 +08:00
Astha Verma
c8d452638c fix(nimble): fix memory leak issue in Blufi example 2024-12-21 16:31:45 +05:30
Rahul Tank
a949e02275 Merge branch 'fix/hci_err_code_description_v5.3' into 'release/v5.3'
fix(nimble): Added a function for printing HCI error definition (v5.3)

See merge request espressif/esp-idf!35678
2024-12-21 18:54:23 +08:00
weiyuhan
8d37ce199a fix(ble): removed c5 sdk config 2024-12-21 18:45:56 +08:00
Chen Jian Hua
5a9418a95c feat(bt/bluedroid): Added BLE get started examples for Bluedroid
(cherry picked from commit d051a2a39d)

Co-authored-by: xuzhekai <xuzhekai@espressif.com>
2024-12-21 18:25:08 +08:00
Sudeep Mohanty
4390b045dd fix(esp_ringbuf): Fixed no-split ringbuf issue where acquire pointer wraps around
This commit fixes an issue with no-split ring buffers where in the the
buffer did not receive items correctly if the acquire pointer wraps
around before items are sent to it.
2024-12-21 12:07:49 +05:30
Astha Verma
6d88cae54d fix(nimble): Updated function to print HCI opcode with error definition 2024-12-21 09:25:55 +05:30
Rahul Tank
08102036fd Merge branch 'bugfix/solve_memory_prints_v5.3' into 'release/v5.3'
fix(nimble): Changing esp_rom_printf to ESP_LOGI when memory allocation fails (v5.3)

See merge request espressif/esp-idf!35836
2024-12-21 11:50:46 +08:00
muhaidong
8ba5b34a50 fix(wifi): fixed blufi connect wep or wpa ap fail issue 2024-12-21 09:59:40 +08:00
muhaidong
02d3a619c4 fix(phy): fixed calibration warning infomation inaccurate issue
Closes https://github.com/espressif/esp-idf/issues/14963
2024-12-21 09:59:40 +08:00
Abhinav Kudnar
19931368cf fix(nimble): Changing esp_rom_printf to ESP_LOGI when memory allocation fails 2024-12-20 21:45:12 +05:30
Rahul Tank
27fb5d47ff Merge branch 'bugfix/fix_link_estab_param_v5.3' into 'release/v5.3'
fix(nimble): Corrected link_estab event handling parameters (v5.3)

See merge request espressif/esp-idf!35808
2024-12-21 00:05:46 +08:00
Sergei Silnov
ce79ad5546 Merge branch 'fix/tools_pip_upgrade_v5.3' into 'release/v5.3'
fix(idf_tools.py): Upgrade pip and setuptools separately (v5.3)

See merge request espressif/esp-idf!35775
2024-12-20 20:07:01 +08:00
Roland Dobai
cee2a29981 Merge branch 'change/bump_up_kconfig_precommit_v5.3' into 'release/v5.3'
ci(pre-commit): bump kconfig checker pre-commit version to 2.4.1 (v5.3)

See merge request espressif/esp-idf!35826
2024-12-20 19:19:14 +08:00
Zhang Shuxian
686389582b docs: Update CN translation for dfu 2024-12-20 11:18:06 +01:00
Tomas Rezucha
31c883b3a6 feat(dfu): Enable DFU on ESP32-P4 2024-12-20 11:17:26 +01:00
Marius Vikhammer
25347b5b03 Merge branch 'fix/esp32p4_unexpected_reset_v5.3' into 'release/v5.3'
fix(system): avoid unexcpected hp_sys_wdt reset (v5.3)

See merge request espressif/esp-idf!35802
2024-12-20 16:55:37 +08:00
Armando
eb85f8da46 fix(cache): fixed cache hal ctx not initialised in app issue 2024-12-20 14:06:19 +08:00
Armando
1f982e3ded fix(spi_flash): fixed no_os flash API not consider branch predictor on c5/c61 2024-12-20 14:06:19 +08:00
Armando
5b6191195f fix(spi_flash): fixed no_os flash API not consider cache states issue on h2/p4/c6/c5/c61 2024-12-20 14:06:19 +08:00
Shu Chen
fde54d5718 Merge branch 'fix/thread-lib-v53' into 'release/v5.3'
fix(openthread): update esp-thread-lib branch (v5.3)

See merge request espressif/esp-idf!35813
2024-12-20 13:37:35 +08:00
Tan Yan Quan
d9b3f2ccb1 fix(openthread): update esp-thread-lib branch 2024-12-20 12:29:56 +08:00
morris
9322f7b0d3 Merge branch 'fix/fix_adc_cali_check_scheme_api_issue_v5.3' into 'release/v5.3'
adc: fixed adc_cali_check_scheme wrong return on c2/h2/c6 (v5.3)

See merge request espressif/esp-idf!35719
2024-12-20 10:12:32 +08:00
Alexey Gerenkov
19884eb092 Merge branch 'fix/coredump_checksum_error_v5.3' into 'release/v5.3'
Fix/coredump checksum error (v5.3)

See merge request espressif/esp-idf!35763
2024-12-19 23:01:19 +08:00
Jan Beran
5485eebfc3 ci(pre-commit): bump kconfig checker pre-commit version to 2.4.1 2024-12-19 15:45:13 +01:00
Chen Yudong
5fd9ee23d3 ci: add build test for eco versions 2024-12-19 21:02:49 +08:00
Island
ede55daa15 Merge branch 'bugfix/fix_set_perfer_ext_conn_param_v5.3' into 'release/v5.3'
fix(bt/bluedroid): Fixed setting perfer conn params complete event report (v5.3)

See merge request espressif/esp-idf!35747
2024-12-19 19:21:17 +08:00
Rahul Tank
749d70e159 fix(nimble): Corrected link_estab event handling parameters 2024-12-19 16:04:25 +05:30
Erhan Kurubas
9cab2c7796 fix(system): avoid unexcpected hp_sys_wdt reset 2024-12-19 11:58:58 +03:00
Shu Chen
2c786a4b04 Merge branch 'feature/add_rx_buff_statistic_v5.3' into 'release/v5.3'
feat(802.15.4): IEEE802.15.4 add rx buffer statistic (v5.3)

See merge request espressif/esp-idf!35640
2024-12-19 16:21:25 +08:00
Roland Dobai
81010cff35 fix(idf_tools.py): Upgrade pip and setuptools separately
This way the setuptools version dependency resolution will be done by
the upgraded pip.
2024-12-18 12:57:20 +01:00
Shu Chen
1dcb5a0c5d Merge branch 'feature/change_ot_ci_cases_wlan_to_ethernet_v5.3' into 'release/v5.3'
feat(openthread): change wlan to ethernet (Backport v5.3)

See merge request espressif/esp-idf!35741
2024-12-18 19:21:00 +08:00
Erhan Kurubas
854acfca27 change(coredump): include coredump own stack into coredump file 2024-12-18 13:16:13 +03:00
Erhan Kurubas
81affe2c09 change(coredump): make sure consistency with written data and calculated checksum 2024-12-18 13:16:13 +03:00
chenjianhua
fffc222122 fix(bt/bluedroid): Fixed LE channel selection algorithm event reporting 2024-12-18 11:49:52 +08:00
Chen Jian Hua
12efe83588 fix(bt/bluedroid): Fixed setting perfer conn params complete event report
(cherry picked from commit 4b352d1c4f)

Co-authored-by: xuzhekai <xuzhekai@espressif.com>
2024-12-18 11:33:32 +08:00
Island
73c6ff0e94 Merge branch 'bugfix/fix_ble_aa_zero_c3_s3_v5.3' into 'release/v5.3'
fix(bt/ble): Update esp32c3/s3 libbtdm_app.a (555b0a2) (v5.3)

See merge request espressif/esp-idf!35691
2024-12-18 10:46:13 +08:00
Island
14075e8ebf Merge branch 'bugfix/fix_blufi_prepare_write_v5.3' into 'release/v5.3'
fix(blufi): Fixed crash issue in Blufi example during prepare write operation (v5.3)

See merge request espressif/esp-idf!35716
2024-12-18 10:45:58 +08:00
Island
9bf938c904 Merge branch 'docs/add_ble_qualification_table_v5.3' into 'release/v5.3'
docs(ble): Added BLE Qualification Information to API Guides (v5.3)

See merge request espressif/esp-idf!35710
2024-12-18 10:41:15 +08:00
Wei Yu Han
f4bc876b2b docs(ble): Added BLE Qualification Information to API Guides (v5.3) 2024-12-18 10:41:15 +08:00
yiwenxiu
1f5b298c20 feat(openthread): change wlan to ethernet 2024-12-18 10:08:07 +08:00
Marius Vikhammer
224066e99d Merge branch 'ci/docs_master_build_v5.3' into 'release/v5.3'
ci(docs): revert d98e77a4a7 to simplify CI (v5.3)

See merge request espressif/esp-idf!35685
2024-12-18 09:49:27 +08:00
Alexey Gerenkov
a7c987e450 Merge branch 'fix/test_idf_gdb_v5.3' into 'release/v5.3'
test(system): mark gdb test runners properly (v5.3)

See merge request espressif/esp-idf!35587
2024-12-17 21:43:34 +08:00
Island
77d0629ae7 Merge branch 'feat/support_some_vendor_hci_for_qa_v5.3' into 'release/v5.3'
fix(ble): fixed the connect issue when rx error aa on ESP32-C2 (v5.3)

See merge request espressif/esp-idf!35646
2024-12-17 16:49:26 +08:00
Armando
6bb943f0c7 fix(adc): fixed adc_cali_check_scheme wrong return on c2/h2/c6 2024-12-17 16:14:54 +08:00
Zhang Hai Peng
f0d0a4a9fb fix(blufi): Fixed crash issue in Blufi example during prepare write operation
(cherry picked from commit 5acb9c9b5f)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-12-17 16:13:39 +08:00
Marius Vikhammer
f53b071b51 Merge branch 'bugfix/esp_ringbuf_static_analyzer_v5.3' into 'release/v5.3'
fix(ringbuf): fixed logic errors when compiling with CONFIG_COMPILER_STATIC_ANALYZER (v5.3)

See merge request espressif/esp-idf!35301
2024-12-17 16:09:28 +08:00
zhanghaipeng
a50df596ef docs(ble/bluedroid): Optimize BLE example documentation 2024-12-17 11:16:16 +08:00
zhangyanjiao
860ed52a00 fix(ci): Enlarge the pcap memory size in sniffer example 2024-12-17 11:13:40 +08:00
Troy
99341fde59 fix(wifi/mesh): Modify examples/mesh/internal_communication
Delete the secondary judgment of whether it is the root node in the sending task

Closes https://github.com/espressif/esp-idf/pull/14373

Signed-off-by: zhangyanjiao <zhangyanjiao@espressif.com>
2024-12-17 11:13:32 +08:00
xiongweichao
45890e88e0 fix(ble): fixed that the resolvable private address does not change when light sleep is enabled 2024-12-17 10:52:55 +08:00
zhanghaipeng
f8dc54c026 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(555b0a2)
- Check Access Address when receive connection request PDU
- Fix issue with BLE5.0 duplicate scan for chained packets
2024-12-17 10:52:31 +08:00
Marius Vikhammer
646664328a ci(docs): revert d98e77a4a7 to simplify CI 2024-12-17 10:08:50 +08:00
Marius Vikhammer
f17a9f6cad fix(ringbuf): fixed logic errors when compiling with __clang_analyzer__
We return pdFALSE if prvReceiveGeneric was called with any of the input pointers
as NULL, but pvItem2 and xItemSize2 will only be non-null for split buffers.

Closes https://github.com/espressif/esp-idf/issues/14905
2024-12-17 10:01:32 +08:00
David Čermák
12938e511e Merge branch 'lwip/dns_clear_cache_fix_v5.3' into 'release/v5.3'
fix(lwip): Fixed active DNS entries before clearing cache(v5.3)

See merge request espressif/esp-idf!35003
2024-12-16 22:20:59 +08:00
Mahavir Jain
de65ee55a7 Merge branch 'feature/add_support_for_http_1.0_requests_v5.3' into 'release/v5.3'
feat(esp_http_server): add support to handle HTTP 1.0 requests (v5.3)

See merge request espressif/esp-idf!35660
2024-12-16 22:01:09 +08:00
Jiang Jiang Jian
bbdcff5092 Merge branch 'fix/fix_esp32c2_ld_issue_v53' into 'release/v5.3'
fix(wifi): fix esp32c2 ld issue

See merge request espressif/esp-idf!35609
2024-12-16 20:26:34 +08:00
David Cermak
1ffa52db36 fix(esp_netif): Prevent null deref when checking netif type
Most esp_netif public API check for invalid arguments, but when enabling
PPP the macros to check netif type could potentially dereference
esp_netif without any null-check.

Releted to https://github.com/espressif/esp-idf/issues/14816
2024-12-16 11:15:01 +01:00
David Cermak
b61dc87a68 fix(tcp_transport): Fix websocket header read to handle overflow 2024-12-16 11:14:03 +01:00
Abhik Roy
6d18437d56 fix(lwip): Fixed active DNS entries before clearing cache 2024-12-16 11:03:38 +01:00
nilesh.kale
d48984ad3f feat(esp_http_server): add support to handle HTTP 1.0 requests
This commit adds support to handle HTTP/1.0 requests alongside HTTP/1.1 for
legacy compliance purposes.
2024-12-16 14:10:46 +05:30
Island
a0fdc9f741 Merge branch 'feat/support_bleqabr24_1539_v5.3' into 'release/v5.3'
feat(bt/bluedroid): Added config for saving BLE bonding keys to NVS (v5.3)

See merge request espressif/esp-idf!35603
2024-12-16 14:25:38 +08:00
Zhao Wei Liang
c119c9f6d7 fix(ble): fixed the connect issue when rx error aa on ESP32-C2
(cherry picked from commit 6b01a56e09)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-16 11:03:44 +08:00
Zhao Wei Liang
526d58a40b feat(ble): support some vendor hci commands on ESP32-H2
(cherry picked from commit 15203f9f35)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-16 11:03:42 +08:00
Zhao Wei Liang
5ac570ee2f feat(ble): support some vendor hci commands on ESP32-C6
(cherry picked from commit 5bd66eaa57)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-16 11:03:39 +08:00
Tan Yan Quan
53b3a212a7 feat(802.15.4): add some documentation for txrx statistics and debug record 2024-12-16 10:46:25 +08:00
Tan Yan Quan
6b50795455 feat(802.15.4): IEEE802.15.4 add documentation and refactor component structure 2024-12-16 10:46:25 +08:00
Tan Yan Quan
c667d67248 feat(802.15.4): IEEE802.15.4 add some minor edits for readability 2024-12-16 10:46:25 +08:00
Tan Yan Quan
979e1d86cb feat(802.15.4): IEEE802.15.4 add rx buffer statistic 2024-12-16 10:46:25 +08:00
morris
bfac3bfd16 Merge branch 'feat/allow_to_skip_legacy_driver_conflict_check_v5.3' into 'release/v5.3'
feat(legacy_driver): add kconfig to skip legacy confilct check (v5.3)

See merge request espressif/esp-idf!35616
2024-12-13 18:50:09 +08:00
Island
b024864e4c Merge branch 'fix/ble_mesh_enable_high_duty_itvl_on_nimble_v5.3' into 'release/v5.3'
feat(ble_mesh): select BT_NIMBLE_HIGH_DUTY_ADV_ITVL when using random adv itvl (v5.3)

See merge request espressif/esp-idf!35598
2024-12-13 16:21:51 +08:00
Chen Jichang
5e7e352b5a feat(legacy_driver): add kconfig to skip legacy confilct check 2024-12-12 18:13:53 +08:00
Tomáš Rohlínek
299b93bc9e fix(storage/vfs_console): stop new console opens from overwriting existing fds 2024-12-12 10:01:16 +01:00
wangtao@espressif.com
71c6360648 fix(wifi): fix esp32c2 ld issue 2024-12-12 14:55:33 +08:00
Chen Jian Hua
a8a8df15c2 fix(bt/bluedroid): Fixed failure to get host status when host is not enabled
(cherry picked from commit 23455ea9c2)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-12-12 12:33:39 +08:00
Chen Jian Hua
651568f73a feat(bt/bluedroid): Added config for saving BLE bonding keys to NVS
(cherry picked from commit 6d1160b2e6)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-12-12 12:33:37 +08:00
Luo Xu
01a7db26e2 feat(ble_mesh): select BT_NIMBLE_HIGH_DUTY_ADV_ITVL
(cherry picked from commit 6faf0a59fdcf063d40fc1000a209341318131185)

Co-authored-by: luoxu <luoxu@espressif.com>

(cherry picked from commit a7622efd0c)

Co-authored-by: Luo Xu <luoxu@espressif.com>
2024-12-12 12:23:32 +08:00
gaoxiaojie
da028bce66 fix(soc): fix clic register define and add description 2024-12-12 09:53:18 +08:00
Island
0b7cbb40ca Merge branch 'bugfix/fix_hid_crash_v5.3' into 'release/v5.3'
fix(ble): Fix crash issue during logging (v5.3)

See merge request espressif/esp-idf!35510
2024-12-12 09:06:15 +08:00
Erhan Kurubas
e29f06bb2b change(cmake): use board configuration file for ftdi interface 2024-12-11 18:50:09 +01:00
Erhan Kurubas
b63cafb1a6 test(system): mark gdb test runners properly 2024-12-11 18:50:09 +01:00
David Čermák
0986682ec1 Merge branch 'fix/lwip_ping_ipv6only_v5.3' into 'release/v5.3'
fix(lwip): Fix IP6 raw socket checksum in IPv6-only configuration (v5.3)

See merge request espressif/esp-idf!35086
2024-12-11 20:10:29 +08:00
David Cermak
dec5fe5ce2 fix(lwip): Fix ping_v6 receiving to accept only echo replies
This fixes a bug where we ping our own IP and the request itself
bounces back to the raw receive function and is incorrectly treated as
reply. (this bug was discovered when fixing ICMPv6 pings with incorrect
checksums, while the ping request was dropped in icmpv6.c due to wrong
checksum, but was also fed to raw layers where it was treated as
"correct" response, so the PINGv6 to ourselves still worked)
2024-12-11 09:50:59 +01:00
David Cermak
56fb9199f3 fix(common_connect): Fix example's stdin/out to setup UART interrupt once
Function example_configure_stdin_stdout() was used for simple UART I/O
operation in CI to enter test env configuration (wifi ssid, IPs, etc).
It could be called multiple times, but didn't handle the situation where
we install UART interrupt from multiple source (e.g. in ICMP tests,
where we first need to enter wifi credentials of test AP and then we
start ping-cmd console to handle ping commands)
2024-12-11 09:50:59 +01:00
David Cermak
9b129db0cb fix(lwip): Fix IP6 raw socket checksum in IPv6-only configuration 2024-12-11 09:50:58 +01:00
Rahul Tank
c46dac6d2a Merge branch 'bugfix/fix_vulnerability_v5.3' into 'release/v5.3'
fix(nimble): Fixes for security vulnerabilities reported in NimBLE (v5.3)

See merge request espressif/esp-idf!35500
2024-12-11 16:44:44 +08:00
David Čermák
8d9d1091c0 Merge branch 'fix/lwip_tcp_pcb_recycle_v5.3' into 'release/v5.3'
fix(lwip): Limit active TCP PCBs and recycle them faster (v5.3)

See merge request espressif/esp-idf!35094
2024-12-11 16:41:22 +08:00
Island
78b9bfe213 Merge branch 'bugfix/fix_bleqabr24_1646_v5.3' into 'release/v5.3'
Fixed BLE creating connection when the connection already exists on ESP32 (v5.3)

See merge request espressif/esp-idf!35046
2024-12-11 14:57:53 +08:00
Jiang Jiang Jian
e5b7c29d48 Merge branch 'bugfix/sae_pk_transition_disable_v5.3' into 'release/v5.3'
fix(wifi): Fix bug in wrong profile checking of AP's RSNXE IE  and other fixes (Backport v5.3)

See merge request espressif/esp-idf!34874
2024-12-11 14:04:02 +08:00
Shu Chen
82d3d24767 Merge branch 'fix/disable_border_agent_default_v5_3' into 'release/v5.3'
fix(openthread): Disable Border Agent features by default(v5.3)

See merge request espressif/esp-idf!35551
2024-12-11 12:17:59 +08:00
Island
270c107c41 Merge branch 'fix/ble_mesh_bugs_fixed_v5.3' into 'release/v5.3'
fix(ble_mesh): Miscellaneous update (v5.3)

See merge request espressif/esp-idf!35426
2024-12-11 11:31:08 +08:00
WanqQixiang
0278cef134 fix(openthread): Disable Border Agent features by default 2024-12-11 10:53:50 +08:00
Shyamal Khachane
c61e3f4dd3 fix(esp_wifi): Populate appropriate reason codes when softAP sends deauthentication
Populate appropriate reason for sending deauthentication when softAP receives
invalid RSN IE from association request
2024-12-10 20:08:02 +05:30
Sarvesh Bodakhe
e2d73046b3 fix(wifi): Fix wrong wifi reason codes reported on station and softAP
- Fix wrong reason code reported when softAP issues a disconnect for station
- Fix wrong reason code reported when association timeout happens at station
- Deprecate enums WIFI_REASON_ASSOC_EXPIRE, WIFI_REASON_NOT_AUTHED, WIFI_REASON_NOT_ASSOCED
  and use WIFI_REASON_DISASSOC_DUE_TO_INACTIVITY,
  WIFI_REASON_CLASS2_FRAME_FROM_NONAUTH_STA,
  WIFI_REASON_CLASS3_FRAME_FROM_NONASSOC_STA respectively
- Update wifi documentation related to reason codes
2024-12-10 20:08:00 +05:30
Sarvesh Bodakhe
55a93548da fix(wpa_supplicant): Fix debug print in wps_start_msg_timer() 2024-12-10 20:07:39 +05:30
Sarvesh Bodakhe
38b015eb77 fix(wifi): Fix bug in wrong profile checking of AP's RSNXE IE 2024-12-10 20:07:34 +05:30
Alexey Gerenkov
083aad99cf Merge branch 'fix/coredump-gcc-analyzer-warnings_v5.3' into 'release/v5.3'
fix(system): fix GCC-14 analyzer warnings for coredump (v5.3)

See merge request espressif/esp-idf!35522
2024-12-10 21:54:56 +08:00
Alexey Gerenkov
9d3917d532 Merge branch 'extend_coredump_tests_v5.3' into 'release/v5.3'
Extend coredump tests v5.3

See merge request espressif/esp-idf!33456
2024-12-10 21:54:42 +08:00
Jiang Jiang Jian
aabab371f9 Merge branch 'fix/fix_esp32c2eco4_wifi_deinit_crash_issue_v53' into 'release/v5.3'
fix(wifi): fix esp32c2eco4 wifi deinit crash issue v53

See merge request espressif/esp-idf!35390
2024-12-10 19:16:35 +08:00
Mahavir Jain
48a7476a1c Merge branch 'bugfix/fix_build_failure_with_tls1_3_only_v5.3' into 'release/v5.3'
fix: Fixed build errors with TLS 1.3 only configuration (v5.3)

See merge request espressif/esp-idf!35260
2024-12-10 16:37:03 +08:00
wangtao@espressif.com
fef3280356 fix(wifi): fix esp32c2eco4 wifi deinit crash issue 2024-12-10 14:35:16 +08:00
Harshit Malpani
83413257af fix(wpa_supplicant): Fix build errors for exclusive TLSv1.3 mbedtls config
Co-authored-by: Sarvesh Bodakhe <sarvesh.bodakhe@espressif.com>
2024-12-10 13:07:44 +08:00
Harshit Malpani
b577f659cd fix: Fixed build errors with TLS 1.3 only configuration 2024-12-10 13:07:44 +08:00
morris
2c9ab21629 Merge branch 'refactor/fine_tune_dphy_pll_v5.3' into 'release/v5.3'
feat(mipi): fine tune DPHY PLL clock (v5.3)

See merge request espressif/esp-idf!35292
2024-12-10 11:36:03 +08:00
Erhan Kurubas
dfc248d66d change(tools): enhance expect_reg_dump to support any or specific core values 2024-12-09 16:23:39 +01:00
Erhan Kurubas
ef14d7ab64 test(coredump): fix failed core dump tests 2024-12-09 15:52:59 +01:00
Erhan Kurubas
5f3d3f5e92 ci(panic): extend extram_stack tests 2024-12-09 15:52:59 +01:00
Erhan Kurubas
1848079dec fix(coredump): properly save task's stack when stack is located in PSRAM 2024-12-09 15:52:58 +01:00
Erhan Kurubas
c753271de1 ci(panic): add coredump tcb corrupted test 2024-12-09 15:52:58 +01:00
Erhan Kurubas
8bfabe711a fix(espcoredump): prevent null pointer dereference in panic reason handling 2024-12-09 15:15:51 +01:00
Erhan Kurubas
512b16a7bd fix(espcoredump): fix incorrect pointer usage in checksum update call 2024-12-09 15:15:51 +01:00
Alexey Lapshin
bf45c56825 fix(espcoredump): fix GCC-14 analyzer warnings for coredump 2024-12-09 15:15:51 +01:00
zhanghaipeng
6718fc73b1 feat(bt): Add support for converting BT HCI logs to btsnoop format 2024-12-09 17:55:37 +08:00
Zhang Hai Peng
a91f9b2395 fix(blufi): Fixed blufi init fail after deinit
(cherry picked from commit 7addb57ccd)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-12-09 17:45:30 +08:00
Jiang Jiang Jian
369befb8fc Merge branch 'fix/add_sbom_exception_v5.3' into 'release/v5.3'
Add an exception in wpa_supplicant sbom.yml (Backport v5.3)

See merge request espressif/esp-idf!35063
2024-12-09 17:22:18 +08:00
Zhang Hai Peng
338b3744e6 fix(ble): Fixed crash in BLE HID host example during logging
(cherry picked from commit ab1e3c1ffd)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-12-09 17:15:08 +08:00
Jiang Jiang Jian
6adf3f7f5a Merge branch 'bugfix/wps_ie_reset_v53' into 'release/v5.3'
fix(wifi): Remove WPS IEs once WPS succeeds(v5.3)

See merge request espressif/esp-idf!35077
2024-12-09 17:08:56 +08:00
Luo Xu
2178c6a8f2 fix(ble_mesh): Miscellaneous update
(cherry picked from commit 589ebfc1d6)

Co-authored-by: luoxu <luoxu@espressif.com>
2024-12-09 16:57:11 +08:00
David Cermak
33a3722788 fix(lwip): Limit active TCP PCBs and recycle them faster
* Update submodule: git log --oneline c816f0ee..a587d929
Detailed description of the changes:
  - test: Add tcp-pcb recycle test (espressif/esp-lwip@a587d929)
  - tcp: Apply faster PCB recycling in FIN_WAIT_1 or FIN_WAIT_2 state (espressif/esp-lwip@3bfc85d2)
  - test: Add tcp alloc limitation test (espressif/esp-lwip@0c9c39a9)
  - memp: Employ TCP-PCB allocation limit if libc malloc used (espressif/esp-lwip@9cb96ac1)

Closes https://github.com/espressif/esp-idf/issues/9670
Closes https://github.com/espressif/esp-lwip/pull/63
2024-12-09 15:46:39 +08:00
Jiang Jiang Jian
e84fb07383 Merge branch 'fix/ws_transport_head_fragments_v5.3' into 'release/v5.3'
fix(ws_transport): Fix reading WS header in fragments (v5.3)

See merge request espressif/esp-idf!35089
2024-12-09 15:43:37 +08:00
Jiang Jiang Jian
ecda30011c Merge branch 'fix/ble_mesh_heartbeat_bug_v5.3' into 'release/v5.3'
fix(ble_mesh): fixed heartbeat issue (v5.3)

See merge request espressif/esp-idf!34965
2024-12-09 15:41:57 +08:00
Jiang Jiang Jian
075e6d8cad Merge branch 'fix/update_ping_cmd_version_v5.3' into 'release/v5.3'
update: Update ping-cmd component to v1.0.0 (v5.3)

See merge request espressif/esp-idf!35013
2024-12-09 15:41:19 +08:00
Jiang Jiang Jian
e3940cb354 Merge branch 'feat/add_profile_state_event_v5.3' into 'release/v5.3'
feat(bt/bluedroid): added events to indicate the profile states of HFP (v5.3)

See merge request espressif/esp-idf!35149
2024-12-09 15:39:57 +08:00
Jiang Jiang Jian
e797b89583 Merge branch 'ci/wifi_power_save_got_ip_time_v5.3' into 'release/v5.3'
ci: increase test_wifi_power_save got ip timeout

See merge request espressif/esp-idf!35184
2024-12-09 15:39:07 +08:00
Jiang Jiang Jian
2cb1dbd0de Merge branch 'bugfix/fix_ble_ke_mem_267_assert_v5.3' into 'release/v5.3'
fix(bt/controller): Fixed BLE assert ke_mem.c line 267 on ESP32-C3 and ESP32-S3 (backport v5.3)

See merge request espressif/esp-idf!35337
2024-12-09 15:36:10 +08:00
Jiang Jiang Jian
4230ea6478 Merge branch 'docs/update_vscode_extension_link_v5.3' into 'release/v5.3'
docs: Update vscode extension link in get started (v5.3)

See merge request espressif/esp-idf!35303
2024-12-09 15:34:31 +08:00
Jiang Jiang Jian
42ef2887f4 Merge branch 'fix/fix_regdma_wait_node_issue_v5.3' into 'release/v5.3'
fix(esp_driver_gptimer): do gptimer retention by timer unit rather than timer group (v5.3)

See merge request espressif/esp-idf!35358
2024-12-09 15:27:24 +08:00
Jiang Jiang Jian
bfe4d479ae Merge branch 'bugfix/chip823_pll_bug_v5.3' into 'release/v5.3'
fix(H2):fix pll low temp bug(v5.3)

See merge request espressif/esp-idf!35241
2024-12-09 15:24:27 +08:00
Jiang Jiang Jian
e1c1befc7d Merge branch 'bugfix/fix_c2_light_sleep_coex_v5.3' into 'release/v5.3'
fix(ble): fix ble light sleep error on esp32c2 (v5.3)

See merge request espressif/esp-idf!35055
2024-12-09 15:23:53 +08:00
chenjianhua
e881a8fdec fix(bt): Update bt lib for ESP32(c3082c4)
- Fixed BLE creating connection when the connection already exists
2024-12-09 15:03:45 +08:00
Jiang Jiang Jian
e2671cb9eb Merge branch 'bugfix/fix_bandwidth_show_unknown' into 'release/v5.3'
fix(wifi): fix ap bandwidth is unknown in scan results

See merge request espressif/esp-idf!35004
2024-12-09 14:04:17 +08:00
morris
c7c4d33311 Merge branch 'refactor/cp_dma_use_gdma_link_v5.3' into 'release/v5.3'
refactor(cp_dma): to use gdma_link driver for descriptor config (v5.3)

See merge request espressif/esp-idf!35444
2024-12-09 13:57:38 +08:00
Rahul Tank
c0828595ff fix(nimble): Fixes for security vulnerabilities reported in NimBLE 2024-12-09 10:13:41 +05:30
morris
e3a628e1db Merge branch 'feature/efuse_s3_adds_psram_cap_bit_v5.3' into 'release/v5.3'
feat(efuse): Adds 3 bit for PSRAM_CAP efuse field (v5.3)

See merge request espressif/esp-idf!35121
2024-12-09 10:20:57 +08:00
morris
c7529d7c94 Merge branch 'bugfix/test_esp_flash_write_v5.3' into 'release/v5.3'
fix(spi_flash): Fix Test esp_flash_write (v5.3)

See merge request espressif/esp-idf!35385
2024-12-09 10:20:32 +08:00
morris
92b06b4b9a Merge branch 'feature/usb_host_hubs_support_msg_backport_v5.3' into 'release/v5.3'
feat(hub): Added notification when hubs support is disabled (backport to v5.3)

See merge request espressif/esp-idf!35454
2024-12-09 10:20:08 +08:00
morris
e673b17d51 Merge branch 'contrib/github_pr_14767_v5.3' into 'release/v5.3'
fix(gptimer): race on FSM state in gptimer_start() (GitHub PR) (v5.3)

See merge request espressif/esp-idf!35135
2024-12-09 10:15:01 +08:00
morris
85ce7c15ce Merge branch 'feat/mipi_dsi_underrun_error_v5.3' into 'release/v5.3'
feat(mipi_dsi): enable underrun error interrupt (v5.3)

See merge request espressif/esp-idf!34981
2024-12-09 10:14:12 +08:00
morris
4cd2ba46c3 Merge branch 'change/esp_ldo_reserve_for_spi_flash_v5.3' into 'release/v5.3'
LDO calibration on ESP32-P4 (v5.3)

See merge request espressif/esp-idf!34865
2024-12-09 10:07:51 +08:00
Shu Chen
e3ad294826 Merge branch 'fix/add_delay_before_command_in_ot_ci_case_v5.3' into 'release/v5.3'
feat(openthread): add delay before execute wifi command in openthread ci cases (Backport v5.3)

See merge request espressif/esp-idf!35421
2024-12-09 09:40:05 +08:00
Rahul Tank
8b9f7cb368 Merge branch 'fix/hci_err_code_def_v5.3' into 'release/v5.3'
fix: Added a function for printing HCI error definition (v5.3)

See merge request espressif/esp-idf!35085
2024-12-08 22:31:11 +08:00
morris
3946fbb142 Merge branch 'feat/dynamic_usb_hal_backport_v5.3' into 'release/v5.3'
feat(hal/usb): Make USB-DWC HAL&LL configuration independent backport v5.3

See merge request espressif/esp-idf!34811
2024-12-07 23:19:56 +08:00
Roland Dobai
cd3d85ae4b Merge branch 'fix/execute-gdb-without-built-app_v5.3' into 'release/v5.3'
tools: fix idf.py gdb execution in case app was not built (v5.3)

See merge request espressif/esp-idf!35490
2024-12-07 14:28:47 +08:00
Astha Verma
8060769801 fix(nimble): Added a function for printing HCI error definition 2024-12-07 07:55:45 +05:30
Rahul Tank
89cf76a45d Merge branch 'feat/pts_changes_5.3' into 'release/v5.3'
feat(nimble): BLE 5.4 PTS Related Features and Fixes (v5.3)

See merge request espressif/esp-idf!34976
2024-12-07 09:26:18 +08:00
Alexey Lapshin
782e04e2dc fix(tools): fix idf.py gdb execution in case app was not built 2024-12-06 23:34:54 +07:00
Abhinav Kudnar
03655d6d67 feat(nimble): Added PAwR support for nimble with IDF examples 2024-12-06 21:09:04 +05:30
Sumeet Singh
8b7cb01545 fix(nimble): Added
1. Option to disable automatic discovery when receiving out-of-sync
2. Fixed bugs related to robust caching
2024-12-06 21:08:47 +05:30
Sumeet Singh
a33bfe628f feat(nimble): Added ways to enable/disable some menuconfig options at runtime 2024-12-06 21:08:47 +05:30
Sumeet Singh
c56a0e45c8 feat(nimble): Added option to disable automatically sending extra credits to peer 2024-12-06 21:08:47 +05:30
Sumeet Singh
0253aad7c6 feat(nimble): Added support for persisting csf characteristic for bonded devices 2024-12-06 21:08:47 +05:30
Sumeet Singh
c3911c4817 feat(nimble): Added option in menuconfig to enable Secure Connections Only mode 2024-12-06 21:08:47 +05:30
Sumeet Singh
5d8f076745 fix(nimble): fix and enable connection subrating 2024-12-06 21:08:47 +05:30
Sumeet Singh
360e9e20d8 fix(nimble): Added option to enable code under Enhanced COC 2024-12-06 21:08:47 +05:30
Sumeet Singh
c74465664d fix(nimble): Fixed Device Information and Scan Parameters service 2024-12-06 21:08:46 +05:30
Sumeet Singh
9f1c2cad6e fix(nimble): Fixed encrypted advertisement data example 2024-12-06 21:08:46 +05:30
Sumeet Singh
355155b39d feat(nimble): Added LE GATT Security Levels Characteristic 2024-12-06 21:08:46 +05:30
Sumeet Singh
62265b90c0 feat(nimble): Added support for EATT Credit Based Flow Control Mode 2024-12-06 21:08:46 +05:30
Rahul Tank
63ca3b296d Merge branch 'bugfix/change_hci_cb_logging_v5.3' into 'release/v5.3'
fix(nimble): Replace ESP_LOG* with esp_rom_printf in controller context callback (v5.3)

See merge request espressif/esp-idf!35028
2024-12-06 23:32:37 +08:00
Rahul Tank
8f24c221cb Merge branch 'bugfix/memory_issue_v5.3' into 'release/v5.3'
fix(nimble): Nimble Error logs in case of memory overflow/failure (v5.3)

See merge request espressif/esp-idf!34998
2024-12-06 23:09:07 +08:00
Island
0a49e286df Merge branch 'bugfix/fix_ble_creat_conn_fail_enh_v5.3' into 'release/v5.3'
fix(ble/bluedroid): Fixed BLE create connection fail because of invalid own address type (v5.3)

See merge request espressif/esp-idf!35018
2024-12-06 22:40:54 +08:00
Roland Dobai
0a62a9078c Merge branch 'change/sysview_test_config_v5.3' into 'release/v5.3'
change(sysview): run heap_log tracing tests on existing cores (v5.3)

See merge request espressif/esp-idf!35196
2024-12-06 19:56:48 +08:00
Roland Dobai
22162a45e9 Merge branch 'feature/move-gdb-options-to_project_description_json_v5.3' into 'release/v5.3'
feat(debugging): move gdbinit generation to CMake (v5.3)

See merge request espressif/esp-idf!35176
2024-12-06 19:29:12 +08:00
Kapil Gupta
3a8cf533bc fix(wifi): Remove WPS IEs once WPS succeeds 2024-12-06 18:54:35 +08:00
morris
8b18991b0a refactor(cp_dma): to use gdma_link driver for descriptor config 2024-12-06 18:40:41 +08:00
morris
120c2b0d12 Merge branch 'bugfix/uart_vfs_read_behavior_v5.3' into 'release/v5.3'
fix(uart_vfs): read() now aligned to POSIX defined behavior (v5.3)

See merge request espressif/esp-idf!35393
2024-12-06 18:38:24 +08:00
yiwenxiu
0e2c916ec5 feat(openthread): add delay before execute wifi command in openthread ci cases 2024-12-06 18:27:10 +08:00
Island
69e8c4a0c5 Merge branch 'bugfix/add_aa_check_on_esp32c2_and_esp32c6_v5.3' into 'release/v5.3'
Bugfix/add aa check on esp32c2 and esp32c6 (v5.3)

See merge request espressif/esp-idf!35233
2024-12-06 17:55:14 +08:00
Roland Dobai
3a3396dcc1 Merge branch 'feat/size_unify_sections_v5.3' into 'release/v5.3'
feat(tools): unify sections in idf.py size reports for NG version (v5.3)

See merge request espressif/esp-idf!34856
2024-12-06 17:35:38 +08:00
Roland Dobai
5ce9a7f07d Merge branch 'fix/import_error_msg_v5.3' into 'release/v5.3'
fix(tools): re-raise ImportError without module name (v5.3)

See merge request espressif/esp-idf!35074
2024-12-06 17:35:26 +08:00
Sergei Silnov
a60a4da3f8 Merge branch 'ci/pre-commit-idf-build-apps-version_v5.3' into 'release/v5.3'
ci: update idf-build-apps version in pre-commit (v5.3)

See merge request espressif/esp-idf!35467
2024-12-06 17:10:07 +08:00
morris
a720fdcbf5 Merge branch 'fix/suspend_ci_v5.3' into 'release/v5.3'
test(spi_flash): Fix some failing test related to spi flash (backport v5.3)

See merge request espressif/esp-idf!35155
2024-12-06 17:05:15 +08:00
morris
ca6ade86d1 Merge branch 'fix/fix_esp32_pico_v3_psram_not_ignored_issue_v5.3' into 'release/v5.3'
psram: fixed esp32p pico-v3 psram init not ignored issue (v5.3)

See merge request espressif/esp-idf!35378
2024-12-06 17:04:46 +08:00
morris
0a47570126 Merge branch 'fix/adc_monitor_not_work_v5.3' into 'release/v5.3'
fix(esp_adc): fixed adc continue monitor don't work issue (v5.3)

See merge request espressif/esp-idf!35166
2024-12-06 17:04:19 +08:00
morris
75a9b80bd4 Merge branch 'fix/spi_enable_p4_c5_test_v5.3' into 'release/v5.3'
fix(driver_spi): enable p4 test (v5.3)

See merge request espressif/esp-idf!34281
2024-12-06 17:03:38 +08:00
morris
491c54fbae Merge branch 'fix/i2s_enable_test_p4_c5_multi_v5.3' into 'release/v5.3'
test(driver_i2s): p4 and c5 enable multi dut test (v5.3)

See merge request espressif/esp-idf!34238
2024-12-06 17:02:57 +08:00
morris
d93ebf3e9c feat(mipi_dsi): enable underrun error interrupt 2024-12-06 17:00:05 +08:00
lsita
2a51849dc2 fix(gptimer): race condition between start and stop
Merges https://github.com/espressif/esp-idf/pull/14767
2024-12-06 16:59:58 +08:00
Rahul Tank
40ce8d7f97 Merge branch 'bugfix/fix_esp_hid_host_compilation_v5.3' into 'release/v5.3'
fix(nimble): Fix compilation issue in esp_hid_host example (v5.3)

See merge request espressif/esp-idf!35308
2024-12-06 16:32:33 +08:00
morris
0fa1c0e513 Merge branch 'feat/mcpwm_dead_time_add_warning_v5.3' into 'release/v5.3'
fix(mcpwm): add warning about generator deadtime (v5.3)

See merge request espressif/esp-idf!34730
2024-12-06 16:14:34 +08:00
morris
90399d0d5c Merge branch 'feat/parlio_sleep_retention_v5.3' into 'release/v5.3'
fix(parlio): fix spelling error in reg_base.h (v5.3)

See merge request espressif/esp-idf!34736
2024-12-06 16:14:05 +08:00
morris
1503d0f80f Merge branch 'feat/mcpwm_sleep_rentention_v5.3' into 'release/v5.3'
fix(mcpwm): fix mcpwm register offset on p4 (v5.3)

See merge request espressif/esp-idf!34803
2024-12-06 16:13:28 +08:00
morris
26545860f7 feat(ldo): load calibration parameters from efuse 2024-12-06 16:12:43 +08:00
morris
3abe326490 Merge branch 'feature/adds_efuse_adc_calib_data_v5.3' into 'release/v5.3'
feat(efuse): Adds efuse ADC calib data for P4 C5 C61 (v5.3)

See merge request espressif/esp-idf!35119
2024-12-06 16:12:31 +08:00
morris
50f41592ed Merge branch 'fix/fix_jpeg_decode_info_v5.3' into 'release/v5.3'
fix(jpeg_decoder): Fix jpeg decoder get picture information (backport v5.3)

See merge request espressif/esp-idf!35158
2024-12-06 16:12:02 +08:00
Wang Meng Yang
6c02672a3d Merge branch 'bugfix/sdp_get_uuid_error_v5.3' into 'release/v5.3'
fix(bt/bluedroid): fixed issues introduced by byte alignment(v5.3)

See merge request espressif/esp-idf!35251
2024-12-06 16:04:09 +08:00
chenjianhua
561307a6bf feat(ble/bluedroid): Support setting connection params when creating connection 2024-12-06 15:51:33 +08:00
Shu Chen
2ecc042d30 Merge branch 'backport/2015_enhack_v53' into 'release/v5.3'
fix(802.15.4): add case for 2015 frame enh-ack (Backport v5.3)

See merge request espressif/esp-idf!34953
2024-12-06 15:51:28 +08:00
zhanghaipeng
3a85b1b6ce fix(ble/bluedroid): Optimize BLE API "esp_ble_gattc_enh_open" 2024-12-06 15:50:50 +08:00
Shu Chen
91fc7e9484 Merge branch 'fix/enhance_wifi_connection_check_in_ot_ci_case_v5.3' into 'release/v5.3'
feat(openthread): enhance wifi connection check in openthread ci cases (Backport v5.3)

See merge request espressif/esp-idf!35163
2024-12-06 15:50:45 +08:00
zhanghaipeng
2904494228 fix(ble/bluedroid): Fixed BLE create connection fail because of invalid own address type 2024-12-06 15:50:43 +08:00
Shu Chen
3a4396b7d9 Merge branch 'fix/fix_a_naming_error_of_esp_radio_spinel_v53' into 'release/v5.3'
Backport openthread related features to 5.3

See merge request espressif/esp-idf!35040
2024-12-06 15:50:35 +08:00
Shu Chen
6bedf6cdad Merge branch 'fix/add_network_reconnectin_in_ot_ci_case_v5.3' into 'release/v5.3'
feat(openthread): flush ipv6 addr in openthread ci cases(Backport v5.3)

See merge request espressif/esp-idf!34674
2024-12-06 15:50:13 +08:00
Abhinav Kudnar
a6b7edc414 fix(nimble): Nimble Error logs in case of memory overflow/failure 2024-12-06 13:20:11 +05:30
Rahul Tank
d3be7130e0 Merge branch 'feature/remove_min_max_def_v5.3' into 'release/v5.3'
fix(nimble): Removed min/max macro definition from os.h (v5.3)

See merge request espressif/esp-idf!34910
2024-12-06 15:44:54 +08:00
morris
1ddebd1f62 Merge branch 'contrib/github_pr_14859_v5.3' into 'release/v5.3'
fix(usb_host): return ESP_ERR_NO_MEM on failed alloc in client register (GitHub PR) (v5.3)

See merge request espressif/esp-idf!34876
2024-12-06 15:42:45 +08:00
morris
59a7d3782c Merge branch 'change/p4_sd_runner_no_use_usj_v5.3' into 'release/v5.3'
ci(sd): use uart0 as usj always serial noise on ci on p4 (v5.3)

See merge request espressif/esp-idf!35193
2024-12-06 15:41:27 +08:00
Mahavir Jain
ecc5f36e49 Merge branch 'fix/fetch_image_hdr_v5.3' into 'release/v5.3'
fix(esp_system): Correct address used to fetch application image header (v5.3)

See merge request espressif/esp-idf!34628
2024-12-06 15:36:53 +08:00
Mahavir Jain
796355150e Merge branch 'fix/aes_cache_failure_when_l2_cache_line_size_greater_than_l1_cache_v5.3' into 'release/v5.3'
Fix memory corruption caused due to unaligned external memory buffers sync in AES (v5.3)

See merge request espressif/esp-idf!35065
2024-12-06 15:36:11 +08:00
Mahavir Jain
8ce6ba18da Merge branch 'bugfix/ota_failed_with_openssl_3.0.2_v5.3' into 'release/v5.3'
fix(esp_http_client): Fix ota failure with openssl server (v5.3)

See merge request espressif/esp-idf!35066
2024-12-06 15:35:59 +08:00
Island
52066e6f46 Merge branch 'feat/optimize_cble50y24_110_v5.3' into 'release/v5.3'
feat(bt/bluedroid): Added BLE 5.0 throughput examples (v5.3)

See merge request espressif/esp-idf!35009
2024-12-06 15:32:50 +08:00
Wang Meng Yang
b9c4d3f8c7 Merge branch 'bugfix/disconn_sdp_upon_wrong_data_v5.3' into 'release/v5.3'
fix(bt/bluedroid): disconnect SDP connection on receiving incorrect response (v5.3)

See merge request espressif/esp-idf!35144
2024-12-06 15:31:00 +08:00
Wang Meng Yang
0001696a58 Merge branch 'bugfix/rx_invalid_cmd_err_code_v5.3' into 'release/v5.3'
fix(bt/bluedroid): Fixed the incorrect error code returned when receiving an invalid command(v5.3)

See merge request espressif/esp-idf!34991
2024-12-06 15:30:43 +08:00
Wang Meng Yang
633dbb38cd Merge branch 'bugfix/lmp_trans_collision_v5.3' into 'release/v5.3'
fix(bt/controller): Fixed some controller bugs on ESP32 (v5.3)

See merge request espressif/esp-idf!34945
2024-12-06 15:30:21 +08:00
igor.udot
1c93e5d35a ci: update idf-build-apps version in pre-commit 2024-12-06 11:57:39 +08:00
Marius Vikhammer
9a6aba7401 Merge branch 'update/version_5_3_2' into 'release/v5.3'
Update version to 5.3.2

See merge request espressif/esp-idf!35449
2024-12-06 09:44:36 +08:00
shenmengjing
3c4464632f docs: Update CN translation for docs in jtag-degugging 2024-12-06 05:07:52 +08:00
Alexey Lapshin
3af39a0ab0 feat(debugging): move gdbinit generation to CMake
This feature is useful for 3rd-party software to run GDB with predefined
options that described in project_description.json file

allow to pass custom options to "idf.py gdb":

  --gdb-commands: command line arguments for gdb. (without changes)
  -ex: pass command to gdb.
  -x: pass gdbinit file to gdb. Alias for old --gdbinit command
2024-12-06 05:07:52 +08:00
Roman Leonov
ad9419c2ae feat(hub): Added notification when hubs support is disabled 2024-12-05 10:31:05 +01:00
Jin Cheng
4643ceb78a fix(bt/bluedroid): fixed access NULL in HFP callback handler 2024-12-05 13:23:07 +08:00
Armando
7b770e5230 fix(psram): fixed esp32p pico-v3 psram init not ignored issue 2024-12-04 10:49:01 +08:00
Song Ruo Jing
32c17b419a fix(uart_vfs): read() now aligned to POSIX defined behavior
- For blocking mode, block until data available
- Return with the bytes available in the file at the time,
  it should not block until reaching the requested size

And read() should not realy return on the newline character
Closes https://github.com/espressif/esp-idf/issues/14155
2024-12-03 16:32:27 +08:00
Konstantin Kondrashov
3e4fa69113 fix(spi_flash): Fix Test esp_flash_write 2024-12-03 09:55:18 +02:00
wuzhenghui
1a23d3cd53 fix(esp_driver_gptimer): do gptimer retention by timer unit rather than timer group 2024-12-03 10:44:56 +08:00
wuzhenghui
97d9f01134 fix(esp_hw_support): remove p4 wdt retention on entry2 2024-12-02 17:44:53 +08:00
wuzhenghui
57aa7fece9 fix(esp_hw_support): fix retention link dump helper functions 2024-12-02 17:44:53 +08:00
Li Shuai
2c31e2b118 fix(esp_hw_support): fix the issue of regdma wait node to immediately return to done 2024-12-02 17:44:48 +08:00
zhiweijian
044ae88fac fix(bt/controller): Fixed BLE assert ke_mem.c line 267 on ESP32-C3 and ESP32-S3 2024-12-02 16:04:35 +08:00
Rahul Tank
bdafa320c3 fix(nimble): Fix compilation issue in esp_hid_host example 2024-11-29 15:23:27 +05:30
Laukik Hase
4acc6d3482 fix(esp_system): Correct address used to fetch application image header 2024-11-29 17:42:01 +08:00
luweike
581c30d3af docs: Update vscode extension link in get started 2024-11-29 16:06:31 +08:00
morris
6f992acf31 feat(mipi): fine tune DPHY PLL clock 2024-11-29 10:04:38 +08:00
Konstantin Kondrashov
524dbd1fee feat(efuse): Adds 3 bit for PSRAM_CAP efuse field 2024-11-28 17:04:53 +02:00
xiongweichao
5bc5695ff0 fix(bt/bluedroid): fixed issues introduced by byte alignment
- esp_bt_uuid_t is byte aligned, tBT_UUID is 4-byte aligned.
2024-11-28 10:16:06 +08:00
zlq
0e37fdd1b0 fix: fix pll low temp bug (v5.3) 2024-11-27 19:17:48 +08:00
zwl
f776fa729f fix(ble): fixed the connect issue when rx error aa on ESP32-C6 2024-11-27 16:22:01 +08:00
Zhao Wei Liang
9f98a81bd2 fix(ble): fixed the connect issue when rx error aa on ESP32-H2
(cherry picked from commit 093b65e27c)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-11-27 16:03:44 +08:00
yiwenxiu
d78f993d01 feat(openthread): enhance wifi connection check in openthread ci cases 2024-11-27 15:47:12 +08:00
Chen Jian Hua
6e6c97fde4 feat(bt/bluedroid): Added BLE 5.0 throughput examples
(cherry picked from commit 6d3a82eecf)

Co-authored-by: zhangbowen <zhangbowen@espressif.com>
2024-11-27 11:14:33 +08:00
Chen Yudong
2833b442d4 ci: increase test_wifi_power_save got ip timeout 2024-11-26 20:17:29 +08:00
Erhan Kurubas
e2db600c8c fix(sysview): add prefix to the module desc to avoid stuck in Segger SystemView app
Closes https://github.com/espressif/esp-idf/issues/10483
2024-11-26 10:56:02 +01:00
Armando
938c77ebea change(sdmmc): allow speciying pins for IOMUX slots as well 2024-11-26 17:44:17 +08:00
Armando
6c210c4930 test(emmc): disabled emmc tests on p4 2024-11-26 17:44:17 +08:00
Armando
60720adb03 ci(sd): use uart0 as usj always serial noise on ci on p4 2024-11-26 17:43:27 +08:00
Erhan Kurubas
235168e558 change(sysview): support single/dual core targets in heap_trace_log test 2024-11-26 08:49:46 +01:00
Armando
8cf7188e7c test(sd): no uhs1 runner 2024-11-26 15:13:22 +08:00
Konstantin Kondrashov
a593f41b25 feat(efuse): Adds efuse ADC calib data for ESP32-C61 2024-11-25 17:05:48 +02:00
Jin Cheng
c1324755aa feat(bt/bluedroid): added events to indicate the profile states of HFP 2024-11-25 16:51:04 +08:00
wanckl
99f7733d8e fix(esp_adc): fixed adc continue monitor don't work issue
Closes https://github.com/espressif/esp-idf/issues/14769
Closes https://github.com/espressif/esp-idf/issues/14814
2024-11-25 15:48:11 +08:00
C.S.M
1a1fb67b7f fix(jpeg_decoder): Fix jpeg decoder get picture information 2024-11-25 14:42:40 +08:00
C.S.M
286bf6b096 fix(jpeg): Fix the length of com marker 2024-11-25 14:42:40 +08:00
Xu Si Yu
56aaf05ac1 feat(openthread): adjusted the default macro configurations of openthread 2024-11-25 14:34:10 +08:00
C.S.M
ee6f31b279 test(spi_flash): Fix some failing test related to spi flash 2024-11-25 14:28:01 +08:00
Xu Si Yu
2c4b02e64c feat(openthread): support using custom header file 2024-11-25 12:32:54 +08:00
Jin Cheng
fddec5d90e fix(bt/bluedroid): disconnect SDP connection on receiving incorrect response 2024-11-25 10:19:38 +08:00
Tomas Rezucha
177679b74e feat(hal/usb): Make USB-DWC HAL&LL configuration independent
Previously, we included symbols from soc/usb_dwc_cfg.h and configured
the HAL and LL according to it. Now we get the configuration in runtime
from USB-DWC registers.

Added missing definition for USB FS peripheral on ESP32-P4.
2024-11-22 17:32:22 +08:00
Tomas Rezucha
1d5a8f6952 feat(hal/usb): Add USB UTMI PHY HAL
* Add a bare-bones HAL API for the USB UTMI PHY
* Split USB-DWC LL per target
2024-11-22 17:32:22 +08:00
Tomas Rezucha
7019a9f61c feat(soc/usb): Add USB related changes to soc_caps and usb_dwc_periph
This commit changes the following:

- Add types and data structures indicating the available USB controllers
for each target.
2024-11-22 17:32:22 +08:00
Jin Cheng
ef4559a09d fix(bt/controller): Fixed some controller bugs on ESP32
- Fixed wrong logic in handling sniff transaction collision at slave
      side
    - Fixed the issue ACL is stopped too early before eSCO
2024-11-22 17:27:40 +08:00
Jin Cheng
c160316961 fix(bt/bluedroid): AG should send OK or other error codes to HF client
when it is driven by HF to initiate a call.
2024-11-22 17:27:40 +08:00
Konstantin Kondrashov
427e8e5fe4 feat(efuse): Adds efuse ADC calib data for ESP32-C5 2024-11-22 08:10:15 +02:00
Konstantin Kondrashov
b4ebb04184 feat(efuse): Adds efuse ADC calib data for ESP32-P4 2024-11-22 08:10:15 +02:00
Roman Leonov
823eff4553 docs(ext_port): Maintainers Notes for the External Port Driver 2024-11-21 12:57:40 +01:00
Richard Allen
14635c6e1f fix(ws_transport): Fix reading WS header bytes
Correct split header bytes

When the underlying transport returns header,
length, or mask bytes early, again call the
underlying transport.

This solves the WS parser getting offset when
the server sends a burst of frames where the
last WS header is split across packet boundaries,
so fewer than the needed bytes may be available.

Merges https://github.com/espressif/esp-idf/pull/14706
2024-11-21 10:39:38 +01:00
Frantisek Hrbata
8d768f675b fix(tools): re-raise ImportError without module name
The ImportError or ModuleNotFoundError might be raised without
specifying a module name. In this not so common situation, re-raise the
exception to print all the information that could assist in identifying
the problem.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-11-21 09:37:22 +01:00
nilesh.kale
d5237f09d5 fix(esp_http_client): Fix ota failure with openssl server
If the TLS server (e.g., openssl) closes connection with encrypted close-notify alert
then `errno` is not explicitly set on the socket by LwIP stack.
For this scenario, we must rely only on `ERR_TCP_TRANSPORT_CONNECTION_CLOSED_BY_FIN`
return value as the connection close case and do the graceful connection closure.

Closes https://github.com/espressif/esp-idf/issues/14724
2024-11-21 12:36:11 +05:30
harshal.patil
ea5c318031 fix(mbedtls/aes): Fix external memory corruption caused due to unaligned length cache sync
Fixes the memory corruption issue that arises due to external memory cache sync of unaligned
length bytes when L2 cache line size is greater than the L1 cache line size
2024-11-21 12:16:18 +05:30
Nachiket Kukade
78b5ff0750 fix(wpa_supplicant): Add an exception in wpa_supplicant sbom.yml 2024-11-21 11:52:05 +05:30
Jin Chen
cb9e8a3b31 fix(ble): change ld for ble scan coex issue
(cherry picked from commit dd499d7b2e)

Co-authored-by: cjin <jinchen@espressif.com>
2024-11-21 11:03:48 +08:00
Jin Chen
839007f0d9 fix(ble): fix ble light sleep error on esp32c2
(cherry picked from commit 23f7e33a97)

Co-authored-by: cjin <jinchen@espressif.com>
2024-11-21 11:03:46 +08:00
Daniel Mangum
6db2b4c1ad fix(usb_host): return ESP_ERR_NO_MEM on failed alloc in client register
Fixes issue where ESP_ERR_NO_MEM was being silently discarded after
cleaning up after a failed malloc in usb_host_client_register.

Signed-off-by: Daniel Mangum <georgedanielmangum@gmail.com>
2024-11-20 21:07:54 +08:00
Xu Si Yu
0245561d65 fix(openthread): fix a naming error of esp radio spinel 2024-11-20 15:44:04 +08:00
Rahul Tank
a76ecf7384 fix(nimble): Replace ESP_LOG* with esp_rom_printf in controller context callback 2024-11-19 17:40:46 +05:30
Luo Xu
946b9fd6c1 fix(ble_mesh): fixed heartbeat issue
(cherry picked from commit 167cd4762b)

Co-authored-by: luoxu <luoxu@espressif.com>
2024-11-19 18:03:25 +08:00
Chen Jichang
0526a285ed fix(mcpwm): fix mcpwm register offset on p4 2024-11-19 17:49:39 +08:00
yiwenxiu
e56baaed71 feat(openthread): flush ipv6 addr in openthread ci cases 2024-11-19 15:47:59 +08:00
laokaiyao
0a19d9ed71 ci(i2s): fix the potential overflow in multi_dev test 2024-11-19 15:32:57 +08:00
wanckl
e441ad4107 test(driver_i2s): p4 and c5 enable multi dut test 2024-11-19 11:50:05 +08:00
Chen Yudong
e7b6e57134 change: Update ping-cmd component to v1.0.0 2024-11-19 11:38:24 +08:00
Chen Jichang
45ca614851 fix(mcpwm): add warning about generator deadtime
Closes https://github.com/espressif/esp-idf/issues/14773
2024-11-19 11:00:38 +08:00
Chen Jichang
6a22acc02f fix(parlio): fix spelling error in reg_base.h 2024-11-19 11:00:22 +08:00
xiongweichao
82ef0a6b94 fix(bt/bluedroid): Fixed the incorrect error code returned
when receiving an invalid command
2024-11-19 07:11:20 +08:00
yinqingzhao
f74a170a2d fix(wifi): fix ap bandwidth is unknown in scan results 2024-11-18 20:09:53 +08:00
Frantisek Hrbata
63c565d95d feat(tools): unify sections in idf.py size reports for NG version
By default, esp-idf-size.ng displays all sections individually. This can
be confusing, especially if CONFIG_SOC_MEM_NON_CONTIGUOUS_SRAM is
enabled, resulting in sections like .dram0.data and .dram1.data being
abbreviated as two .data sections in the size report. To avoid confusion
for idf.py and cmake users, pass the --unify option to the underlying
esp_idf_size.ng by default.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-11-15 21:17:53 +08:00
Tan Yan Quan
eaa706503c fix(802.15.4): add case for 2015 frame enh-ack 2024-11-15 15:11:46 +08:00
wanlei
9aeaf03f95 feat(spi_master): add test clock src and config validation 2024-11-15 14:59:49 +08:00
wanckl
b5eca3a8a1 fix(driver_spi): enable p4 multi dut test 2024-11-15 14:59:49 +08:00
Abhinav Kudnar
3c8df3285d fix(nimble): Removed min/max macro defination from os.h
Closes https://github.com/espressif/esp-idf/issues/14840
2024-11-14 19:05:50 +08:00
Adam Múdry
eec8a3ab83 feat(nvs): Test nvs_partition_gen.py and nvs_check.py with pytest
Little fixes in nvs_check.py
2024-09-24 16:42:45 +02:00
Adam Múdry
a01257a976 fix(nvs): nvs_tool.py reduce false duplicate warnings 2024-09-24 10:02:11 +02:00
Adam Múdry
e0e131d246 refactor(nvs): nvs_tool.py integrity check refactor 2024-09-24 10:02:11 +02:00
2396 changed files with 139041 additions and 290464 deletions

View File

@@ -1,4 +1,4 @@
[codespell]
skip = build,*.yuv,components/fatfs/src/*,alice.txt,*.rgb,components/wpa_supplicant/*,components/esp_wifi/*
ignore-words-list = ser,dout,rsource,fram,inout,shs,ans,aci,unstall,unstalling,hart,wheight,ot,wel,parms
ignore-words-list = ser,dout,rsource,fram,inout,shs,ans,aci,unstall,unstalling,hart,wheight,ot,wel,parms,ehen
write-changes = true

View File

@@ -60,7 +60,9 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU for multiarch builds
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push

View File

@@ -8,10 +8,11 @@ on:
jobs:
release_zips:
name: Create release zip file
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Create a recursive clone source zip
uses: espressif/github-actions/release_zips@master
env:
RELEASE_PROJECT_NAME: ESP-IDF
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: espressif/release-zips-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release_project_name: ESP-IDF
git_extra_args: --shallow-since="1 year ago"

View File

@@ -219,7 +219,7 @@ pytest_build_system_macos:
PYENV_VERSION: "3.8"
# CCACHE_DIR: "/cache/idf_ccache". On macOS, you cannot write to this folder due to insufficient permissions.
CCACHE_DIR: "" # ccache will use "$HOME/Library/Caches/ccache".
CCACHE_MAXSIZE: "5G" # To preserve the limited Macbook storage. CCACHE automatically prunes old caches to fit the set limit.
build_docker:
extends:
- .before_script:minimal

View File

@@ -6,9 +6,9 @@ stages:
- pre_check
- build
- assign_test
- build_doc
- target_test
- host_test
- build_doc
- test_deploy
- deploy
- post_deploy
@@ -39,7 +39,7 @@ variables:
GIT_FETCH_EXTRA_FLAGS: "--no-recurse-submodules --prune --prune-tags"
# we're using .cache folder for caches
GIT_CLEAN_FLAGS: -ffdx -e .cache/
LATEST_GIT_TAG: v5.3.2
LATEST_GIT_TAG: v5.3.4
SUBMODULE_FETCH_TOOL: "tools/ci/ci_fetch_submodule.py"
# by default we will fetch all submodules
@@ -177,13 +177,21 @@ variables:
fi
# Custom OpenOCD
if [[ ! -z "$OOCD_DISTRO_URL" && "$CI_JOB_STAGE" == "target_test" ]]; then
echo "Using custom OpenOCD from ${OOCD_DISTRO_URL}"
wget $OOCD_DISTRO_URL
ARCH_NAME=$(basename $OOCD_DISTRO_URL)
tar -x -f $ARCH_NAME
export OPENOCD_SCRIPTS=$PWD/openocd-esp32/share/openocd/scripts
export PATH=$PWD/openocd-esp32/bin:$PATH
if [[ "$CI_JOB_STAGE" == "target_test" ]]; then
machine="$(uname -m)"
if [[ "$machine" == "armv7l" ]] ; then
OOCD_DISTRO_URL="$OOCD_DISTRO_URL_ARMHF"
elif [[ "$machine" == "aarch64" ]] ; then
OOCD_DISTRO_URL="$OOCD_DISTRO_URL_ARM64"
fi
if [[ ! -z "$OOCD_DISTRO_URL" ]]; then
echo "Using custom OpenOCD from ${OOCD_DISTRO_URL}"
wget $OOCD_DISTRO_URL
ARCH_NAME=$(basename $OOCD_DISTRO_URL)
tar -x -f $ARCH_NAME
export OPENOCD_SCRIPTS=$PWD/openocd-esp32/share/openocd/scripts
export PATH=$PWD/openocd-esp32/bin:$PATH
fi
fi
if [[ -n "$CI_PYTHON_TOOL_REPO" ]]; then

View File

@@ -19,6 +19,7 @@ check_submodule_sync:
dependencies: []
script:
- git submodule deinit --force .
- rm -rf .git/modules # remove all the cached metadata
# setting the default remote URL to the public one, to resolve relative location URLs
- git config remote.origin.url ${PUBLIC_IDF_URL}
# check if all submodules are correctly synced to public repository

View File

@@ -37,25 +37,16 @@
.if-dev-push: &if-dev-push
if: '$CI_COMMIT_REF_NAME != "master" && $CI_COMMIT_BRANCH !~ /^release\/v/ && $CI_COMMIT_TAG !~ /^v\d+\.\d+(\.\d+)?($|-)/ && $CI_COMMIT_TAG !~ /^qa-test/ && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event")'
.if-schedule: &if-schedule
if: '$CI_PIPELINE_SOURCE == "schedule"'
.doc-rules:build:docs-full:
rules:
- <<: *if-qa-test-tag
when: never
- <<: *if-schedule
- <<: *if-protected
- <<: *if-label-build_docs
- <<: *if-label-docs_full
- <<: *if-dev-push
changes: *patterns-docs-full
.doc-rules:build:docs-full-prod:
rules:
- <<: *if-qa-test-tag
when: never
- <<: *if-protected-no_label
.doc-rules:build:docs-partial:
rules:
- <<: *if-qa-test-tag
@@ -92,13 +83,14 @@ check_docs_lang_sync:
stage: build_doc
tags:
- build_docs
needs:
- job: fast_template_app
artifacts: false
optional: true
script:
- if [ -n "${BREATHE_ALT_INSTALL_URL}" ]; then pip uninstall -y breathe && pip install -U ${BREATHE_ALT_INSTALL_URL}; fi
- cd docs
- build-docs -t $DOCTGT -bs $DOC_BUILDERS -l $DOCLANG build
artifacts:
expire_in: 4 days
when: always
parallel:
matrix:
- DOCLANG: ["en", "zh_CN"]
@@ -119,26 +111,12 @@ build_docs_html_full:
extends:
- .build_docs_template
- .doc-rules:build:docs-full
needs:
- job: fast_template_app
artifacts: false
optional: true
artifacts:
paths:
- docs/_build/*/*/*.txt
- docs/_build/*/*/html/*
variables:
DOC_BUILDERS: "html"
build_docs_html_full_prod:
extends:
- .build_docs_template
- .doc-rules:build:docs-full-prod
dependencies: [] # Stop build_docs jobs from downloading all previous job's artifacts
artifacts:
when: always
paths:
- docs/_build/*/*/*.txt
- docs/_build/*/*/html/*
expire_in: 4 days
variables:
DOC_BUILDERS: "html"
@@ -146,14 +124,12 @@ build_docs_html_partial:
extends:
- .build_docs_template
- .doc-rules:build:docs-partial
needs:
- job: fast_template_app
artifacts: false
optional: true
artifacts:
when: always
paths:
- docs/_build/*/*/*.txt
- docs/_build/*/*/html/*
expire_in: 4 days
variables:
DOC_BUILDERS: "html"
parallel:
@@ -163,43 +139,21 @@ build_docs_html_partial:
- DOCLANG: "zh_CN"
DOCTGT: "esp32p4"
build_docs_pdf:
extends:
- .build_docs_template
- .doc-rules:build:docs-full
needs:
- job: fast_template_app
artifacts: false
optional: true
allow_failure: true # TODO IDFCI-2216
artifacts:
paths:
- docs/_build/*/*/latex/*
variables:
DOC_BUILDERS: "latex"
build_docs_pdf_prod:
extends:
- .build_docs_template
- .doc-rules:build:docs-full-prod
dependencies: [] # Stop build_docs jobs from downloading all previous job's artifacts
allow_failure: true # TODO IDFCI-2216
artifacts:
paths:
- docs/_build/*/*/latex/*
variables:
DOC_BUILDERS: "latex"
.deploy_docs_template:
image: $ESP_IDF_DOC_ENV_IMAGE
variables:
DOCS_BUILD_DIR: "${IDF_PATH}/docs/_build/"
PYTHONUNBUFFERED: 1
# ensure all tags are fetched, need to know the latest/stable tag for the docs
GIT_STRATEGY: clone
GIT_DEPTH: 0
stage: test_deploy
tags:
- deploy
- shiny
script:
# ensure all tags are fetched, need to know the latest/stable tag for the docs
- git fetch --tags --prune
- add_doc_server_ssh_keys $DOCS_DEPLOY_PRIVATEKEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER
- export GIT_VER=$(git describe --always ${PIPELINE_COMMIT_SHA} --)
- deploy-docs
@@ -218,8 +172,6 @@ deploy_docs_preview:
optional: true
- job: build_docs_html_full
optional: true
- job: build_docs_pdf
optional: true
variables:
TYPE: "preview"
# older branches use DOCS_DEPLOY_KEY, DOCS_SERVER, DOCS_SERVER_USER, DOCS_PATH for preview server so we keep these names for 'preview'
@@ -234,12 +186,12 @@ deploy_docs_production:
# The DOCS_PROD_* variables used by this job are "Protected" so these branches must all be marked "Protected" in Gitlab settings
extends:
- .deploy_docs_template
- .doc-rules:build:docs-full-prod
rules:
- <<: *if-protected-no_label
stage: post_deploy
dependencies: # set dependencies to null to avoid missing artifacts issue
needs: # ensure runs after push_to_github succeeded
- build_docs_html_full_prod
- build_docs_pdf_prod
- build_docs_html_full
- job: push_to_github
artifacts: false
variables:
@@ -249,21 +201,23 @@ deploy_docs_production:
DOCS_DEPLOY_SERVER_USER: "$DOCS_PROD_SERVER_USER"
DOCS_DEPLOY_PATH: "$DOCS_PROD_PATH"
DOCS_DEPLOY_URL_BASE: "https://docs.espressif.com/projects/esp-idf"
DEPLOY_STABLE: 1
check_doc_links:
extends:
- .build_docs_template
- .doc-rules:build:docs-full-prod
rules:
- <<: *if-protected-no_label
stage: post_deploy
needs:
- job: deploy_docs_production
artifacts: false
tags: ["build", "amd64", "internet"]
artifacts:
when: always
paths:
- docs/_build/*/*/*.txt
- docs/_build/*/*/linkcheck/*.txt
expire_in: 1 week
allow_failure: true
script:
- cd docs

View File

@@ -133,7 +133,8 @@ test_cli_installer:
script:
# Tools must be downloaded for testing
# We could use "idf_tools.py download all", but we don't want to install clang because of its huge size
- python3 ${IDF_PATH}/tools/idf_tools.py download required qemu-riscv32 qemu-xtensa cmake
# cmake@version that is supported
- python3 ${IDF_PATH}/tools/idf_tools.py download required qemu-riscv32 qemu-xtensa cmake cmake@3.16.3
- cd ${IDF_PATH}/tools/test_idf_tools
- python3 -m pip install jsonschema
- python3 ./test_idf_tools.py -v
@@ -364,3 +365,17 @@ test_idf_pytest_plugin:
script:
- cd tools/ci/idf_pytest
- pytest --junitxml=${CI_PROJECT_DIR}/XUNIT_RESULT.xml
test_nvs_gen_check:
extends: .host_test_template
artifacts:
paths:
- XUNIT_RESULT.xml
- components/nvs_flash/nvs_partition_tool
reports:
junit: XUNIT_RESULT.xml
variables:
LC_ALL: C.UTF-8
script:
- cd ${IDF_PATH}/components/nvs_flash/nvs_partition_tool
- pytest --noconftest test_nvs_gen_check.py --junitxml=XUNIT_RESULT.xml

View File

@@ -160,6 +160,8 @@ pipeline_variables:
if [ -n "$CI_PYTHON_CONSTRAINT_BRANCH" ]; then
echo "BUILD_AND_TEST_ALL_APPS=1" >> pipeline.env
fi
- echo "OOCD_DISTRO_URL_ARMHF=$OOCD_DISTRO_URL_ARMHF" >> pipeline.env
- echo "OOCD_DISTRO_URL_ARM64=$OOCD_DISTRO_URL_ARM64" >> pipeline.env
- cat pipeline.env
- python tools/ci/artifacts_handler.py upload --type modified_files_and_components_report
artifacts:

View File

@@ -31,7 +31,8 @@ test_cli_installer_win:
IDF_PATH: "$CI_PROJECT_DIR"
script:
# Tools must be downloaded for testing
- python ${IDF_PATH}\tools\idf_tools.py download required qemu-riscv32 qemu-xtensa cmake
# cmake@version that is supported
- python ${IDF_PATH}\tools\idf_tools.py download required qemu-riscv32 qemu-xtensa cmake cmake@3.16.3
- cd ${IDF_PATH}\tools\test_idf_tools
- python -m pip install jsonschema
- python .\test_idf_tools.py

4
.gitmodules vendored
View File

@@ -54,8 +54,10 @@
sbom-supplier = Person: Dave Gamble
sbom-url = https://github.com/DaveGamble/cJSON
sbom-description = Ultralightweight JSON parser in ANSI C
sbom-hash = acc76239bee01d8e9c858ae2cab296704e52d916
sbom-hash = 8f2beb57ddad1f94bed899790b00f46df893ccac
sbom-cve-exclude-list = CVE-2024-31755 Resolved in v1.7.18
sbom-cve-exclude-list = CVE-2023-26819 Resolved in commit a328d65ad490b64da8c87523cbbfe16050ba5bf6
sbom-cve-exclude-list = CVE-2023-53154 Resolved in v1.7.18
[submodule "components/mbedtls/mbedtls"]
path = components/mbedtls/mbedtls

View File

@@ -70,11 +70,6 @@ repos:
language: python
pass_filenames: false
always_run: true
- id: check-deprecated-kconfigs-options
name: Check if any Kconfig Options Deprecated
entry: tools/ci/check_deprecated_kconfigs.py
language: python
files: 'sdkconfig\.ci$|sdkconfig\.rename$|sdkconfig.*$'
- id: cmake-lint
name: Check CMake Files Format
entry: cmakelint --linelength=120 --spaces=4 --filter=-whitespace/indent
@@ -154,7 +149,7 @@ repos:
require_serial: true
additional_dependencies:
- PyYAML == 5.3.1
- idf-build-apps~=2.0
- idf-build-apps~=2.5
- id: sort-yaml-files
name: sort yaml files
entry: tools/ci/sort_yaml.py
@@ -236,6 +231,7 @@ repos:
name: Lint rST files in docs folder using Sphinx Lint
files: ^(docs/en|docs/zh_CN)/.*\.(rst|inc)$
- repo: https://github.com/espressif/esp-idf-kconfig.git
rev: v2.3.0
rev: v2.5.0
hooks:
- id: check-kconfig-files
- id: check-deprecated-kconfig-options

View File

@@ -152,6 +152,10 @@ if(CONFIG_COMPILER_DUMP_RTL_FILES)
list(APPEND compile_options "-fdump-rtl-expand")
endif()
idf_build_set_property(GDBINIT_FILES_PREFIX_MAP "${BUILD_DIR}/gdbinit/prefix_map")
file(MAKE_DIRECTORY "${BUILD_DIR}/gdbinit")
file(WRITE "${BUILD_DIR}/gdbinit/prefix_map" "")
if(NOT ${CMAKE_C_COMPILER_VERSION} VERSION_LESS 8.0.0)
if(CONFIG_COMPILER_HIDE_PATHS_MACROS)
list(APPEND compile_options "-fmacro-prefix-map=${CMAKE_SOURCE_DIR}=.")

View File

@@ -655,5 +655,4 @@ mainmenu "Espressif IoT Development Framework Configuration"
- CONFIG_BOOTLOADER_CACHE_32BIT_ADDR_QUAD_FLASH
- CONFIG_ESP_WIFI_EAP_TLS1_3
- CONFIG_ESP_WIFI_ENABLE_ROAMING_APP
- CONFIG_USB_HOST_EXT_PORT_SUPPORT_LS
- CONFIG_USB_HOST_EXT_PORT_RESET_ATTEMPTS

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*/
@@ -92,7 +92,7 @@ static esp_err_t esp_apptrace_membufs_swap(esp_apptrace_membufs_proto_data_t *pr
// switch to new block
proto->state.in_block++;
proto->hw->swap(new_block_num);
proto->hw->swap(new_block_num, proto->state.markers[prev_block_num]);
// handle data from host
esp_hostdata_hdr_t *hdr = (esp_hostdata_hdr_t *)proto->blocks[new_block_num].start;
@@ -148,6 +148,18 @@ static esp_err_t esp_apptrace_membufs_swap_waitus(esp_apptrace_membufs_proto_dat
if (res != ESP_OK) {
break;
}
#if CONFIG_IDF_TARGET_ESP32S3
/*
* ESP32S3 has a serious data corruption issue with the transferred data to host.
* This delay helps reduce the failure rate by temporarily reducing heavy memory writes
* from RTOS-level tracing and giving OpenOCD more time to read trace memory before
* the current thread continues execution. While this doesn't completely prevent
* memory access from other threads/cores/ISRs, it has shown to significantly improve
* reliability when combined with CRC checks in OpenOCD. In practice, this reduces the
* number of retries needed to read an entire block without corruption.
*/
esp_rom_delay_us(100);
#endif
}
return res;
}
@@ -339,7 +351,7 @@ uint8_t *esp_apptrace_membufs_up_buffer_get(esp_apptrace_membufs_proto_data_t *p
esp_err_t esp_apptrace_membufs_up_buffer_put(esp_apptrace_membufs_proto_data_t *proto, uint8_t *ptr, esp_apptrace_tmo_t *tmo)
{
esp_apptrace_membufs_pkt_end(ptr);
// TODO: mark block as busy in order not to re-use it for other tracing calls until it is completely written
// TODO: mark block as busy in order not to reuse it for other tracing calls until it is completely written
// TODO: avoid potential situation when all memory is consumed by low prio tasks which can not complete writing due to
// higher prio tasks and the latter can not allocate buffers at all
// this is abnormal situation can be detected on host which will receive only uncompleted buffers

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*/
@@ -50,14 +50,20 @@ static uint8_t *esp_apptrace_riscv_down_buffer_get(esp_apptrace_riscv_data_t *hw
static esp_err_t esp_apptrace_riscv_down_buffer_put(esp_apptrace_riscv_data_t *hw_data, uint8_t *ptr, esp_apptrace_tmo_t *tmo);
static bool esp_apptrace_riscv_host_is_connected(esp_apptrace_riscv_data_t *hw_data);
static esp_err_t esp_apptrace_riscv_buffer_swap_start(uint32_t curr_block_id);
static esp_err_t esp_apptrace_riscv_buffer_swap(uint32_t new_block_id);
static esp_err_t esp_apptrace_riscv_buffer_swap(uint32_t new_block_id, uint32_t prev_block_len);
static esp_err_t esp_apptrace_riscv_buffer_swap_end(uint32_t new_block_id, uint32_t prev_block_len);
static bool esp_apptrace_riscv_host_data_pending(void);
const static char *TAG = "esp_apptrace";
static esp_apptrace_riscv_ctrl_block_t s_tracing_ctrl[CONFIG_FREERTOS_NUMBER_OF_CORES];
#if SOC_CACHE_INTERNAL_MEM_VIA_L1CACHE
#define APPTRACE_DRAM_ATTR TCM_DRAM_ATTR
#else
#define APPTRACE_DRAM_ATTR
#endif
static APPTRACE_DRAM_ATTR esp_apptrace_riscv_ctrl_block_t s_tracing_ctrl[CONFIG_FREERTOS_NUMBER_OF_CORES];
esp_apptrace_hw_t *esp_apptrace_jtag_hw_get(void **data)
{
@@ -92,7 +98,7 @@ esp_apptrace_hw_t *esp_apptrace_jtag_hw_get(void **data)
}
/* Advertises apptrace control block address to host.
This function can be overriden with custom implementation,
This function can be overridden with custom implementation,
e.g. OpenOCD flasher stub use own implementation of it. */
__attribute__((weak)) int esp_apptrace_advertise_ctrl_block(void *ctrl_block_addr)
{
@@ -103,7 +109,7 @@ __attribute__((weak)) int esp_apptrace_advertise_ctrl_block(void *ctrl_block_add
}
/* Returns up buffers config.
This function can be overriden with custom implementation,
This function can be overridden with custom implementation,
e.g. OpenOCD flasher stub use own implementation of it. */
__attribute__((weak)) void esp_apptrace_get_up_buffers(esp_apptrace_mem_block_t mem_blocks_cfg[2])
{
@@ -165,7 +171,7 @@ static esp_err_t esp_apptrace_riscv_init(esp_apptrace_riscv_data_t *hw_data)
}
// notify host about control block address
int res = esp_apptrace_advertise_ctrl_block(&s_tracing_ctrl[core_id]);
assert(res == 0 && "Falied to send config to host!");
assert(res == 0 && "Failed to send config to host!");
return ESP_OK;
}
@@ -347,7 +353,7 @@ static esp_err_t esp_apptrace_riscv_buffer_swap_end(uint32_t new_block_id, uint3
return ESP_OK;
}
static esp_err_t esp_apptrace_riscv_buffer_swap(uint32_t new_block_id)
static esp_err_t esp_apptrace_riscv_buffer_swap(uint32_t new_block_id, uint32_t prev_block_len)
{
/* do nothing */
return ESP_OK;

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*/
@@ -12,7 +12,7 @@
// ======================
// Xtensa has useful feature: TRAX debug module. It allows recording program execution flow at run-time without disturbing CPU.
// Exectution flow data are written to configurable Trace RAM block. Besides accessing Trace RAM itself TRAX module also allows to read/write
// Execution flow data are written to configurable Trace RAM block. Besides accessing Trace RAM itself TRAX module also allows to read/write
// trace memory via its registers by means of JTAG, APB or ERI transactions.
// ESP32 has two Xtensa cores with separate TRAX modules on them and provides two special memory regions to be used as trace memory.
// Chip allows muxing access to those trace memory blocks in such a way that while one block is accessed by CPUs another one can be accessed by host
@@ -47,7 +47,7 @@
// 2. TRAX Registers layout
// ========================
// This module uses two TRAX HW registers to communicate with host SW (OpenOCD).
// This module uses two TRAX HW registers and one Performance Monitor register to communicate with host SW (OpenOCD).
// - Control register uses TRAX_DELAYCNT as storage. Only lower 24 bits of TRAX_DELAYCNT are writable. Control register has the following bitfields:
// | 31..XXXXXX..24 | 23 .(host_connect). 23| 22..(block_id)..15 | 14..(block_len)..0 |
// 14..0 bits - actual length of user data in trace memory block. Target updates it every time it fills memory block and exposes it to host.
@@ -55,9 +55,15 @@
// 21..15 bits - trace memory block transfer ID. Block counter. It can overflow. Updated by target, host should not modify it. Actually can be 2 bits;
// 22 bit - 'host data present' flag. If set to one there is data from host, otherwise - no host data;
// 23 bit - 'host connected' flag. If zero then host is not connected and tracing module works in post-mortem mode, otherwise in streaming mode;
// - Status register uses TRAX_TRIGGERPC as storage. If this register is not zero then current CPU is changing TRAX registers and
// this register holds address of the instruction which application will execute when it finishes with those registers modifications.
// See 'Targets Connection' setion for details.
// - Status register uses TRAX_TRIGGERPC as storage. If this register is not zero then current CPU is changing TRAX registers and
// this register holds address of the instruction which application will execute when it finishes with those registers modifications.
// See 'Targets Connection' section for details.
// - CRC16 register uses ERI_PERFMON_PM1 as storage. This register is used to store CRC16 checksum of the exposed trace memory block.
// The register has the following format:
// | 31..16 (CRC indicator) | 15..0 (CRC16 value) |
// CRC indicator (0xA55A) is used to distinguish valid CRC values from other data that might be in the register.
// CRC16 is calculated over the entire exposed block and is updated every time a block is exposed to the host.
// This allows the host to verify data integrity of the received trace data.
// 3. Modes of operation
// =====================
@@ -127,7 +133,7 @@
// Access to internal module's data is synchronized with custom mutex. Mutex is a wrapper for portMUX_TYPE and uses almost the same sync mechanism as in
// vPortCPUAcquireMutex/vPortCPUReleaseMutex. The mechanism uses S32C1I Xtensa instruction to implement exclusive access to module's data from tasks and
// ISRs running on both cores. Also custom mutex allows specifying timeout for locking operation. Locking routine checks underlaying mutex in cycle until
// ISRs running on both cores. Also custom mutex allows specifying timeout for locking operation. Locking routine checks underlying mutex in cycle until
// it gets its ownership or timeout expires. The differences of application tracing module's mutex implementation from vPortCPUAcquireMutex/vPortCPUReleaseMutex are:
// - Support for timeouts.
// - Local IRQs for CPU which owns the mutex are disabled till the call to unlocking routine. This is made to avoid possible task's prio inversion.
@@ -142,9 +148,9 @@
// Timeout mechanism is based on xthal_get_ccount() routine and supports timeout values in microseconds.
// There are two situations when task/ISR can be delayed by tracing API call. Timeout mechanism takes into account both conditions:
// - Trace data are locked by another task/ISR. When wating on trace data lock.
// - Trace data are locked by another task/ISR. When waiting on trace data lock.
// - Current TRAX memory input block is full when working in streaming mode (host is connected). When waiting for host to complete previous block reading.
// When wating for any of above conditions xthal_get_ccount() is called periodically to calculate time elapsed from trace API routine entry. When elapsed
// When waiting for any of above conditions xthal_get_ccount() is called periodically to calculate time elapsed from trace API routine entry. When elapsed
// time exceeds specified timeout value operation is canceled and ESP_ERR_TIMEOUT code is returned.
#include "sdkconfig.h"
#include "soc/soc.h"
@@ -159,11 +165,15 @@
#include "esp_log.h"
#include "esp_app_trace_membufs_proto.h"
#include "esp_app_trace_port.h"
#include "esp_rom_crc.h"
// TRAX is disabled, so we use its registers for our own purposes
// | 31..XXXXXX..24 | 23 .(host_connect). 23 | 22 .(host_data). 22| 21..(block_id)..15 | 14..(block_len)..0 |
#define ESP_APPTRACE_TRAX_CTRL_REG ERI_TRAX_DELAYCNT
#define ESP_APPTRACE_TRAX_STAT_REG ERI_TRAX_TRIGGERPC
#define ESP_APPTRACE_TRAX_CRC16_REG ERI_PERFMON_PM1
#define ESP_APPTRACE_CRC_INDICATOR (0xA55AU << 16)
#define ESP_APPTRACE_TRAX_BLOCK_LEN_MSK 0x7FFFUL
#define ESP_APPTRACE_TRAX_BLOCK_LEN(_l_) ((_l_) & ESP_APPTRACE_TRAX_BLOCK_LEN_MSK)
@@ -198,7 +208,7 @@ static uint8_t *esp_apptrace_trax_down_buffer_get(esp_apptrace_trax_data_t *hw_d
static esp_err_t esp_apptrace_trax_down_buffer_put(esp_apptrace_trax_data_t *hw_data, uint8_t *ptr, esp_apptrace_tmo_t *tmo);
static bool esp_apptrace_trax_host_is_connected(esp_apptrace_trax_data_t *hw_data);
static esp_err_t esp_apptrace_trax_buffer_swap_start(uint32_t curr_block_id);
static esp_err_t esp_apptrace_trax_buffer_swap(uint32_t new_block_id);
static esp_err_t esp_apptrace_trax_buffer_swap(uint32_t new_block_id, uint32_t prev_block_len);
static esp_err_t esp_apptrace_trax_buffer_swap_end(uint32_t new_block_id, uint32_t prev_block_len);
static bool esp_apptrace_trax_host_data_pending(void);
@@ -498,7 +508,8 @@ static esp_err_t esp_apptrace_trax_buffer_swap_start(uint32_t curr_block_id)
uint32_t acked_block = ESP_APPTRACE_TRAX_BLOCK_ID_GET(ctrl_reg);
uint32_t host_to_read = ESP_APPTRACE_TRAX_BLOCK_LEN_GET(ctrl_reg);
if (host_to_read != 0 || acked_block != (curr_block_id & ESP_APPTRACE_TRAX_BLOCK_ID_MSK)) {
ESP_APPTRACE_LOGD("HC[%d]: Can not switch %" PRIx32 " %" PRIu32 " %" PRIx32 " %" PRIx32 "/%" PRIx32, esp_cpu_get_core_id(), ctrl_reg, host_to_read, acked_block,
ESP_APPTRACE_LOGD("HC[%d]: Can not switch %" PRIx32 " %" PRIu32 " %" PRIx32 " %" PRIx32 "/%" PRIx32,
esp_cpu_get_core_id(), ctrl_reg, host_to_read, acked_block,
curr_block_id & ESP_APPTRACE_TRAX_BLOCK_ID_MSK, curr_block_id);
res = ESP_ERR_NO_MEM;
goto _on_err;
@@ -514,14 +525,22 @@ static esp_err_t esp_apptrace_trax_buffer_swap_end(uint32_t new_block_id, uint32
{
uint32_t ctrl_reg = eri_read(ESP_APPTRACE_TRAX_CTRL_REG);
uint32_t host_connected = ESP_APPTRACE_TRAX_HOST_CONNECT & ctrl_reg;
eri_write(ESP_APPTRACE_TRAX_CTRL_REG, ESP_APPTRACE_TRAX_BLOCK_ID(new_block_id) |
host_connected | ESP_APPTRACE_TRAX_BLOCK_LEN(prev_block_len));
esp_apptrace_trax_buffer_swap_unlock();
return ESP_OK;
}
static esp_err_t esp_apptrace_trax_buffer_swap(uint32_t new_block_id)
static esp_err_t esp_apptrace_trax_buffer_swap(uint32_t new_block_id, uint32_t prev_block_len)
{
/* Before switching to the new block, calculate CRC16 of the current block */
if (prev_block_len > 0) {
const uint8_t *prev_block_start = s_trax_blocks[!((new_block_id % 2))];
uint16_t crc16 = esp_rom_crc16_le(0, prev_block_start, prev_block_len);
eri_write(ESP_APPTRACE_TRAX_CRC16_REG, crc16 | ESP_APPTRACE_CRC_INDICATOR);
ESP_APPTRACE_LOGD("CRC16:%x %d @%x", crc16, prev_block_len, prev_block_start);
}
esp_apptrace_trax_select_memory_block(new_block_id);
return ESP_OK;
}

View File

@@ -29,7 +29,7 @@ typedef struct {
typedef struct {
esp_err_t (*swap_start)(uint32_t curr_block_id);
esp_err_t (*swap)(uint32_t new_block_id);
esp_err_t (*swap)(uint32_t new_block_id, uint32_t prev_block_len);
esp_err_t (*swap_end)(uint32_t new_block_id, uint32_t prev_block_len);
bool (*host_data_pending)(void);
} esp_apptrace_membufs_proto_hw_t;

View File

@@ -108,7 +108,7 @@ static void _cbSendTaskList(void) {
* Called from SystemView when asked by the host, returns the
* current system time in micro seconds.
*/
static U64 _cbGetTime(void) {
__attribute__((unused)) static U64 _cbGetTime(void) {
U64 Time;
Time = xTaskGetTickCountFromISR();
@@ -260,7 +260,10 @@ void SYSVIEW_SendTaskInfo(U32 TaskID, const char* sName, unsigned Prio, U32 Stac
*/
// Callbacks provided to SYSTEMVIEW by FreeRTOS
const SEGGER_SYSVIEW_OS_API SYSVIEW_X_OS_TraceAPI = {
_cbGetTime,
/* Callback _cbGetTime locks xKernelLock inside xTaskGetTickCountFromISR, this can cause deadlock on multi-core.
To prevent deadlock, always lock xKernelLock before s_sys_view_lock. Omitting the callback here results in sending
SYSVIEW_EVTID_SYSTIME_CYCLES events instead of SYSVIEW_EVTID_SYSTIME_US */
NULL,
_cbSendTaskList,
};

View File

@@ -21,7 +21,7 @@ const static char *TAG = "sysview_heap_trace";
#endif
static SEGGER_SYSVIEW_MODULE s_esp_sysview_heap_module = {
.sModule = "ESP32 SystemView Heap Tracing Module",
.sModule = "M=ESP32 SystemView Heap Tracing Module",
.NumEvents = 2,
};

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -41,6 +41,7 @@ typedef struct ota_ops_entry_ {
bool need_erase;
uint32_t wrote_size;
uint8_t partial_bytes;
bool ota_resumption;
WORD_ALIGNED_ATTR uint8_t partial_data[16];
LIST_ENTRY(ota_ops_entry_) entries;
} ota_ops_entry_t;
@@ -111,6 +112,22 @@ static esp_ota_img_states_t set_new_state_otadata(void)
#endif
}
static ota_ops_entry_t* esp_ota_init_entry(const esp_partition_t *partition)
{
ota_ops_entry_t *new_entry = (ota_ops_entry_t *) calloc(1, sizeof(ota_ops_entry_t));
if (new_entry == NULL) {
return NULL;
}
LIST_INSERT_HEAD(&s_ota_ops_entries_head, new_entry, entries);
new_entry->part = partition;
new_entry->handle = ++s_ota_ops_last_handle;
return new_entry;
}
esp_err_t esp_ota_begin(const esp_partition_t *partition, size_t image_size, esp_ota_handle_t *out_handle)
{
ota_ops_entry_t *new_entry;
@@ -144,6 +161,13 @@ esp_err_t esp_ota_begin(const esp_partition_t *partition, size_t image_size, esp
}
#endif
new_entry = esp_ota_init_entry(partition);
if (new_entry == NULL) {
return ESP_ERR_NO_MEM;
}
new_entry->need_erase = (image_size == OTA_WITH_SEQUENTIAL_WRITES);
*out_handle = new_entry->handle;
if (image_size != OTA_WITH_SEQUENTIAL_WRITES) {
// If input image size is 0 or OTA_SIZE_UNKNOWN, erase entire partition
if ((image_size == 0) || (image_size == OTA_SIZE_UNKNOWN)) {
@@ -157,16 +181,44 @@ esp_err_t esp_ota_begin(const esp_partition_t *partition, size_t image_size, esp
}
}
new_entry = (ota_ops_entry_t *) calloc(sizeof(ota_ops_entry_t), 1);
return ESP_OK;
}
esp_err_t esp_ota_resume(const esp_partition_t *partition, const size_t erase_size, const size_t image_offset, esp_ota_handle_t *out_handle)
{
ota_ops_entry_t *new_entry;
if ((partition == NULL) || (out_handle == NULL)) {
return ESP_ERR_INVALID_ARG;
}
if (image_offset > partition->size) {
return ESP_ERR_INVALID_ARG;
}
partition = esp_partition_verify(partition);
if (partition == NULL) {
return ESP_ERR_NOT_FOUND;
}
// The staging partition cannot be of type Factory, but the final partition can be.
if (!is_ota_partition(partition)) {
return ESP_ERR_INVALID_ARG;
}
const esp_partition_t* running_partition = esp_ota_get_running_partition();
if (partition == running_partition) {
return ESP_ERR_OTA_PARTITION_CONFLICT;
}
new_entry = esp_ota_init_entry(partition);
if (new_entry == NULL) {
return ESP_ERR_NO_MEM;
}
LIST_INSERT_HEAD(&s_ota_ops_entries_head, new_entry, entries);
new_entry->part = partition;
new_entry->handle = ++s_ota_ops_last_handle;
new_entry->need_erase = (image_size == OTA_WITH_SEQUENTIAL_WRITES);
new_entry->ota_resumption = true;
new_entry->wrote_size = image_offset;
new_entry->need_erase = (erase_size == OTA_WITH_SEQUENTIAL_WRITES);
*out_handle = new_entry->handle;
return ESP_OK;
}

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -99,6 +99,32 @@ int esp_ota_get_app_elf_sha256(char* dst, size_t size) __attribute__((deprecated
*/
esp_err_t esp_ota_begin(const esp_partition_t* partition, size_t image_size, esp_ota_handle_t* out_handle);
/**
* @brief Resume an interrupted OTA update by continuing to write to the specified partition.
*
* This function is used when an OTA update was previously started and needs to be resumed after an interruption.
* It continues the OTA process from the specified offset within the partition.
*
* Unlike esp_ota_begin(), this function does not erase the partition which receives the OTA update, but rather expects that part of the image
* has already been written correctly, and it resumes writing from the given offset.
*
* @param partition Pointer to info for the partition which is receiving the OTA update. Required.
* @param erase_size Specifies how much flash memory to erase before resuming OTA, depending on whether a sequential write or a bulk erase is being used.
* @param image_offset Offset from where to resume the OTA process. Should be set to the number of bytes already written.
* @param out_handle On success, returns a handle that should be used for subsequent esp_ota_write() and esp_ota_end() calls.
*
* @return
* - ESP_OK: OTA operation resumed successfully.
* - ESP_ERR_INVALID_ARG: partition, out_handle were NULL or image_offset arguments is negative, or partition doesn't point to an OTA app partition.
* - ESP_ERR_NO_MEM: Cannot allocate memory for OTA operation.
* - ESP_ERR_OTA_PARTITION_CONFLICT: Partition holds the currently running firmware, cannot update in place.
* - ESP_ERR_NOT_FOUND: Partition argument not found in partition table.
* - ESP_ERR_OTA_SELECT_INFO_INVALID: The OTA data partition contains invalid data.
* - ESP_ERR_INVALID_SIZE: Partition doesn't fit in configured flash size.
* - ESP_ERR_FLASH_OP_TIMEOUT or ESP_ERR_FLASH_OP_FAIL: Flash write failed.
*/
esp_err_t esp_ota_resume(const esp_partition_t *partition, const size_t erase_size, const size_t image_offset, esp_ota_handle_t *out_handle);
/**
* @brief Write OTA update data to partition
*

View File

@@ -1,7 +0,0 @@
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
components/app_update/test_apps:
disable:
- if: IDF_TARGET in ["esp32c6", "esp32h2", "esp32c5"]
temporary: true
reason: target esp32c6, esp32h2 esp32c5 is not supported yet # TODO: [ESP32C5] IDF-8638

View File

@@ -1,32 +0,0 @@
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import re
import pytest
from pytest_embedded import Dut
DEFAULT_TIMEOUT = 20
TEST_SUBMENU_PATTERN_PYTEST = re.compile(rb'\s+\((\d+)\)\s+"([^"]+)"\r?\n')
def run_multiple_stages(dut: Dut, test_case_num: int, stages: int) -> None:
for stage in range(1, stages + 1):
dut.write(str(test_case_num))
dut.expect(TEST_SUBMENU_PATTERN_PYTEST, timeout=DEFAULT_TIMEOUT)
dut.write(str(stage))
if stage != stages:
dut.expect_exact('Press ENTER to see the list of tests.')
@pytest.mark.supported_targets
@pytest.mark.temp_skip_ci(targets=['esp32c6', 'esp32h2'], reason='c6/h2 support TBD')
@pytest.mark.generic
def test_app_update(dut: Dut) -> None:
extra_data = dut.parse_test_menu()
for test_case in extra_data:
if test_case.type != 'multi_stage':
dut.write(str(test_case.index))
else:
run_multiple_stages(dut, test_case.index, len(test_case.subcases))
dut.expect_unity_test_output(timeout=90)
dut.expect_exact("Enter next test, or 'enter' to see menu")

View File

@@ -0,0 +1,12 @@
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
components/app_update/test_apps:
enable:
- if: CONFIG_NAME == "defaults" and IDF_TARGET != "linux"
- if: CONFIG_NAME == "xip_psram" and IDF_TARGET in ["esp32s2", "esp32s3", "esp32p4"]
# S2 doesn't have ROM for flash
- if: CONFIG_NAME == "xip_psram_with_rom_impl" and IDF_TARGET in ["esp32s3", "esp32p4"]
disable:
- if: IDF_TARGET in ["esp32c6", "esp32h2", "esp32c5", "esp32c61"]
temporary: true
reason: target esp32c6, esp32h2 esp32c5 is not supported yet # TODO: [ESP32C5] IDF-8638

View File

@@ -1,4 +1,4 @@
idf_component_register(SRC_DIRS "."
PRIV_INCLUDE_DIRS "."
PRIV_REQUIRES cmock test_utils app_update bootloader_support nvs_flash driver spi_flash
PRIV_REQUIRES cmock test_utils app_update bootloader_support nvs_flash driver spi_flash esp_psram
WHOLE_ARCHIVE)

View File

@@ -6,6 +6,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "esp_log.h"
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <freertos/semphr.h>
@@ -113,3 +114,11 @@ TEST_CASE("esp_ota_get_partition_description", "[ota]")
};
TEST_ESP_ERR(ESP_ERR_NOT_FOUND, bootloader_common_get_partition_description(&not_app_pos, &app_desc1));
}
TEST_CASE("esp_ota_get_running_partition points to correct address", "[spi_flash]")
{
const esp_partition_t *factory = esp_partition_find_first(ESP_PARTITION_TYPE_APP, ESP_PARTITION_SUBTYPE_ANY, "factory");
const esp_partition_t* part = esp_ota_get_running_partition();
ESP_LOGI("running bin", "0x%p", (void*)part->address);
TEST_ASSERT_EQUAL_HEX32(factory->address, part->address);
}

View File

@@ -842,7 +842,7 @@ static void test_flow6(void)
TEST_CASE_MULTIPLE_STAGES("Switching between factory, OTA0 using esp_ota_write_with_offset", "[app_update][timeout=90][reset=DEEPSLEEP_RESET, DEEPSLEEP_RESET]", start_test, test_flow6, test_flow6);
//IDF-5145
TEST_CASE("Test bootloader_common_get_sha256_of_partition returns ESP_ERR_IMAGE_INVALID when image is ivalid", "[partitions]")
TEST_CASE("Test bootloader_common_get_sha256_of_partition returns ESP_ERR_IMAGE_INVALID when image is invalid", "[partitions]")
{
const esp_partition_t *cur_app = esp_ota_get_running_partition();
ESP_LOGI(TAG, "copy current app to next part");

View File

@@ -0,0 +1,51 @@
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import re
import pytest
from pytest_embedded import Dut
DEFAULT_TIMEOUT = 20
TEST_SUBMENU_PATTERN_PYTEST = re.compile(rb'\s+\((\d+)\)\s+"([^"]+)"\r?\n')
@pytest.mark.supported_targets
@pytest.mark.temp_skip_ci(targets=['esp32c6', 'esp32h2'], reason='c6/h2 support TBD')
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'defaults',
],
indirect=True,
)
def test_app_update(dut: Dut) -> None:
dut.run_all_single_board_cases(timeout=90)
@pytest.mark.supported_targets
@pytest.mark.temp_skip_ci(targets=['esp32c6', 'esp32h2'], reason='c6/h2 support TBD')
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'xip_psram',
],
indirect=True,
)
def test_app_update_xip_psram(dut: Dut) -> None:
dut.run_all_single_board_cases(timeout=90)
@pytest.mark.supported_targets
@pytest.mark.temp_skip_ci(targets=['esp32c6', 'esp32h2'], reason='c6/h2 support TBD')
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'xip_psram_with_rom_impl',
],
indirect=True,
)
def test_app_update_xip_psram_rom_impl(dut: Dut) -> None:
dut.run_all_single_board_cases(timeout=90)

View File

@@ -0,0 +1,2 @@
# don't delete.
# used for CI to compile a default config when 'sdkconfig.ci.xxxx' is exist

View File

@@ -0,0 +1,2 @@
CONFIG_SPIRAM=y
CONFIG_SPIRAM_XIP_FROM_PSRAM=y

View File

@@ -0,0 +1,3 @@
CONFIG_SPIRAM=y
CONFIG_SPIRAM_XIP_FROM_PSRAM=y
CONFIG_SPI_FLASH_ROM_IMPL=y

View File

@@ -0,0 +1,2 @@
CONFIG_IDF_TARGET="esp32s3"
CONFIG_BOOTLOADER_NUM_PIN_APP_TEST=18

View File

@@ -801,6 +801,33 @@ menu "Security features"
This can lead to permanent bricking of the device, in case all keys are revoked
because of signature verification failure.
config SECURE_BOOT_V2_ALLOW_EFUSE_RD_DIS
bool "Do not disable the ability to further read protect eFuses"
depends on SECURE_BOOT_V2_ENABLED
default n
help
If not set (default, recommended), on first boot the bootloader will burn the WR_DIS_RD_DIS
efuse when Secure Boot is enabled. This prevents any more efuses from being read protected.
If this option is set, it will remain possible to write the EFUSE_RD_DIS efuse field after Secure
Boot is enabled. This may allow an attacker to read-protect the BLK2 efuse (for ESP32) and
BLOCK4-BLOCK10 (i.e. BLOCK_KEY0-BLOCK_KEY5)(for other chips) holding the secure boot public key digest,
causing an immediate denial of service and possibly allowing an additional fault injection attack to
bypass the signature protection.
The option must be set when you need to program any read-protected key type into the efuses,
e.g., HMAC, ECDSA etc. after secure boot has already been enabled on the device.
Please refer to secure boot V2 documentation guide for more details.
NOTE: Once a BLOCK is read-protected, the application will read all zeros from that block
NOTE: If "UART ROM download mode (Permanently disabled (recommended))" or
"UART ROM download mode (Permanently switch to Secure mode (recommended))" is set,
then it is __NOT__ possible to read/write efuses using espefuse.py utility.
However, efuse can be read/written from the application
Please refer to the Secure Boot V2 documentation guide for more information.
config SECURE_BOOT_FLASH_BOOTLOADER_DEFAULT
bool "Flash bootloader along with other artifacts when using the default flash command"
depends on SECURE_BOOT_V2_ENABLED && SECURE_BOOT_BUILD_SIGNED_BINARIES
@@ -981,26 +1008,6 @@ menu "Security features"
image to this length. It is generally not recommended to set this option, unless you have a legacy
partitioning scheme which doesn't support 64KB aligned partition lengths.
config SECURE_BOOT_V2_ALLOW_EFUSE_RD_DIS
bool "Allow additional read protecting of efuses"
depends on SECURE_BOOT_INSECURE && SECURE_BOOT_V2_ENABLED
help
If not set (default, recommended), on first boot the bootloader will burn the WR_DIS_RD_DIS
efuse when Secure Boot is enabled. This prevents any more efuses from being read protected.
If this option is set, it will remain possible to write the EFUSE_RD_DIS efuse field after Secure
Boot is enabled. This may allow an attacker to read-protect the BLK2 efuse (for ESP32) and
BLOCK4-BLOCK10 (i.e. BLOCK_KEY0-BLOCK_KEY5)(for other chips) holding the public key digest, causing an
immediate denial of service and possibly allowing an additional fault injection attack to
bypass the signature protection.
NOTE: Once a BLOCK is read-protected, the application will read all zeros from that block
NOTE: If "UART ROM download mode (Permanently disabled (recommended))" or
"UART ROM download mode (Permanently switch to Secure mode (recommended))" is set,
then it is __NOT__ possible to read/write efuses using espefuse.py utility.
However, efuse can be read/written from the application
config SECURE_BOOT_ALLOW_UNUSED_DIGEST_SLOTS
bool "Leave unused digest slots available (not revoke)"
depends on SECURE_BOOT_INSECURE && SOC_EFUSE_REVOKE_BOOT_KEY_DIGESTS
@@ -1131,6 +1138,44 @@ menu "Security features"
If not set, the app does not care if the flash encryption eFuse bit is set or not.
config SECURE_FLASH_PSEUDO_ROUND_FUNC
bool "Permanently enable XTS-AES's pseudo rounds function"
default y
depends on SECURE_FLASH_ENCRYPTION_MODE_RELEASE && SOC_FLASH_ENCRYPTION_XTS_AES_SUPPORT_PSEUDO_ROUND
help
If set (default), the bootloader will permanently enable the XTS-AES peripheral's pseudo rounds function.
Note: Enabling this config would burn an efuse.
choice SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH
prompt "Strength of the pseudo rounds function"
depends on SECURE_FLASH_PSEUDO_ROUND_FUNC
default SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH_LOW
help
The strength of the pseudo rounds functions can be configured to low, medium and high,
each denoting the values that would be stored in the efuses field.
By default the value to set to low.
You can configure the strength of the pseudo rounds functions according to your use cases,
for example, increasing the strength would provide higher security but would slow down the
flash encryption/decryption operations.
For more info regarding the performance impact, please checkout the pseudo round function section of the
security guide documentation.
config SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH_LOW
bool "Low"
config SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH_MEDIUM
bool "Medium"
config SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH_HIGH
bool "High"
endchoice
config SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH
int
default 1 if SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH_LOW
default 2 if SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH_MEDIUM
default 3 if SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH_HIGH
config SECURE_ROM_DL_MODE_ENABLED
bool
default y if SOC_SUPPORTS_SECURE_DL_MODE && !SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT
@@ -1182,7 +1227,7 @@ menu "Security features"
It is also possible to enable secure download mode at runtime by calling
esp_efuse_enable_rom_secure_download_mode()
Note: Secure Download mode is not available for ESP32 (includes revisions till ECO3).
Note: Secure Download mode is not available for ESP32.
config SECURE_INSECURE_ALLOW_DL_MODE
bool "UART ROM download mode (Enabled (not recommended))"

View File

@@ -36,6 +36,10 @@ if(CONFIG_APP_BUILD_TYPE_APP_2NDBOOT)
)
endif()
if(CONFIG_ESP_ROM_REV0_HAS_NO_ECDSA_INTERFACE)
list(APPEND srcs "src/${IDF_TARGET}/bootloader_ecdsa.c")
endif()
if(BOOTLOADER_BUILD OR CONFIG_APP_BUILD_TYPE_RAM)
set(include_dirs "include" "bootloader_flash/include"
"private_include")
@@ -50,10 +54,6 @@ if(BOOTLOADER_BUILD OR CONFIG_APP_BUILD_TYPE_RAM)
"src/${IDF_TARGET}/bootloader_${IDF_TARGET}.c"
)
list(APPEND priv_requires hal)
if(CONFIG_ESP_ROM_REV0_HAS_NO_ECDSA_INTERFACE)
list(APPEND srcs
"src/${IDF_TARGET}/bootloader_ecdsa.c")
endif()
else()
list(APPEND srcs
"src/idf/bootloader_sha.c")

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2010-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2010-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -28,7 +28,21 @@ extern "C" {
*/
__attribute__((always_inline))
inline static bool esp_dram_match_iram(void) {
return (SOC_DRAM_LOW == SOC_IRAM_LOW && SOC_DRAM_HIGH == SOC_IRAM_HIGH);
return ((SOC_DRAM_LOW == SOC_IRAM_LOW) && (SOC_DRAM_HIGH == SOC_IRAM_HIGH));
}
/**
* @brief Check if the RTC IRAM and RTC DRAM are separate or using the same memory space
*
* @return true if the RTC DRAM and RTC IRAM are sharing the same memory space, false otherwise
*/
__attribute__((always_inline))
inline static bool esp_rtc_dram_match_rtc_iram(void) {
#if SOC_RTC_FAST_MEM_SUPPORTED
return ((SOC_RTC_IRAM_LOW == SOC_RTC_DRAM_LOW) && (SOC_RTC_IRAM_HIGH == SOC_RTC_DRAM_HIGH));
#else
return false;
#endif
}
/**
@@ -82,6 +96,7 @@ __attribute__((always_inline))
inline static bool esp_ptr_in_diram_iram(const void *p) {
// TODO: IDF-5980 esp32c6 D/I RAM share the same address
#if SOC_DIRAM_IRAM_LOW == SOC_DIRAM_DRAM_LOW
(void)p;
return false;
#else
return ((intptr_t)p >= SOC_DIRAM_IRAM_LOW && (intptr_t)p < SOC_DIRAM_IRAM_HIGH);
@@ -100,6 +115,7 @@ inline static bool esp_ptr_in_rtc_iram_fast(const void *p) {
#if SOC_RTC_FAST_MEM_SUPPORTED
return ((intptr_t)p >= SOC_RTC_IRAM_LOW && (intptr_t)p < SOC_RTC_IRAM_HIGH);
#else
(void)p;
return false;
#endif
}
@@ -116,6 +132,7 @@ inline static bool esp_ptr_in_rtc_dram_fast(const void *p) {
#if SOC_RTC_FAST_MEM_SUPPORTED
return ((intptr_t)p >= SOC_RTC_DRAM_LOW && (intptr_t)p < SOC_RTC_DRAM_HIGH);
#else
(void)p;
return false;
#endif
}
@@ -151,6 +168,21 @@ inline static void * esp_ptr_diram_dram_to_iram(const void *p) {
#endif
}
/* Convert a RTC DRAM pointer to equivalent word address in RTC IRAM
- Address must be word aligned
- Address must pass esp_ptr_in_rtc_dram_fast() test, or result will be invalid pointer
*/
__attribute__((always_inline))
inline static void * esp_ptr_rtc_dram_to_iram(const void *p) {
intptr_t ptr = (intptr_t)p;
#if SOC_RTC_FAST_MEM_SUPPORTED && (SOC_RTC_IRAM_LOW != SOC_RTC_DRAM_LOW)
return (void *) ( SOC_RTC_IRAM_LOW + (ptr - SOC_RTC_DRAM_LOW) );
#else
return (void *) ptr;
#endif
}
/* Convert a D/IRAM IRAM pointer to equivalent word address in DRAM
- Address must be word aligned

View File

@@ -28,6 +28,7 @@
#define ESP_PARTITION_HASH_LEN 32 /* SHA-256 digest length */
#define IS_FIELD_SET(rev_full) (((rev_full) != 65535) && ((rev_full) != 0))
#define ALIGN_UP(num, align) (((num) + ((align) - 1)) & ~((align) - 1))
static const char* TAG = "boot_comm";
@@ -242,7 +243,10 @@ rtc_retain_mem_t* bootloader_common_get_rtc_retain_mem(void)
#if ESP_ROM_HAS_LP_ROM
#define RTC_RETAIN_MEM_ADDR (SOC_RTC_DRAM_LOW)
#else
#define RTC_RETAIN_MEM_ADDR (SOC_RTC_DRAM_HIGH - sizeof(rtc_retain_mem_t))
/* Since the structure containing the retain_mem_t is aligned on 8 by the linker, make sure we align this
* structure size here too */
#define RETAIN_MEM_SIZE ALIGN_UP(sizeof(rtc_retain_mem_t), 8)
#define RTC_RETAIN_MEM_ADDR (SOC_RTC_DRAM_HIGH - RETAIN_MEM_SIZE)
#endif //ESP_ROM_HAS_LP_ROM
static rtc_retain_mem_t *const s_bootloader_retain_mem = (rtc_retain_mem_t *)RTC_RETAIN_MEM_ADDR;
return s_bootloader_retain_mem;

View File

@@ -91,6 +91,8 @@ static inline void bootloader_hardware_init(void)
SET_PERI_REG_MASK(PMU_RF_PWC_REG, PMU_XPD_FORCE_RFPLL);
/* Enable analog i2c master clock */
SET_PERI_REG_MASK(MODEM_LPCON_CLK_CONF_REG, MODEM_LPCON_CLK_I2C_MST_EN);
REGI2C_WRITE_MASK(I2C_BIAS, I2C_BIAS_DREG_0P8, 8); // fix low temp issue, need to increase this internal voltage
}
static inline void bootloader_ana_reset_config(void)
@@ -160,7 +162,7 @@ esp_err_t bootloader_init(void)
}
#endif // !CONFIG_APP_BUILD_TYPE_RAM
// check whether a WDT reset happend
// check whether a WDT reset happened
bootloader_check_wdt_reset();
// config WDT
bootloader_config_wdt();

View File

@@ -1,15 +1,18 @@
/*
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdint.h>
#include <strings.h>
#include "esp_flash_encrypt.h"
#include "esp_secure_boot.h"
#include "esp_efuse.h"
#include "esp_efuse_table.h"
#include "esp_log.h"
#include "hal/spi_flash_encrypted_ll.h"
#include "soc/soc_caps.h"
#include "sdkconfig.h"
static __attribute__((unused)) const char *TAG = "flash_encrypt";
@@ -33,6 +36,14 @@ esp_err_t esp_flash_encryption_enable_secure_features(void)
esp_efuse_write_field_bit(ESP_EFUSE_DIS_DIRECT_BOOT);
#if defined(CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE) && defined(SOC_FLASH_ENCRYPTION_XTS_AES_SUPPORT_PSEUDO_ROUND)
if (spi_flash_encrypt_ll_is_pseudo_rounds_function_supported()) {
ESP_LOGI(TAG, "Enable XTS-AES pseudo rounds function...");
uint8_t xts_pseudo_level = CONFIG_SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH;
esp_efuse_write_field_blob(ESP_EFUSE_XTS_DPA_PSEUDO_LEVEL, &xts_pseudo_level, ESP_EFUSE_XTS_DPA_PSEUDO_LEVEL[0]->bit_count);
}
#endif
#if defined(CONFIG_SECURE_BOOT_V2_ENABLED) && !defined(CONFIG_SECURE_BOOT_V2_ALLOW_EFUSE_RD_DIS)
// This bit is set when enabling Secure Boot V2, but we can't enable it until this later point in the first boot
// otherwise the Flash Encryption key cannot be read protected

View File

@@ -1,10 +1,11 @@
/*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <strings.h>
#include "hal/ecdsa_ll.h"
#include "esp_flash_encrypt.h"
#include "esp_secure_boot.h"
#include "esp_efuse.h"
@@ -36,6 +37,12 @@ esp_err_t esp_secure_boot_enable_secure_features(void)
ESP_LOGW(TAG, "UART ROM Download mode kept enabled - SECURITY COMPROMISED");
#endif
#ifdef SOC_ECDSA_P192_CURVE_DEFAULT_DISABLED
if (ecdsa_ll_is_configurable_curve_supported()) {
esp_efuse_write_field_bit(ESP_EFUSE_WR_DIS_ECDSA_CURVE_MODE);
}
#endif
#ifndef CONFIG_SECURE_BOOT_ALLOW_JTAG
ESP_LOGI(TAG, "Disable hardware & software JTAG...");
esp_efuse_write_field_bit(ESP_EFUSE_DIS_PAD_JTAG);

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -47,7 +47,12 @@ static const char *TAG = "esp_image";
#define HASH_LEN ESP_IMAGE_HASH_LEN
#define SIXTEEN_MB 0x1000000
#if SOC_SPI_MEM_SUPPORT_CACHE_32BIT_ADDR_MAP
#define ESP_IMAGE_MAX_FLASH_ADDR_SIZE UINT32_MAX
#else
#define ESP_IMAGE_MAX_FLASH_ADDR_SIZE 0x1000000
#endif
#define ESP_ROM_CHECKSUM_INITIAL 0xEF
/* Headroom to ensure between stack SP (at time of checking) and data loaded from flash */
@@ -138,7 +143,7 @@ static esp_err_t image_load(esp_image_load_mode_t mode, const esp_partition_pos_
verify_sha = (part->offset != ESP_BOOTLOADER_OFFSET) && do_verify;
#endif
if (part->size > SIXTEEN_MB) {
if (part->size > ESP_IMAGE_MAX_FLASH_ADDR_SIZE) {
err = ESP_ERR_INVALID_ARG;
FAIL_LOAD("partition size 0x%"PRIx32" invalid, larger than 16MB", part->size);
}
@@ -297,7 +302,7 @@ esp_err_t esp_image_verify(esp_image_load_mode_t mode, const esp_partition_pos_t
esp_err_t esp_image_get_metadata(const esp_partition_pos_t *part, esp_image_metadata_t *metadata)
{
esp_err_t err;
if (metadata == NULL || part == NULL || part->size > SIXTEEN_MB) {
if (metadata == NULL || part == NULL || part->size > ESP_IMAGE_MAX_FLASH_ADDR_SIZE) {
return ESP_ERR_INVALID_ARG;
}
@@ -751,7 +756,7 @@ static esp_err_t process_segment_data(int segment, intptr_t load_addr, uint32_t
static esp_err_t verify_segment_header(int index, const esp_image_segment_header_t *segment, uint32_t segment_data_offs, bool silent)
{
if ((segment->data_len & 3) != 0
|| segment->data_len >= SIXTEEN_MB) {
|| segment->data_len >= ESP_IMAGE_MAX_FLASH_ADDR_SIZE) {
if (!silent) {
ESP_LOGE(TAG, "invalid segment length 0x%"PRIx32, segment->data_len);
}

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -12,6 +12,9 @@
#include "esp_flash_encrypt.h"
#include "esp_secure_boot.h"
#include "hal/efuse_hal.h"
#include "hal/spi_flash_encrypted_ll.h"
#include "hal/spi_flash_encrypt_hal.h"
#include "soc/soc_caps.h"
//TODO:[ESP32C61] IDf-9232
@@ -209,6 +212,13 @@ void esp_flash_encryption_set_release_mode(void)
#endif // CONFIG_SOC_FLASH_ENCRYPTION_XTS_AES_128_DERIVED
#endif // !CONFIG_IDF_TARGET_ESP32
#ifdef SOC_FLASH_ENCRYPTION_XTS_AES_SUPPORT_PSEUDO_ROUND
if (spi_flash_encrypt_ll_is_pseudo_rounds_function_supported()) {
uint8_t xts_pseudo_level = ESP_XTS_AES_PSEUDO_ROUNDS_LOW;
esp_efuse_write_field_blob(ESP_EFUSE_XTS_DPA_PSEUDO_LEVEL, &xts_pseudo_level, ESP_EFUSE_XTS_DPA_PSEUDO_LEVEL[0]->bit_count);
}
#endif
#ifdef CONFIG_IDF_TARGET_ESP32
esp_efuse_write_field_bit(ESP_EFUSE_WR_DIS_DIS_CACHE);
#else
@@ -453,6 +463,17 @@ bool esp_flash_encryption_cfg_verify_release_mode(void)
}
result &= secure;
#if SOC_FLASH_ENCRYPTION_XTS_AES_SUPPORT_PSEUDO_ROUND
if (spi_flash_encrypt_ll_is_pseudo_rounds_function_supported()) {
uint8_t xts_pseudo_level = 0;
esp_efuse_read_field_blob(ESP_EFUSE_XTS_DPA_PSEUDO_LEVEL, &xts_pseudo_level, ESP_EFUSE_XTS_DPA_PSEUDO_LEVEL[0]->bit_count);
if (!xts_pseudo_level) {
result &= false;
ESP_LOGW(TAG, "Not enabled XTS-AES pseudo rounds function (set XTS_DPA_PSEUDO_LEVEL->1 or more)");
}
}
#endif
return result;
}
#endif // not CONFIG_IDF_TARGET_ESP32

View File

@@ -12,6 +12,10 @@
#include "esp_secure_boot.h"
#include "hal/efuse_hal.h"
#ifdef SOC_ECDSA_SUPPORTED
#include "hal/ecdsa_ll.h"
#endif
#ifndef BOOTLOADER_BUILD
static __attribute__((unused)) const char *TAG = "secure_boot";
@@ -331,6 +335,23 @@ bool esp_secure_boot_cfg_verify_release_mode(void)
}
#endif
#ifdef SOC_ECDSA_P192_CURVE_DEFAULT_DISABLED
if (ecdsa_ll_is_configurable_curve_supported()) {
secure = esp_efuse_read_field_bit(ESP_EFUSE_WR_DIS_ECDSA_CURVE_MODE);
if (!secure) {
uint8_t current_curve;
esp_err_t err = esp_efuse_read_field_blob(ESP_EFUSE_ECDSA_CURVE_MODE, &current_curve, ESP_EFUSE_ECDSA_CURVE_MODE[0]->bit_count);
if (err == ESP_OK) {
if (current_curve != ESP_EFUSE_ECDSA_CURVE_MODE_ALLOW_ONLY_P256_BIT_LOCKED) {
// If not P256 mode
result &= secure;
ESP_LOGW(TAG, "Not write disabled ECDSA curve mode (set WR_DIS_ECDSA_CURVE_MODE->1)");
}
}
}
}
#endif
#ifdef CONFIG_SECURE_BOOT_ENABLE_AGGRESSIVE_KEY_REVOKE
secure = esp_efuse_read_field_bit(ESP_EFUSE_SECURE_BOOT_AGGRESSIVE_REVOKE);
result &= secure;

View File

@@ -34,6 +34,7 @@ set(common_include_dirs
common/btc/profile/esp/blufi/include
common/btc/profile/esp/include
common/hci_log/include
common/ble_log/include
)
set(ble_mesh_include_dirs
@@ -99,17 +100,20 @@ if(CONFIG_BT_ENABLED)
list(APPEND ldscripts "linker_rw_bt_controller.lf")
elseif(CONFIG_IDF_TARGET_ESP32C2)
list(APPEND srcs "controller/esp32c2/bt.c")
list(APPEND srcs "controller/esp32c2/bt.c"
"controller/esp32c2/ble.c")
if(CONFIG_BT_CTRL_RUN_IN_FLASH_ONLY)
list(APPEND srcs "controller/esp32c2/dummy.c")
endif()
set(ldscripts "linker_esp32c2.lf")
elseif(CONFIG_IDF_TARGET_ESP32C6)
list(APPEND srcs "controller/esp32c6/ble.c")
list(APPEND srcs "controller/esp32c6/bt.c")
list(APPEND ldscripts "linker_esp_ble_controller.lf")
elseif(CONFIG_IDF_TARGET_ESP32H2)
list(APPEND srcs "controller/esp32h2/ble.c")
list(APPEND srcs "controller/esp32h2/bt.c")
list(APPEND ldscripts "linker_esp_ble_controller.lf")
@@ -155,6 +159,7 @@ if(CONFIG_BT_ENABLED)
"common/osi/osi.c"
"common/osi/semaphore.c"
"porting/mem/bt_osi_mem.c"
"common/ble_log/ble_log_spi_out.c"
)
# Host Bluedroid
@@ -463,6 +468,19 @@ if(CONFIG_BT_ENABLED)
list(APPEND srcs "esp_ble_mesh/core/bluedroid_host/adapter.c")
endif()
if(CONFIG_BT_BLE_FEAT_ISO_EN)
list(APPEND srcs "host/bluedroid/stack/btm/btm_ble_iso.c"
"host/bluedroid/btc/profile/std/iso/btc_iso_ble.c"
"host/bluedroid/api/esp_ble_iso_api.c"
"host/bluedroid/hci/ble_hci_iso.c")
endif()
if(CONFIG_BT_BLE_FEAT_CTE_EN)
list(APPEND srcs "host/bluedroid/stack/btm/btm_ble_cte.c"
"host/bluedroid/btc/profile/std/cte/btc_ble_cte.c"
"host/bluedroid/api/esp_ble_cte_api.c")
endif()
endif()
if(CONFIG_BLE_MESH)
@@ -640,23 +658,25 @@ if(CONFIG_BT_ENABLED)
if(NOT (CONFIG_BT_LE_CRYPTO_STACK_MBEDTLS OR CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS))
list(APPEND include_dirs
porting/ext/tinycrypt/include
common/tinycrypt/include
common/tinycrypt/port
)
list(APPEND srcs "porting/ext/tinycrypt/src/utils.c"
"porting/ext/tinycrypt/src/sha256.c"
"porting/ext/tinycrypt/src/ecc.c"
"porting/ext/tinycrypt/src/ctr_prng.c"
"porting/ext/tinycrypt/src/ctr_mode.c"
"porting/ext/tinycrypt/src/aes_decrypt.c"
"porting/ext/tinycrypt/src/aes_encrypt.c"
"porting/ext/tinycrypt/src/ccm_mode.c"
"porting/ext/tinycrypt/src/ecc_dsa.c"
"porting/ext/tinycrypt/src/cmac_mode.c"
"porting/ext/tinycrypt/src/ecc_dh.c"
"porting/ext/tinycrypt/src/hmac_prng.c"
"porting/ext/tinycrypt/src/ecc_platform_specific.c"
"porting/ext/tinycrypt/src/hmac.c"
"porting/ext/tinycrypt/src/cbc_mode.c")
list(APPEND srcs "common/tinycrypt/src/utils.c"
"common/tinycrypt/src/sha256.c"
"common/tinycrypt/src/ecc.c"
"common/tinycrypt/src/ctr_prng.c"
"common/tinycrypt/src/ctr_mode.c"
"common/tinycrypt/src/aes_decrypt.c"
"common/tinycrypt/src/aes_encrypt.c"
"common/tinycrypt/src/ccm_mode.c"
"common/tinycrypt/src/ecc_dsa.c"
"common/tinycrypt/src/cmac_mode.c"
"common/tinycrypt/src/ecc_dh.c"
"common/tinycrypt/src/hmac_prng.c"
"common/tinycrypt/src/ecc_platform_specific.c"
"common/tinycrypt/src/hmac.c"
"common/tinycrypt/src/cbc_mode.c"
"common/tinycrypt/port/esp_tinycrypt_port.c")
endif()
if(CONFIG_BT_NIMBLE_ENABLED)
@@ -753,6 +773,7 @@ if(CONFIG_BT_ENABLED)
"host/nimble/nimble/nimble/host/store/config/src/ble_store_nvs.c"
"host/nimble/nimble/nimble/host/src/ble_gattc_cache.c"
"host/nimble/nimble/nimble/host/src/ble_gattc_cache_conn.c"
"host/nimble/nimble/nimble/host/src/ble_eatt.c"
)
if(CONFIG_BT_CONTROLLER_DISABLED AND CONFIG_BT_NIMBLE_TRANSPORT_UART)
@@ -867,11 +888,27 @@ if(CONFIG_BT_ENABLED)
endif()
set(bt_priv_requires
nvs_flash
soc
esp_pm
esp_phy
esp_coex
mbedtls
esp_driver_uart
vfs
esp_ringbuf
esp_driver_spi
esp_driver_gpio
esp_gdbstub
)
idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS "${include_dirs}"
PRIV_INCLUDE_DIRS "${priv_include_dirs}"
REQUIRES esp_timer esp_wifi
PRIV_REQUIRES nvs_flash soc esp_pm esp_phy esp_coex mbedtls esp_driver_uart vfs esp_ringbuf
PRIV_REQUIRES "${bt_priv_requires}"
LDFRAGMENTS "${ldscripts}")
if(CONFIG_BT_ENABLED)
@@ -898,13 +935,19 @@ if(CONFIG_BT_ENABLED)
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app)
endif()
elseif(CONFIG_BT_CONTROLLER_ENABLED)
if(CONFIG_BT_LE_CONTROLLER_LOG_WRAP_PANIC_HANDLER_ENABLE)
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=esp_panic_handler")
endif()
if(CONFIG_IDF_TARGET_ESP32C6)
add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/esp32c6/libble_app.a")
add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/esp32c6/libble_app.a"
REQUIRES esp_phy)
else()
if(CONFIG_BT_CTRL_RUN_IN_FLASH_ONLY)
add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/libble_app_flash.a")
if(CONFIG_BT_CTRL_RUN_IN_FLASH_ONLY AND CONFIG_IDF_TARGET_ESP32C2)
add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/libble_app_flash.a"
REQUIRES esp_phy)
else()
add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/libble_app.a")
add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/libble_app.a"
REQUIRES esp_phy)
endif()
endif()
target_link_libraries(${COMPONENT_LIB} PRIVATE libble_app)

View File

@@ -81,8 +81,6 @@ menu "Bluetooth"
So this option will disable the PMP (ESP_SYSTEM_PMP_IDRAM_SPLIT)
menu "Common Options"
visible if (BT_BLUEDROID_ENABLED || BT_NIMBLE_ENABLED)
source "$IDF_PATH/components/bt/common/Kconfig.in"
endmenu

View File

@@ -1,6 +1,199 @@
config BT_ALARM_MAX_NUM
int "Maximum number of Bluetooth alarms"
default 50
depends on (BT_BLUEDROID_ENABLED || BT_NIMBLE_ENABLED)
help
This option decides the maximum number of alarms which
could be used by Bluetooth host.
config BT_BLE_LOG_SPI_OUT_ENABLED
bool "Output ble logs to SPI bus (Experimental)"
default n
help
Output ble logs to SPI bus
config BT_BLE_LOG_SPI_OUT_UL_TASK_BUF_SIZE
int "SPI transaction buffer size for upper layer task logs"
depends on BT_BLE_LOG_SPI_OUT_ENABLED
default 512
help
SPI transaction buffer size for upper layer task logs.
There will be 2 SPI DMA buffers with the same size.
config BT_BLE_LOG_SPI_OUT_HCI_ENABLED
bool "Enable HCI log output to SPI"
depends on BT_BLE_LOG_SPI_OUT_ENABLED
default n
help
Enable logging of HCI packets to the SPI bus when BLE SPI log output is enabled.
config BT_BLE_LOG_SPI_OUT_HCI_BUF_SIZE
int "SPI transaction buffer size for HCI logs"
depends on BT_BLE_LOG_SPI_OUT_HCI_ENABLED
default 1024
help
SPI transaction buffer size for HCI logs.
There will be 2 SPI DMA buffers with the same size.
config BT_BLE_LOG_SPI_OUT_HCI_TASK_CNT
int "HCI task count"
depends on BT_BLE_LOG_SPI_OUT_HCI_ENABLED
default 1
help
HCI task count
config BT_BLE_LOG_SPI_OUT_HOST_ENABLED
bool "Enable Host log output to SPI"
depends on BT_BLE_LOG_SPI_OUT_ENABLED
default n
help
This configuration applies to the logs of both Bluedroid Host and NimBLE Host.
When BLE SPI log output is enabled, this option allows host logs to be transmitted via SPI.
config BT_BLE_LOG_SPI_OUT_HOST_BUF_SIZE
int "SPI transaction buffer size for host logs"
depends on BT_BLE_LOG_SPI_OUT_HOST_ENABLED
default 1024
help
SPI transaction buffer size for host logs.
There will be 2 SPI DMA buffers with the same size.
config BT_BLE_LOG_SPI_OUT_HOST_TASK_CNT
int "Host task count"
depends on BT_BLE_LOG_SPI_OUT_HOST_ENABLED
default 2
help
Host task count.
config BT_BLE_LOG_SPI_OUT_LL_ENABLED
bool "Enable Controller log output to SPI"
depends on BT_BLE_LOG_SPI_OUT_ENABLED
depends on BT_LE_CONTROLLER_LOG_SPI_OUT_ENABLED
default n
help
Enable controller log output to SPI bus.
config BT_BLE_LOG_SPI_OUT_LL_TASK_BUF_SIZE
int "SPI transaction buffer size for lower layer task logs"
depends on BT_BLE_LOG_SPI_OUT_LL_ENABLED
default 1024
help
SPI transaction buffer size for lower layer task logs.
There will be 2 SPI DMA buffers with the same size.
config BT_BLE_LOG_SPI_OUT_LL_ISR_BUF_SIZE
int "SPI transaction buffer size for lower layer ISR logs"
depends on BT_BLE_LOG_SPI_OUT_LL_ENABLED
default 512
help
SPI transaction buffer size for lower layer ISR logs.
There will be 2 SPI DMA buffers with the same size.
config BT_BLE_LOG_SPI_OUT_LL_HCI_BUF_SIZE
int "SPI transaction buffer size for lower layer HCI logs"
depends on BT_BLE_LOG_SPI_OUT_LL_ENABLED
default 512
help
SPI transaction buffer size for upper layer HCI logs.
There will be 2 SPI DMA buffers with the same size
config BT_BLE_LOG_SPI_OUT_MOSI_IO_NUM
int "GPIO number of SPI MOSI"
depends on BT_BLE_LOG_SPI_OUT_ENABLED
default 0
help
GPIO number of SPI MOSI
config BT_BLE_LOG_SPI_OUT_SCLK_IO_NUM
int "GPIO number of SPI SCLK"
depends on BT_BLE_LOG_SPI_OUT_ENABLED
default 1
help
GPIO number of SPI SCLK
config BT_BLE_LOG_SPI_OUT_CS_IO_NUM
int "GPIO number of SPI CS"
depends on BT_BLE_LOG_SPI_OUT_ENABLED
default 2
help
GPIO number of SPI CS
config BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
bool "Enable ble log & logic analyzer log time sync"
depends on BT_BLE_LOG_SPI_OUT_ENABLED
default y
help
Enable ble log & logic analyzer log time sync
config BT_BLE_LOG_SPI_OUT_SYNC_IO_NUM
int "GPIO number of SYNC IO"
depends on BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
default 3
help
GPIO number of SYNC IO
config BT_BLE_LOG_SPI_OUT_TS_SYNC_SLEEP_SUPPORT
bool "Enable ble log & logic analyzer log time sync sleep support"
depends on BT_BLE_LOG_SPI_OUT_LL_ENABLED
default y
help
Enable ble log & logic analyzer log time sync sleep support
config BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
bool "Enable periodic buffer flush out"
depends on BT_BLE_LOG_SPI_OUT_ENABLED
default n
help
Enable periodic buffer flush out
Not recommended when SPI receiver is unavailable
config BT_BLE_LOG_SPI_OUT_FLUSH_TIMEOUT
int "Buffer flush out period in unit of ms"
depends on BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
default 1000
help
Buffer flush out period in unit of ms
config BT_BLE_LOG_SPI_OUT_LE_AUDIO_ENABLED
bool "Enable LE Audio log output to SPI"
depends on BT_BLE_LOG_SPI_OUT_ENABLED
default n
help
Enable LE Audio log output to SPI
config BT_BLE_LOG_SPI_OUT_LE_AUDIO_BUF_SIZE
int "SPI transaction buffer size for LE Audio logs"
depends on BT_BLE_LOG_SPI_OUT_LE_AUDIO_ENABLED
default 1024
help
SPI transaction buffer size for LE Audio logs.
There will be 2 SPI DMA buffers with the same size.
config BT_BLE_LOG_SPI_OUT_LE_AUDIO_TASK_CNT
int "LE audio task count"
depends on BT_BLE_LOG_SPI_OUT_LE_AUDIO_ENABLED
default 1
help
LE audio task count
config BT_BLE_LOG_SPI_OUT_MESH_ENABLED
bool "Enable BLE mesh log output to SPI"
depends on BT_BLE_LOG_SPI_OUT_ENABLED
default n
help
Enable BLE mesh log output to SPI
config BT_BLE_LOG_SPI_OUT_MESH_BUF_SIZE
int "SPI transaction buffer size for BLE mesh logs"
depends on BT_BLE_LOG_SPI_OUT_MESH_ENABLED
default 1024
help
SPI transaction buffer size for BLE mesh logs.
There will be 2 SPI DMA buffers with the same size.
config BT_BLE_LOG_SPI_OUT_MESH_TASK_CNT
int "Mesh task count"
depends on BT_BLE_LOG_SPI_OUT_MESH_ENABLED
default 3
help
Mesh task count

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,64 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __BT_SPI_OUT_H__
#define __BT_SPI_OUT_H__
#include <stdarg.h>
#include <string.h>
#include "driver/spi_master.h"
#include "driver/gpio.h"
#include "esp_timer.h"
#include "freertos/semphr.h"
#include "esp_heap_caps.h"
// Public enums
enum {
BLE_LOG_SPI_OUT_SOURCE_ESP = 0,
BLE_LOG_SPI_OUT_SOURCE_ESP_LEGACY,
BLE_LOG_SPI_OUT_SOURCE_BLUEDROID,
BLE_LOG_SPI_OUT_SOURCE_NIMBLE,
BLE_LOG_SPI_OUT_SOURCE_HCI_UPSTREAM,
BLE_LOG_SPI_OUT_SOURCE_HCI_DOWNSTREAM,
BLE_LOG_SPI_OUT_SOURCE_ESP_ISR,
BLE_LOG_SPI_OUT_SOURCE_ESP_LEGACY_ISR,
BLE_LOG_SPI_OUT_SOURCE_LL_HCI,
BLE_LOG_SPI_OUT_SOURCE_LE_AUDIO,
BLE_LOG_SPI_OUT_SOURCE_MESH,
BLE_LOG_SPI_OUT_SOURCE_USER = 0x10,
BLE_LOG_SPI_OUT_SOURCE_SSC = 0xFD,
BLE_LOG_SPI_OUT_SOURCE_SYNC,
BLE_LOG_SPI_OUT_SOURCE_LOSS,
};
#define BLE_LOG_SPI_OUT_LEVEL_NONE 0
#define BLE_LOG_SPI_OUT_LEVEL_ERROR 1
#define BLE_LOG_SPI_OUT_LEVEL_WARN 2
#define BLE_LOG_SPI_OUT_LEVEL_INFO 3
#define BLE_LOG_SPI_OUT_LEVEL_DEBUG 4
#define BLE_LOG_SPI_OUT_LEVEL_VERBOSE 5
#define BLE_LOG_SPI_OUT_STR(x) #x
#define BLE_LOG_SPI_OUT_XSTR(x) BLE_LOG_SPI_OUT_STR(x)
#define BLE_LOG_SPI_OUT_BUILD_PREFIX(LEVEL, TAG) "[" BLE_LOG_SPI_OUT_XSTR(LEVEL) "][" TAG "]"
// Public functions
int ble_log_spi_out_init(void);
void ble_log_spi_out_deinit(void);
void ble_log_spi_out_timer_control(bool enable);
int ble_log_spi_out_write(uint8_t source, const uint8_t *addr, uint16_t len);
void ble_log_spi_out_ll_write(uint32_t len, const uint8_t *addr, uint32_t len_append,\
const uint8_t *addr_append, uint32_t flag);
void ble_log_spi_out_ll_log_ev_proc(void);
void ble_log_spi_out_ts_sync_start(void);
void ble_log_spi_out_ts_sync_stop(void);
void ble_log_spi_out_dump_all(void);
void ble_log_spi_out_enable(bool enable);
void ble_log_spi_out_flush(void);
void ble_log_spi_out_le_audio_write(const uint8_t *addr, uint16_t len);
int ble_log_spi_out_host_write(uint8_t source, const char *prefix, const char *format, ...);
int ble_log_spi_out_hci_write(uint8_t source, const uint8_t *addr, uint16_t len);
int ble_log_spi_out_mesh_write(const char *prefix, const char *format, ...);
#endif // __BT_SPI_OUT_H__

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -16,6 +16,12 @@ void **btc_profile_cb_tab;
void esp_profile_cb_reset(void)
{
#if BTC_DYNAMIC_MEMORY == TRUE
if (btc_profile_cb_tab == NULL) {
return;
}
#endif
int i;
for (i = 0; i < BTC_PID_NUM; i++) {
@@ -25,6 +31,12 @@ void esp_profile_cb_reset(void)
int btc_profile_cb_set(btc_pid_t profile_id, void *cb)
{
#if BTC_DYNAMIC_MEMORY == TRUE
if (btc_profile_cb_tab == NULL) {
return -1;
}
#endif
if (profile_id < 0 || profile_id >= BTC_PID_NUM) {
return -1;
}
@@ -36,6 +48,12 @@ int btc_profile_cb_set(btc_pid_t profile_id, void *cb)
void *btc_profile_cb_get(btc_pid_t profile_id)
{
#if BTC_DYNAMIC_MEMORY == TRUE
if (btc_profile_cb_tab == NULL) {
return NULL;
}
#endif
if (profile_id < 0 || profile_id >= BTC_PID_NUM) {
return NULL;
}

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -24,6 +24,8 @@
#include "btc_gattc.h"
#include "btc_gatt_common.h"
#include "btc_gap_ble.h"
#include "btc_iso_ble.h"
#include "btc_ble_cte.h"
#include "btc/btc_dm.h"
#include "bta/bta_gatt_api.h"
#if CLASSIC_BT_INCLUDED
@@ -210,7 +212,7 @@ static const btc_func_t profile_tab[BTC_PID_NUM] = {
[BTC_PID_RPR_CLIENT] = {btc_ble_mesh_rpr_client_call_handler, btc_ble_mesh_rpr_client_cb_handler },
#endif /* CONFIG_BLE_MESH_RPR_CLI */
#if CONFIG_BLE_MESH_RPR_SRV
[BTC_PID_RPR_SERVER] = {NULL, btc_ble_mesh_rpr_server_cb_handler },
[BTC_PID_RPR_SERVER] = {btc_ble_mesh_rpr_server_call_handler, btc_ble_mesh_rpr_server_cb_handler },
#endif /* CONFIG_BLE_MESH_RPR_SRV */
#if CONFIG_BLE_MESH_SAR_CLI
[BTC_PID_SAR_CLIENT] = {btc_ble_mesh_sar_client_call_handler, btc_ble_mesh_sar_client_cb_handler },
@@ -258,6 +260,12 @@ static const btc_func_t profile_tab[BTC_PID_NUM] = {
[BTC_PID_BLE_MESH_BLE_COEX] = {btc_ble_mesh_ble_call_handler, btc_ble_mesh_ble_cb_handler },
#endif /* CONFIG_BLE_MESH_BLE_COEX_SUPPORT */
#endif /* #if CONFIG_BLE_MESH */
#if (BLE_FEAT_ISO_EN == TRUE)
[BTC_PID_ISO_BLE] = {btc_iso_ble_call_handler, btc_iso_ble_cb_handler },
#endif // #if (BLE_FEAT_ISO_EN == TRUE)
#if (BLE_FEAT_CTE_EN == TRUE)
[BTC_PID_BLE_CTE] = {btc_ble_cte_call_handler, btc_ble_cte_cb_handler },
#endif // #if (BLE_FEAT_CTE_EN == TRUE)
};
/*****************************************************************************
@@ -383,6 +391,7 @@ static void btc_deinit_mem(void) {
}
#if (BLE_42_FEATURE_SUPPORT == TRUE)
#if (BLE_42_ADV_EN == TRUE)
if (gl_bta_adv_data_ptr) {
osi_free(gl_bta_adv_data_ptr);
gl_bta_adv_data_ptr = NULL;
@@ -392,6 +401,7 @@ static void btc_deinit_mem(void) {
osi_free(gl_bta_scan_rsp_data_ptr);
gl_bta_scan_rsp_data_ptr = NULL;
}
#endif // #if (BLE_42_ADV_EN == TRUE)
#endif // BLE_42_FEATURE_SUPPORT
#if GATTS_INCLUDED == TRUE && GATT_DYNAMIC_MEMORY == TRUE
@@ -446,6 +456,7 @@ static bt_status_t btc_init_mem(void) {
#if BTC_DYNAMIC_MEMORY == TRUE
#if (BLE_42_FEATURE_SUPPORT == TRUE)
#if (BLE_42_ADV_EN == TRUE)
if ((gl_bta_adv_data_ptr = (tBTA_BLE_ADV_DATA *)osi_malloc(sizeof(tBTA_BLE_ADV_DATA))) == NULL) {
goto error_exit;
}
@@ -455,6 +466,7 @@ static bt_status_t btc_init_mem(void) {
goto error_exit;
}
memset((void *)gl_bta_scan_rsp_data_ptr, 0, sizeof(tBTA_BLE_ADV_DATA));
#endif // #if (BLE_42_ADV_EN == TRUE)
#endif // (BLE_42_FEATURE_SUPPORT == TRUE)
#endif // BTC_DYNAMIC_MEMORY == TRUE
@@ -472,10 +484,10 @@ static bt_status_t btc_init_mem(void) {
#endif
#if BTC_HF_INCLUDED == TRUE && HFP_DYNAMIC_MEMORY == TRUE
if ((hf_local_param_ptr = (hf_local_param_t *)osi_malloc(BTC_HF_NUM_CB * sizeof(hf_local_param_t))) == NULL) {
if ((hf_local_param_ptr = (hf_local_param_t *)osi_malloc(sizeof(hf_local_param_t))) == NULL) {
goto error_exit;
}
memset((void *)hf_local_param_ptr, 0, BTC_HF_NUM_CB * sizeof(hf_local_param_t));
memset((void *)hf_local_param_ptr, 0, sizeof(hf_local_param_t));
#endif
#if BTC_HF_CLIENT_INCLUDED == TRUE && HFP_DYNAMIC_MEMORY == TRUE
@@ -518,21 +530,30 @@ bt_status_t btc_init(void)
return BT_STATUS_NOMEM;
}
#endif
#if BTC_GAP_BT_INCLUDED
btc_gap_bt_init();
#endif
#if (BLE_INCLUDED == TRUE)
btc_gap_callback_init();
#if (BLE_FEAT_ISO_EN == TRUE)
btc_iso_callback_init();
#endif // #if (BLE_FEAT_ISO_EN == TRUE)
#if (BLE_FEAT_CTE_EN == TRUE)
btc_cte_callback_init();
#endif // #if (BLE_FEAT_CTE_EN == TRUE)
btc_gap_ble_init();
#endif ///BLE_INCLUDED == TRUE
#if SCAN_QUEUE_CONGEST_CHECK
btc_adv_list_init();
#endif
/* TODO: initial the profile_tab */
return BT_STATUS_SUCCESS;
}
void btc_deinit(void)
{
#if BTC_GAP_BT_INCLUDED
btc_gap_bt_deinit();
#endif
#if BTC_DYNAMIC_MEMORY
btc_deinit_mem();
#endif
@@ -542,18 +563,6 @@ void btc_deinit(void)
#if (BLE_INCLUDED == TRUE)
btc_gap_ble_deinit();
#endif ///BLE_INCLUDED == TRUE
#if SCAN_QUEUE_CONGEST_CHECK
btc_adv_list_deinit();
#endif
}
bool btc_check_queue_is_congest(void)
{
if (osi_thread_queue_wait_size(btc_thread, 0) >= BT_QUEUE_CONGEST_SIZE) {
return true;
}
return false;
}
int get_btc_work_queue_size(void)

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -105,6 +105,12 @@ typedef enum {
BTC_PID_MBT_SERVER,
BTC_PID_BLE_MESH_BLE_COEX,
#endif /* CONFIG_BLE_MESH */
#if (BLE_FEAT_ISO_EN == TRUE)
BTC_PID_ISO_BLE,
#endif // #if (BLE_FEAT_ISO_EN == TRUE)
#if (BLE_FEAT_CTE_EN == TRUE)
BTC_PID_BLE_CTE,
#endif // #if (BLE_FEAT_CTE_EN == TRUE)
BTC_PID_NUM,
} btc_pid_t; //btc profile id
@@ -123,8 +129,8 @@ extern "C" {
/**
* transfer an message to another module in the different task.
* @param msg message
* @param arg paramter
* @param arg_len length of paramter
* @param arg parameter
* @param arg_len length of parameter
* @param copy_func deep copy function
* @param free_func deep free function
* @return BT_STATUS_SUCCESS: success
@@ -134,7 +140,7 @@ bt_status_t btc_transfer_context(btc_msg_t *msg, void *arg, int arg_len, btc_arg
btc_arg_deep_free_t free_func);
/**
* transfer an message to another module in tha same task.
* transfer an message to another module in the same task.
* @param msg message
* @return BT_STATUS_SUCCESS: success
* others: fail
@@ -143,7 +149,6 @@ bt_status_t btc_inter_profile_call(btc_msg_t *msg);
bt_status_t btc_init(void);
void btc_deinit(void);
bool btc_check_queue_is_congest(void);
int get_btc_work_queue_size(void);
/**

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -160,20 +160,31 @@ static void blufi_profile_cb(tBTA_GATTS_EVT event, tBTA_GATTS *p_data)
if (p_data->req_data.p_data->write_req.is_prep) {
tBTA_GATT_STATUS status = GATT_SUCCESS;
if (blufi_env.prepare_buf == NULL) {
blufi_env.prepare_buf = osi_malloc(BLUFI_PREPAIR_BUF_MAX_SIZE);
blufi_env.prepare_len = 0;
do {
if (p_data->req_data.p_data->write_req.offset > BLUFI_PREPARE_BUF_MAX_SIZE) {
status = ESP_GATT_INVALID_OFFSET;
break;
}
if ((p_data->req_data.p_data->write_req.offset + p_data->req_data.p_data->write_req.len) > BLUFI_PREPARE_BUF_MAX_SIZE) {
status = ESP_GATT_INVALID_ATTR_LEN;
break;
}
if (blufi_env.prepare_buf == NULL) {
BLUFI_TRACE_ERROR("Blufi prep no mem\n");
status = GATT_NO_RESOURCES;
if (p_data->req_data.p_data->write_req.offset != 0) {
status = GATT_INVALID_OFFSET;
break;
}
blufi_env.prepare_buf = osi_malloc(BLUFI_PREPARE_BUF_MAX_SIZE);
blufi_env.prepare_len = 0;
if (blufi_env.prepare_buf == NULL) {
BLUFI_TRACE_ERROR("Blufi prep no mem\n");
status = GATT_NO_RESOURCES;
break;
}
}
} else {
if (p_data->req_data.p_data->write_req.offset > BLUFI_PREPAIR_BUF_MAX_SIZE) {
status = GATT_INVALID_OFFSET;
} else if ((p_data->req_data.p_data->write_req.offset + p_data->req_data.p_data->write_req.len) > BLUFI_PREPAIR_BUF_MAX_SIZE) {
status = GATT_INVALID_ATTR_LEN;
}
}
} while (0);
memset(&rsp, 0, sizeof(tGATTS_RSP));
rsp.attr_value.handle = p_data->req_data.p_data->write_req.handle;

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -95,7 +95,29 @@ void btc_blufi_report_error(esp_blufi_error_state_t state)
void btc_blufi_recv_handler(uint8_t *data, int len)
{
if (len < sizeof(struct blufi_hdr)) {
BTC_TRACE_ERROR("%s invalid data length: %d", __func__, len);
btc_blufi_report_error(ESP_BLUFI_DATA_FORMAT_ERROR);
return;
}
struct blufi_hdr *hdr = (struct blufi_hdr *)data;
// Verify if the received data length matches the expected length based on the BLUFI protocol
int target_data_len;
if (BLUFI_FC_IS_CHECK(hdr->fc)) {
target_data_len = hdr->data_len + 4 + 2; // Data + (Type + Frame Control + Sequence Number + Data Length) + Checksum
} else {
target_data_len = hdr->data_len + 4; // Data + (Type + Frame Control + Sequence Number + Data Length)
}
if (len != target_data_len) {
BTC_TRACE_ERROR("%s: Invalid data length: %d, expected: %d", __func__, len, target_data_len);
btc_blufi_report_error(ESP_BLUFI_DATA_FORMAT_ERROR);
return;
}
uint16_t checksum, checksum_pkt;
int ret;

View File

@@ -36,7 +36,9 @@ typedef struct {
UINT32 trans_id;
UINT8 congest;
UINT16 frag_size;
// Deprecated: This macro will be removed in the future
#define BLUFI_PREPAIR_BUF_MAX_SIZE 1024
#define BLUFI_PREPARE_BUF_MAX_SIZE 1024
uint8_t *prepare_buf;
int prepare_len;
/* Control reference */

View File

@@ -44,6 +44,7 @@ void esp_blufi_gatt_svr_register_cb(struct ble_gatt_register_ctxt *ctxt, void *a
/* Initialise gatt server */
int esp_blufi_gatt_svr_init(void);
int esp_blufi_gatt_svr_deinit(void);
void esp_blufi_btc_init(void);
void esp_blufi_btc_deinit(void);
#endif

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -240,6 +240,32 @@ static void init_gatt_values(void)
}
static void deinit_gatt_values(void)
{
int i = 0;
const struct ble_gatt_svc_def *svc;
const struct ble_gatt_chr_def *chr;
const struct ble_gatt_dsc_def *dsc;
for (svc = gatt_svr_svcs; svc && svc->uuid; svc++) {
for (chr = svc->characteristics; chr && chr->uuid; chr++) {
if (i < SERVER_MAX_VALUES && gatt_values[i].buf != NULL) {
os_mbuf_free(gatt_values[i].buf); /* Free the buffer */
gatt_values[i].buf = NULL; /* Nullify the pointer to avoid dangling references */
}
++i;
for (dsc = chr->descriptors; dsc && dsc->uuid; dsc++) {
if (i < SERVER_MAX_VALUES && gatt_values[i].buf != NULL) {
os_mbuf_free(gatt_values[i].buf); /* Free the buffer */
gatt_values[i].buf = NULL; /* Nullify the pointer to avoid dangling references */
}
++i;
}
}
}
}
int esp_blufi_gatt_svr_init(void)
{
int rc;
@@ -260,7 +286,19 @@ int esp_blufi_gatt_svr_init(void)
return 0;
}
static int
int esp_blufi_gatt_svr_deinit(void)
{
deinit_gatt_values();
ble_gatts_free_svcs();
/* Deinitialize BLE GATT and GAP services */
ble_svc_gatt_deinit();
ble_svc_gap_deinit();
return 0;
}
int
esp_blufi_gap_event(struct ble_gap_event *event, void *arg)
{
struct ble_gap_conn_desc desc;
@@ -293,7 +331,7 @@ esp_blufi_gap_event(struct ble_gap_event *event, void *arg)
}
if (event->connect.status != 0) {
/* Connection failed; resume advertising. */
esp_blufi_adv_start();
((void(*)(void))arg)();
}
return 0;
case BLE_GAP_EVENT_DISCONNECT:
@@ -328,7 +366,7 @@ esp_blufi_gap_event(struct ble_gap_event *event, void *arg)
case BLE_GAP_EVENT_ADV_COMPLETE:
ESP_LOGI(TAG, "advertise complete; reason=%d",
event->adv_complete.reason);
esp_blufi_adv_start();
((void(*)(void))arg)();
return 0;
case BLE_GAP_EVENT_SUBSCRIBE:
@@ -423,7 +461,7 @@ void esp_blufi_adv_start(void)
adv_params.conn_mode = BLE_GAP_CONN_MODE_UND;
adv_params.disc_mode = BLE_GAP_DISC_MODE_GEN;
rc = ble_gap_adv_start(own_addr_type, NULL, BLE_HS_FOREVER,
&adv_params, esp_blufi_gap_event, NULL);
&adv_params, esp_blufi_gap_event, esp_blufi_adv_start);
if (rc != 0) {
ESP_LOGE(TAG, "error enabling advertisement; rc=%d", rc);
return;
@@ -473,7 +511,10 @@ void esp_blufi_disconnect(void)
ble_gap_terminate(blufi_env.conn_id, BLE_ERR_REM_USER_CONN_TERM);
}
void esp_blufi_adv_stop(void) {}
void esp_blufi_adv_stop(void)
{
ble_gap_adv_stop();
}
void esp_blufi_send_encap(void *arg)
{

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -10,6 +10,7 @@
#include "bt_common.h"
#include "osi/mutex.h"
#include "esp_attr.h"
#include "esp_timer.h"
#if (BT_HCI_LOG_INCLUDED == TRUE)
#define BT_HCI_LOG_PRINT_TAG (1)
@@ -124,6 +125,11 @@ static char IRAM_ATTR *bt_data_type_to_str(uint8_t data_type)
// self-defining data
tag = "S";
break;
case HCI_LOG_DATA_TYPE_ISO_DATA:
// 5.2 iso data
tag = "I";
break;
break;
default:
// unknown data type
tag = "U";
@@ -203,6 +209,8 @@ esp_err_t IRAM_ATTR bt_hci_log_record_data(bt_hci_log_t *p_hci_log_ctl, char *st
{
osi_mutex_t mutex_lock;
uint8_t *g_hci_log_buffer;
int64_t ts;
uint8_t *temp_buf;
if (!p_hci_log_ctl->p_hci_log_buffer) {
return ESP_FAIL;
@@ -214,6 +222,16 @@ esp_err_t IRAM_ATTR bt_hci_log_record_data(bt_hci_log_t *p_hci_log_ctl, char *st
return ESP_FAIL;
}
ts = esp_timer_get_time();
temp_buf = (uint8_t *)malloc(data_len + 8);
memset(temp_buf, 0x0, data_len + 8);
memcpy(temp_buf, &ts, 8);
memcpy(temp_buf + 8, data, data_len);
data_len += 8;
mutex_lock = p_hci_log_ctl->mutex_lock;
osi_mutex_lock(&mutex_lock, OSI_MUTEX_MAX_TIMEOUT);
@@ -245,7 +263,7 @@ esp_err_t IRAM_ATTR bt_hci_log_record_data(bt_hci_log_t *p_hci_log_ctl, char *st
bt_hci_log_record_string(p_hci_log_ctl, str);
}
bt_hci_log_record_hex(p_hci_log_ctl, data, data_len);
bt_hci_log_record_hex(p_hci_log_ctl, temp_buf, data_len);
g_hci_log_buffer[p_hci_log_ctl->log_record_in] = '\n';
@@ -261,6 +279,8 @@ esp_err_t IRAM_ATTR bt_hci_log_record_data(bt_hci_log_t *p_hci_log_ctl, char *st
osi_mutex_unlock(&mutex_lock);
free(temp_buf);
return ESP_OK;
}

View File

@@ -21,6 +21,7 @@ extern "C" {
#define HCI_LOG_DATA_TYPE_ADV (5)
#define HCI_LOG_DATA_TYPE_SELF_DEFINE (6)
#define HCI_LOG_DATA_TYPE_C2H_ACL (7)
#define HCI_LOG_DATA_TYPE_ISO_DATA (8)
/**
*

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -84,6 +84,20 @@
#define BT_HCI_LOG_INCLUDED FALSE
#endif
// HCI LOG TO SPI
#if UC_BT_BLE_LOG_SPI_OUT_HCI_ENABLED
#define BT_BLE_LOG_SPI_OUT_HCI_ENABLED UC_BT_BLE_LOG_SPI_OUT_HCI_ENABLED
#else
#define BT_BLE_LOG_SPI_OUT_HCI_ENABLED FALSE
#endif
// BLURDROID LOG TO SPI
#if UC_BT_BLE_LOG_SPI_OUT_HOST_ENABLED
#define BT_BLE_LOG_SPI_OUT_HOST_ENABLED UC_BT_BLE_LOG_SPI_OUT_HOST_ENABLED
#else
#define BT_BLE_LOG_SPI_OUT_HOST_ENABLED FALSE
#endif
#if UC_BT_HCI_LOG_DATA_BUFFER_SIZE
#define HCI_LOG_DATA_BUFFER_SIZE UC_BT_HCI_LOG_DATA_BUFFER_SIZE
#else

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -126,6 +126,20 @@
#define UC_BT_HCI_LOG_DEBUG_EN FALSE
#endif
//HCI LOG TO SPI
#ifdef CONFIG_BT_BLE_LOG_SPI_OUT_HCI_ENABLED
#define UC_BT_BLE_LOG_SPI_OUT_HCI_ENABLED TRUE
#else
#define UC_BT_BLE_LOG_SPI_OUT_HCI_ENABLED FALSE
#endif
//BLUEDROID LOG TO SPI
#ifdef CONFIG_BT_BLE_LOG_SPI_OUT_HOST_ENABLED
#define UC_BT_BLE_LOG_SPI_OUT_HOST_ENABLED TRUE
#else
#define UC_BT_BLE_LOG_SPI_OUT_HOST_ENABLED FALSE
#endif
#ifdef CONFIG_BT_HCI_LOG_DATA_BUFFER_SIZE
#define UC_BT_HCI_LOG_DATA_BUFFER_SIZE CONFIG_BT_HCI_LOG_DATA_BUFFER_SIZE
#else

View File

@@ -76,4 +76,8 @@ void fixed_pkt_queue_unregister_dequeue(fixed_pkt_queue_t *queue);
void fixed_pkt_queue_process(fixed_pkt_queue_t *queue);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -25,6 +25,7 @@ struct pkt_queue *pkt_queue_create(void)
}
if (osi_mutex_new(&queue->lock) != 0) {
osi_free(queue);
return NULL;
}
struct pkt_queue_header *p = &queue->header;
STAILQ_INIT(p);

View File

@@ -1,4 +1,8 @@
/* aes.h - TinyCrypt interface to an AES-128 implementation */
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.

View File

@@ -1,4 +1,8 @@
/* cbc_mode.h - TinyCrypt interface to a CBC mode implementation */
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.

View File

@@ -1,4 +1,8 @@
/* ccm_mode.h - TinyCrypt interface to a CCM mode implementation */
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.

View File

@@ -1,4 +1,8 @@
/* cmac_mode.h -- interface to a CMAC implementation */
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved

View File

@@ -1,4 +1,8 @@
/* constants.h - TinyCrypt interface to constants */
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.

View File

@@ -1,4 +1,8 @@
/* ctr_mode.h - TinyCrypt interface to CTR mode */
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.

View File

@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/* ctr_prng.h - TinyCrypt interface to a CTR-PRNG implementation */
/*

View File

@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/* ecc.h - TinyCrypt interface to common ECC functions */
/* Copyright (c) 2014, Kenneth MacKay

View File

@@ -1,4 +1,8 @@
/* ecc_dh.h - TinyCrypt interface to EC-DH implementation */
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Copyright (c) 2014, Kenneth MacKay

View File

@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/* ecc_dh.h - TinyCrypt interface to EC-DSA implementation */
/*

View File

@@ -1,4 +1,8 @@
/* uECC_platform_specific.h - Interface to platform specific functions*/
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/* Copyright (c) 2014, Kenneth MacKay
* All rights reserved.

View File

@@ -1,4 +1,8 @@
/* hmac.h - TinyCrypt interface to an HMAC implementation */
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
@@ -124,7 +128,7 @@ int tc_hmac_update(TCHmacState_t ctx, const void *data,
* key == NULL or
* taglen != TC_SHA256_DIGEST_SIZE
* @note ctx is erased before exiting. This should never be changed/removed.
* @note Assumes the tag bufer is at least sizeof(hmac_tag_size(state)) bytes
* @note Assumes the tag buffer is at least sizeof(hmac_tag_size(state)) bytes
* state has been initialized by tc_hmac_init
* @param tag IN/OUT -- buffer to receive computed HMAC tag
* @param taglen IN -- size of tag in bytes

View File

@@ -1,4 +1,8 @@
/* hmac_prng.h - TinyCrypt interface to an HMAC-PRNG implementation */
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.

View File

@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/* sha256.h - TinyCrypt interface to a SHA-256 implementation */
/*

View File

@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/* utils.h - TinyCrypt interface to platform-dependent run-time operations */
/*

View File

@@ -0,0 +1,87 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "esp_tinycrypt_port.h"
#include "esp_crypto_lock.h"
#include "esp_private/esp_crypto_lock_internal.h"
#if SOC_ECC_SUPPORTED
#include "hal/ecc_hal.h"
#include "hal/ecc_ll.h"
#endif /* SOC_ECC_SUPPORTED */
#if SOC_ECC_SUPPORTED
static void esp_tinycrypt_acquire_ecc_hardware(void)
{
esp_crypto_ecc_lock_acquire();
ECC_RCC_ATOMIC() {
ecc_ll_enable_bus_clock(true);
ecc_ll_power_up();
ecc_ll_reset_register();
}
}
static void esp_tinycrypt_release_ecc_hardware(void)
{
ECC_RCC_ATOMIC() {
ecc_ll_enable_bus_clock(false);
ecc_ll_power_down();
}
esp_crypto_ecc_lock_release();
}
int esp_tinycrypt_verify_ecc_point(const uint8_t *pk_x, const uint8_t *pk_y, uint8_t length)
{
int result;
esp_tinycrypt_acquire_ecc_hardware();
ecc_hal_write_verify_param(pk_x, pk_y, length);
ecc_hal_set_mode(ECC_MODE_VERIFY);
ecc_hal_start_calc();
while (!ecc_hal_is_calc_finished());
result = ecc_hal_read_verify_result();
esp_tinycrypt_release_ecc_hardware();
if (result == 1) {
return 0;
} else {
return -1;
}
}
int esp_tinycrypt_calc_ecc_mult(const uint8_t *p_x, const uint8_t *p_y, const uint8_t *scalar,
uint8_t *r_x, uint8_t *r_y, uint8_t num_bytes, bool verify_first)
{
int ret = -1;
ecc_mode_t work_mode = verify_first ? ECC_MODE_VERIFY_THEN_POINT_MUL : ECC_MODE_POINT_MUL;
esp_tinycrypt_acquire_ecc_hardware();
ecc_hal_write_mul_param(scalar, p_x, p_y, num_bytes);
ecc_hal_set_mode(work_mode);
/*
* Enable constant-time point multiplication operations for the ECC hardware accelerator,
* if supported for the given target. This protects the ECC multiplication operation from
* timing attacks. This increases the time taken (by almost 50%) for some point
* multiplication operations performed by the ECC hardware accelerator.
*/
ecc_hal_enable_constant_time_point_mul(true);
ecc_hal_start_calc();
while (!ecc_hal_is_calc_finished());
ret = ecc_hal_read_mul_result(r_x, r_y, num_bytes);
esp_tinycrypt_release_ecc_hardware();
return ret;
}
#endif /* SOC_ECC_SUPPORTED */

View File

@@ -0,0 +1,15 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdint.h>
#include <stdbool.h>
#include "soc/soc_caps.h"
#if SOC_ECC_SUPPORTED
int esp_tinycrypt_verify_ecc_point(const uint8_t *pk_x, const uint8_t *pk_y, uint8_t length);
int esp_tinycrypt_calc_ecc_mult(const uint8_t *p_x, const uint8_t *p_y, const uint8_t *scalar,
uint8_t *r_x, uint8_t *r_y, uint8_t num_bytes, bool verify_first);
#endif /* SOC_ECC_SUPPORTED */

View File

@@ -1,4 +1,8 @@
/* aes_decrypt.c - TinyCrypt implementation of AES decryption procedure */
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
@@ -30,6 +34,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
/* aes_decrypt.c - TinyCrypt implementation of AES decryption procedure */
#include <tinycrypt/aes.h>
#include <tinycrypt/constants.h>
#include <tinycrypt/utils.h>

View File

@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/* aes_encrypt.c - TinyCrypt implementation of AES encryption procedure */
/*

View File

@@ -1,4 +1,8 @@
/* cbc_mode.c - TinyCrypt implementation of CBC mode encryption & decryption */
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.

View File

@@ -1,4 +1,8 @@
/* ccm_mode.c - TinyCrypt implementation of CCM mode */
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
@@ -30,6 +34,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
/* ccm_mode.c - TinyCrypt implementation of CCM mode */
#include <tinycrypt/ccm_mode.h>
#include <tinycrypt/constants.h>
#include <tinycrypt/utils.h>

View File

@@ -1,4 +1,8 @@
/* cmac_mode.c - TinyCrypt CMAC mode implementation */
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.

View File

@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/* ctr_mode.c - TinyCrypt CTR mode implementation */
/*

Some files were not shown because too many files have changed in this diff Show More