Compare commits

..

3300 Commits

Author SHA1 Message Date
weiyuhan
dd9987d469 change(version): Update version to 5.0.9 2025-05-16 15:47:52 +08:00
Jiang Jiang Jian
d9f9b7d8ed Merge branch 'bugfix/fix_tbtt_timming_error_esp32' into 'release/v5.0'
bugfix: fix tbtt timing error esp32(v5.0)

See merge request espressif/esp-idf!38981
2025-05-12 17:53:11 +08:00
sibeibei
0687165375 Revert "fix(esp32): Fixed qa program may fail issue when cpu 240m (v5.0)"
This reverts commit 453f78e011.
2025-05-08 17:39:10 +08:00
Jiang Jiang Jian
84801979ff Merge branch 'feat/pawr_bugfix_v5.0' into 'release/v5.0'
fix(nimble): Fix sync handle assignment for pawr connection (v5.0)

See merge request espressif/esp-idf!38506
2025-05-07 14:12:11 +08:00
Jiang Jiang Jian
c91fa88602 Merge branch 'feat/spi_ble_log_improvement_v5.0' into 'release/v5.0'
feat(ble): Improved SPI BLE Log functionality (v5.0)

See merge request espressif/esp-idf!38737
2025-05-07 10:12:20 +08:00
Jiang Jiang Jian
6dcddbc94d Merge branch 'docs/update_ble_feature_support_status_v5.0' into 'release/v5.0'
Docs: update ble feature support status (v5.0)

See merge request espressif/esp-idf!37087
2025-05-07 10:11:02 +08:00
Jiang Jiang Jian
d1b2ad339d Merge branch 'fix/ble_mesh_trans_pending_fix_v5.0' into 'release/v5.0'
fix(ble_mesh): remove tx pending assert (v5.0)

See merge request espressif/esp-idf!38641
2025-05-07 10:10:26 +08:00
Jiang Jiang Jian
ae32f091fc Merge branch 'fix/multi_core_race_cond_in_panic_handler_v5.0' into 'release/v5.0'
fix(panic_handler): Prevent race condition in panic handler (v5.0)

See merge request espressif/esp-idf!38668
2025-05-07 10:09:57 +08:00
weiyuhan
8e363d1a0b docs(ble): Removed the Bluetooth SIG Qualification information for ESP32C6 and ESP32C5 on 5.0 2025-05-05 15:21:46 +08:00
Wei Yu Han
6fdad98ece Updated BLE feature status
(cherry picked from commit 6a584e9698)

Co-authored-by: weiyuhan <weiyuhan@espressif.com>
2025-05-05 15:21:46 +08:00
Island
54ec0a99f1 Merge branch 'bugfix/fix_cble50y25_207_v5.0' into 'release/v5.0'
Fixed MIC error disconnection when pairing with iOS devices on ESP32-C3 and ESP32-S3(7dcd455) (v5.0)

See merge request espressif/esp-idf!38760
2025-04-30 11:17:56 +08:00
chenjianhua
790859ef1a fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(edf923e)
- Fixed ble lib linkage issue
2025-04-28 12:15:29 +08:00
chenjianhua
e79ae69a92 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(edf923e)
- Fixed MIC error disconnection when pairing with iOS devices
2025-04-28 12:14:46 +08:00
Zhou Xiao
80b64e21a7 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
2025-04-25 16:03:08 +08:00
Sudeep Mohanty
a896bc5b7d 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 15:13:35 +02:00
luoxu
8493d2b42b fix(ble_mesh): remove tx pending assert 2025-04-23 14:20:15 +08:00
Jiang Jiang Jian
a7d6b07851 Merge branch 'bugfix/fix_not_update_country_in_beacon' into 'release/v5.0'
fix(wifi): fix not update country in beacon(backport v5.0)

See merge request espressif/esp-idf!38585
2025-04-22 10:19:07 +08:00
Jiang Jiang Jian
c58641e9d0 Merge branch 'fix/s2_adc_cali_loss_resolution_v5.0' into 'release/v5.0'
fix(adc): fix s2 cali loss resolution (v5.0)

See merge request espressif/esp-idf!38599
2025-04-22 10:12:34 +08:00
Jiang Jiang Jian
a5ecb8a5dc Merge branch 'bugfix/fix_some_ble_bugs_2503_v5.0' into 'release/v5.0'
Bugfix/fix some ble bugs 2503 (v5.0)

See merge request espressif/esp-idf!38287
2025-04-22 10:08:08 +08:00
Jiang Jiang Jian
1779887800 Merge branch 'bugfix/fix_some_ble_bugs_250331_esp32c3_v5.0' into 'release/v5.0'
Fixed some BLE bugs 250331 on esp32c3 (v5.0)

See merge request espressif/esp-idf!38576
2025-04-21 21:45:24 +08:00
gaoxu
aac8132912 fix(adc): fix s2 cali loss resolution 2025-04-21 19:48:05 +08:00
zhanghaipeng
287f45ad8b fix(ble/bluedroid): Fix potential uint32_t overflow in BLE btu_start_timer 2025-04-21 19:15:09 +08:00
Zhang Hai Peng
3a16029484 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-21 16:28:50 +08:00
Zhang Hai Peng
1660aa1a84 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-21 16:28:50 +08:00
Zhang Hai Peng
be5aa8712b fix(ble/bluedroid): Fixed BLE crash when disable bluedroid host
(cherry picked from commit 9dfa6ab0e9)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-04-21 16:28:50 +08:00
yinqingzhao
8ab3480ea9 fix(wifi): fix not update country in beacon 2025-04-21 16:07:21 +08:00
Chen Jian Hua
f726c1d454 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:18 +08:00
Jiang Jiang Jian
36a8ce4896 Merge branch 'fix/blemesh25-92_v5.0' into 'release/v5.0'
fix(ble_mesh): fixed issues with decrypt failed when resending messages (v5.0)

See merge request espressif/esp-idf!38556
2025-04-21 14:07:47 +08:00
Jiang Jiang Jian
77819073b7 Merge branch 'bugfix/tsens_read_abnormal_value_v5.0' into 'release/v5.0'
fix: tsens read abnormal value in esp32c2eco4(backport v5.0)

See merge request espressif/esp-idf!38553
2025-04-21 11:40:30 +08:00
Jiang Jiang Jian
26e70c3969 Merge branch 'bugfix/fix_phy_data_partition_restoring_default_fails_issue_v5.0' into 'release/v5.0'
fix(phy): fix phy data partition restoring default fails issue(Backport v5.0)

See merge request espressif/esp-idf!38552
2025-04-21 11:06:31 +08:00
Jiang Jiang Jian
0e567403ba Merge branch 'fix/revert_esp32s2_phy_lib_v50' into 'release/v5.0'
fix(phy): revert esp32s2 libphy txrx time change

See merge request espressif/esp-idf!38554
2025-04-19 15:04:36 +08:00
Jiang Jiang Jian
02f3948a84 Merge branch 'bugfix/pmkid_password_mismatch_regression_v5.0' into 'release/v5.0'
fix(wifi): Avoid writing to NVS if station configuration is not changed (Backport v5.0)

See merge request espressif/esp-idf!38466
2025-04-19 14:44:17 +08:00
Sarvesh Bodakhe
455df4ff02 fix(wifi): Avoid writing to NVS if station configuration is not changed
Fixes the regression introduced by e93ddfd739
2025-04-19 10:20:16 +05:30
Luo Xu
9e944c86a5 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:26 +08:00
Jiang Jiang Jian
5082a268a6 Merge branch 'bugfix/crypto_reset_on_exit_v5.0' into 'release/v5.0'
fix(esp_system): reset crypto peripherals before device restart (v5.0)

See merge request espressif/esp-idf!38480
2025-04-18 19:27:10 +08:00
Jiang Jiang Jian
1303c62078 Merge branch 'bugfix/fix_bt_access_ext_mem_in_intr_v5.0' into 'release/v5.0'
fix(bt/controller): update libbtdm_app.a (backport v5.0)

See merge request espressif/esp-idf!38550
2025-04-18 19:21:40 +08:00
wangtao@espressif.com
ee271a44af fix(phy): revert esp32s2 libphy txrx time change 2025-04-18 19:16:13 +08:00
sibeibei
aeeccb7a7c fix: tsens read abnormal value in esp32c2eco4 2025-04-18 19:05:27 +08:00
muhaidong
26d9925393 fix(phy): fix phy data partition restoring default fails issue
Closes https://github.com/espressif/esp-idf/issues/14698
2025-04-18 17:49:16 +08:00
linruihao
1d6002c6c2 fix(bt/controller): Fixed access external memory in isr context 2025-04-18 15:56:48 +08:00
Jin Cheng
8bd0b2dcff 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-18 15:56:31 +08:00
Jiang Jiang Jian
ef9dbc787b Merge branch 'fix/fix_wifi_connect_mem_leakage_v50' into 'release/v5.0'
fix(wifi): fix wifi connect mem leakage v50

See merge request espressif/esp-idf!38488
2025-04-18 14:43:32 +08:00
Island
5fe7b4c80f Merge branch 'change/ble_update_lib_20250414_v5.0' into 'release/v5.0'
change(ble): [AUTO_MR] 20250414 - Update ESP BLE Controller Lib (v5.0)

See merge request espressif/esp-idf!38490
2025-04-18 11:09:18 +08:00
Jiang Jiang Jian
2d8537a8f9 Merge branch 'bugfix/no_write_evt_report_v5.0' into 'release/v5.0'
fix(bt): fixed spp not reporting write event(v5.0)

See merge request espressif/esp-idf!38462
2025-04-17 15:38:55 +08:00
Abhinav Kudnar
18f69e8ef5 fix(nimble): Fix sync handle assignment for pawr connection 2025-04-17 14:33:15 +08:00
Zhou Xiao
3673c57cdd 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 14:05:22 +08:00
Zhou Xiao
fb1267a01a 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 14:05:22 +08:00
cjin
4124ce77aa feat(ble): use new section for ble sleep on ESP32-C2 2025-04-17 14:05:22 +08:00
Jiang Jiang Jian
43005566ac Merge branch 'fix/some_issues_in_bt_controller_v5.0' into 'release/v5.0'
fix(bt): fixed some issues in bt controller(backport v5.0)

See merge request espressif/esp-idf!38446
2025-04-17 12:50:17 +08:00
Jiang Jiang Jian
2122c077de Merge branch 'change/allow_keep_sar_poweron_in_light_sleep_v5.0' into 'release/v5.0'
change(esp_hw_support): allow sar power keep on during lightsleep (v5.0)

See merge request espressif/esp-idf!38427
2025-04-17 11:12:38 +08:00
Zhou Xiao
3adf9fd579 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:53:37 +08:00
wangtao@espressif.com
22bc32930c fix(wifi): fix wifi connect mem leakage 2025-04-17 10:45:46 +08:00
Jiang Jiang Jian
152eb37307 Merge branch 'fix/fix_incorrect_ota_address_assignment_v5.0' into 'release/v5.0'
fix(nimble): Fix incorrect OTA address type assignment (v5.0)

See merge request espressif/esp-idf!38352
2025-04-17 10:37:34 +08:00
Mahavir Jain
f22fd00f93 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:45:18 +08:00
xiongweichao
5abe6e4c52 fix(bt): fixed spp not reporting write event 2025-04-16 17:14:23 +08:00
Jiang Jiang Jian
bb02c680fa Merge branch 'fix/fix_uart_console_broken_after_sleep' into 'release/v5.0'
fix(esp_hw_support): fixed gpio sleep switching filling junk data to the console UART FIFO (v5.0)

See merge request espressif/esp-idf!38426
2025-04-16 16:40:10 +08:00
Jiang Jiang Jian
f1af5bbd8e Merge branch 'fix/fix_current_leakage_after_ext_osc_detect_failed_v5.0' into 'release/v5.0'
fix(esp_hw_support): fix current leakage if ext32k slow clock source not exists (v5.0)

See merge request espressif/esp-idf!38428
2025-04-16 16:39:26 +08:00
gongyantao
90c4674d4f 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:24:54 +08:00
Shreeyash
04f9e94dea fix(nimble): Fix incorrect OTA address assignment 2025-04-16 11:54:18 +05:30
wuzhenghui
6af2629bcd fix(esp_hw_support): fix unused OSC source deinit breaks XTAL32K configuration 2025-04-15 22:07:23 +08:00
wuzhenghui
2d1501f25d fix(esp_hw_support): fix current leakage if ext32k slow clock source not exists 2025-04-15 22:06:05 +08:00
wuzhenghui
f421ec9443 change(esp_hw_support): allow sar power keep on during lightsleep 2025-04-15 22:00:24 +08:00
wuzhenghui
9dc0805ccb fix(esp_hw_support): fixed gpio sleep switching filling junk data to the console UART FIFO 2025-04-15 21:57:04 +08:00
Jiang Jiang Jian
cc29434655 Merge branch 'refactor/sae_pt_flag_v5.0' into 'release/v5.0'
refactor(wifi): Optimize wifi bin size for station mode (Backport v5.0)

See merge request espressif/esp-idf!38312
2025-04-15 14:37:06 +08:00
Jiang Jiang Jian
60d1381286 Merge branch 'bugfix/esp32s2_memprot_clear_v5.0' into 'release/v5.0'
fix(esp_hw_support): clear the memory protection interrupt status on boot (backport v5.0)

See merge request espressif/esp-idf!38056
2025-04-15 14:14:37 +08:00
Jiang Jiang Jian
f3e272a293 Merge branch 'bugfix/handle_missing_unlock_v5.0' into 'release/v5.0'
fix(nimble): Fixed one missing ble_hs_unlock() (v5.0)

See merge request espressif/esp-idf!38197
2025-04-15 10:44:33 +08:00
Omar Chebib
ffe8d09f17 fix(esp_hw_support): clear the memory protection interrupt status on boot
Fixes https://github.com/espressif/esp-idf/issues/15359
2025-04-14 19:05:36 +08:00
Sajia
3d0ceacd35 refactor(wifi): Optimize wifi bin size for station mode 2025-04-14 14:26:13 +05:30
Jiang Jiang Jian
4426dd5e8d Merge branch 'fix/sdmmc_write_sectors_dma_always_send_cmd13_v5.0' into 'release/v5.0'
fix(sdmmc): sdmmc_write_sectors_dma always check card status after write (v5.0)

See merge request espressif/esp-idf!34344
2025-04-14 15:04:17 +08:00
Jiang Jiang Jian
e8d1e3ced7 Merge branch 'fix/ssdmmc_send_cmd_set_relative_addr_rca_v5.0' into 'release/v5.0'
fix(sdmmc): Retry to get another RCA if the previous response was 0 (v5.0)

See merge request espressif/esp-idf!34348
2025-04-14 15:03:07 +08:00
Jiang Jiang Jian
0318fe86ba Merge branch 'refactor/improve_p4_psram_timing_tuning_point_selection_v5.0' into 'release/v5.0'
mspi: improve p4 psram timing tuning point selection (v5.0)

See merge request espressif/esp-idf!38192
2025-04-14 15:01:34 +08:00
Jiang Jiang Jian
e2aa03c18d Merge branch 'fix/update_os_time_struct_v5.0' into 'release/v5.0'
fix(esp_wifi): Modifying os_time_t datatype for platform and compiler independence

See merge request espressif/esp-idf!36710
2025-04-11 19:32:39 +08:00
tarun.kumar
04b73079b4 fix(esp_wifi): Modifying os_time_t datatype for platform and compiler independence 2025-04-10 13:05:55 +05:30
Rahul Tank
5321b3726e fix(nimble): Fixed one missing ble_hs_unlock() 2025-04-10 11:29:07 +05:30
Jiang Jiang Jian
8df0a41ec4 Merge branch 'fix/examples_python3.13_ssl_conn_failure_v5.0' into 'release/v5.0'
Change in Python3.13's default ssl context caused SSL connection failure (v5.0)

See merge request espressif/esp-idf!38203
2025-04-10 11:16:27 +08:00
Jiang Jiang Jian
e8d066f8d4 Merge branch 'fix/fix_sleep_reject_on_esp32_v5.0' into 'release/v5.0'
fix(esp_hw_support): fix short duration sleep requests rejected in pd_flash lightsleep (v5.0)

See merge request espressif/esp-idf!38225
2025-04-10 11:15:48 +08:00
Jiang Jiang Jian
5fa881ddb0 Merge branch 'ci/add_test_for_ecos_wifi_enterprise_v50' into 'release/v5.0'
ci(c2/c3): add major eco version tests(v5.0)

See merge request espressif/esp-idf!37796
2025-04-10 11:15:27 +08:00
armando
9a713f9b7d refactor(mspi): improved timing tuning max consecutive success points calculation 2025-04-10 10:49:02 +08:00
Jiang Jiang Jian
e5dc75ea6a Merge branch 'bugfix/handle_invalid_rd_rem_feat_v5.0' into 'release/v5.0'
fix(nimble): Handle connection posting condition (v5.0)

See merge request espressif/esp-idf!38231
2025-04-10 10:46:20 +08:00
Jiang Jiang Jian
c08af7bd46 Merge branch 'feat/optimize_cble50y24_111_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Added BLE eddystone sender example (v5.0)

See merge request espressif/esp-idf!38154
2025-04-10 10:38:59 +08:00
Jiang Jiang Jian
a5b58094ec Merge branch 'bugfix/fix_sscanf_usage_v5.0' into 'release/v5.0'
fix(nimble): Updated sscanf usage in examples to work for all versions (v5.0)

See merge request espressif/esp-idf!38025
2025-04-10 10:37:01 +08:00
Jiang Jiang Jian
34240b11c6 Merge branch 'feat/update_mbedtls_3.6.3_v5.0' into 'release/v5.0'
feat(component/mbedtls): update to upstream v3.6.3 (v5.0)

See merge request espressif/esp-idf!38183
2025-04-10 10:34:35 +08:00
Jiang Jiang Jian
a8e0e0b1f7 Merge branch 'feat/eap_domain_check_v5.0' into 'release/v5.0'
esp_wifi: Add EAP domain validation support (v5.0)

See merge request espressif/esp-idf!38283
2025-04-10 10:33:59 +08:00
Rahul Tank
cd79294cfb fix(nimble): Updated sscanf usage in examples to work for all versions 2025-04-09 18:33:48 +05:30
Kapil Gupta
816e7bf914 fix(esp_wifi): Flush PMK when EAP configuration is changed 2025-04-09 14:43:46 +05:30
Kapil Gupta
8a57b738e9 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-08 18:08:36 +05:30
zhangbowen
7ec49b1c01 feat(bt/bluedroid): Added BLE eddystone sender example 2025-04-07 19:54:10 +08:00
Michael Stoll
ef0ab70bd2 fix: Force validate when using the default crt bundle 2025-04-07 14:53:03 +05:30
Michael Stoll
dbb1715325 feat: Add domain match to wifi_enterprise example 2025-04-07 14:53:02 +05:30
Michael Stoll
b004916c87 feat(esp_wifi): Implement esp_eap_client_set_domain_match 2025-04-07 14:53:02 +05:30
Island
8efb55e925 Merge branch 'bugfix/fixed_c2eco4_ble_crash_issue_5.0' into 'release/v5.0'
fix(ble): fixed a heap assertion issue when enabling BLE for esp32c2 v2.0

See merge request espressif/esp-idf!38218
2025-04-03 14:43:52 +08:00
Rahul Tank
4249e00820 fix(nimble): Handle connection posting condition 2025-04-03 11:11:41 +05:30
harshal.patil
8094b821c8 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 11:06:18 +05:30
wuzhenghui
fc823576ac fix(esp_hw_support): fix min sleep time calculation missmatch in powerdown flash decision 2025-04-03 11:50:34 +08:00
Shen Weilong
a8f3e33fbe fix(ble): fixed a heap assertion issue when enabling BLE for esp32c2 v2.0 2025-04-03 09:00:03 +08:00
luaijun
302eb16a60 ci(c2/c3): add major eco version tests(v5.0) 2025-04-02 19:09:48 +08:00
Ashish Sharma
905f73a4ab feat(mbedtls): new config to allow weak cert verification 2025-04-02 10:21:44 +05:30
Ashish Sharma
ea79647066 feat(mbedtls): update to version 3.6.3 2025-04-02 10:12:17 +05:30
Jiang Jiang Jian
6cb14d5b2f Merge branch 'support/add_srp_salt_ver_gen_api_v5.0' into 'release/v5.0'
Generate Salt and verifier pair for given username and password (v5.0)

See merge request espressif/esp-idf!37914
2025-04-02 10:41:23 +08:00
Jiang Jiang Jian
dda08430cd Merge branch 'bugfix/pmkid_password_mismatch_v5.0' into 'release/v5.0'
fix(wifi): Fix wrong PMKSA cache entry being used when wifi password is changed (Backport v5.0)

See merge request espressif/esp-idf!38167
2025-04-02 10:40:32 +08:00
Sajia
a2bf35b1a5 fix(wifi): Fix crash when set config is called with changed password
Closes https://github.com/espressif/esp-idf/issues/15584
2025-04-01 19:38:36 +08:00
Sarvesh Bodakhe
e93ddfd739 fix(wifi): Fix wrong PMKSA cache entry being used when wifi password is changed 2025-04-01 19:38:36 +08:00
Jiang Jiang Jian
9842b1fac1 Merge branch 'feature/support_sco_coexist_v5.0' into 'release/v5.0'
feat(coex): Support BR/EDR (e)SCO and Wi-Fi coexistence

See merge request espressif/esp-idf!38137
2025-04-01 19:29:59 +08:00
Rahul Tank
d1deab0248 Merge branch 'bugfix/reattempt_sync_failed_unlock_v5.0' into 'release/v5.0'
fix(nimble): Added ble_hs_unlock for resync failed (v5.0)

See merge request espressif/esp-idf!38101
2025-04-01 14:42:19 +08:00
Vikram Dattu
f5a5db5057 feat(provisioning): Generate Salt and verifier pair for given username and password
This commit adds a new feature to generate a salt and verifier pair for a given username and
password during the provisioning process. This is useful in scenarios where the pairing pin is
randomly generated and shown via some interface such as a display or console.

- Uses the provided username and password to generate a salt and verifier pair
- Adds support for dev mode where the pin/password can still be read from flash
2025-04-01 10:56:21 +05:30
Vikram Dattu
6eb74a9f41 refactor(esp_srp): Expose esp_srp.h and add API docs
- Also added missing `protocomm_security2` reference in `protocomm.rst`
2025-04-01 10:56:17 +05:30
Island
be5933cc61 Merge branch 'feat/support_blecrt_359_v5.0' into 'release/v5.0'
Support BLE vendor hci set rx sensie and max gain on esp32c3 (v5.0)

See merge request espressif/esp-idf!38126
2025-04-01 11:04:25 +08:00
baohongde
f0023145c7 feat(coex): Support BR/EDR (e)SCO and Wi-Fi coexistence 2025-04-01 10:39:29 +08:00
Jiang Jiang Jian
68448cf7e1 Merge branch 'fix/__atomic_test_and_set_v5.0' into 'release/v5.0'
fix(newlib): fix __atomic_test_and_set to ensure atomicity (v5.0)

See merge request espressif/esp-idf!37454
2025-04-01 10:32:31 +08:00
Jiang Jiang Jian
3f94b6b77b Merge branch 'fix/fix_dhcp_server_recv_decline_issue_v50' into 'release/v5.0'
fix(dhcp): fix dhcp server recv decline issue v50

See merge request espressif/esp-idf!38131
2025-04-01 10:32:02 +08:00
wangtao@espressif.com
1e29e38919 fix(dhcp): fix dhcp server recv decline issue 2025-03-31 14:07:20 +08:00
Alexey Lapshin
742d7a9f37 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-03-31 11:58:17 +07:00
Chen Jian Hua
45670f7761 feat(bt): Update bt lib for ESP32-C3 and ESP32-S3(566c8e3)
- Support BLE vendor hci set RX sensitivity and AGC gain command


(cherry picked from commit 8742bbe553)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-03-31 12:05:08 +08:00
Jiang Jiang Jian
02cead408e Merge branch 'fix/fix_esp32s2_recv_24m_ba_issue_v50' into 'release/v5.0'
fix(wifi): fix esp32s2 recv 24M BA issue v50

See merge request espressif/esp-idf!38116
2025-03-31 11:41:54 +08:00
Jiang Jiang Jian
c5436dd14f Merge branch 'ci/add_build_test_eco_versions_v5.0' into 'release/v5.0'
ci: add build test for eco versions (v5.0)

See merge request espressif/esp-idf!35822
2025-03-31 11:30:40 +08:00
Adam Múdry
91b891c259 fix(sdmmc): Send status (CMD13) even if write/read command fails 2025-03-31 11:09:44 +08:00
Adam Múdry
20e0788361 fix(sdmmc): Improve SD card state checking after write/read command 2025-03-31 11:09:44 +08:00
Adam Múdry
a908cf2aea fix(sdmmc): Retry to get another RCA if the previous response was 0 2025-03-31 10:54:48 +08:00
Jiang Jiang Jian
f7faec9bee Merge branch 'bugfix/fix_wep_shared_auth_association_timeout_issue_v5.0' into 'release/v5.0'
fix(wifi): fix association timeout timer issue for wep shared auth(Backport v5.0)

See merge request espressif/esp-idf!38111
2025-03-31 10:50:37 +08:00
Rahul Tank
3adb4edd92 Merge branch 'fix/periodic_adv_example_v5.0' into 'release/v5.0'
fix(nimble):Fix conversion for min-max itvl of periodic adv param (v5.0)

See merge request espressif/esp-idf!38095
2025-03-29 19:46:07 +08:00
wangtao@espressif.com
665fd1a895 fix(wifi): fix esp32s2 recv 24M BA issue 2025-03-29 15:18:51 +08:00
Michael (XIAO Xufeng)
6471d88303 Merge branch 'bugfix/cache2phys_xip_v5.0' into 'release/v5.0'
fix(mmap): fixed spi_flash_cache2phys return addr in PSRAM issue (v5.0)

See merge request espressif/esp-idf!38051
2025-03-28 18:13:42 +08:00
muhaidong
d377d94877 fix(wifi): fix association timeout timer issue for wep shared auth 2025-03-28 17:15:41 +08:00
Astha Verma
ed3f29442f fix(nimble): Added ble_hs_unlock for resync failed 2025-03-28 12:20:38 +05:30
Abhinav Kudnar
fbfc85feac fix(nimble): Fix conversion for min-max itvl of periodic adv param 2025-03-28 14:24:12 +08:00
Xiao Xufeng
b71af88f45 ci: increase UT_C2 parallel num 2025-03-28 13:34:49 +08:00
Xiao Xufeng
4e6af199f2 ci(spi_flash): add tests for cache2phys with XIP 2025-03-28 13:34:49 +08:00
Xiao Xufeng
0f1c8cc986 fix(mmap): fixed spi_flash_phys2cache return addr in PSRAM issue
When SPIRAM_FETCH_INSTRUCTIONS or SPIRAM_RODATA enabled
2025-03-28 13:34:48 +08:00
Xiao Xufeng
2e3c42e41f fix(mmap): fixed spi_flash_cache2phys return addr in PSRAM issue
When SPIRAM_FETCH_INSTRUCTIONS or SPIRAM_RODATA enabled
2025-03-28 13:34:48 +08:00
morris
5214c71dec Merge branch 'bugfix/ledc_fade_stop_race_condition_v5.0' into 'release/v5.0'
fix(ledc): fix race condition in ledc_fade_stop causing assert failure (v5.0)

See merge request espressif/esp-idf!38084
2025-03-28 11:49:08 +08:00
morris
89bcbca982 Merge branch 'fix/mmu_multicore_app_bl_v5.0' into 'release/v5.0'
fix(MMU): fixed mmap deadlock when using multicore app with unicore bootloader (v5.0)

See merge request espressif/esp-idf!32899
2025-03-28 10:59:42 +08:00
Jiang Jiang Jian
22789f45d6 Merge branch 'backport/backport_some_changes_to_v5.0' into 'release/v5.0'
fix(wifi): fix some wifi bugs(Backport v5.0)

See merge request espressif/esp-idf!38071
2025-03-28 10:02:22 +08:00
Wang Meng Yang
c0478d2ed7 Merge branch 'bugfix/sec_service_record_conn_fail_v5.0' into 'release/v5.0'
fix(bt/bluedroid): fix the issue of connection failure when initializing multiple profiles(v5.0)

See merge request espressif/esp-idf!38078
2025-03-28 09:14:34 +08:00
Song Ruo Jing
3e44f63640 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:36 +08:00
xiongweichao
481022f028 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 20:05:57 +08:00
Roland Dobai
90712386fd Merge branch 'fix/check_python_dependencies_v5.0' into 'release/v5.0'
fix(tools): handle packages with dots in their names during dependency checks (v5.0)

See merge request espressif/esp-idf!38066
2025-03-27 19:37:46 +08:00
Xiao Xufeng
8532aab32b ci(mmu): add unicore test 2025-03-27 18:15:28 +08:00
yinqingzhao
fe923b3b4b fix(sniffer): fix channel in rx_ctrl is zero when using sniffer 2025-03-27 17:29:15 +08:00
Island
87a728c41d Merge branch 'feature/add_vendor_ble_cmd_definitions_5.0' into 'release/v5.0'
Feature/add vendor ble cmd definitions (v5.0)

See merge request espressif/esp-idf!37962
2025-03-27 17:14:49 +08:00
Frantisek Hrbata
fd3b6c61c7 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:45 +01:00
Jiang Jiang Jian
b39b0cc47f Merge branch 'bugfix/fix_scan_info_error_in_lr_only_mode_v5.0' into 'release/v5.0'
fix(wifi): Fixed the scan information error in LR only mode (v5.0)

See merge request espressif/esp-idf!37904
2025-03-27 14:27:22 +08:00
morris
ac8137d181 Merge branch 'fix/i2s_iram_safe_issue_while_use_psram_v5.0' into 'release/v5.0'
fix(i2s): fixed failure when dma is iram_safe but i2s not (v5.0)

See merge request espressif/esp-idf!38007
2025-03-27 14:18:44 +08:00
morris
10130e92d7 Merge branch 'contrib/github_pr_15484_v5.0' into 'release/v5.0'
fix(twai): fixed twai assert fail during recover (GitHub PR) (v5.0)

See merge request espressif/esp-idf!37996
2025-03-27 13:45:35 +08:00
diplfranzhoepfinger
d1b03d36ba 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-03-27 11:24:07 +08:00
zhangyanjiao
02cebb0975 fix(wifi): Added timer to send wake null after STA received assoc response 2025-03-27 10:48:02 +08:00
zhangyanjiao
f41ea3257d fix(wifi): Fixed the scan information error in LR only mode 2025-03-27 10:43:10 +08:00
zhangyanjiao
b7a612cd00 fix(wifi): Fixed the max log level not work when it exceeds the default log level 2025-03-27 10:43:10 +08:00
zhangyanjiao
7157645d65 docs(wifi): update the description for esp_mesh_send() return value
Closes https://github.com/espressif/esp-idf/issues/14440
2025-03-27 10:43:10 +08:00
zhangyanjiao
852feea9dd fix(wifi): Update the doc for espnow add peer 2025-03-27 10:43:10 +08:00
Xiao Xufeng
c1bd3d2925 fix(MMU): fixed mmap deadlock when using multicore app with unicore bootloader
Closes https://github.com/espressif/esp-idf/issues/11617
2025-03-27 00:23:49 +08:00
Jiang Jiang Jian
29797ad298 Merge branch 'bugfix/pmf_enabled_sae_query_v5.0' into 'release/v5.0'
fix(wifi): SA Query responses not transmitted (Backport v5.0)

See merge request espressif/esp-idf!38009
2025-03-26 21:28:24 +08:00
Shen Weilong
1e3a0daddf feat(bt): fixed some doc error and add ocf parameters description 2025-03-26 13:26:38 +08:00
Rahul Tank
ac367ac8b8 Merge branch 'feature/expose_ble_gap_wl_tx_add_v5.0' into 'release/v5.0'
fix(nimble): Exposed the ble_gap_wl_tx_add API to add a device in whitelist(v5.0)

See merge request espressif/esp-idf!37649
2025-03-25 19:09:04 +08:00
akshat
e458f633d7 fix(wifi): Fix occasional dropping of SA Query responses by SoftAP 2025-03-25 13:00:20 +05:30
laokaiyao
02799dbee2 fix(i2s): add check for i2s DMA buffer array allocation
Closes https://github.com/espressif/esp-idf/issues/15607
2025-03-25 15:28:55 +08:00
Shen Weilong
98acfd514b feat(bt): added definitions for bluetooth hci vendor commands and events 2025-03-25 15:24:21 +08:00
laokaiyao
1b7004fdeb 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:21:53 +08:00
Shen Weilong
8c74230b77 feat(ble/controller): Added memory boundary check for ESP32-C2 2025-03-25 14:38:00 +08:00
zhiweijian
33e15accdd fix(bt): Update bt lib for ESP32-C3 and ESP32-S3 (03d0f8a6)
- Remove unused functions in the controller
2025-03-25 14:38:00 +08:00
baohongde
b03bac9a72 feat(bt): added definitions for BR/EDR hci vendor commands and events 2025-03-25 14:38:00 +08:00
chenjianhua
85a2c95aa7 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-25 14:38:00 +08:00
Abhinav Kudnar
c9b4a39dea fix(nimble): Exposed the ble_gap_wl_tx_add API to add a device in whitelist 2025-03-25 11:45:15 +05:30
Aditya Patwardhan
7ff465074f Merge branch 'bugfix/provisioning_sec2_aes_iv_usage_v5.0' into 'release/v5.0'
fix(provisioning): fix incorrect AES-GCM IV usage in security2 scheme (v5.0)

See merge request espressif/esp-idf!37666
2025-03-25 13:57:29 +08:00
Island
096fb7f96e Merge branch 'feat/optimize_hci_data_recv_process_v5.0' into 'release/v5.0'
Feat/optimize hci data recv process (v5.0)

See merge request espressif/esp-idf!37830
2025-03-25 11:04:51 +08:00
Zhao Wei Liang
72f23505ed feat(ble): optimize reconfig hci uart pin code 2025-03-24 17:28:41 +08:00
Zhao Wei Liang
9c64256462 feat(ble): change nimble whitelist max size to 31
(cherry picked from commit 93357e8613)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-24 17:28:41 +08:00
Zhao Wei Liang
a9d9e092d2 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-24 17:28:41 +08:00
Zhao Wei Liang
ea3f6d7329 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-24 17:28:41 +08:00
Zhao Wei Liang
922db69683 fix(ble): fixed hci assertion issue when uart interference occurs
(cherry picked from commit 84f0b39e4d)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-24 17:28:41 +08:00
morris
da555cce40 Merge branch 'bugfix/usj_wrong_return_value_v5.0' into 'release/v5.0'
fix(usb_serial_jtag): wrong return value in usb_serial_jtag_write_bytes (v5.0)

See merge request espressif/esp-idf!37973
2025-03-24 16:06:16 +08:00
Jiang Jiang Jian
1920192291 Merge branch 'bugfix/wps_reconnect_failure_v5.0' into 'release/v5.0'
fix(wpa_suppplicant): Fix for issue in wps reconnection (Backport v5.0)

See merge request espressif/esp-idf!37646
2025-03-24 15:01:27 +08:00
Wang Meng Yang
6683d50054 Merge branch 'bugfix/fix_esp32_bt_disable_crash_v5.0' into 'release/v5.0'
fix(bt): Fix controller disable cause iwdt timeout on esp32 (v5.0)

See merge request espressif/esp-idf!37776
2025-03-24 14:29:47 +08:00
Wang Meng Yang
63b16bcdda Merge branch 'bugfix/err_disc_state_changed_evt_v5.0' into 'release/v5.0'
fix(bt/bluedroid): fixed other events being reported when disconnected(v5.0)

See merge request espressif/esp-idf!37940
2025-03-24 14:10:16 +08:00
Island
e29cfa8952 Merge branch 'change/ble_update_lib_20250313_v5.0' into 'release/v5.0'
change(ble): [AUTO_MR] 20250313 - Update ESP BLE Controller Lib (v5.0)

See merge request espressif/esp-idf!37818
2025-03-24 12:53:40 +08:00
morris
1f86a3e289 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:47:44 +08:00
Mahavir Jain
9d73231cf9 Merge branch 'refactor/protocomm_public_hdr_v5.0' into 'release/v5.0'
refactor(protocomm): Make the protocomm `proto-c` headers public (v5.0)

See merge request espressif/esp-idf!37786
2025-03-21 12:02:15 +08:00
xiongweichao
a227b6ad44 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:24:18 +08:00
morris
4d78c54a95 Merge branch 'feat/unilc_psram_s3_v5.0' into 'release/v5.0'
psram: supported UnilC octal psram on s3 (v5.0)

See merge request espressif/esp-idf!37858
2025-03-21 10:06:37 +08:00
Roland Dobai
83b9a4de2e Merge branch 'fix/extractall_deprecation_v5.0' into 'release/v5.0'
fix(idf_tools): Patch extractall() deprecation warning (v5.0)

See merge request espressif/esp-idf!37887
2025-03-21 02:03:06 +08:00
Roland Dobai
6bbaf8b88d Merge branch 'fix/install_input_validation_v5.0' into 'release/v5.0'
fix(idf_tools): Validate input features (v5.0)

See merge request espressif/esp-idf!37893
2025-03-21 01:58:40 +08:00
Rahul Tank
30ff8658a7 Merge branch 'bugfix/fix_smp_command_allocation_v5.0' into 'release/v5.0'
fix(nimble): Fix SMP command allocation (v5.0)

See merge request espressif/esp-idf!37850
2025-03-20 20:32:59 +08:00
Geng Yuchao
32e72c42e8 fix(ble): Add link requires esp_phy for ble. 2025-03-20 09:48:47 +08:00
Zhou Xiao
9ac3dcf07d feat(ble): support ble log simple output via SPI interface 2025-03-20 09:48:35 +08:00
Radim Karniš
52d60d161c fix(idf_tools): Patch extractall() deprecation warning 2025-03-19 22:07:57 +01:00
Radim Karniš
59ca6c93b4 fix(idf_tools): Validate input features 2025-03-19 22:04:17 +01:00
Rahul Tank
39e996bac0 fix(nimble): Fix SMP command allocation 2025-03-19 20:58:33 +05:30
Rahul Tank
0ba9ba4b78 Merge branch 'feat/implement_vendor_event_mask_vsc_v5.0' into 'release/v5.0'
feat(nimble): Add support for Vendor Event mask VSC(v5.0)

See merge request espressif/esp-idf!37733
2025-03-19 20:45:08 +08:00
Laukik Hase
2c0fcb7a1f refactor(protocomm): Make the protocomm proto-c headers public 2025-03-19 16:29:21 +05:30
armando
ed545ba844 feat(psram): supported new octal psram on s3 2025-03-19 10:26:47 +08:00
Zhou Xiao
a72a99dae5 fix(ble): fix ble log init failure mem leak for ESP32
(cherry picked from commit bb9dc5a927)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-03-18 12:53:43 +08:00
Zhou Xiao
f3b25c4b34 fix(ble): fix ble log init failure mem leak for ESP32-C3
(cherry picked from commit 9ff9fb0661)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-03-18 12:53:41 +08:00
Zhou Xiao
d21703765b feat(ble): add enhanced connect function on ESP32-C2
(cherry picked from commit 71cea01694)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-18 12:53:39 +08:00
Zhou Xiao
b424d7bcb6 feat(ble): support ble log simple output via SPI interface for ESP32-C2
(cherry picked from commit df829ac919)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-03-18 12:53:37 +08:00
Zhou Xiao
32c92aed88 change(ble): [AUTO_MR] Update lib_esp32c2 to 5d9a6661
(cherry picked from commit f198302067)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-03-18 12:53:34 +08:00
Mahavir Jain
4909d72f9e feat(protocomm): add (hidden) config option to indicate security patch feature 2025-03-17 13:37:22 +05:30
Shreeyash
c05421bd88 feat(nimble): support vendor event mask set and vendor HCI event on nimble host 2025-03-15 16:56:13 +05:30
Rahul Tank
e6c139e56f Merge branch 'bugfix/fix_event_deinit_sequence_v5.0' into 'release/v5.0'
fix(nimble): Fix incorrect event deinit in gatt caching discovery (v5.0)

See merge request espressif/esp-idf!37727
2025-03-15 19:18:26 +08:00
Rahul Tank
5676daedfb fix(nimble): Fix incorrect event deinit in gatt caching discovery 2025-03-14 19:18:24 +05:30
linruihao
af82753edd fix(bt): Fix controller disable cause iwdt timeout on esp32 2025-03-14 17:53:24 +08:00
Island
3d2ad66e4c Merge branch 'feature/move_tinycrypt_to_bt_common_v5.0' into 'release/v5.0'
Feature/move tinycrypt to bt common (v5.0)

See merge request espressif/esp-idf!37578
2025-03-14 15:41:56 +08:00
morris
7a59dfe095 Merge branch 'bugfix/sdmmc_high_prio_timeout_v5.0' into 'release/v5.0'
fix(sdmmc): move DMA descriptor refilling into the ISR (v5.0)

See merge request espressif/esp-idf!37691
2025-03-14 11:48:52 +08:00
Island
651fa8fd41 Merge branch 'bugfix/reduce_controller_bin_size_v5.0' into 'release/v5.0'
fix(ble/controller): reduce controller bin size (backport v5.0)

See merge request espressif/esp-idf!37745
2025-03-14 10:59:56 +08:00
Island
62e181e185 Merge branch 'fix/feed_wdts_during_ble_log_dump_c2_v5.0' into 'release/v5.0'
fix(ble): add feed wdts during ble log dump for ESP32-C2 (v5.0)

See merge request espressif/esp-idf!37716
2025-03-13 19:34:15 +08:00
zhiweijian
997d96157e fix(ble/controller): reduce controller bin size 2025-03-13 17:42:36 +08:00
Shen Weilong
32370b047e feat(bt): support hardware ecc acceleration for bt tinycrypt 2025-03-13 17:35:20 +08:00
Island
95cafb5a32 Merge branch 'bugfix/fix_some_ble_bugs_250220_esp32c3_v5.0' into 'release/v5.0'
Fixed some BLE bugs 250220 on esp32c3(b34b7d6) (v5.0)

See merge request espressif/esp-idf!37697
2025-03-13 17:34:20 +08:00
Island
b230faf2e1 Merge branch 'feature/update_controller_lib_20250310_v5.0' into 'release/v5.0'
Feature/update controller lib 20250310 (v5.0)

See merge request espressif/esp-idf!37678
2025-03-13 14:24:28 +08:00
Zhou Xiao
35f1090636 fix(ble): add feed wdts during ble log dump for ESP32-C2
(cherry picked from commit e2e8e7dce1)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-03-13 12:53:30 +08:00
Island
1f51604a5d Merge branch 'bugfix/disable_dbg_hci_cmd_on_esp32_v5.0' into 'release/v5.0'
Disable debug vendor hci command on ESP32 (v5.0)

See merge request espressif/esp-idf!37626
2025-03-13 10:55:46 +08:00
Jiang Jiang Jian
efd8975a65 Merge branch 'fix/add_sta_authmode_for_sta_connect_v5.0' into 'release/v5.0'
Modify authmode to sta for sta connect event(backport v5.0)

See merge request espressif/esp-idf!37653
2025-03-12 22:17:29 +08:00
Wang Meng Yang
36f41bfc45 Merge branch 'bugfix/spp_free_server_slot_err_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fixed freeing spp server memory when disconnected(v5.0)

See merge request espressif/esp-idf!37612
2025-03-12 17:26:33 +08:00
Wang Meng Yang
7de84062c9 Merge branch 'feat/update_phy_lib_250304_5.0' into 'release/v5.0'
feat(phy): update libphy to add rx sens set api

See merge request espressif/esp-idf!37665
2025-03-12 16:26:19 +08:00
Chen Jian Hua
aaa7cb9920 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(b34b7d6)
- 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


(cherry picked from commit d672f909f3)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-03-12 15:33:18 +08:00
armando
304fc07c45 fix(sdmmc): move DMA descriptor refilling into the ISR 2025-03-12 11:32:13 +08:00
morris
2cec465293 Merge branch 'fix/pr_15513_psram_bss_noinit_calc_issue_v5.0' into 'release/v5.0'
psram: correct .bss and .noinit vaddr calculation (v5.0)

See merge request espressif/esp-idf!37662
2025-03-12 10:32:08 +08:00
Marius Vikhammer
be7ea1c1c2 Merge branch 'bug/xtensa_cpu1_sys_lockup_v5.0' into 'release/v5.0'
fix(panic_handler): Updated panic handler to use RTC WDT (v5.0)

See merge request espressif/esp-idf!37125
2025-03-12 10:01:25 +08:00
Shen Wei Long
dfaa34b9c6 feat(ble): tell controller if vhci is enabled for ESP32-C2
(cherry picked from commit 892b3a0b0e)

Co-authored-by: Shen Weilong <shenweilong@espressif.com>
2025-03-11 20:53:37 +08:00
shenmengjing
16bbfbff93 docs(provisioning): Sync CN translation and EN source 2025-03-11 15:57:11 +05:30
Mahavir Jain
76bd80a56b fix(esp_local_ctrl): update for changes in protocomm security2 scheme 2025-03-11 11:26:07 +05:30
Mahavir Jain
e708375782 fix(docs): update for changes in provisioning security2 scheme 2025-03-11 10:11:30 +05:30
Mahavir Jain
14bc1b4b07 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-11 10:11:02 +05:30
Mahavir Jain
d887709d45 fix(protocomm): memory leak issue for session command0 failure case 2025-03-11 10:09:52 +05:30
zwl
86b721cdd9 feat(phy): update libphy to add rx sens set api 2025-03-11 11:53:45 +08:00
armando
85e9d68324 refactor(psram): rename .bss .noinit segments to sections
Closes https://github.com/espressif/esp-idf/pull/15513
2025-03-11 11:49:04 +08:00
Erki Aring
93bdc2dd2d 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:48:58 +08:00
Island
cedd9a1db4 Merge branch 'feat/support_read_periodic_adv_size_v5.0' into 'release/v5.0'
feat(ble/bluedroid): Support read periodic advertiser list size command (v5.0)

See merge request espressif/esp-idf!37500
2025-03-11 10:52:41 +08:00
tarun.kumar
09f26ece10 fix(wifi): Modify authmode to sta for sta connect event 2025-03-10 22:52:27 +05:30
Sarvesh Bodakhe
88cce45a89 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:22:22 +05:30
Aditi
51c0d400d8 fix(wpa_suppplicant): Add fix for issue in wps reconnection 2025-03-10 15:22:17 +05:30
chenjianhua
f5b012fe41 fix(bt): Update bt lib for ESP32(e250cf1)
- Disable debug vendor hci command
2025-03-10 15:39:41 +08:00
gongyantao
9e3859f666 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:39:32 +08:00
zhanghaipeng
135a1990af feat(ble/bluedroid): Support read periodic advertiser list size command 2025-03-10 14:37:24 +08:00
Jiang Jiang Jian
44c38da499 Merge branch 'fix/fix_esp32s3_reboot_cache_failure_v5.0' into 'release/v5.0'
fix(esp_system): fix possible cache_error by another core accessing flash in esp_restart (v5.0)

See merge request espressif/esp-idf!37589
2025-03-10 11:40:53 +08:00
xiongweichao
18e13f2868 fix(bt/bluedroid): Fixed freeing spp server memory when disconnected 2025-03-10 11:11:54 +08:00
Shen Weilong
8ab6cc3bf3 change(bt): moved porting/ext/tinycrypt into common 2025-03-10 09:21:58 +08:00
wuzhenghui
6f59a9ea51 fix(esp_system): fix possible cache_error by another core accessing flash in esp_restart 2025-03-07 20:31:32 +08:00
Roland Dobai
a1577d26bc Merge branch 'fix/remove-unnecessary-select_v5.0' into 'release/v5.0'
fix(esp_system): Remove unnecessary select from esp_system/Kconfig (v5.0)

See merge request espressif/esp-idf!37525
2025-03-07 02:22:45 +08:00
Alexey Gerenkov
f5fc6672ff Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20250226_v5.0' into 'release/v5.0'
feat(tools): update openocd version to v0.12.0-esp32-20250226 (v5.0)

See merge request espressif/esp-idf!37531
2025-03-06 21:52:47 +08:00
Rahul Tank
c22e7ae6f3 Merge branch 'bugfix/fix_sc_only_pairing_v5.0' into 'release/v5.0'
fix(nimble): Fix SC only pairing failure (v5.0)

See merge request espressif/esp-idf!37536
2025-03-06 17:07:19 +08:00
Erhan Kurubas
b6af603098 feat(tools): update openocd version to v0.12.0-esp32-20250226 2025-03-05 15:56:04 +01:00
Rahul Tank
0118cb6f1b fix(nimble): Fix SC only pairing failure 2025-03-05 19:48:48 +05:30
Jan Beran
2fcd18fb5a fix(esp_system): Remove unnecessary select from esp_system/Kconfig 2025-03-05 15:17:26 +01:00
Island
df5d6cdd4e Merge branch 'feat/ble_read_long_value_v5.0' into 'release/v5.0'
feat(ble/bluedroid): Add Read Long Characteristic Values example (v5.0)

See merge request espressif/esp-idf!37485
2025-03-05 20:06:44 +08:00
Rahul Tank
16a07891d3 Merge branch 'feat/added_change_to_ble_spp_client_v5.0' into 'release/v5.0'
feat(nimble): Allow BLE SPP Client to subscribe to the server (v5.0)

See merge request espressif/esp-idf!37459
2025-03-05 16:17:29 +08:00
Island
3b60206f3b Merge branch 'bugfix/fix_ble_kconfig_v5.0' into 'release/v5.0'
fix(ble/controller): Fix BLE Kconfig on ESP32 to avoid unexpected behavior (v5.0)

See merge request espressif/esp-idf!37418
2025-03-05 15:08:05 +08:00
zhanghaipeng
5117099572 feat(ble/bluedroid): Add Read Long Characteristic Values example 2025-03-05 14:59:20 +08:00
Rahul Tank
f55e6c385b Merge branch 'bugfix/fix_link_estab_compile_failure_v5.0' into 'release/v5.0'
fix(nimble): Handle probable release breaking change (v5.0)

See merge request espressif/esp-idf!37438
2025-03-05 14:56:11 +08:00
Shreeyash
62ac09eb8f feat(nimble): Allow BLE SPP Client to subscribe to the server 2025-03-05 11:45:08 +05:30
morris
4ddfbf7941 Merge branch 'fix/build_when_rom_patch_disable_v5.0' into 'release/v5.0'
fix(spi_flash): Fix build fail when rom_patch config disabled (backport v5.0)

See merge request espressif/esp-idf!37111
2025-03-05 10:11:31 +08:00
Jiang Jiang Jian
638bb70758 Merge branch 'bugfix/fix_some_wifi_bugs_250303_v5.0' into 'release/v5.0'
fix(wifi): fix some wifi bugs 250303(Backport v5.0)

See merge request espressif/esp-idf!37444
2025-03-04 17:59:58 +08:00
Jiang Jiang Jian
0d92239a72 Merge branch 'bugfix/bt_ctrl_issues_v5.0' into 'release/v5.0'
fix(bt/controller): fixed some controller bugs on ESP32. (v5.0)

See merge request espressif/esp-idf!37400
2025-03-04 17:44:16 +08:00
C.S.M
64e169c86e refactor(spi_flash): remove redundent flash suspend check 2025-03-03 19:14:19 +08:00
Rahul Tank
99f0ecf35d 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 14:57:35 +05:30
muhaidong
a6a4cdf3b2 fix(wifi): fix some wifi bugs 250303
1. fix disable external coexist fail issue
2. fix the issue of failing to connect to a shared wep ap
2025-03-03 16:45:58 +08:00
muhaidong
085153fb82 feat(phy): update libphy for RXDC cal opt, no antenna current opt, add cca api 2025-03-03 15:58:23 +08:00
zhanghaipeng
d6f803079b fix(ble/controller): Fix BLE Kconfig on ESP32 to avoid unexpected behavior 2025-03-03 11:19:22 +08:00
Jiang Jiang Jian
c7ed859d8a Merge branch 'bugfix/fix_cache_count_flash_pages_patchs_return_wrong_value_v5.0' into 'release/v5.0'
fix(rom): Fix s2 and s3 Cache_Count_Flash_Pages rom function wrapper (v5.0)

See merge request espressif/esp-idf!37159
2025-03-03 10:39:19 +08:00
Jiang Jiang Jian
54e0f77af2 Merge branch 'bugfix/check_ssid_before_sa_query_v5.0' into 'release/v5.0'
fix(esp_wifi): Check SSID in Assoc Req before starting SA Query (Backport v5.0)

See merge request espressif/esp-idf!37213
2025-03-02 17:05:26 +08:00
Tomasz Kramkowski
bf5ce28592 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-03-02 17:03:16 +08:00
Jiang Jiang Jian
8fbdf6c409 Merge branch 'bugfix/spp_mem_leak_v5.0' into 'release/v5.0'
fix(bt/bluedroid): fixed memory leaks in SPP callback mode (v5.0)

See merge request espressif/esp-idf!37389
2025-03-02 17:00:48 +08:00
Rahul Tank
e85dbe06b4 Merge branch 'bugfix/set_data_len_post_conn_v5.0' into 'release/v5.0'
fix(nimble): update data length after connection for all chips (v5.0)

See merge request espressif/esp-idf!37292
2025-03-01 16:29:37 +08:00
Sajia
4f427f63c4 fix(esp_wifi): Check SSID in Assoc Req before starting SA Query 2025-02-28 15:11:07 +05:30
Jin Cheng
01dec39ed2 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-02-28 17:36:44 +08:00
Jin Cheng
fab1b432fb fix(bt/bluedroid): fixed memory leaks in SPP callback mode 2025-02-28 16:18:50 +08:00
Island
e69a86629a Merge branch 'feat/support_ble_vendor_hci_event_report_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Support BLE vendor hci event reporting (v5.0)

See merge request espressif/esp-idf!37350
2025-02-28 14:30:32 +08:00
Island
e831ba7722 Merge branch 'feat/add_ble_ctrl_log_module_on_esp32c3_v5.0' into 'release/v5.0'
feat(bt): Added BLE log module on ESP32-C3 and ESP32-S3(723439d) (v5.0)

See merge request espressif/esp-idf!37357
2025-02-28 14:30:20 +08:00
Jiang Jiang Jian
f2fd69cd67 Merge branch 'bugfix/reason_code_error_v50' into 'release/v5.0'
fix(esp_wifi): Fix disconnect reason code error

See merge request espressif/esp-idf!36530
2025-02-28 13:24:32 +08:00
Jiang Jiang Jian
cae81c6d0b Merge branch 'bugfix/ifdef_cplusplus_bracket_v5.0' into 'release/v5.0'
bugfix(wifi): Add missing brackets in the C++ guard (Backport v5.0)

See merge request espressif/esp-idf!36849
2025-02-28 11:50:17 +08:00
Jiang Jiang Jian
ad2af15233 Merge branch 'fix/fix_s2_s3_rtc_iomux_clock_management_v5.0' into 'release/v5.0'
fix(esp_hw_support): fix esp32s2/esp32s3 RTC IOMUX clock management (v5.0)

See merge request espressif/esp-idf!37172
2025-02-28 11:41:20 +08:00
Jiang Jiang Jian
386c346fa2 Merge branch 'fix/fix_bad_dslp_param_after_lightsleep_v5.0' into 'release/v5.0'
fix(esp_hw_support): Fixed the issue that light sleep destroyed the parameters of subsequent deep sleep (v5.0)

See merge request espressif/esp-idf!37306
2025-02-28 11:36:46 +08:00
Rahul Tank
14ff0f1836 fix(nimble): update data length after connection for all chips 2025-02-27 21:00:13 +05:30
Rahul Tank
57ed699feb Merge branch 'bugfix/deprecate_link_estab_v5.0' into 'release/v5.0'
fix(nimble): Deprecate link_estab event (v5.0)

See merge request espressif/esp-idf!37061
2025-02-27 23:22:27 +08:00
Island
66319fbcae Merge branch 'feat/add_ble_spi_log_v5.0' into 'release/v5.0'
fix(ble/bluedroid): Support SPI log output options for HCI (v5.0)

See merge request espressif/esp-idf!37337
2025-02-27 20:18:07 +08:00
wuzhenghui
fedda1cb23 fix(esp_hw_support): fix esp32s2/esp32s3 RTC IOMUX clock management 2025-02-27 17:31:14 +08:00
chenjianhua
1d489be168 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 16:12:18 +08:00
Wang Meng Yang
45acdc00ba Merge branch 'feat/support_ble_debug_with_gpio_v5.0' into 'release/v5.0'
Support change HID task size by Kconfig in HID example (v5.0)

See merge request espressif/esp-idf!36995
2025-02-27 15:07:43 +08:00
chenjianhua
ee8fbde1a2 feat(bt/bluedroid): Support BLE vendor hci event reporting 2025-02-27 15:02:38 +08:00
chenjianhua
735daff1e5 feat(bt/bluedroid): Support BLE setting vendor event mask 2025-02-27 15:00:54 +08:00
Jiang Jiang Jian
cefc3e2b26 Merge branch 'esp32/run_panic_debug_v5.0' into 'release/v5.0'
fix(esp32): Fixed qa program may fail issue when cpu 240m (v5.0)

See merge request espressif/esp-idf!37236
2025-02-27 14:20:37 +08:00
akshat
d753986556 bugfix(wifi): Fix header file errors and remove esp_supplicant from check_public_headers_exceptions.txt 2025-02-27 13:56:17 +08:00
akshat
8cb861890a bugfix(wifi): Add missing brackets in the C++ guard
Closes https://github.com/espressif/esp-idf/issues/14991
2025-02-27 13:56:17 +08:00
Jiang Jiang Jian
a4f233eacf Merge branch 'docs/fix_some_coexist_doc_issue_v5.0' into 'release/v5.0'
docs(coex): update rf coexistence documents (v5.0)

See merge request espressif/esp-idf!37348
2025-02-27 13:48:10 +08:00
Zhou Xiao
02e415448e fix(ble): fix flushout and sync issues 2025-02-27 13:13:59 +08:00
zhanghaipeng
ae24c6e9b2 fix(ble/bluedroid): Added SPI output support for Bluedroid host log 2025-02-27 13:13:51 +08:00
zhanghaipeng
3cebdc731a fix(ble/bluedroid): Support SPI log output options for HCI 2025-02-27 13:13:43 +08:00
linruihao
06d58996fb docs(coex): update rf coexistence documents
- remove BLE connecting state in coexistence scenario
2025-02-27 11:40:00 +08:00
Martin Vychodil
331e9be3b4 Merge branch 'fix/esp_vfs_register_fd_range_warning_message_v5.0' into 'release/v5.0'
fix(storage/vfs): incorrect log level in esp_vfs_register_fd_range (v5.0)

See merge request espressif/esp-idf!36322
2025-02-27 04:27:40 +08:00
Tomáš Rohlínek
4b3d802ba5 fix(storage/vfs): incorrect log level in esp_vfs_register_fd_range
Closes https://github.com/espressif/esp-idf/issues/14327
2025-02-26 15:09:40 +01:00
Martin Vychodil
e59cc9822c Merge branch 'fix/incorrect_console_open_and_close_behaviour_v5.0' into 'release/v5.0'
fix(storage/vfs_console): stop new console opens from overwriting existing fds (v5.0)

See merge request espressif/esp-idf!35271
2025-02-26 21:39:44 +08:00
Aditi
babc6045f0 fix(esp_wifi): Fix disconnect reason code error 2025-02-26 18:15:38 +05:30
wuzhenghui
011d60e6ec fix(esp_hw_support): fix lightsleep destroys deepsleep rtc parameters 2025-02-26 17:03:36 +08:00
zhanghaipeng
162331877c fix(ble): Update bt lib for ESP32(2a2631f)
- Support ESP32 BLE GPIO DEBUG
2025-02-26 16:20:54 +08:00
Sudeep Mohanty
68277df469 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-02-26 08:38:05 +01:00
Island
94adab5492 Merge branch 'bugfix/fix_ble_report_len_v5.0' into 'release/v5.0'
fix(ble/bluedroid): Fix adv data and scan rsp data not reported together in BLE active scan (v5.0)

See merge request espressif/esp-idf!37199
2025-02-26 14:11:51 +08:00
morris
16aba9936a Merge branch 'fix/hub_error_handling_v5.0' into 'release/v5.0'
fix(usb/host): Fix disconnection error handling (backport to v5.0)

See merge request espressif/esp-idf!37229
2025-02-26 10:00:41 +08:00
Island
90766acef1 Merge branch 'feat/add_ble_log_spi_out_printf_v5.0' into 'release/v5.0'
feat(ble): add printf interface for ble log spi out (v5.0)

See merge request espressif/esp-idf!37183
2025-02-25 10:35:19 +08:00
Roland Dobai
a5099fa00b Merge branch 'backport/fix/empty_int_handling' into 'release/v5.0'
fix(kconfgen): Improve error message for int/hex without default

See merge request espressif/esp-idf!37215
2025-02-24 21:30:09 +08:00
chaijie@espressif.com
453f78e011 fix(esp32): Fixed qa program may fail issue when cpu 240m (v5.0) 2025-02-24 19:27:22 +08:00
Tomas Rezucha
e3b21fb932 fix(usb/host): Fix disconnection error handling
In a very rare case of having 2 or more events of type
DISCONNECTION/ERROR/OVERCURRENT in a short time,
the driver has not yet recovered from
the 1st error but already got a 2nd error.

Closes https://github.com/espressif/esp-idf/issues/13364
Closes https://github.com/espressif/esp-idf/issues/15290
2025-02-24 10:29:20 +01:00
Zhang Hai Peng
2f9c756d74 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-23 17:49:07 +08:00
Zhang Hai Peng
fe57c1bfb9 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-23 17:48:57 +08:00
Zhang Hai Peng
358020ad8f 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-23 17:48:47 +08:00
Zhang Hai Peng
ae6d5f8c29 fix(ble/bluedroid): Allow 0 length indications
(cherry picked from commit 9b5a52e2f7)

Co-authored-by: Nebojsa Cvetkovic <nebkat@gmail.com>
2025-02-23 17:48:28 +08:00
Rahul Tank
5d95056424 fix(nimble): Keep only BLE_GAP_EVENT_CONNECT gap event 2025-02-23 15:16:31 +05:30
Jan Beran
2c501d5bac fix(kconfgen): Improve error message for int/hex without default
Non string values without (valid) default value will have their
str_value equal to "" (empty string). If this is detected, a warning is
printed and the value is set to None.
2025-02-21 13:11:31 +01:00
Zhang Hai Peng
e202883133 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:27 +08:00
wuzhenghui
0a89efed63 fix(esp_driver_gpio): manage lp_io module clock by driver 2025-02-21 14:00:52 +08:00
Zhou Xiao
91d8d8ed11 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:31 +08:00
Martin Vychodil
ae11fd5c92 Merge branch 'bugfix/memprot_s2_intr_peri1_v5.0' into 'release/v5.0'
fix(security): ESP32S2 memory protection check for Peri1 RTCSLOW interrupt (v5.0)

See merge request espressif/esp-idf!37122
2025-02-21 04:56:44 +08:00
Island
f0756ef7cd Merge branch 'feat/improve_bt_log_spi_output_interface_v5.0' into 'release/v5.0'
Feat/improve bt log spi output interface (v5.0)

See merge request espressif/esp-idf!37133
2025-02-20 19:51:30 +08:00
Jiang Jiang Jian
5949919086 Merge branch 'bugfix/fix_delete_queue_error_in_espnow_example_v5.0' into 'release/v5.0'
fix(wifi): fix the delete queue error in espnow exapmle (v5.0)

See merge request espressif/esp-idf!37018
2025-02-20 15:44:05 +08:00
Island
0364a68eee Merge branch 'change/ble_update_lib_20250114_v5.0' into 'release/v5.0'
change(ble): [AUTO_MR] 20250114 - Update ESP BLE Controller Lib (v5.0)

See merge request espressif/esp-idf!36476
2025-02-20 14:48:07 +08:00
Jiang Jiang Jian
f299f69d04 Merge branch 'bugfix/sdp_uuid16_match_err_v5.0' into 'release/v5.0'
fix(bt): Fix the incorrect record found using uuid16 search(v5.0)

See merge request espressif/esp-idf!36853
2025-02-20 10:58:35 +08:00
Zhou Xiao
09eef742ea feat(ble): improved ble log spi output interface to support multisource log 2025-02-20 10:34:27 +08:00
Martin Vychodil
889cfabc89 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-19 19:40:23 +01:00
Zhou Xiao
06c6996a2c 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:53:26 +08:00
Zhou Xiao
56e38729b1 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:53:23 +08:00
Zhou Xiao
6bd2ef0083 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:53:21 +08:00
Jiang Jiang Jian
a2e76fa5aa Merge branch 'feat/add_inq_page_coex_schm_v5.0' into 'release/v5.0'
feat(coex): add coexist scheme for bt inquiry/page coexist with wifi

See merge request espressif/esp-idf!37009
2025-02-19 20:21:02 +08:00
C.S.M
d28197b74f fix(spi_flash): Fix build fail when rom_patch config disabled,
Closes https://github.com/espressif/esp-idf/issues/15229
2025-02-19 17:33:33 +08:00
Island
4d1964212c Merge branch 'change/ble_update_lib_20250212_v5.0' into 'release/v5.0'
change(ble): [AUTO_MR] 20250212 - Update ESP BLE Controller Lib (v5.0)

See merge request espressif/esp-idf!37040
2025-02-19 17:19:00 +08:00
xiongweichao
dc7b0241ae fix(bt): Fixed SDP record integrity check bug 2025-02-18 14:10:26 +08:00
xiongweichao
dd5155ea9c fix(bt/bluedroid): fixed the format error of passkey printing 2025-02-18 14:10:26 +08:00
xiongweichao
76da49327e fix(bt/bluedroid): Fixed incorrect types of some variables in SDP 2025-02-18 14:10:26 +08:00
xiongweichao
559bcf1ec9 fix(bt): Fix incorrect type returned when searching SAP record 2025-02-18 14:10:26 +08:00
xiongweichao
bf9f271ca7 fix(bt): Fix the incorrect record found using uuid16 search 2025-02-18 14:10:26 +08:00
morris
085bf84090 Merge branch 'bugfix/gpio_rom_patch_fix_v5.0' into 'release/v5.0'
fix(gpio): fix esp_rom_gpio_connect_out_signal for gpio num over 31 on esp32/s2 (v5.0)

See merge request espressif/esp-idf!36869
2025-02-18 10:24:53 +08:00
Zhou Xiao
3fcc64cc05 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:22:43 +08:00
Rahul Tank
608d5a7626 Merge branch 'fix/wifi_provisioning_ble_v5.0' into 'release/v5.0'
fix(nimble): Handle nested locks when BT_NIMBLE_DEBUG enabled (v5.0)

See merge request espressif/esp-idf!36502
2025-02-17 18:59:52 +08:00
zhangyanjiao
d6b268361c fix(wifi): fix the delete queue error in espnow exapmle
Closes https://github.com/espressif/esp-idf/issues/15383
2025-02-17 14:59:56 +08:00
liuning
69ae8735c7 feat(coex): add coexist scheme for bt inquiry/page coexist with wifi 2025-02-17 14:23:03 +08:00
Astha Verma
8391e9a02b fix(nimble): Handle nested locks when BT_NIMBLE_DEBUG enabled 2025-02-17 10:34:48 +05:30
Rahul Tank
85109aff8f Merge branch 'fix/ble_issue_05022025_v5.0' into 'release/v5.0'
fix(nimble): Fix/ble issue 05022025 v5.0

See merge request espressif/esp-idf!36759
2025-02-17 12:58:35 +08:00
Island
10bebf8139 Merge branch 'feat/add_spi_output_v5.0' into 'release/v5.0'
Feat/add spi output (v5.0)

See merge request espressif/esp-idf!36952
2025-02-17 11:04:29 +08:00
Abhinav Kudnar
f7f91702b8 feat(nimble): Add offset in GATT server long read context 2025-02-15 20:28:36 +05:30
Rahul Tank
30116f0522 fix(nimble): Handle not sending disconnect event if connect was not sent 2025-02-15 20:27:56 +05:30
Astha Verma
698badd76a fix(nimble): Added sync reattempt for periodic adv 2025-02-15 20:26:35 +05:30
Astha Verma
bcb9511858 fix(nimble): Handle NVS corruption due to incorrect security record
deletion
2025-02-15 20:25:55 +05:30
Rahul Tank
9297010c2e fix(nimble): Fixed warnings with COMPILTER_WARN_WRITE_STRINGS set 2025-02-15 20:25:00 +05:30
Astha Verma
2b5d70b4cf fix(nimble): Enhanced error handling by adding to print core error definitions 2025-02-15 20:22:41 +05:30
Kapil Gupta
e2a2dcd808 Merge branch 'bugfix/skip_memory_reordering_wpa2_semaphr_v5.0' into 'release/v5.0'
fix(esp_wifi): fixed stack corruption in WiFi tasks (v5.0)

See merge request espressif/esp-idf!36940
2025-02-14 19:06:36 +08:00
zhouxiao
0563abdd5e change(ble): [AUTO_MR] Update lib_esp32c2 to 7b7ee440 2025-02-14 17:39:58 +08:00
Kapil Gupta
e7e15d954c fix(esp_wifi): Fix stack curruption in btm task (v5.2) 2025-02-14 13:03:32 +05:30
Zhou Xiao
e456978606 change(ble): update esp32c2 rom ld file
(cherry picked from commit e5feba6ed3)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-14 14:09:25 +08:00
Jiang Jiang Jian
5dbf151488 Merge branch 'change/ble_update_lib_20250103_v5.0' into 'release/v5.0'
change(ble): [AUTO_MR] 20250103 - Update ESP BLE Controller Lib (v5.0)

See merge request espressif/esp-idf!36369
2025-02-14 13:43:40 +08:00
Zhou Xiao
22bec7a569 feat(ble): add spi output interface for esp ble controller log 2025-02-14 12:18:31 +08:00
Zhou Xiao
11230d884a 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:23 +08:00
Kapil Gupta
cbe890bde6 fix(esp_wifi): fixed Stack corruption in DPP task 2025-02-13 15:57:48 +05:30
Kapil Gupta
968b8a215a fix(esp_wifi): fixed Stack corruption in WPS processing 2025-02-13 15:57:48 +05:30
Kapil Gupta
90b29be236 fix(esp_wifi): Fixed memory corruption in wifi enterprise
Closes https://github.com/espressif/esp-idf/issues/15370
2025-02-13 15:57:41 +05:30
Jiang Jiang Jian
9d8fc56139 Merge branch 'fix/stack_overuse_by_failure_retry_cnt_v5.0' into 'release/v5.0'
fix(wifi): Fix stack overflow when failure_retry_cnt is set in station configuration (Backport v5.0)

See merge request espressif/esp-idf!36856
2025-02-12 18:04:50 +08:00
Jiang Jiang Jian
dc58edb50d Merge branch 'bugfix/fix_i2s_reconfig_slot_issue_v5.0' into 'release/v5.0'
fix(i2s): fixed incorrect logic in slot reconfig (v5.0)

See merge request espressif/esp-idf!36645
2025-02-12 16:13:32 +08:00
Jiang Jiang Jian
92f710f8c8 Merge branch 'fix/ringbuf_receives_after_aq_wraparound_v5.0' into 'release/v5.0'
fix(esp_ringbuf): Fixed no-split ringbuf issue where acquire pointer  wraps around (v5.0)

See merge request espressif/esp-idf!35871
2025-02-12 16:12:49 +08:00
Jiang Jiang Jian
a3136838fa Merge branch 'bugfix/analyzer_issues_supplicant_v5.0' into 'release/v5.0'
fix(esp_wifi): fix some analyzer issues (v5.0)

See merge request espressif/esp-idf!36834
2025-02-12 16:11:16 +08:00
Jiang Jiang Jian
45ff2887e7 Merge branch 'bugfix/wps_scan_freq_v5.0' into 'release/v5.0'
fix(esp_wifi): Reduce scan frequency in WPS (v5.0)

See merge request espressif/esp-idf!36824
2025-02-12 16:10:45 +08:00
Island
9aea05c4cd Merge branch 'bugfix/fix_blufi_crash_v5.0' into 'release/v5.0'
fix(blufi): Fixed crash issue during memcpy in example (v5.0)

See merge request espressif/esp-idf!36548
2025-02-12 15:02:38 +08:00
Island
8dde4f9233 Merge branch 'fix/blufi_example_mem_access_v5.0' into 'release/v5.0'
fix(ble/blufi): Fixed blufi example security issue (v5.0)

See merge request espressif/esp-idf!36160
2025-02-12 15:02:33 +08:00
Jiang Jiang Jian
30eba26e51 Merge branch 'bugfix/remove_unused_sco_state_v5.0' into 'release/v5.0'
Bugfix/remove unused sco state (v5.0)

See merge request espressif/esp-idf!36733
2025-02-12 14:00:57 +08:00
Wang Meng Yang
a55d6bc08f Merge branch 'feat/add_vsc_to_support_test_v5.0' into 'release/v5.0'
feat(bt): add vendor hci command and event to support test (v5.0)

See merge request espressif/esp-idf!36567
2025-02-12 11:15:14 +08:00
Zhou Xiao
f73fdaa744 fix(ble): fixed ld file for c2eco0 and c2eco4
(cherry picked from commit 937fe2a6e3)

Co-authored-by: zhouxiao <zhouxiao@espressif.com>
2025-02-12 10:55:00 +08:00
Zhou Xiao
79627f0151 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-02-12 10:55:00 +08:00
Zhou Xiao
14b81fd066 change(ble): Update lib_esp32c2 to 2a00fb0b
(cherry picked from commit 7cd3fe6953)

Co-authored-by: zhouxiao <zhouxiao@espressif.com>
2025-02-12 10:55:00 +08:00
Song Ruo Jing
834c9da833 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-11 19:15:08 +08:00
zhanghaipeng
770f713e65 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-11 16:56:31 +08:00
gongyantao
bb039cc318 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-11 16:56:31 +08:00
linruihao
7db6f812af feat(bt): add coexist scheme status support for bt page 2025-02-11 16:56:31 +08:00
Jin Cheng
13d598d50f fix(bt/controller): fixed missing critical protections on linked-list structure of (e)SCO buffers 2025-02-11 16:56:31 +08:00
chenjianhua
01d9a716b9 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
2025-02-11 16:56:31 +08:00
zhanghaipeng
cc00e9f2fc fix(blufi): Enhance security in BLUFI example 2025-02-11 15:24:04 +08:00
Sarvesh Bodakhe
d2306adc5e fix(wifi): Fix stack overflow when failure_retry_cnt is set
Fix issue of increased stack usage when failure_retry_cnt is set
and wifi driver internally retries connection attempts
2025-02-11 12:25:37 +05:30
zhanghaipeng
b5b9f9559e docs(ble/bluedroid): Added BLE log when bond info was deleted 2025-02-11 14:17:03 +08:00
zhanghaipeng
d2d3ce7f0c docs(ble/bluedroid): Optimize doc for registering BLE callback functions 2025-02-11 14:16:53 +08:00
zhanghaipeng
a4c4601e59 fix(ble/blufi): Fixed blufi example security issue 2025-02-11 14:16:43 +08:00
Jiang Jiang Jian
9659bb2d03 Merge branch 'feat/esp32_set_get_bt_lpclk_src_v5.0' into 'release/v5.0'
feat(ble): Added API to get/set low power clock source(v5.0)

See merge request espressif/esp-idf!36575
2025-02-11 11:34:04 +08:00
Rahul Tank
f9358b74f0 Merge branch 'bugfix/fix_scan_rsp_evt' into 'release/v5.0'
fix(nimble): Add support for missing legacy event type in report parsing (v5.0)

See merge request espressif/esp-idf!36782
2025-02-11 00:23:56 +08:00
Kapil Gupta
b37f89bbce 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 20:16:35 +05:30
Kapil Gupta
55c6945957 fix(esp_wifi): Reduce scan frequency in WPS 2025-02-10 15:45:39 +05:30
Jiang Jiang Jian
1443536abb Merge branch 'revert/use_wpa3_ent_authmode_naming_v5.0' into 'release/v5.0'
fix(wifi): Revert support for WPA3 Enterprise mode (v5.0)

See merge request espressif/esp-idf!36708
2025-02-10 14:42:39 +08:00
Wang Mengyang
01c34d4b62 change(bt): Remove unused state variable for (e)SCO disconnect reason in Bluedroid 2025-02-08 17:58:18 +08:00
xiongweichao
a1d6fc04a4 feat(bt): Added API to get/set low power clock source 2025-02-08 14:29:33 +08:00
Wang Meng Yang
90e98f1dbc Merge branch 'docs/refactor_ceva_bt_controller_api_v5.0' into 'release/v5.0'
docs(ble): Refactored the API reference for esp32/c3/s3 BT controller (v5.0)

See merge request espressif/esp-idf!35349
2025-02-08 11:05:55 +08:00
Wei Yu Han
11f791c6c6 docs(ble): Refactored the API reference for esp32/c3/s3 BT controller (v5.0) 2025-02-08 11:05:55 +08:00
morris
8f817ec1b4 Merge branch 'fix/spi_hd_seg_fix_iwdt_timeout_v5.0' into 'release/v5.0'
fix(spi_slave_hd): fix seg mode potential iwdt timeout when multi task call (v5.0)

See merge request espressif/esp-idf!31845
2025-02-08 10:11:26 +08:00
Rahul Tank
1f004ce6fe fix(nimble): Add support for missing legacy event type in report parsing 2025-02-06 18:02:51 +05:30
Martin Vychodil
c562688d32 Merge branch 'bugfix/storage_generic_pytests_v5.0' into 'release/v5.0'
fix(ci): Removed storage related entries in known generate test child pipeline warnings (v5.0)

See merge request espressif/esp-idf!36688
2025-02-05 23:57:27 +08:00
morris
1730e74921 Merge branch 'bugfix/uart_single_wire_mode_v5.0' into 'release/v5.0'
fix(uart): allow same pin for tx and rx in uart_set_pin; UART_SELECT_READ_NOTIF race conditon fix (v5.0)

See merge request espressif/esp-idf!36300
2025-02-05 14:53:30 +08:00
Marius Vikhammer
2260b66eb1 Merge branch 'bugfix/remove_wdt_both_cpus_test_v5.0' into 'release/v5.0'
test(panic): remove WDT both CPU test (v5.0)

See merge request espressif/esp-idf!36624
2025-02-05 11:50:24 +08:00
Sarvesh Bodakhe
19f29ca11b Revert "fix(wifi): Add support to recongize different WPA3 Authentication modes from specs"
This reverts commit fbc0c3e9fe.
2025-02-04 10:23:34 +05:30
Rocha Euripedes
9bc65542a4 Merge branch 'fix/test_app_certificate_v5.0' into 'release/v5.0'
Regenerate certificates for testing (v5.0)

See merge request espressif/esp-idf!36676
2025-01-31 16:00:24 +08:00
radek.tandler
3d6cf0f904 fix(storage/nvs): Fixed failing test cases in example folder 2025-01-30 12:05:39 +01:00
Euripedes Rocha
42351e8d15 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:58 +01:00
Marius Vikhammer
6401cad494 test(panic): remove WDT both CPU test
Test never worked on S3/P4 and was flakey on ESP32. Hard to design a reliable test
case that triggers both WDT at the exact same time.
2025-01-27 11:20:39 +01:00
Mahavir Jain
0ce2167242 Merge branch 'feature/memprot_test_app_v5.0' into 'release/v5.0'
test_app: Split `panic` test app into separate source files (v5.0)

See merge request espressif/esp-idf!36625
2025-01-27 17:47:07 +08:00
Laukik Hase
87058b125e test_app: Split panic test app into separate source files
- Added minor improvements to  `panic` test app
  * Replaced existing API to disable flash cache which did not disabled cache always
    (`esp_flash_default_chip->os_func->start(esp_flash_default_chip->os_func_data)`)
    with `spi_flash_enable_interrupts_caches_and_other_cpu`
  * Included some required headers explicitly (`esp_memory_utils.h` and `esp_heap_caps.h`)
2025-01-27 08:33:00 +01:00
laokaiyao
1cef1b3e4d fix(i2s): fixed incorrect logic in slot reconfig
Closes https://github.com/espressif/esp-idf/issues/15256
2025-01-27 14:17:03 +08:00
Song Ruo Jing
1f69df2a37 fix(uart): allow same pin for tx and rx in uart_set_pin
Closes https://github.com/espressif/esp-idf/issues/14787
2025-01-24 22:06:53 +08:00
Song Ruo Jing
ac2ca7bdb4 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-24 22:04:12 +08:00
wanlei
ace1578670 fix(spi_slave_hd): fix seg mode potential iwdt timeout when multi task call 2025-01-24 20:20:33 +08:00
Rahul Tank
d7e63ef591 Merge branch 'bugfix/rename_variable_name_v5.0' into 'release/v5.0'
fix(nimble): fix compilation issue due to incorrect variable name type (v5.0)

See merge request espressif/esp-idf!36606
2025-01-24 20:01:52 +08:00
morris
85443b12f5 Merge branch 'fix/twai_io_init_glitch_v5.0' into 'release/v5.0'
fix(driver_twai): fixed bus-off when twai_init due to wrong gpio config (v5.0)

See merge request espressif/esp-idf!34824
2025-01-24 17:09:25 +08:00
morris
db9e335093 Merge branch 'fix/spi_slave_no_dma_rx_overwrite_v5.0' into 'release/v5.0'
fix(driver_spi): fixed slave no dma rx overwrite when trans_len below or over (v5.0)

See merge request espressif/esp-idf!34177
2025-01-24 16:57:13 +08:00
Astha Verma
773c52b599 fix(nimble): Fix compilation issue in ble_enc_adv_data examples 2025-01-24 12:15:05 +05:30
morris
f3e576a727 Merge branch 'bugfix/modbus_serial_examples_fix_mode' into 'release/v5.0'
fix(modbus): Fix the mode setup in modbus slave (backport v5.0)

See merge request espressif/esp-idf!36114
2025-01-24 13:23:24 +08:00
Rahul Tank
7de5c22f44 Merge branch 'bugfix/fix_few_nimble_issues_v5.0' into 'release/v5.0'
fix(nimble): Fix few nimble issues 11012025 (v5.0)

See merge request espressif/esp-idf!36315
2025-01-24 12:37:30 +08:00
morris
a7b8aed433 Merge branch 'bugfix/esp_rom_gpio_connect_out_signal_patch_v5.0' into 'release/v5.0'
fix(gpio): patched esp_rom_gpio_connect_out_signal for esp32 and esp32s2 (v5.0)

See merge request espressif/esp-idf!35943
2025-01-24 11:16:51 +08:00
aleks
395ad7cd63 fix(modbus): Fix the mode setup in modbus slave
https://github.com/espressif/esp-idf/pull/14878
2025-01-24 11:01:42 +08:00
Kabir Waraich
32b86e8dcd 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-24 11:01:42 +08:00
Island
245fb725f2 Merge branch 'bugfix/fixed_ble_issues_241220_v5.0' into 'release/v5.0'
Bugfix/fixed ble issues 241220 (v5.0)

See merge request espressif/esp-idf!35920
2025-01-24 10:53:40 +08:00
Island
743ed7b1d7 Merge branch 'feat/add_get_started_example_on_bluedroid_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Added BLE get started examples for Bluedroid (v5.0)

See merge request espressif/esp-idf!35649
2025-01-24 10:53:13 +08:00
Island
a68962b30c Merge branch 'refactor/optimize_ble_gatt_api_doc_v5.0' into 'release/v5.0'
refactor(bt/bluedroid): Optimize BLE GATT related APIs reference (v5.0)

See merge request espressif/esp-idf!35915
2025-01-24 10:53:08 +08:00
Island
eb5c888782 Merge branch 'bugfix/fix_some_ble_bugs_241224_esp32c3_v5.0' into 'release/v5.0'
Fixed some BLE bugs 241224 on ESP32C3(fd62b31) (v5.0)

See merge request espressif/esp-idf!36192
2025-01-24 10:53:05 +08:00
morris
66745df896 Merge branch 'bugfix/fix_i2s_24b_buf_size_calc_v5.0' into 'release/v5.0'
fix(i2s): fixed some issues in I2S driver (v5.0)

See merge request espressif/esp-idf!35772
2025-01-24 10:29:31 +08:00
Rahul Tank
607a4efccf fix(nimble): Fixed encrypted advertisement menu option dependancy 2025-01-23 17:17:09 +05:30
morris
b3e2d38022 Merge branch 'feat/xmc_32d_support_v5.0' into 'release/v5.0'
feat(spi_flash): support 120M on xmc25q32d flash (backport v5.0)

See merge request espressif/esp-idf!36082
2025-01-23 16:10:59 +08:00
Jiang Jiang Jian
d452461f4c Merge branch 'bugfix/enable_eap_workarounds_v5.0' into 'release/v5.0'
fix(esp_wifi): Enable EAP workarounds by default (v5.0)

See merge request espressif/esp-idf!36156
2025-01-23 16:06:15 +08:00
morris
02e655706d Merge branch 'fix/fix_psram_mode_reg_wrong_timing_v5.0' into 'release/v5.0'
psram: fixed mode reg read bad timing on octal and hex psrams (v5.0)

See merge request espressif/esp-idf!35954
2025-01-23 15:39:18 +08:00
morris
c6de21b7ca Merge branch 'bugfix/channel_resolution_calculation_v5.0' into 'release/v5.0'
fix(rmt): channel resolution divider rounding issue (v5.0)

See merge request espressif/esp-idf!36036
2025-01-23 15:36:02 +08:00
Rahul Tank
62c2eb733b fix(nimble): Corrected storing method of csfc to nvs 2025-01-23 11:23:34 +05:30
shreeyash
437ccaa366 fix(nimble):Updated peer OTA address type 2025-01-23 11:23:34 +05:30
Shreeyash
87c61ee4c6 fix(nimble): Added a check for invalid offset 2025-01-23 11:23:34 +05:30
Rahul Tank
3db0f28c94 fix(nimble): Fix compilation issue for combination of Ext Adv and Reattempt conn flag 2025-01-23 11:23:34 +05:30
Abhinav Kudnar
967a727e24 fix(nimble): Save the gatt context in case of preemption 2025-01-23 11:23:34 +05:30
Astha Verma
f3de540bda fix(nimble): Added a function for printing HCI error definition 2025-01-23 11:23:34 +05:30
Astha Verma
fadd347a41 fix(nimble): fix memory leak issue in Blufi example 2025-01-23 11:23:34 +05:30
Abhinav Kudnar
dd6dfb798b feat(nimble): Additional changes in PAWR IDF Examples/support for ESP IP 2025-01-23 11:23:34 +05:30
Rahul Tank
d4f6071227 fix(nimble): Reset data length global variables 2025-01-23 11:23:34 +05:30
Rahul Tank
e9dde5b336 fix(nimble): Fixed a typo in Kconfig file 2025-01-23 11:23:34 +05:30
Astha Verma
ddfe0657e0 fix(nimble): Added HCI_Read_Remote_Version_Information command 2025-01-23 11:23:34 +05:30
Rahul Tank
c2874d469e fix(nimble): Clear our and peer security records during unpair 2025-01-23 11:23:34 +05:30
Sarvesh Bodakhe
c5e3bc98ee fix(wifi): Fix bug in authmode detection for wpa2/wpa3 enterprise
1. WPA3-Enterprise mandates the use of AKM suite selector
   00:0F:AC:5 (IEEE80211 802.1X with SHA-256)
2. Add placeholder enums in 'wifi_auth_mode_t' for maintaining
   forward compatibility with minor versions > v5.0
2025-01-23 11:23:34 +05:30
Zhang Hai Peng
9cb7206d4a 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:19 +08:00
wanckl
562111939e 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-14 15:58:58 +08:00
Aditya Patwardhan
789db760d6 change(version): Update version to 5.0.8 2025-01-10 13:09:53 +05:50
morris
21fb8b2a47 fix(rmt): channel resolution divider rounding issue
Closes https://github.com/espressif/esp-idf/issues/15092
2025-01-09 14:34:09 +08:00
Chen Jian Hua
01bcc85fd9 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:16 +08:00
Sudeep Mohanty
089baafa5b 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.
2025-01-06 16:45:46 +08:00
Kapil Gupta
92f5736c21 fix(esp_wifi): Enable EAP workarounds by default
Enabling this will make sure our behavior is same as upstream
wpa_supplicant.
2025-01-03 17:46:33 +05:30
Jiang Jiang Jian
89c330995c Merge branch 'bugfix/fix_sta_tsf_active_failed_v5.0' into 'release/v5.0'
fix(wifi): fix sta tsf active failed  and fix double max active time backport v5.0

See merge request espressif/esp-idf!36110
2025-01-03 19:52:39 +08:00
liuning
3e60901efe fix some wifi issues
1. fix(wifi): fix sta tsf active failed
2. fix(wifi): fix double max active time
3. fix(wifi): fix coex pwr period cant been updated by ps type set
2025-01-03 16:04:46 +08:00
Jiang Jiang Jian
3412aebe4b Merge branch 'bugfix/ledc_get_freq_calc_v5.0' into 'release/v5.0'
fix(ledc): fix ledc_get_freq calculation err due to overflow (v5.0)

See merge request espressif/esp-idf!36023
2025-01-03 15:25:10 +08:00
Jiang Jiang Jian
b4a8e2adbc Merge branch 'fix/fix_flash_leakage_workaroud_config_dependcy_v5.0' into 'release/v5.0'
fix(esp_hw_support): fix FLASH leakage workaround kconfig dependcy (v5.0)

See merge request espressif/esp-idf!35994
2025-01-03 15:15:48 +08:00
Jiang Jiang Jian
0b5fbeba6e Merge branch 'fix/disable_timer_wakeup_source_with_auto_sleep_off_v5.0' into 'release/v5.0'
fix(esp_pm): disable timer wakeup source with auto light-sleep off (v5.0)

See merge request espressif/esp-idf!35889
2025-01-03 13:10:37 +08:00
Jiang Jiang Jian
717cc7cda1 Merge branch 'bugfix/use_wpa3_ent_authmode_naming_v5.0' into 'release/v5.0'
fix(wifi): Add support to recongize different WPA3 Authentication modes from specifications (Backport v5.0)

See merge request espressif/esp-idf!35759
2025-01-03 13:09:25 +08:00
Sarvesh Bodakhe
463e98e75e fix(ci): Enable public headers md5 checksum check for esp32c2 2025-01-02 19:58:51 +08:00
Sarvesh Bodakhe
fbc0c3e9fe 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-02 19:58:51 +08:00
C.S.M
15e2b9f04b feat(spi_flash): support 120M on xmc25q32d flash 2024-12-31 11:45:44 +08:00
Michael (XIAO Xufeng)
4b261859be Merge branch 'feat/increase_c2_supported_ver_v5.0' into 'release/v5.0'
feat(soc): increase c2 max supported version (v5.0)

See merge request espressif/esp-idf!35976
2024-12-30 17:19:57 +08:00
Armando
0bd7ee15f6 fix(psram): fixed mode reg read bad timing on octal and hex psrams 2024-12-27 11:35:57 +08:00
Xiao Xufeng
1dea28a8c9 feat(soc): increase c2 max supported version 2024-12-27 02:24:07 +08:00
Song Ruo Jing
c6fc6d9c6c fix(ledc): fix ledc_get_freq calculation err due to overflow
Closes https://github.com/espressif/esp-idf/pull/14882
2024-12-26 19:00:43 +08:00
Island
486f7c552e Merge branch 'bugfix/force_att_tx_q_cleanup_v5.0' into 'release/v5.0'
fix(nimble): Add ATT Tx queue cleanup during link disconnection (v5.0)

See merge request espressif/esp-idf!35948
2024-12-26 18:32:01 +08:00
Marius Vikhammer
c66c6dcc50 Merge branch 'ci/fix_sdmmc' into 'release/v5.0'
ci(sd): disable esp32 sd emmc tests

See merge request espressif/esp-idf!35977
2024-12-26 14:30:20 +08:00
wuzhenghui
0c773ee481 fix(esp_hw_support): fix FLASH leakage workaround kconfig dependcy 2024-12-26 11:46:02 +08:00
Marius Vikhammer
56a3aef9b1 ci(sd): disable esp32 sd emmc tests 2024-12-26 10:03:07 +08:00
Sumeet Singh
8cedbc526c fix(nimble): Add ATT Tx queue cleanup during link disconnection (v5.0) 2024-12-25 17:20:47 +05:30
Island
ae9cbb0f6a Merge branch 'bugfix/solve_memory_prints_v5.0' into 'release/v5.0'
fix(nimble): Changing esp_rom_printf to ESP_LOGI when memory allocation fails (v5.0)

See merge request espressif/esp-idf!35840
2024-12-25 18:41:13 +08:00
Marius Vikhammer
49267de04a Merge branch 'ci/disable_emmc_esp32_test' into 'release/v5.0'
emmc: disable emmc esp32 ci test

See merge request espressif/esp-idf!35885
2024-12-25 17:02:27 +08:00
Song Ruo Jing
d555ea2b00 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-25 13:56:46 +08:00
Song Ruo Jing
a1da3ac136 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 13:56:18 +08:00
zwl
4ad39f320d feat(ble): add dtm configuration command in hci example 2024-12-25 10:02:01 +08:00
laokaiyao
133cbda732 fix(i2s): add check for the tdm frame bits num 2024-12-24 15:47:53 +08:00
laokaiyao
f8e363e307 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 15:47:53 +08:00
laokaiyao
45e3474568 fix(i2s): return error when mclk_div is smaller than 2 2024-12-24 15:47:53 +08:00
laokaiyao
ff937be091 fix(i2s): fixed incorrect buf size calculation 2024-12-24 15:47:53 +08:00
Zhao Wei Liang
85e299b939 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:20:54 +08:00
Zhao Wei Liang
2cc6e7c173 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:20:51 +08:00
Zhao Wei Liang
f95343e4cd feat(ble): adjust bt default scheme position
(cherry picked from commit 446239251c)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-24 15:20:49 +08:00
Chen Jian Hua
67700a0688 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:41 +08:00
wuzhenghui
25c5b6398d fix(esp_pm): configure timer wakeup source with auto light-sleep congiguration 2024-12-23 17:46:09 +08:00
Armando
dbfbda90b9 ci(emmc): disable emmc tests on esp32 2024-12-23 16:01:56 +08:00
Chen Jian Hua
15d3576137 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:40:36 +08:00
Abhinav Kudnar
9340acfc4f fix(nimble): Changing esp_rom_printf to ESP_LOGI when memory allocation fails 2024-12-20 21:47:12 +05:30
Rahul Tank
e5b60eb20b Merge branch 'bugfix/fix_link_estab_param_v5.0' into 'release/v5.0'
fix(nimble): Corrected link_estab event handling parameters (v5.0)

See merge request espressif/esp-idf!35811
2024-12-21 00:09:58 +08:00
Jiang Jiang Jian
a5b5d8480c Merge branch 'backport/backport_some_changes_20241219_v5.0' into 'release/v5.0'
fix(wifi): fix ap set_tx_desc for auth frame with err tid when wpa3(Backport v5.0)

See merge request espressif/esp-idf!35817
2024-12-20 10:27:29 +08:00
Jiang Jiang Jian
c37f469b46 Merge branch 'bugfix/fix_btqabr2023330_v5.0' into 'release/v5.0'
fix(bt): Fix error code returned by create_conn_cancel_cmd at different status (backport v5.0)

See merge request espressif/esp-idf!35573
2024-12-20 02:01:41 +08:00
Jiang Jiang Jian
21afddd657 Merge branch 'bugfix/test_esp_flash_write_v5.0' into 'release/v5.0'
fix(spi_flash): Fix Test esp_flash_write (v5.0)

See merge request espressif/esp-idf!34560
2024-12-19 23:16:50 +08:00
Alexey Gerenkov
bba2971f34 Merge branch 'change/sysview_test_config_v5.0' into 'release/v5.0'
change(sysview): run heap_log tracing tests on existing cores (v5.0)

See merge request espressif/esp-idf!35199
2024-12-19 23:08:02 +08:00
Chen Yudong
af2fe64500 ci: add build test for eco versions 2024-12-19 21:06:04 +08:00
Jiang Jiang Jian
3f7d78c26c Merge branch 'fix/esp_hiram_heap_v5.0' into 'release/v5.0'
fix(esp_psram): fix a bug in PSRAM heap registration (backport v5.0)

See merge request espressif/esp-idf!35703
2024-12-19 20:36:11 +08:00
yinqingzhao
16af99f287 fix(wifi): fix ap set_tx_desc for auth frame with err tid when wpa3 and tim_offset value not correct 2024-12-19 20:25:40 +08:00
Jiang Jiang Jian
3b9ed0d780 Merge branch 'fix/coredump_checksum_error_v5.0' into 'release/v5.0'
Fix/coredump checksum error (v5.0)

See merge request espressif/esp-idf!35766
2024-12-19 20:18:50 +08:00
Jiang Jiang Jian
f67494970f Merge branch 'fix/fix_adc_cali_check_scheme_api_issue_v5.0' into 'release/v5.0'
adc: fixed adc_cali_check_scheme wrong return on c2/h2/c6 (v5.0)

See merge request espressif/esp-idf!35723
2024-12-19 20:18:13 +08:00
Rahul Tank
972254c884 fix(nimble): Corrected link_estab event handling parameters 2024-12-19 15:58:54 +05:30
Jiang Jiang Jian
9f304aa98e Merge branch 'fix/tools_pip_upgrade_v5.0' into 'release/v5.0'
fix(idf_tools.py): Upgrade pip and setuptools separately (v5.0)

See merge request espressif/esp-idf!35778
2024-12-19 17:25:53 +08:00
Jiang Jiang Jian
8b93db7ee7 Merge branch 'bugfix/fix_set_perfer_ext_conn_param_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fixed setting perfer conn params complete event report (v5.0)

See merge request espressif/esp-idf!35744
2024-12-19 17:24:58 +08:00
Konstantin Kondrashov
fc9c0fb045 fix(spi_flash): Fix Test esp_flash_write 2024-12-19 13:57:01 +08:00
wanckl
cd4b074267 fix(driver_spi): fixed slave no dma rx overwrite when trans_len below or over
Closes https://github.com/espressif/esp-idf/issues/14462
2024-12-19 13:54:10 +08:00
Jiang Jiang Jian
25288d1fa7 Merge branch 'fix/fix_rssi_and_snr_issue_v50' into 'release/v5.0'
fix(wifi): fix rssi and snr issue v50

See merge request espressif/esp-idf!35781
2024-12-19 12:53:50 +08:00
wangtao@espressif.com
19c3a5a27e fix(wifi): fix rssi and snr issue 2024-12-18 20:19:54 +08:00
Roland Dobai
4450952227 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:55 +01:00
Erhan Kurubas
a2023c6241 change(coredump): make sure consistency with written data and calculated checksum 2024-12-18 13:34:38 +03:00
chenjianhua
d6942282e8 fix(bt/bluedroid): Fixed LE channel selection algorithm event reporting 2024-12-18 11:51:22 +08:00
Chen Jian Hua
5fe21ee66f 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:16 +08:00
Island
94f3007db0 Merge branch 'bugfix/fix_blufi_prepare_write_v5.0' into 'release/v5.0'
fix(blufi): Fixed crash issue in Blufi example during prepare write operation (v5.0)

See merge request espressif/esp-idf!35713
2024-12-18 10:42:03 +08:00
Island
548ad60b8e Merge branch 'bugfix/fix_ble_aa_zero_c3_s3_v5.0' into 'release/v5.0'
fix(bt/ble): Update esp32c3/s3 libbtdm_app.a (555b0a2) (v5.0)

See merge request espressif/esp-idf!35688
2024-12-18 10:41:58 +08:00
Island
1ce40e18bf Merge branch 'docs/add_ble_qualification_table_v5.0' into 'release/v5.0'
docs(ble): Added BLE Qualification Information to API Guides (v5.0)

See merge request espressif/esp-idf!35707
2024-12-18 10:41:30 +08:00
Wei Yu Han
ef3548fc51 docs(ble): Added BLE Qualification Information to API Guides (v5.0) 2024-12-18 10:41:30 +08:00
xiongweichao
7d340965dc fix(bt): Fixed some controller bugs
- Fix epr not being initiated after authentication is completed
- Fixed the issue HCI_READ_CLOCK returned parameter in slot
- Fixed the missmatching of CLKN and FCNT after clock update
2024-12-17 20:38:48 +08:00
chenqingqing
1feb1eab58 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-17 20:38:48 +08:00
Jiang Jiang Jian
57414f787a Merge branch 'bugfix/fix_some_wifi_bugs_20241217_v5.0' into 'release/v5.0'
fix some wifi bugs(Backport v5.0)

See merge request espressif/esp-idf!35700
2024-12-17 19:48:33 +08:00
Jiang Jiang Jian
c444fc3da1 Merge branch 'bugfix/fix_some_wifi_bugs_20241216_v5.0' into 'release/v5.0'
fix(wifi): fix some wifi issues(Backport v5.0)

See merge request espressif/esp-idf!35675
2024-12-17 19:19:19 +08:00
Island
d0a52ca6de Merge branch 'feat/support_some_vendor_hci_for_qa_v5.0' into 'release/v5.0'
fix(ble): fixed the connect issue when rx error aa on ESP32-C2 (v5.0)

See merge request espressif/esp-idf!35643
2024-12-17 16:49:20 +08:00
Mahavir Jain
d855d1d9ec Merge branch 'feature/add_support_for_http_1.0_requests_v5.0' into 'release/v5.0'
feat(esp_http_server): add support to handle HTTP 1.0 requests (v5.0)

See merge request espressif/esp-idf!35663
2024-12-17 16:38:49 +08:00
Armando
1822062bb7 fix(adc): fixed adc_cali_check_scheme wrong return on c2/h2/c6 2024-12-17 16:20:24 +08:00
Zhang Hai Peng
1db0eddb97 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:23 +08:00
Jiang Jiang Jian
7981e5fd53 Merge branch 'bugfix/fix_sniffer_fail_on_ci_v5.0' into 'release/v5.0'
fix(ci): Enlarge the pcap memory size in sniffer example (v5.0)

See merge request espressif/esp-idf!35693
2024-12-17 14:01:55 +08:00
Omar Chebib
7e208d8284 fix(esp_psram): fix a bug in PSRAM heap registration
This commit fixes a bug in the PSRAM heap initialization that didn't take into
account the reserved himem area when registering the PSRAM virtual space as a heap.
2024-12-17 12:26:47 +08:00
muhaidong
44f074d719 fix(wifi): fixed blufi connect wep or wpa ap fail issue 2024-12-17 11:34:03 +08:00
muhaidong
bf58767f95 fix(phy): fixed calibration warning infomation inaccurate issue
Closes https://github.com/espressif/esp-idf/issues/14963
2024-12-17 11:31:43 +08:00
muhaidong
b3a3053c1a fix(phy): fix esp32 rx sense issue
improve esp32 rx sense from -94 to -97 which was introduced by 4dfeb9c2
2024-12-17 11:27:16 +08:00
zhanghaipeng
7f7efaccfc docs(ble/bluedroid): Optimize BLE example documentation 2024-12-17 11:19:18 +08:00
Jiang Jiang Jian
9d5c70637e Merge branch 'fix/littlefs_image_creation_windows_v5.0' into 'release/v5.0'
fix(littlefs): Allow LittleFS image generation on Windows + version bump (v5.0)

See merge request espressif/esp-idf!34919
2024-12-17 11:17:25 +08:00
Troy
cf5bcefef1 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:05:41 +08:00
zhangyanjiao
ddfaec54ed fix(ci): Enlarge the pcap memory size in sniffer example 2024-12-17 11:05:19 +08:00
xiongweichao
72cfdbe569 fix(ble): fixed that the resolvable private address does not change when light sleep is enabled 2024-12-17 10:48:14 +08:00
zhanghaipeng
64a5f4e20d 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:47:55 +08:00
muhaidong
5e1d512dab fix(wifi): fix some wifi issues
1. fixed softap rx bar from null bss issue
2. fixed association refused temporarily lead auth timeout issue
2024-12-16 21:07:20 +08:00
Jiang Jiang Jian
fc9cbc7072 Merge branch 'feat/add_no_bss_deauth_protect_v50' into 'release/v5.0'
feat(wifi): add protect for softap send no bss deauth releated code

See merge request espressif/esp-idf!35655
2024-12-16 20:43:20 +08:00
nilesh.kale
6af45b5f1c 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:11:44 +05:30
Island
57ef4c4965 Merge branch 'feat/support_bleqabr24_1539_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Added config for saving BLE bonding keys to NVS (v5.0)

See merge request espressif/esp-idf!35600
2024-12-16 14:25:51 +08:00
wangtao@espressif.com
5cbedb4df0 feat(wifi): add protect for softap send no bss deauth releated code 2024-12-16 14:24:39 +08:00
Jiang Jiang Jian
265569f647 Merge branch 'feature/reason_for_ap_stadisconnected_event_v5.0' into 'release/v5.0'
refactor(wifi): Cleanup in disconnecting station path for softAP (Backport v5.0)

See merge request espressif/esp-idf!35630
2024-12-16 11:07:38 +08:00
Zhao Wei Liang
cd6a69ed01 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:16 +08:00
Island
dddc60a0ee Merge branch 'fix/ble_mesh_enable_high_duty_itvl_on_nimble_v5.0' into 'release/v5.0'
feat(ble_mesh): select BT_NIMBLE_HIGH_DUTY_ADV_ITVL when using random adv itvl (v5.0)

See merge request espressif/esp-idf!35595
2024-12-13 16:22:06 +08:00
Sarvesh Bodakhe
e769f8aa0c refactor(wifi): Cleanup in disconnecting station path for softAP 2024-12-13 13:03:46 +05:30
Rahul Tank
cc57e36ee4 Merge branch 'bugfix/fix_vulnerability_v5.0' into 'release/v5.0'
fix(nimble): Fixes for security vulnerabilities reported in NimBLE (v5.0)

See merge request espressif/esp-idf!35503
2024-12-13 10:19:22 +08:00
Chen Jian Hua
87475cd99c 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:18 +08:00
Chen Jian Hua
0de7c62918 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:16 +08:00
Luo Xu
6c9f24b109 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:17 +08:00
Island
bdfc959da2 Merge branch 'fix/ble_mesh_bugs_fixed_v5.0' into 'release/v5.0'
fix(ble_mesh): Miscellaneous update (v5.0)

See merge request espressif/esp-idf!35423
2024-12-12 10:53:33 +08:00
Island
f924f612cf Merge branch 'bugfix/fix_hid_crash_v5.0' into 'release/v5.0'
fix(ble): Fix crash issue during logging (v5.0)

See merge request espressif/esp-idf!35507
2024-12-12 09:06:02 +08:00
Rahul Tank
882e739cc9 fix(nimble): Fixes for security vulnerabilities reported in NimBLE 2024-12-11 19:10:59 +05:30
Jiang Jiang Jian
b3f2d7f343 Merge branch 'bugfix/sae_pk_transition_disable_v5.0' into 'release/v5.0'
fix(wifi): Fix bug in wrong profile checking of AP's RSNXE IE and other fixes (Backport v5.0)

See merge request espressif/esp-idf!35235
2024-12-11 18:09:52 +08:00
Rahul Tank
1d78ba8af8 Merge branch 'feat/pts_changes_v5.0' into 'release/v5.0'
feat(nimble): BLE 5.4 PTS Related Features and Fixes (v5.0)

See merge request espressif/esp-idf!35024
2024-12-11 16:00:45 +08:00
luoxu
7e41682eb3 fix(ble_mesh): Miscellaneous update 2024-12-11 11:04:52 +08:00
Shyamal Khachane
7a7b6be32a 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 22:39:21 +05:30
Sarvesh Bodakhe
8058b97326 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 22:39:21 +05:30
Sarvesh Bodakhe
eeaf6714a5 fix(wpa_supplicant): Fix debug print in wps_start_msg_timer() 2024-12-10 22:39:21 +05:30
Sarvesh Bodakhe
887cce927b fix(wifi): Fix bug in wrong profile checking of AP's RSNXE IE 2024-12-10 22:39:19 +05:30
Sumeet Singh
444cb8778a feat(nimble): backport fixes for BLE 5.4 PTS Related Features and Fixes 2024-12-10 16:56:34 +05:30
Abhinav Kudnar
071f0f9a92 feat(nimble): Added PAwR support for nimble with IDF examples 2024-12-10 15:45:26 +05:30
Sumeet Singh
7b5a7a5401 fix(nimble): Added
1. Option to disable automatic discovery when receiving out-of-sync
2. Fixed bugs related to robust caching
2024-12-10 15:45:26 +05:30
Sumeet Singh
253b72254e feat(nimble): Added ways to enable/disable some menuconfig options at runtime 2024-12-10 15:45:26 +05:30
Sumeet Singh
5c18ac288a feat(nimble): Added option to disable automatically sending extra credits to peer 2024-12-10 15:45:26 +05:30
Sumeet Singh
ab7d0558d2 feat(nimble): Added support for persisting csf characteristic for bonded devices 2024-12-10 15:45:26 +05:30
Sumeet Singh
1355375592 feat(nimble): Added option in menuconfig to enable Secure Connections Only mode 2024-12-10 15:45:26 +05:30
Sumeet Singh
cfe927007b fix(nimble): fix and enable connection subrating 2024-12-10 15:45:26 +05:30
Sumeet Singh
006a6b29f1 fix(nimble): Added option to enable code under Enhanced COC 2024-12-10 15:45:26 +05:30
Sumeet Singh
b7ace3d6c6 fix(nimble): Fixed Device Information and Scan Parameters service 2024-12-10 15:45:26 +05:30
Sumeet Singh
c240d55f6c fix(nimble): Fixed encrypted advertisement data example 2024-12-10 15:45:26 +05:30
Sumeet Singh
c9337d120b feat(nimble): Added LE GATT Security Levels Characteristic 2024-12-10 15:45:26 +05:30
Sumeet Singh
5d0009316a feat(nimble): Added support for EATT Credit Based Flow Control Mode 2024-12-10 15:45:26 +05:30
Sumeet Singh
8997abe064 feat(nimble): read multiple variable length characteristics 2024-12-10 15:45:26 +05:30
Roshan Bangar
91578aafcf feat(nimble): Gatt caching support 2024-12-10 15:45:26 +05:30
Roshan Bangar
0fd1300d50 feat(nimble): added HID over Gatt profile support 2024-12-10 15:45:26 +05:30
Roshan Bangar
5c7ae46538 feat(nimble): Added support for dynamic services 2024-12-10 15:45:26 +05:30
SumeetSingh19
ba6a2dbb42 feat(nimble): signed write support 2024-12-10 15:45:26 +05:30
SumeetSingh19
2031366e54 feat(nimble): authorization permission on gatt read and write 2024-12-10 15:45:26 +05:30
SumeetSingh19
404c548ad1 fix(nimble): allow auto connection and observer role 2024-12-10 15:45:25 +05:30
Sumeet Singh
98e38a5d2a NimBLE: Exposed macros used by GAP service to menuconfig 2024-12-10 15:44:56 +05:30
zhanghaipeng
d5446608e3 feat(bt): Add support for converting BT HCI logs to btsnoop format 2024-12-09 17:50:19 +08:00
Zhang Hai Peng
00f6929123 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:19 +08:00
Zhang Hai Peng
722a69a1f7 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:14:51 +08:00
Jiang Jiang Jian
8059b611c3 Merge branch 'bugfix/fix_wifi_bugs_241206_v5.0' into 'release/v5.0'
bugfix: fix some wifi bugs 241206 v5.0

See merge request espressif/esp-idf!35481
2024-12-09 15:28:46 +08:00
Rahul Tank
689c804eff Merge branch 'fix/hci_err_code_def_v5.0' into 'release/v5.0'
fix(nimble): Added a function for printing HCI error definition (v5.0)

See merge request espressif/esp-idf!35205
2024-12-06 23:59:50 +08:00
Erhan Kurubas
c8d57f3c5e fix(sysview): fix test failure 2024-12-06 19:52:10 +08:00
Erhan Kurubas
d55663f07b 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-12-06 19:52:10 +08:00
morris
09e84586d1 Merge branch 'bugfix/uart_vfs_read_behavior_v5.0' into 'release/v5.0'
fix(uart_vfs): read() now aligned to POSIX defined behavior (v5.0)

See merge request espressif/esp-idf!35397
2024-12-06 18:38:30 +08:00
wangtao@espressif.com
25143e1e4a fix(wifi): fix ampdu to normal cause free buffer twice issue 2024-12-06 17:59:17 +08:00
sibeibei
78aba309f3 fix(wifi): fix some wifi issues 241031
1. fix cant sleep if reconnect to connected ap
    2. clear pmk in internal reconnection
    3. update connect status for init-->auth
2024-12-06 17:57:25 +08:00
Island
29013b4263 Merge branch 'bugfix/fix_ble_creat_conn_fail_enh_v5.0' into 'release/v5.0'
fix(ble/bluedroid): Fixed BLE create connection fail because of invalid own address type (v5.0)

See merge request espressif/esp-idf!35015
2024-12-06 15:49:32 +08:00
Wang Meng Yang
566ada5401 Merge branch 'bugfix/sdp_get_uuid_error_v5.0' into 'release/v5.0'
fix(bt/bluedroid): fixed issues introduced by byte alignment(v5.0)

See merge request espressif/esp-idf!35254
2024-12-06 15:14:29 +08:00
Wang Meng Yang
26254ac73b Merge branch 'bugfix/access_null_in_hf_cb_v5.0' into 'release/v5.0'
fix(bt/bluedroid): fixed access NULL in HFP callback handler (v5.0)

See merge request espressif/esp-idf!35410
2024-12-06 15:08:56 +08:00
Jiang Jiang Jian
70049e8922 Merge branch 'bugfix/watchdog_timer_ap_sta_esp32c5_v5.0' into 'release/v5.0'
fix(wifi): Prevent overwriting of scan parameters in consecutive scans (Backport v5.0)

See merge request espressif/esp-idf!34487
2024-12-06 14:13:52 +08:00
morris
a6acfe3591 Merge branch 'fix/fix_esp32_pico_v3_psram_not_ignored_issue_v5.0' into 'release/v5.0'
psram: fixed esp32p pico-v3 psram init not ignored issue (v5.0)

See merge request espressif/esp-idf!35381
2024-12-05 22:10:13 +08:00
Tomáš Rohlínek
dae7bfa69b fix(storage/vfs_console): stop new console opens from overwriting existing fds 2024-12-05 12:39:59 +01:00
akshat
cf22b6cff7 fix(wifi): Prevent overwriting of scan parameters in consecutive scans 2024-12-05 15:00:54 +05:30
Rahul Tank
efe76e2eb3 Merge branch 'bugfix/change_hci_cb_logging_v5.0' into 'release/v5.0'
fix(nimble): Replace ESP_LOG* with esp_rom_printf in controller context callback (v5.0)

See merge request espressif/esp-idf!35031
2024-12-05 16:42:26 +08:00
Astha Verma
adc64031d9 fix(nimble): Added a function for printing HCI error definition 2024-12-05 14:11:35 +05:30
Jiang Jiang Jian
a44b49dcfb Merge branch 'bugfix/retry_count_when_sta_disconnect_v5.0' into 'release/v5.0'
fix(wifi): Do not attempt re-connection as per 'failure_retry_cnt' when sta itself issues disconnect in between of connection establishment (Backport v5.0)

See merge request espressif/esp-idf!34188
2024-12-05 16:12:54 +08:00
Rahul Tank
8d085f23d5 Merge branch 'bugfix/resolve_watchdog_crash_v5.0' into 'release/v5.0'
fix(nimble): Resolved watchdog due to memory exceed prints (v5.0)

See merge request espressif/esp-idf!35213
2024-12-05 15:18:57 +08:00
Armando
8257d45b86 fix(psram): fixed esp32p pico-v3 psram init not ignored issue
Closes https://github.com/espressif/esp-idf/issues/14970
2024-12-05 14:41:13 +08:00
Jin Cheng
d61db5ca12 fix(bt/bluedroid): fixed access NULL in HFP callback handler 2024-12-05 13:22:25 +08:00
akshat
37531968a8 fix(wifi): Do not try re-connection when sta disconnects with esp_wifi_disconnect()
Do not follow wifi_config::wifi_sta_config::failure_retry_cnt logic when
station itself issues a disconnect from AP/Router using
esp_wifi_disconnect()
2024-12-05 10:12:11 +05:30
Rahul Tank
0dfc977374 fix(nimble): Replace ESP_LOG* with esp_rom_printf in controller context callback 2024-12-04 22:01:41 +08:00
Jiang Jiang Jian
3106c368eb Merge branch 'feat/support_esp32c2_eco4_wifi_v50' into 'release/v5.0'
Feat/support esp32c2 eco4 wifi v50

See merge request espressif/esp-idf!34659
2024-12-04 20:43:06 +08:00
Jiang Jiang Jian
1f5789e649 Merge branch 'fix/duplicated_enc_restart_request_when_change_key_type_v5.0' into 'release/v5.0'
fix(bt): fixed some issues in esp32 bt controller(backport v5.0)

See merge request espressif/esp-idf!35298
2024-12-04 19:21:47 +08:00
Song Ruo Jing
f513286872 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-04 15:14:18 +08:00
Jiang Jiang Jian
e4c871935a Merge branch 'bugfix/fix_ble_ke_mem_267_assert_v5.0' into 'release/v5.0'
fix(bt/controller): Fixed BLE assert ke_mem.c line 267 on ESP32-C3 and ESP32-S3(backport v5.0)

See merge request espressif/esp-idf!35341
2024-12-04 11:11:05 +08:00
Jiang Jiang Jian
8642718288 Merge branch 'bugfix/fix_c2_light_sleep_coex_v5.0' into 'release/v5.0'
fix(ble): fix ble light sleep error on esp32c2 (v5.0)

See merge request espressif/esp-idf!35052
2024-12-04 11:09:52 +08:00
chenjianhua
4fa7610be8 feat(ble/bluedroid): Support setting connection params when creating connection 2024-12-03 18:05:12 +08:00
Abhinav Kudnar
e5c4002fd8 fix(nimble): Resolved watchdog due to memory exceed prints 2024-12-03 18:04:56 +08:00
zhanghaipeng
f70a669973 fix(ble/bluedroid): Optimize BLE API "esp_ble_gattc_enh_open" 2024-12-03 18:04:46 +08:00
zhanghaipeng
2b08d26dee fix(ble/bluedroid): Fixed BLE create connection fail because of invalid own address type 2024-12-03 18:04:46 +08:00
wangtao@espressif.com
2bf982e747 feat(wifi): support esp32c2 eco4 wifi lib 2024-12-03 11:25:43 +08:00
wangtao@espressif.com
c9102147d1 fix(wifi): fix esp32c2 eco4 ci issue ld 2024-12-03 11:04:40 +08:00
xiongweichao
4b7f872177 fix(bt/bluedroid): fixed issues introduced by byte alignment
- esp_bt_uuid_t is byte aligned, tBT_UUID is 4-byte aligned.
2024-12-03 09:13:46 +08:00
zhiweijian
5d8f11ac84 fix(bt/controller): Fixed BLE assert ke_mem.c line 267 on ESP32-C3 and ESP32-S3 2024-12-02 16:23:34 +08:00
Island
2178173ff4 Merge branch 'fix/ble_mesh_heartbeat_bug_v5.0' into 'release/v5.0'
fix(ble_mesh): fixed heartbeat issue (v5.0)

See merge request espressif/esp-idf!34962
2024-12-02 11:29:37 +08:00
gongyantao
21df54c917 fix(bt): fixed some issues in esp32 bt controller
1: fix duplicated lc_enc_restart_req when new lk type is semi-permanent
   key
2: reset PreventEncEvt flag at the end of restart encryption procedure
2024-11-29 14:13:23 +08:00
morris
c1802d076e Merge branch 'contrib/github_pr_14767_v5.0' into 'release/v5.0'
fix(gptimer): race on FSM state in gptimer_start() (GitHub PR) (v5.0)

See merge request espressif/esp-idf!35138
2024-11-29 13:32:17 +08:00
Island
afea334e3d Merge branch 'bugfix/fix_bleqabr24_1646_v5.0' into 'release/v5.0'
Fixed BLE creating connection when the connection already exists on ESP32 (v5.0)

See merge request espressif/esp-idf!35043
2024-11-27 15:43:00 +08:00
Island
389e738e18 Merge branch 'feat/optimize_cble50y24_110_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Added BLE 5.0 throughput examples (v5.0)

See merge request espressif/esp-idf!35006
2024-11-27 15:37:28 +08:00
Wang Meng Yang
581cf343de Merge branch 'feat/add_profile_state_event_v5.0' into 'release/v5.0'
feat(bt/bluedroid): added events to indicate the profile states of HFP (v5.0)

See merge request espressif/esp-idf!35152
2024-11-27 14:44:09 +08:00
Chen Jian Hua
8f072c63f7 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:57:15 +08:00
Jiang Jiang Jian
e057cc258f Merge branch 'bugfix/disconn_sdp_upon_wrong_data_v5.0' into 'release/v5.0'
fix(bt/bluedroid): disconnect SDP connection on receiving incorrect response (v5.0)

See merge request espressif/esp-idf!35147
2024-11-26 10:31:27 +08:00
Jin Chen
1021139898 fix(ble): change ld for ble scan coex issue
(cherry picked from commit dd499d7b2e)

Co-authored-by: cjin <jinchen@espressif.com>
2024-11-25 21:03:50 +08:00
Jin Chen
219244ffaa fix(ble): fix ble light sleep error on esp32c2
(cherry picked from commit 23f7e33a97)

Co-authored-by: cjin <jinchen@espressif.com>
2024-11-25 21:03:50 +08:00
Jin Cheng
6089d7a664 feat(bt/bluedroid): added events to indicate the profile states of HFP 2024-11-25 16:24:38 +08:00
Jiang Jiang Jian
01a851ca9d Merge branch 'bugfix/wps_ie_reset_v50' into 'release/v5.0'
fix(wifi): Remove WPS IEs once WPS succeeds

See merge request espressif/esp-idf!35081
2024-11-25 15:04:09 +08:00
Wang Meng Yang
05a7a1dab4 Merge branch 'bugfix/osi_replace_free_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Replace free/malloc with osi_free/malloc(v5.0)

See merge request espressif/esp-idf!34610
2024-11-25 13:50:49 +08:00
morris
aa8e0136bd Merge branch 'bugfix/esp32c3_eco7_usj_console_v5.0' into 'release/v5.0'
fix(esp_rom): fix esp32c3 eco7 console rom function address (v5.0)

See merge request espressif/esp-idf!34742
2024-11-25 10:37:16 +08:00
Jin Cheng
42b9cc11da fix(bt/bluedroid): disconnect SDP connection on receiving incorrect response 2024-11-25 10:21:11 +08:00
Wang Meng Yang
9a1f50e5c6 Merge branch 'bugfix/rx_invalid_cmd_err_code_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fixed the incorrect error code returned when receiving an invalid command(v5.0)

See merge request espressif/esp-idf!34994
2024-11-25 08:13:26 +08:00
Chen Jian Hua
7498ce744d fix(bt): Update bt lib for ESP32(c3082c4)
- Fixed BLE creating connection when the connection already exists


(cherry picked from commit cada39c3b5)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-11-25 00:05:12 +08:00
xiongweichao
1866feefb6 fix(bt/bluedroid): Replace free/malloc with osi_free/malloc 2024-11-22 21:16:52 +08:00
lsita
3bd624a4b9 fix(gptimer): race condition between start and stop
Merges https://github.com/espressif/esp-idf/pull/14767
2024-11-22 18:28:13 +08:00
Li Bo
17a8462d81 fix(esp_rom): fix esp32c3 eco7 console rom function address 2024-11-22 14:56:45 +08:00
Aditya Patwardhan
8ec2220362 Merge branch 'bugfix/ota_failed_with_openssl_3.0.2_v5.0' into 'release/v5.0'
fix(esp_http_client): Fix ota failure with openssl server (v5.0)

See merge request espressif/esp-idf!35069
2024-11-22 14:54:30 +08:00
Roland Dobai
48ff843ba5 Merge branch 'fix/import_error_msg_v5.0' into 'release/v5.0'
fix(tools): re-raise ImportError without module name (v5.0)

See merge request espressif/esp-idf!35082
2024-11-21 23:05:51 +08:00
wangtao@espressif.com
e56f427065 fix(wifi): put more useful rom code in used 2024-11-21 20:24:39 +08:00
Frantisek Hrbata
a20539d53e 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 10:10:12 +01:00
Kapil Gupta
88cb3141bf fix(wifi): Remove WPS IEs once WPS succeeds 2024-11-21 13:49:04 +05:30
nilesh.kale
7abf64f3f3 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:54 +05:30
Jiang Jiang Jian
e35c46b29f Merge branch 'fix/fix_deadlock_in_pm_mode_switching_v5.0' into 'release/v5.0'
fix(esp_pm): fix deadlock in pm_mode switching (v5.0)

See merge request espressif/esp-idf!34990
2024-11-19 19:04:27 +08:00
Rahul Tank
4580874d30 Merge branch 'bugfix/memory_issue_v5.0' into 'release/v5.0'
fix(nimble): Nimble Error logs in case of memory overflow/failure (v5.0)

See merge request espressif/esp-idf!35001
2024-11-19 17:12:11 +08:00
wuzhenghui
91d1b1276c fix(esp_pm): fix deadlock in pm_mode switching 2024-11-18 19:23:21 +08:00
Abhinav Kudnar
f13bbbb774 fix(nimble): Nimble Error logs in case of memory overflow/failure 2024-11-18 17:57:52 +08:00
xiongweichao
a4b0000cc4 fix(bt/bluedroid): Fixed the incorrect error code returned
when receiving an invalid command
2024-11-18 17:02:06 +08:00
wuzhenghui
8038821546 fix(esp_pm): fix missed ccompare update when another core is already in do_switch 2024-11-18 16:51:14 +08:00
wangtao@espressif.com
28621c5d7d ix(wifi): fix esp32c2 eco4 in v5.0 extra ld issue 2024-11-18 15:57:11 +08:00
wangtao@espressif.com
c117ea6bfc fix(wifi): fix esp32c2 eco4 ld 2024-11-18 15:57:11 +08:00
wangtao@espressif.com
55184e83aa feat(wifi): support esp32c2 eco4 wifi bringup 2024-11-18 15:57:11 +08:00
Jiang Jiang Jian
37b51f1ec8 Merge branch 'bugfix/lmp_trans_collision_v5.0' into 'release/v5.0'
fix(bt/controller): Fixed some controller bugs on ESP32 (v5.0)

See merge request espressif/esp-idf!34948
2024-11-18 11:20:45 +08:00
Jiang Jiang Jian
879da39498 Merge branch 'bugfix/fix_tbtt_interval_update_fail_v5.0' into 'release/v5.0'
fix(wifi): Optimization for wifi components (v5.0)

See merge request espressif/esp-idf!34891
2024-11-18 11:01:47 +08:00
Jiang Jiang Jian
0c0767b850 Merge branch 'change/change_pm_slp_iram_opt_dependence_v5.0' into 'release/v5.0'
change(esp_pm): change pm_slp_iram_opt dependence(backport v5.0)

See merge request espressif/esp-idf!33863
2024-11-18 10:45:03 +08:00
morris
0e2656ae88 Merge branch 'contrib/github_pr_14859_v5.0' into 'release/v5.0'
fix(usb_host): return ESP_ERR_NO_MEM on failed alloc in client register (GitHub PR) (v5.0)

See merge request espressif/esp-idf!34955
2024-11-15 21:20:53 +08:00
Wang Meng Yang
efe70fe234 Merge branch 'bugfix/fix_classic_bt_build_fail_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fixed classic bt build fail when enable dynamic memory and disable BLE (v5.0)

See merge request espressif/esp-idf!34927
2024-11-15 17:35:24 +08:00
Luo Xu
7fccbcf78d fix(ble_mesh): fixed heartbeat issue
(cherry picked from commit 167cd4762b)

Co-authored-by: luoxu <luoxu@espressif.com>
2024-11-15 17:23:25 +08:00
Daniel Mangum
669565477e 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-15 09:17:35 +01:00
Jin Cheng
a5d2d906ad 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-15 11:47:17 +08:00
Jin Cheng
4d7e92bb35 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-15 11:47:17 +08:00
Zhang Hai Peng
e3f0e10055 fix(bt/bluedroid): Fixed classic bt build fail when enable dynamic memory and disable BLE
(cherry picked from commit 59d20e80d3)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-11-14 22:13:30 +08:00
Martin Vychodil
94250f0521 Merge branch 'bugfix/nvs_entry_sanity_check_v5.0' into 'release/v5.0'
Bugfix/added nvs entry header sanity checks (v5.0)

See merge request espressif/esp-idf!34296
2024-11-14 21:39:39 +08:00
Adam Múdry
cd217a3586 fix(littlefs): Allow LittleFS image generation on Windows + version bump
Closes https://github.com/espressif/esp-idf/issues/12900
2024-11-14 13:23:28 +01:00
radek.tandler
508c251fd2 fix(storage/nvs): Fixed hadling of inconsistent values in NVS entry header
feat(storage/nvs): Added test cases for damaged entries with correct CRC
2024-11-14 11:50:44 +01:00
Island
240dd4fb8d Merge branch 'feature/support_moving_code_to_flash_v5.0' into 'release/v5.0'
feat(ble): Support for putting code in flash on ESP32-C2 (v5.0)

See merge request espressif/esp-idf!34782
2024-11-14 10:09:21 +08:00
zhangyanjiao
29f7ec82d9 fix(wifi): Optimization for wifi components
1. fix(wifi/pm): Fixed the tbtt interval update error when AP's beacon interval changed
   Closes https://github.com/espressif/esp-idf/issues/14720
2. fix(wifi/mesh): Enlarge the mesh TX task stack
3. fix(wifi/espnow): Added check for espnow type and length on v1.0
4. fix(wifi/mesh): Fixed delete group id error in wifi mesh
   Closes https://github.com/espressif/esp-idf/issues/14735
2024-11-14 09:34:34 +08:00
Roland Dobai
6f794b1055 Merge branch 'feat/ninja_use_targz_instead_zip_v5.0' into 'release/v5.0'
feat(tools): ninja tool download - use .tar.gz instead of .zip (v5.0)

See merge request espressif/esp-idf!34854
2024-11-13 21:04:43 +08:00
zhangyanjiao
9a45ad7d46 docs(wifi/espnow): Update the description for ESP-NOW frame 2024-11-13 19:40:36 +08:00
Island
c0d14dabfc Merge branch 'bugfix/fix_some_ble_bugs_240926_esp32_v5.0' into 'release/v5.0'
Fixed some BLE bugs 240926 on ESP32 (v5.0)

See merge request espressif/esp-idf!34550
2024-11-13 12:05:11 +08:00
Jiang Jiang Jian
cf1bec85a0 Merge branch 'bugfix/support_random_iv_in_esptouch_v2_v5.0' into 'release/v5.0'
fix(wifi): Support AES IV with random value in esptouch v2 (v5.0)

See merge request espressif/esp-idf!34615
2024-11-13 10:40:49 +08:00
Marek Fiala
b84b71e625 feat(tools): ninja tool download - use .tar.gz insead of .zip
Changed the download file format for ninja tool from github with .zip file format
to dl.espressif.com with .tar.gz file format.

Closes https://github.com/espressif/esp-idf/pull/14633
2024-11-12 13:39:06 +01:00
Jiang Jiang Jian
bc82044cd6 Merge branch 'fix/bypass_some_restore_process_if_sleep_rejected_v5.0' into 'release/v5.0'
fix(esp_hw_support): skip some wakeup steps if sleep is rejected (v5.0)

See merge request espressif/esp-idf!34631
2024-11-12 19:23:34 +08:00
Wang Meng Yang
e00cb936a6 Merge branch 'bugfix/fix_avrc_absolute_volume_compatibility_v5.0' into 'release/v5.0'
bugfix/fix_avrc_absolute_volume_compatibility[backport v5.0]

See merge request espressif/esp-idf!34773
2024-11-12 17:55:09 +08:00
morris
f1e86424c2 Merge branch 'bugfix/workaround_of_i2s_half_sample_rate_issue_v5.0' into 'release/v5.0'
fix(i2s): fix i2s half sample rate issue (v5.0)

See merge request espressif/esp-idf!34356
2024-11-12 10:02:00 +08:00
Shen Weilong
c3290dfd6b feat(ble): Support for putting code in flash on ESP32-C2 2024-11-11 17:38:13 +08:00
Wang Meng Yang
7c02cb4517 Merge branch 'bugfix/hfp_sniff_mng_v5.0' into 'release/v5.0'
bugfix/hf_and_ag_cannot_enter/exit sniff mode. (v5.0)

See merge request espressif/esp-idf!34470
2024-11-11 15:09:23 +08:00
Island
48cb8520b4 Merge branch 'feat/support_controller_run_in_flash_only_v5.0' into 'release/v5.0'
feat(bt/controller): Support controller code run in flash only (backport v5.0)

See merge request espressif/esp-idf!34696
2024-11-11 14:21:42 +08:00
liqigan
9f6dabfacb fix(bt/bluedroid): Fixed AVRCP compatibility issue on absolute volume synchronization 2024-11-08 14:51:34 +08:00
gongyantao
d09167aab4 fix(bt): fix some issues in bt controller
1: Store local device name into NVDS when handling hci_wr_local_name_cmd.
2: Set default device name during link manager initialization.
3: Set the QoS value to the minimum value if the calculated QoS is less
   than the minumum.
2024-11-08 14:26:35 +08:00
zhanghaipeng
fe6d4ebe1e fix(bt/ble): Update esp32 libbtdm_app.a (17db8bd)
- Added a verification step for the Access Address within the CONNECT_IND PDU
2024-11-08 14:26:15 +08:00
chenjianhua
ec7ff931c3 fix(bt): Update bt lib for ESP32(a2a7457)
- Fixed assert in ke_mem.c at line 409 when controller reset
- Added config for BLE instant passed workaround
- Fixed connection can't be established when initiating and advertising coexist
2024-11-08 14:24:54 +08:00
morris
e5e4e9779d Merge branch 'feat/mcpwm_dead_time_add_warning_v5.0' into 'release/v5.0'
fix(mcpwm): add warning about generator deadtime (v5.0)

See merge request espressif/esp-idf!34733
2024-11-08 11:48:50 +08:00
Wang Meng Yang
0e74af066e Merge branch 'bugfix/fix_memory_leak_in_sco_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix memory leak in sco when bluedroid disable (v5.0)

See merge request espressif/esp-idf!34568
2024-11-08 10:47:42 +08:00
Jin Cheng
59020dd176 fix(bt/bluedroid): fixed AG and HF client cannot enter/exit sniff mode 2024-11-08 10:03:02 +08:00
Jin Cheng
95b0cdafdd Revert "Disable sniff mode during (e)SCO connection."
This reverts commit 39a5eb84f3.
2024-11-08 10:03:02 +08:00
Wang Meng Yang
daedcb97e4 Merge branch 'bugfix/update_btlib_v5.0' into 'release/v5.0'
fix(bt/controller): Fixed some controller bugs on ESP32 (v5.0)

See merge request espressif/esp-idf!34467
2024-11-07 16:46:24 +08:00
Chen Jichang
1f0ba8f4b1 fix(mcpwm): add warning about generator deadtime
Closes https://github.com/espressif/esp-idf/issues/14773
2024-11-07 10:59:45 +08:00
linruihao
f6db0211c6 fix(bt/bluedroid): Fix memory leak in sco when bluedroid disable 2024-11-06 19:42:32 +08:00
Jin Cheng
ccb482a38d fix(bt/controller): Fixed some controller bugs on ESP32
- Fixed access NULL in SCO frame end
      Closes https://jira.espressif.com:8443/browse/IDFGH-10796
    - Added LAP checking for Periodic Inquiry
    - Removed an inproper assertion in SCO module
    - Fixed wrong logic in key exchange when
      LMP transaction collision occurred
    - Fixed the using of wrong error code in
      the transaction collision of role switch
2024-11-06 19:38:22 +08:00
Aditya Patwardhan
a974ea3a9a Merge branch 'bugfix/update_condition_to_verify_http_version_v5.0' into 'release/v5.0'
fix(esp_http_server): updated condition to verify http version (v5.0)

See merge request espressif/esp-idf!34638
2024-11-06 16:40:32 +08:00
Island
e991d160c7 Merge branch 'bugfix/fix_ble_build_fail_v5.0' into 'release/v5.0'
fix(ble/bluedroid): Fixed BLE build fail when enable dynamic memory and BLE5.0 (v5.0)

See merge request espressif/esp-idf!34661
2024-11-06 16:37:04 +08:00
zhiweijian
81c56354fb feat(bt/controller): Support controller code run in flash only 2024-11-06 14:24:28 +08:00
Island
d062566db8 Merge branch 'bugfix/fix_some_ble_bugs_240926_esp32c3_v5.0' into 'release/v5.0'
Fixed some BLE bugs 240926 on ESP32C3 (v5.0)

See merge request espressif/esp-idf!34554
2024-11-06 11:51:02 +08:00
Island
84cae3aa8c Merge branch 'feat/support_blecrt_90_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Added API to set supported channel selection algorithm (v5.0)

See merge request espressif/esp-idf!34502
2024-11-06 11:50:08 +08:00
Island
fb0b52cd79 Merge branch 'bugfix/fix_ble_adv_start_fail_v5.0' into 'release/v5.0'
fix(ble/bluedroid): Fixed crash issue in BLE SMP when a disconnection process is ongoing(v5.0)

See merge request espressif/esp-idf!34525
2024-11-05 16:37:14 +08:00
Zhang Hai Peng
dff7650b6c fix(ble/bluedroid): Fixed BLE build fail when enable dynamic memory and BLE5.0
(cherry picked from commit 94d1a4f1c0)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-11-05 16:13:27 +08:00
Michael (XIAO Xufeng)
6afa87ba7d Merge branch 'feat/new_xmc_id_v5.0' into 'release/v5.0'
feat(spi_flash): Add new xmc chip id (backport v5.0)

See merge request espressif/esp-idf!34297
2024-11-05 02:46:11 +08:00
nilesh.kale
63afc49584 fix(esp_http_server): updated condition to verify http version
Closes https://github.com/espressif/esp-idf/issues/14723
2024-11-04 15:51:47 +05:30
wuzhenghui
b81dbfb65b fix(esp_hw_support): skip some wakeup steps if sleep is rejected
1. Skip esp_timer time compensation to avoid introducing errors into rtc_timer
    2. Ignore sleep_time_overhead_out measurements when sleep is rejected
2024-11-04 16:41:22 +08:00
zhangyanjiao
de69895f38 fix(wifi): Support AES IV with random value in esptouch v2 2024-11-04 09:38:02 +08:00
Jiang Jiang Jian
e546409ae5 Merge branch 'bugfix/ftm_apsta_bw_issue_v5.0' into 'release/v5.0'
fix(esp_wifi): Fix FTM issues in AP-STA mode (Backport v5.0)

See merge request espressif/esp-idf!33843
2024-11-01 13:54:04 +08:00
Chen Jian Hua
2d0c9d1837 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(52ee788)
- Fixed BLE vendor HCI set and get tx power
- Support BLE vendor HCI set adv aux offset command
- Support BLE vendor HCI set CSA support command
- Added config for BLE instant passed workaround
- Fixed btdm_sleep_clock_sync timeout workaround


(cherry picked from commit 1e3220b0b0)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-10-31 15:33:43 +08:00
Jiang Jiang Jian
abf2f1055c Merge branch 'fix/fix_esp32c2_tx_shake_issue_v50' into 'release/v5.0'
fix(wifi): fix esp32c2 tx shake issue

See merge request espressif/esp-idf!34514
2024-10-31 14:58:06 +08:00
Jiang Jiang Jian
aacfeee713 Merge branch 'bugfix/wpa2_ent_fixes_v5.0' into 'release/v5.0'
Few fixes in wpa_supplicant(v5.0)

See merge request espressif/esp-idf!34447
2024-10-31 14:36:50 +08:00
laokaiyao
dea7db9cd8 fix(i2s): fix i2s half sample rate issue 2024-10-31 11:00:41 +08:00
Jiang Jiang Jian
111fa0520d Merge branch 'bugfix/fix_miss_internal_wapi_deinit_issue_v5.0' into 'release/v5.0'
fix(wifi): fix miss internal wapi deinit issue(Backport v5.0)

See merge request espressif/esp-idf!34490
2024-10-30 16:45:44 +08:00
Zhang Hai Peng
4074270dd1 fix(ble/bluedroid): Fixed crash issue in BLE SMP when a disconnection process is ongoing
(cherry picked from commit 76e1650161)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-10-30 15:24:43 +08:00
Zhang Hai Peng
f268734259 fix(ble/bluedroid): Support enable BLE topology check by API
(cherry picked from commit dbc94c7056)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-10-30 15:24:21 +08:00
chenjianhua
1c877b9157 fix(bt/bluedroid): Fixed error when memory debug enabled 2024-10-29 21:53:29 +08:00
chenjianhua
0d4427eddf fix(bt/bluedroid): Fixed GATTC app status check when BT and BLE coexist 2024-10-29 21:53:25 +08:00
chenjianhua
f55b6373e6 fix(bt/bluedroid): Update address type for BLE link when the connection is completed 2024-10-29 21:53:21 +08:00
wangtao@espressif.com
e0bf41787b fix(wifi): fix esp32c2 tx shake issue 2024-10-29 20:04:59 +08:00
Chen Jian Hua
73453ee3e1 feat(bt/bluedroid): Added API to set supported channel selection algorithm
(cherry picked from commit 4ae7b4aecf)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-10-29 17:35:08 +08:00
Island
90155fa324 Merge branch 'feat/support_enable_ble_hci_log_by_api_v5.0' into 'release/v5.0'
feat(ble/bluedroid): Support enable BLE hci log by API (v5.0)

See merge request espressif/esp-idf!34421
2024-10-29 16:05:46 +08:00
Island
05437c15f8 Merge branch 'bugfix/fix_ble_handle_check_v5.0' into 'release/v5.0'
fix(ble/bluedroid): Fixed BLE handle check for GATT API (v5.0)

See merge request espressif/esp-idf!34093
2024-10-29 16:03:12 +08:00
Nachiket Kukade
dd049e2cda fix(esp_wifi): Fix FTM issues in AP-STA mode
Add AP-STA mode support in FTM example
Update wifi libs with below changes -
- Use ex-AP's bandwidth in FTM request when connected
- Allow Bandwidth downgrade in FTM negotiation
- Use separate calibration when Initiator performs 20MHz FTM
  while in-AP is in 40MHz
2024-10-29 10:58:11 +05:30
muhaidong
53584bbdce fix(wifi): fix miss internal wapi deinit issue 2024-10-29 11:56:41 +08:00
Jiang Jiang Jian
bde38f6398 Merge branch 'bugfix/wifi_set_mode_error_propagation_v5.0' into 'release/v5.0'
Handle missing error propagation in esp_wifi_set_mode() API (Backport v5.0)

See merge request espressif/esp-idf!33862
2024-10-28 20:48:34 +08:00
Aditi
0a84eb907f fix(wpa_supplicant): Add few fixes in dpp task 2024-10-28 17:46:56 +05:30
aditi
3d025d9ecf fix(wpa_supplicant): Add few fixes in btm_rrm task 2024-10-28 17:46:55 +05:30
aditi
20f1057797 fix(wpa_supplicant): Add few fixes in eloop task 2024-10-28 17:46:55 +05:30
aditi
716b4ddc32 fix(wpa_supplicant): Add few fixes in WPS task 2024-10-28 17:46:55 +05:30
aditi
a4b83d0c4a fix(wpa_supplicant): Add few fixes in eap client code 2024-10-28 17:46:53 +05:30
akshat
095b16799a fix(esp_wifi): Handle missing error propagation in esp_wifi_set_mode 2024-10-28 16:59:06 +08:00
Jiang Jiang Jian
fee009d9c5 Merge branch 'change/improve_some_wifi_releated_introduction_v50' into 'release/v5.0'
change(wifi):improve some wifi releated introduction v50

See merge request espressif/esp-idf!34280
2024-10-28 13:41:36 +08:00
Jiang Jiang Jian
d92c4a9183 Merge branch 'fix/freertos_race_cond_in_stream_buffers_send_v5.0' into 'release/v5.0'
fix(freertos): Fixed SMP race condition in xStreamBufferSend() (v5.0)

See merge request espressif/esp-idf!34338
2024-10-28 13:41:13 +08:00
Mahavir Jain
060aefc945 Merge branch 'feat/mbedtls_size_optimization_v5.0' into 'release/v5.0'
Fix the increase in build size of mbedtls while upgrading to v3.x (v5.0)

See merge request espressif/esp-idf!34255
2024-10-28 11:17:26 +08:00
Island
2edaf52ef4 Merge branch 'refactor/ble_example_print_on_bluedroid_v5.0' into 'release/v5.0'
refactor(bt/bluedroid): Refactor the print for BLE examples (v5.0)

See merge request espressif/esp-idf!34307
2024-10-28 10:52:38 +08:00
Anton Maklakov
21b540d11d Merge branch 'ci/temp_disable_sonarqube_v5.0' into 'release/v5.0'
ci: temp disable sonarqube check. keep it for migrating to codechecker (v5.0)

See merge request espressif/esp-idf!34454
2024-10-28 09:44:20 +08:00
Alexey Gerenkov
d7bb0f27f6 Merge branch 'jtag_doc_update_v5.0' into 'release/v5.0'
docs(jtag): update OpenOCD related sections (v5.0)

See merge request espressif/esp-idf!34401
2024-10-25 19:27:25 +08:00
wangtao@espressif.com
f33707bc89 change(wifi):improve some wifi releated introduction 2024-10-25 19:22:33 +08:00
Fu Hanxi
8484cfd4bb ci: disable sonarqube check 2024-10-25 13:07:23 +02:00
Mahavir Jain
865205120b Merge branch 'feature/update_mbedtls_version_to_3.6.2_v5.0' into 'release/v5.0'
feat(mbedtls): update mbedtls version to 3.6.2(v5.0)

See merge request espressif/esp-idf!34360
2024-10-25 17:36:33 +08:00
Sudeep Mohanty
6571b492f2 fix(freertos): Fixed SMP race condition in xStreamBufferSend()
This commit fixes a race condition in dual-core SMP mode where in the
xStreamBufferSend() makes the xTaskWaitingToSend NULL but it may
have already been evaluated to not be NULL by xStreamBufferReceive()
running on another core and eventually leading to a crash in tasks.c.
2024-10-25 16:32:25 +08:00
C.S.M
d00e400552 patch(spi_flash): cleanup XMC flash chip usage according to new information 2024-10-25 15:49:25 +08:00
Zhang Hai Peng
eb8f790f3f feat(ble/bluedroid): Support enable BLE hci log by API
(cherry picked from commit 15c895fc6a)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-10-24 20:13:12 +08:00
chenjianhua
0a93282fde fix(bt/bluedroid): correct the readme links for BLE periodic examples 2024-10-24 18:04:10 +08:00
chenjianhua
d4dd65474e refactor(bt/bluedroid): Refactor the print for BLE examples 2024-10-24 18:04:10 +08:00
chenjianhua
f4d50858e6 refactor(bt/bluedroid): Refactor the print for gatt_server and gatt_client example 2024-10-24 18:04:10 +08:00
Jiang Jiang Jian
795e2bbae1 Merge branch 'bugfix/backport_supplicant_fixes_v5.0' into 'release/v5.0'
fix(wifi): Backport some fixes(v5.0)

See merge request espressif/esp-idf!33978
2024-10-24 15:47:37 +08:00
Jiang Jiang Jian
5d8cf31912 Merge branch 'bugfix/sae_h2e_vulnerability_fix_v5.0' into 'release/v5.0'
fix(wifi): Sae check for invalid rejected group (v5.0)

See merge request espressif/esp-idf!33982
2024-10-24 15:20:21 +08:00
Erhan Kurubas
5928579960 docs(jtag): update OpenOCD related sections 2024-10-23 20:58:47 +02:00
Sergei Silnov
e6a6ccfe5c Merge branch 'fix/gdbgui_py3.13_v5.0' into 'release/v5.0'
fix(tools): Print message about GDBGUI being not supported with Python 3.13 (v5.0)

See merge request espressif/esp-idf!34380
2024-10-23 19:58:53 +08:00
Island
2098c371cc Merge branch 'docs/add_ble_get_started_eng_2024102310_v5.0' into 'release/v5.0'
Docs: Added BLE English version of BLE Get Started (v5.0)

See merge request espressif/esp-idf!34383
2024-10-23 18:55:39 +08:00
Alexey Gerenkov
bd7f2d9416 Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20241016_v5.0' into 'release/v5.0'
feat(tools): update openocd version to v0.12.0-esp32-20241016 (v5.0)

See merge request espressif/esp-idf!34396
2024-10-23 18:33:03 +08:00
Alexey Gerenkov
797fb852a6 feat(tools): update openocd version to v0.12.0-esp32-20241016 2024-10-23 10:06:08 +02:00
Anton Maklakov
20efbad741 Merge branch 'ci/replace_internal_clang-tidy-runner_v5.0' into 'release/v5.0'
ci: replace internal clang-tidy runner with the pypi project (v5.0)

See merge request espressif/esp-idf!34369
2024-10-23 14:34:10 +08:00
Island
0e477e66ad Merge branch 'bugfix/fix_ble_robust_feature_v5.0' into 'release/v5.0'
fix(ble/bluedroid): Fixed error when writing Client Supported Features characteristic (v5.0)

See merge request espressif/esp-idf!34244
2024-10-23 10:51:38 +08:00
Wei Yu Han
c0b22cb37b Merge branch 'docs/add_ble_get_started_eng' into 'master'
Docs: Added BLE English version of BLE Get Started

See merge request espressif/esp-idf!34013

(cherry picked from commit 35fd041288)

42601a7a docs(ble): Added ENG version of ble-introduction.rst
615282c4 docs(ble): Added ENG version of ble-device-discovery.rst
645e68f5 docs(ble): Added initial ENG version of ble-device-discovery.rst
d2d95a52 docs(ble): Added ENG version of ble-data-exchange.rst
00ca4dc7 docs(ble):Updated Details table in ble-device-discovery.rst
8e03c200 fix(ble): Removed trailing white space, and fixed some format issues
5b304485 docs(ble):Fixed a indentation in ble-data-exchange.rst
b4c51e7b docs(ble): Deleted some chinese character in ble-data-exchange.rst ENG version
d01d7efe docs(ble):Revised some expression in ENG version of BLE Get Started
a24762c5 docs(ble): Removed a trailing whitespace in ble-introduction.rst
afbe5a1f Apply 44 suggestion(s) to 4 file(s)
4ddab725 docs(ble): Fixed a description in ble-introduction.rst
203dfa03 Apply 5 suggestion(s) to 3 file(s)

Co-authored-by: Island <island@espressif.com>
2024-10-23 10:16:47 +08:00
Roland Dobai
5192bc8e4c fix(tools): Print message about GDBGUI being not supported with Python 3.13 2024-10-22 16:26:44 +02:00
Fu Hanxi
233429b4a3 ci: replace internal clang-tidy runner with the pypi project 2024-10-22 13:23:21 +02:00
nilesh.kale
a64c07fdde feat(mbedtls): update mbedtls version to 3.6.2 2024-10-22 13:55:37 +05:30
Marius Vikhammer
45c893d5c5 Merge branch 'fix/freertos_race_cond_in_stream_buffers_v5.0' into 'release/v5.0'
fix(freertos): Fixed SMP race condition in stream_buffers.c (v5.0)

See merge request espressif/esp-idf!34228
2024-10-22 15:59:55 +08:00
Sergei Silnov
9442d35ed0 Merge branch 'ci/5.0_fix_macos_arm_python_version' into 'release/v5.0'
Remove PYTHON_VER=3.7.10 from .gitlab-ci.yml as it breaks test_build_system_cmake_macos on ARM

See merge request espressif/esp-idf!33884
2024-10-21 22:49:03 +08:00
Rahul Tank
74cc06ae0b Merge branch 'bugfix/fix_datalen_issue_v5.0' into 'release/v5.0'
fix(nimble): Adjust time parameter in set Data len API in case BLE 5.0 support is not present (v5.0)

See merge request espressif/esp-idf!34222
2024-10-21 12:45:40 +08:00
Mahavir Jain
03d1834d53 Merge branch 'feat/move_crt_bundle_dummy_cert_to_rodata_v5.0' into 'release/v5.0'
Move cert bundle's dummy cert to .rodata to reduce RAM usage (v5.0)

See merge request espressif/esp-idf!34204
2024-10-21 12:44:07 +08:00
C.S.M
7957815ea3 feat(spi_flash): Add new xmc chip id 2024-10-18 16:43:07 +08:00
Jiang Jiang Jian
5e5c3149b3 Merge branch 'bugfix/fix_funcs_overriding_on_esp32c3_eco7_v5.0' into 'release/v5.0'
fix(bt/controller): Fixed BLE functions overriding on ESP32-C3 ECO7 (v5.0)

See merge request espressif/esp-idf!34197
2024-10-17 19:46:30 +08:00
harshal.patil
47609faf77 fix(mbedtls): Fix the increase in build size of mbedtls when upgrading to v3.x 2024-10-17 14:56:05 +05:30
Zhang Hai Peng
19980e1bd3 fix(ble/bluedroid): Fixed error when writing Client Supported Features characteristic
(cherry picked from commit 5126742003)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-10-17 16:13:15 +08:00
Jiang Jiang Jian
314b9d5b08 Merge branch 'feat/support_32k_osc_ble_sleep_clk_v5.0' into 'release/v5.0'
feat(ble): Support using 32k oscillator as Bluetooth sleep clock(v5.0)

See merge request espressif/esp-idf!33999
2024-10-17 15:32:07 +08:00
Jiang Jiang Jian
675b5125c4 Merge branch 'bugfix/fix_s3c3_wrong_ext32k_config_bug_v5.0' into 'release/v5.0'
fix(ext_32k): fix the external 32K issue on C3&S3 (v5.0)

See merge request espressif/esp-idf!33154
2024-10-17 15:31:41 +08:00
harshal.patil
d2549d425f feat(mbedtls/esp_crt_bundle): Move dummy cert to .rodata to save 408B from dram
Co-authored-by: Hanno <h.binder@web.de>
2024-10-16 16:45:12 +05:30
Roland Dobai
e5617c26f7 Merge branch 'fix/ldgen_sort_v5.0' into 'release/v5.0'
fix(ldgen): enable default name SORT in linker fragment (v5.0)

See merge request espressif/esp-idf!34077
2024-10-16 18:53:19 +08:00
morris
e7bff6c8e9 Merge branch 'fix/mcpwm_pm_lock_memory_leak_v5.0' into 'release/v5.0'
fix(mcpwm): fix pm_lock memory issues (v5.0)

See merge request espressif/esp-idf!34062
2024-10-16 18:35:00 +08:00
Sudeep Mohanty
0fe7a9d579 fix(freertos): Fixed SMP race condition in stream_buffers.c
This commit fixes a race condition in dual-core SMP mode where in the
xStreamBufferReceive() makes the xTaskWaitingToReceive NULL but it may
have already been evaluated to not be NULL by xStreamBufferSend()
running on another core and eventually leading to a crash in tasks.c.
2024-10-16 09:44:15 +02:00
Rahul Tank
28850f883f fix(nimble): Adjust Data len time in case 5.0 support is not present 2024-10-16 12:01:13 +05:30
Mahavir Jain
84e07d40a6 Merge branch 'bug/ci_test_https_server_file_serving_v5.0' into 'release/v5.0'
fix(protocols): Erased the storage partition for http_server ci test (v5.0)

See merge request espressif/esp-idf!34167
2024-10-16 14:23:28 +08:00
Frantisek Hrbata
b56d53dfb8 fix(ldgen): enable default name SORT in linker fragment
Currently, the `SORT` flag mandates the inclusion of at least the
`sort_by_first` argument in the grammar, despite the documentation[1]
indicating that `SORT` can be utilized without any arguments, defaulting
to sorting input sections by name. Fix this by modifying the grammar
to allow a default `SORT` and update a test accordingly.

[1] https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/
    linker-script-generation.html

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-10-15 16:27:52 +02:00
Chen Jian Hua
acf16d293b fix(bt/controller): Fixed BLE functions overriding on ESP32-C3 ECO7
(cherry picked from commit 020f7a6297)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-10-15 13:33:21 +08:00
Chen Jichang
53a0bb548b fix(mcpwm): fix pm_lock memory issues 2024-10-15 13:24:29 +08:00
Zhang Hai Peng
9e443ab692 fix(ble/bluedroid): Fixed BLE handle check for GATT API
(cherry picked from commit 514155de3b)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-10-15 00:03:51 +08:00
hrushikesh.bhosale
01b0add0f3 fix(protocols): Erased the storage partition for http_server ci test
Added api to erase storage partition for http_server ci test
2024-10-14 16:00:07 +05:30
Kapil Gupta
6b3b661774 fix(esp_wifi): Prevent memory overflow in WPS 2024-10-13 18:13:18 +08:00
Kapil Gupta
1b9a66617d fix(esp_wifi): Mask some error conditions in WPS
Mask some error conditions in WPS to increase the probability of
WPS success.
2024-10-13 18:13:18 +08:00
Kapil Gupta
0803307ffe fix(esp_wifi): Disable WPS timers once WPS succeed 2024-10-13 18:13:18 +08:00
Kapil Gupta
c1f41cdfd0 fix(esp_wifi): Allow connection with WPA mode in WPS 2024-10-13 18:13:18 +08:00
Kapil Gupta
ab99551f8c fix(esp_wifi): Deinit WPS registrar during hostapd deinit 2024-10-13 18:13:18 +08:00
Kapil Gupta
7f9e2044df fix(esp_wifi): Added prints in btm roam for error condition 2024-10-13 18:13:18 +08:00
Island
378dd55e3d Merge branch 'docs/update_ble_feature_support_status_v5.0' into 'release/v5.0'
docs(ble): Updated a feature name in feature status table v5.0

See merge request espressif/esp-idf!34064
2024-10-12 14:26:41 +08:00
Island
1064ad0baa Merge branch 'docs/add_ble_get_started_docs_v5.0' into 'release/v5.0'
docs(ble): Added BLE Get Started (v5.0)

See merge request espressif/esp-idf!34018
2024-10-12 14:25:47 +08:00
Wei Yu Han
8fd56dc107 docs(ble): Added BLE Get Started (v5.0) 2024-10-12 14:25:47 +08:00
xiongweichao
cf0261a903 feat(ble): Support using 32k oscillator as Bluetooth sleep clock 2024-10-10 11:28:16 +08:00
Wang Meng Yang
050730e8c0 Merge branch 'feat/add_mode_chg_parem_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Report sniff interval to application layer(v5.0)

See merge request espressif/esp-idf!33870
2024-10-10 11:13:17 +08:00
Wei Yu Han
d3d5a1b2ae docs(ble): Updated a feature name in feature status table 2024-10-10 10:09:53 +08:00
Island
b980af1ce9 Merge branch 'bugfix/fix_bleqabr24_1282_v5.0' into 'release/v5.0'
Fixed BLE scanning and initiating coexist on ESP32 (v5.0)

See merge request espressif/esp-idf!33831
2024-10-09 17:19:08 +08:00
Island
4b0cee26bd Merge branch 'bugfix/fix_bci_443_v5.0' into 'release/v5.0'
fix(bt/controller): Fixed the timeout of wake up timer when using RC OSC (v5.0)

See merge request espressif/esp-idf!33890
2024-10-09 17:18:55 +08:00
morris
d0f8439931 Merge branch 'support_psram_noinit_segment_on_s3_v5.0' into 'release/v5.0'
feat(psram): add psram noinit  segment support on s2/s3/p4/c5 and bss segment on c5 (v5.0)

See merge request espressif/esp-idf!33259
2024-10-09 13:27:59 +08:00
Island
dc5567fd5a Merge branch 'bugfix/fix_ext_conn_adv_data_check_v5.0' into 'release/v5.0'
fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(01cc408) (v5.0)

See merge request espressif/esp-idf!34000
2024-10-09 11:58:32 +08:00
Island
76486eca5e Merge branch 'fix/fix_nimble_gatt_server_example_readme_v5.0' into 'release/v5.0'
docs(ble): Added BLE Get Started documentation link to README.md (v5.0)

See merge request espressif/esp-idf!33827
2024-10-09 10:21:52 +08:00
Zhang Hai Peng
900c6b331a fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(01cc408)
- Fixed extended connectable advertising data length check


(cherry picked from commit 8a80675b7c)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-10-08 15:13:18 +08:00
Jouni Malinen
ae56989c7f SAE: Check for invalid Rejected Groups element length explicitly on STA
Instead of practically ignoring an odd octet at the end of the element,
check for such invalid case explicitly. This is needed to avoid a
potential group downgrade attack.

Fixes: 444d76f74f65 ("SAE: Check that peer's rejected groups are not enabled")
Signed-off-by: Jouni Malinen <j@w1.fi>
2024-10-07 12:31:11 +05:30
Jouni Malinen
92cf32a40b SAE: Check that peer's rejected groups are not enabled
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2024-10-07 12:31:11 +05:30
Jouni Malinen
8abeae65ed SAE: Reject invalid Rejected Groups element in the parser
There is no need to depend on all uses (i.e., both hostapd and
wpa_supplicant) to verify that the length of the Rejected Groups field
in the Rejected Groups element is valid (i.e., a multiple of two octets)
since the common parser can reject the message when detecting this.

Signed-off-by: Jouni Malinen <j@w1.fi>
2024-10-07 12:31:11 +05:30
Jouni Malinen
ecea235913 SAE: Check that peer's rejected groups are not enabled in AP
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2024-10-07 12:30:16 +05:30
Mahavir Jain
be14d6c709 Merge branch 'bugfix/null_assign_variable_v5.0' into 'release/v5.0'
fix(wifi_prov): Use calloc instead of malloc to zero initialize variable (v5.0)

See merge request espressif/esp-idf!33967
2024-10-04 21:29:51 +08:00
Rahul Tank
caa4defb73 fix(wifi_prov): Use calloc instead of malloc to zero initialize variable 2024-10-04 11:50:45 +05:30
Mahavir Jain
e7f8d9789d Merge branch 'feature/update_mbedtls_version_to_3.6.1_v5.0' into 'release/v5.0'
feat(mbedtls): updated mbedtls version to 3.6.1(v5.0)

See merge request espressif/esp-idf!33916
2024-10-01 18:04:16 +08:00
Peter Macko
083841800d Remove PYTHON_VER=3.7.10 from .gitlab-ci.yml as it breaks test_build_system_cmake_macos on ARM 2024-09-30 15:44:15 +02:00
Jiang Jiang Jian
95dda5b00a Merge branch 'bugfix/fix_esp32c2_rom_eco1_mbedtls_issues_v5.0' into 'release/v5.0'
fix(esp_rom): Fixed esp32c2 rom eco1 mbedtls issues (v5.0)

See merge request espressif/esp-idf!33919
2024-09-30 14:00:56 +08:00
Wei Yu Han
33e673985a docs(ble): Added BLE Get Started documentation link to README.md
(cherry picked from commit 5f008828d3)

Co-authored-by: Yuhan Wei <weiyuhan@espressif.com>
2024-09-30 12:04:35 +08:00
Jiang Guang Ming
5dd3f332ca fix(esp_rom): Fixed esp32c2 rom eco1 mbedtls issues 2024-09-30 09:29:26 +08:00
nilesh.kale
e20e00df4f feat(mbedtls): updated mbedtls version to 3.6.1 2024-09-29 22:52:29 +05:30
xiongweichao
6d2b9caaee feat(bt/bluedroid): Report sniff interval to application layer 2024-09-29 19:25:53 +08:00
Island
828adbb35a Merge branch 'ble_dev/esp32c2eco4_chip_20240903_v5.0' into 'release/v5.0'
change(ble): update c2 eco4 ld file (v5.0)

See merge request espressif/esp-idf!33666
2024-09-29 10:48:39 +08:00
Island
497d5e0c8d Merge branch 'feat/get_ble_resolve_address_status_v5.0' into 'release/v5.0'
feat(ble/bluedroid): Support resolve BLE address for interval usage (v5.0)

See merge request espressif/esp-idf!33805
2024-09-29 10:30:15 +08:00
Chen Jian Hua
f512f059ea fix(bt/controller): Fixed ble get tx power error
(cherry picked from commit 4108a5cc4c)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-09-27 18:33:18 +08:00
Chen Jian Hua
5bf4347ad9 fix(bt/controller): Fixed the timeout of wake up timer when using RC OSC
(cherry picked from commit 873708579c)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-09-27 18:33:16 +08:00
zhanghaipeng
74cc3eb3ba fix(ble/bluedroid): Fixed BLE spelling error in word 2024-09-27 15:53:08 +08:00
zhanghaipeng
da545604fc feat(ble/bluedroid): Add BLE memory allocation failure message 2024-09-27 15:53:01 +08:00
zhanghaipeng
7207816a3f feat(ble/controller): Display BLE controller init status for ESP32 and ESP32C3/S3 2024-09-27 15:52:49 +08:00
zhanghaipeng
ab0d3831db feat(ble/bluedroid): Optimize address resolution status for interval use 2024-09-27 14:48:30 +08:00
Jiang Jiang Jian
4b666f74ff Merge branch 'bugfix/set_sae_pmk_len_v5.0' into 'release/v5.0'
fix(esp_wifi): Set PMK len after SAE exchange (v5.0)

See merge request espressif/esp-idf!33861
2024-09-27 14:34:15 +08:00
Lou Tianhao
1a5a30053a change(esp_pm): change pm_slp_iram_opt dependence 2024-09-27 14:04:16 +08:00
Kapil Gupta
0c0d597f3c fix(esp_wifi): Set PMK after SAE exchange 2024-09-27 09:53:58 +05:30
Shen Weilong
5194671f3b change(ble): update c2 eco4 ld file 2024-09-27 11:09:12 +08:00
Rahul Tank
ba69699530 Merge branch 'bugfix/fix_blufi_deinit_fail_v5.0' into 'release/v5.0'
fix(nimble): Fixed deinit sequence in blufi (v5.0)

See merge request espressif/esp-idf!33771
2024-09-26 18:48:52 +08:00
Rahul Tank
45af646f69 Merge branch 'bugfix/fix_clang_compilation_issue_v5.0' into 'release/v5.0'
fix(nimble): Fix clang compilation issue (v5.0)

See merge request espressif/esp-idf!33767
2024-09-26 18:38:37 +08:00
Rahul Tank
14e50e368a fix(nimble): Fix clang compilation issue 2024-09-26 10:00:55 +05:30
Chen Jian Hua
4d97cc84b1 fix(bt): Update bt lib for ESP32(3bf7ef0)
- Fixed BLE scanning and initiating coexist


(cherry picked from commit 241b90f3f0)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-09-26 10:33:18 +08:00
Mahavir Jain
b7c1ad7d1a Merge branch 'feature/add_api_to_get_last_status_code_logged_during_ota_v5.0' into 'release/v5.0'
feat(esp_https_ota): added API to get last status code logged from http resonse (v5.0)

See merge request espressif/esp-idf!33612
2024-09-25 15:38:17 +08:00
Jiang Jiang Jian
339a6c381b Merge branch 'feat/send_data_len_afer_conn_v5.0' into 'release/v5.0'
feat(nimble): Set data length after connection (v5.0)

See merge request espressif/esp-idf!33697
2024-09-25 14:53:16 +08:00
Jiang Jiang Jian
4d0359ffd7 Merge branch 'fix/clang_linker_fix_for_linux_target_v5.0' into 'release/v5.0'
fix(cmake): Fixed linker not supporting -warn_commons for linux target on MacOS (v5.0)

See merge request espressif/esp-idf!33055
2024-09-25 14:34:34 +08:00
Jiang Jiang Jian
1e5d4bfe41 Merge branch 'feat/support_esp32c2_eco4_rom_systimer_hal_v5.0' into 'release/v5.0'
feat(esp_rom):  support esp32c2 rev2.0(ECO4) rom systimer hal (backport v5.0)

See merge request espressif/esp-idf!33797
2024-09-25 14:32:16 +08:00
Zhang Hai Peng
d6a0fa813d feat(ble/bluedroid): Support resolve BLE address for interval usage
(cherry picked from commit b88b511362)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-09-25 12:13:13 +08:00
Island
e0945a06c8 Merge branch 'bugfix/fix_ble_scan_assert_1728_v5.0' into 'release/v5.0'
fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(e9ae856) (v5.0)

See merge request espressif/esp-idf!33719
2024-09-25 11:22:26 +08:00
Jiang Guang Ming
0337a3f266 feat(esp_rom): support esp32c2 rev2.0(ECO4) rom systimer hal 2024-09-25 11:21:16 +08:00
Jiang Guang Ming
ae2154ab23 feat(esp_rom): add esp32c2.rom.eco4.ld 2024-09-25 11:20:28 +08:00
Jiang Jiang Jian
6fd257d4cb Merge branch 'feat/support_esp32c2_eco4_rom_mbedtls_v3.6.0_lts_v5.0' into 'release/v5.0'
feat(mbedtls): support esp32c2 eco4 rom mbedtls v3.6.0 lts v5.0 (backport v5.0)

See merge request espressif/esp-idf!33424
2024-09-25 11:04:09 +08:00
Island
7c5a9bc45f Merge branch 'bugfix/fixed_c5_ble_cache_error_240919_v5.0' into 'release/v5.0'
Bugfix/fixed c5 ble cache error 240919 (v5.0)

See merge request espressif/esp-idf!33758
2024-09-25 10:31:25 +08:00
Rahul Tank
54e4297346 fix(nimble): Fixed deinit sequence in blufi 2024-09-24 12:21:47 +05:30
Zhao Wei Liang
eef071feaa fix(ble): unified ble memory allocation method
(cherry picked from commit 8e4cc79a27)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-09-24 12:03:15 +08:00
zhanghaipeng
dd2809f4ad fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(63eb54d)
- Fixed issue where RPA is not updated after BLE RPA timeout
2024-09-23 13:31:13 +08:00
chenjianhua
338763fae7 test(bt/bluedroid): Support to disable BLE address resolution 2024-09-23 13:30:59 +08:00
Zhang Hai Peng
0badb8863e fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(e9ae856)
- Fixed BLE scan assert in lld_scan.c 1728


(cherry picked from commit 32c7694f56)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-09-23 11:13:14 +08:00
Jiang Jiang Jian
c5eb3eaef5 Merge branch 'bugfix/fix_sdp_bugs_v5.0' into 'release/v5.0'
Bugfix/fix sdp bugs[backport 5.0]

See merge request espressif/esp-idf!33605
2024-09-21 15:02:58 +08:00
Jiang Jiang Jian
2d02e60d7d Merge branch 'bugfix/fix_missing_per_adv_sync_est_evt_v5.0' into 'release/v5.0'
fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(c66a703) (Backport v5.0)

See merge request espressif/esp-idf!33454
2024-09-21 15:02:29 +08:00
Jiang Jiang Jian
b2dae87114 Merge branch 'bugfix/fix_ble_max_tx_power_on_esp32c3_v5.0' into 'release/v5.0'
fix(bt/controller): Change the max TX power to +20dBm on ESP32-C3 and ESP32-S3 (v5.0)

See merge request espressif/esp-idf!33614
2024-09-21 15:02:04 +08:00
Jiang Jiang Jian
f8a3ba1400 Merge branch 'refactor/rtc_init_before_mspi_tuning_v5.0' into 'release/v5.0'
fix(startup): move rtc initialization before MSPI timing tuning to improve stability (v5.0)

See merge request espressif/esp-idf!33627
2024-09-21 14:59:55 +08:00
Jiang Jiang Jian
c01e90daa8 Merge branch 'feat/support_blecrt_242_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fixed access fault when reading BLE controller information fails (v5.0)

See merge request espressif/esp-idf!33631
2024-09-21 14:57:25 +08:00
Jiang Jiang Jian
d067a99a6c Merge branch 'fix/ringbuf_receives_item_not_yet_sent_v5.0' into 'release/v5.0'
fix(esp_ringbuf): Fixed a bug where in a no-split buffer received items prematurely (v5.0)

See merge request espressif/esp-idf!33652
2024-09-21 14:56:40 +08:00
Sudeep Mohanty
d07c700af8 test(freertos): Added delay to freertos test to avoid memory leaks
This commit adds a small delay as tolerance to the
"Test xTaskResumeAll resumes pended tasks" test to let the idle task
clean up all suspended test tasks and avoid memory leaks at the end of
the test.
2024-09-20 10:18:40 +02:00
Sudeep Mohanty
645dc8addf fix(esp_ringbuf): Fixed a bug where in a no-split buffer received items prematurely
This commit fixes a bug in the no-split buffer which could receive an
item prematurely if the space on the buffer is acquired until the buffer
is full. The commit also adds a unit test for this scenario.

Closes https://github.com/espressif/esp-idf/issues/14568
2024-09-20 10:18:40 +02:00
Wang Meng Yang
8fc60de3d0 Merge branch 'bugfix/fix_some_bugs_in_avrcp_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fixed some bugs in AVRCP (Backport v5.0)

See merge request espressif/esp-idf!33581
2024-09-20 11:41:12 +08:00
Xiao Xufeng
563641f948 ci(h2): disable build test for h2 2024-09-19 22:57:13 +08:00
Rahul Tank
85baf1d759 feat(nimble): Set data length after connection 2024-09-19 20:26:13 +05:30
Island
39878b39ce Merge branch 'bugfix/fixed_c6_crash_c2_crash_issue_v5.0' into 'release/v5.0'
Bugfix/fixed c6 crash c2 crash issue (v5.0)

See merge request espressif/esp-idf!33596
2024-09-19 14:34:15 +08:00
Rahul Tank
a27a2ddfad Merge branch 'fix/added_a_change_to_print_address_of_advertising_instance_v5.0' into 'release/v5.0'
fix(nimble): Added a change to print address of an advertising instance (v5.0)

See merge request espressif/esp-idf!33564
2024-09-19 14:32:03 +08:00
Chen Jian Hua
856bc4bede fix(bt/bluedroid): Fixed access fault when reading BLE controller information fails
(cherry picked from commit e4e23087ee)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-09-19 09:12:19 +08:00
Chen Jian Hua
0b8553067c feat(bt/bluedroid): Add BLE connection id param for ESP_GATTS_RESPONSE_EVT
(cherry picked from commit e4a372ab76)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-09-19 09:12:17 +08:00
Xiao Xufeng
f1917f4db3 fix(startup): move rtc initialization before MSPI timing tuning to improve stability 2024-09-18 23:46:41 +08:00
Rahul Tank
ea9136226f Merge branch 'bugfix/authorize_perm_gatt_read_write' into 'release/v5.0'
fix(nimble): Add authroize permission for gatt read / write

See merge request espressif/esp-idf!33584
2024-09-18 21:07:08 +08:00
Island
4c993aeb48 Merge branch 'docs/add_nimble_get_started_v5.0' into 'release/v5.0'
feat(ble/example): Added NimBLE Get started examples (v5.0)

See merge request espressif/esp-idf!33031
2024-09-18 17:43:39 +08:00
Chen Jian Hua
fc754b2033 fix(bt/controller): Change the max TX power to +20dBm on ESP32-C3 and ESP32-S3
(cherry picked from commit fe43c8f1b5)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-09-18 17:34:13 +08:00
nilesh.kale
7a163ad9d8 feat(esp_https_ota): added API to get last status code logged from http resonse
Closes https://github.com/espressif/esp-idf/issues/14302
2024-09-18 14:58:49 +05:30
liqigan
5e62d99961 fix(bt/bluedroid): Fixed not deep copy service_name and user1_ptr in RAW SDP search event 2024-09-18 16:43:53 +08:00
liqigan
bfd1ea82bd change(bt/bluedroid): Limited SDP service discovery operation 2024-09-18 16:43:46 +08:00
liqigan
a29b207ffd change(bt/bluedroid): Release record data after SDP record created 2024-09-18 16:43:28 +08:00
Zhao Wei Liang
a9d04549ce fix(ble): fixed memory leak issue when using uart hci
(cherry picked from commit 4d2c44f511)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-09-18 15:57:33 +08:00
Zhao Wei Liang
5f172ab251 fix(ble): fixed occasional assertion issue when enabling logging on ESP32-C2
(cherry picked from commit 0ef9ecb715)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-09-18 15:57:31 +08:00
shreeyash
d81180b0ec fix(nimble): Add authroize permission for gatt read / write 2024-09-18 11:38:52 +05:30
linruihao
cbd12f5ce5 fix(bt/bluedroid): Fixed some bugs in AVRCP 2024-09-18 11:29:40 +08:00
shreeyash
3da3748e61 fix(nimble): Added a change to print address of an advertising instance 2024-09-17 12:19:15 +05:30
Roland Dobai
f9effecd04 Merge branch 'feat/update_tools_in_tools_json_v5.0' into 'release/v5.0'
feat(tools): Update tools: cmake, ninja, ccache (v5.0)

See merge request espressif/esp-idf!33533
2024-09-16 19:43:23 +08:00
Rahul Tank
21aa38dcee Merge branch 'bugfix/add_dummy_cb_during_deinit_v5.0' into 'release/v5.0'
fix(nimble): De-register host cb in stack deinit (v5.0)

See merge request espressif/esp-idf!33376
2024-09-16 18:08:05 +08:00
Rahul Tank
9cd7e32a5b fix(nimble): De-register host cb in stack deinit 2024-09-16 11:00:06 +05:30
Marek Fiala
5e52ea47d1 feat(tools): Update tools: cmake, ninja, ccache
cmake  v3.24.0 -> v3.30.2
ninja  v1.11.1 -> v1.12.1
ccache v4.8    -> v4.10.2

Closes https://github.com/espressif/esp-idf/pull/14376
2024-09-13 17:13:08 +02:00
weiyuhan
2d018c5023 fix(ble): Added ble_get_started build rule in build-test-rules.yml 2024-09-13 09:50:39 +08:00
Wei Yu Han
e58b10b1f6 fix(ble): Increased the length of addr_str in ble_get_started nimble examples 2024-09-12 12:04:34 +08:00
Yuhan Wei
4ffd741232 fix(ble): Removed unsupported sdkconfig 2024-09-12 12:04:34 +08:00
Zhou Xiao
9a3ae21aa7 docs(ble): Replace advertising interval hex value with BLE_GAP_ADV_ITVL_MS 2024-09-12 12:04:34 +08:00
Zhou Xiao
3e6e68628d docs(ble): Improved as Weilong and Shenhang requested 2024-09-12 12:04:34 +08:00
zhouxiao
fe46bf48ce docs(ble): Added BLE Get Started 2024-09-12 12:04:34 +08:00
Chen Jichang
58c3ee2c89 feat(psram): add psram noinit segment support on S2/S3/P4/C5
Closes https://github.com/espressif/esp-idf/issues/14253
2024-09-12 10:40:48 +08:00
Wang Meng Yang
871d0c8c9a Merge branch 'bugfix/fix_hid_cod_setting_v5.0' into 'release/v5.0'
Bugfix/fix hid cod setting[backport 5.0]

See merge request espressif/esp-idf!33340
2024-09-12 09:34:22 +08:00
linruihao
32545d7edb fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(c66a703)
- Fixed missing sync established event after canceling sync
2024-09-11 17:25:51 +08:00
Wang Meng Yang
02e0c7a2b8 Merge branch 'bugfix/exit_sniff_immed_enter_sniff_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix the protocol stack to exit sniff mode(v5.0)

See merge request espressif/esp-idf!33400
2024-09-11 15:32:43 +08:00
Rahul Tank
26a300b668 Merge branch 'bugfix/bidirectioanl_data_transfer_ble_spp_v5.0' into 'release/v5.0'
fix(nimble): Added support for bidirectional data trasfer (v5.0)

See merge request espressif/esp-idf!33415
2024-09-11 14:05:09 +08:00
Sudeep Mohanty
2602860192 fix(cmake): Fixed linker not supporting -warn_commons for linux target on MacOS
This commit updates the ld linker flags to conditionally include the
-warn_commons flag when the linux target is built on MacOS. This is
because, not all versions of ld support the -warn_commons option.

Closes https://github.com/espressif/esp-idf/issues/13185
2024-09-10 14:46:35 +02:00
Jiang Guang Ming
c08e19dd24 fix(mbedtls): fix mbedtls unit-test build issues 2024-09-10 16:13:56 +08:00
xiongweichao
dc937198c9 fix(bt/bluedroid): Fix the protocol stack to exit sniff mode
- Already in result mode but request change indication has not been cleared
2024-09-10 11:42:25 +08:00
Island
f082886099 Merge branch 'bugfix/fix_some_ble_bugs_240826_v5.0' into 'release/v5.0'
Fixed some BLE bugs 240826 on ESP32C3 (8ce789b) (v5.0)

See merge request espressif/esp-idf!33392
2024-09-10 11:37:54 +08:00
Island
c0604365c5 Merge branch 'feat/support_ble_scan_and_init_coex_on_esp32_v5.0' into 'release/v5.0'
Support BLE scanning and initiating coexist on ESP32 (v5.0)

See merge request espressif/esp-idf!33388
2024-09-10 11:37:21 +08:00
Jiang Guang Ming
1f63d1f8a4 fix(heap): rev2.0 still use tlsf patch code 2024-09-10 11:22:03 +08:00
Jiang Guang Ming
612e93ea5d feat(mbedtls): support rom mbedtls threading layer 2024-09-10 11:16:58 +08:00
Jiang Guang Ming
94558b8d61 feat(mbedtls): select MBEDTLS_CMAC_C when MBEDTLS_USE_CRYPTO_ROM_IMPL enabled 2024-09-10 11:16:52 +08:00
Jiang Guang Ming
eb87d93219 feat(mbedtls): support ROM mbedtls v3.6.0 on C2 rev2.0(ECO4) 2024-09-10 11:16:46 +08:00
Jiang Guang Ming
437990877d feat(esp_rom): include rom.mbedtls.eco4.ld with C2 rev2.0(ECO4) select 2024-09-10 11:16:34 +08:00
Jiang Guang Ming
779dc07b5b feat(esp_rom): update esp32c2.rom.mbedtls.eco4.ld 2024-09-10 11:14:31 +08:00
Jiang Guang Ming
6d3542194e feat(esp_hw_support): Support esp32c2 rev2.0 chip 2024-09-10 11:13:54 +08:00
Astha Verma
bb9134aaf8 fix(nimble): Added support for bidirectional data trasfer 2024-09-09 18:41:37 +05:30
chenjianhua
de2631fc9e fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(8ce789b)
- Fixed BLE vendor HCI set scan perfer address command
- Support BLE vendor HCI get controller compile version command
- Fixed BLE util buffer free after controller reset
- Fixed assert when connection already exist and be connected again
2024-09-09 11:35:36 +08:00
chenjianhua
b4c98969ae feat(bt): Update esp32 bt-lib(bc393dd)
- Fixed BLE vendor HCI set scan perfer address command
- Support BLE vendor HCI get controller compile version command
- Support BLE scanning and initiating coexist
2024-09-09 11:30:52 +08:00
Krzysztof Budzynski
a9d75f56f1 Merge branch 'docs/remove_user_guide_for_esp32_pico_kit_related_migration_v5.0' into 'release/v5.0'
docs: remove user guide for esp32-pico-kit related docs after migration (v5.0)

See merge request espressif/esp-idf!32784
2024-09-06 18:38:24 +08:00
Alexey Gerenkov
4f4adf49b9 Merge branch 'fix/gcov_fault_v5.0' into 'release/v5.0'
fix(gcov): fix exceptions on gcov task_tick_hook (v5.0)

See merge request espressif/esp-idf!30027
2024-09-06 17:33:12 +08:00
Rahul Tank
7580682e9a Merge branch 'bugfix/make_cccd_flags_configurable_v5.0' into 'release/v5.0'
fix(nimble): Make CCCD flags configurable (v5.0)

See merge request espressif/esp-idf!33307
2024-09-06 14:03:03 +08:00
Island
2b6c3c6872 Merge branch 'docs/optimized_ble_gattc_multi_connect_example_v5.0' into 'release/v5.0'
docs(ble/bluedroid): Optimize BLE example documentation for getting characteristic (v5.0)

See merge request espressif/esp-idf!33197
2024-09-06 10:31:41 +08:00
Alexey Lapshin
88c1c6af49 fix(gcov): fix exceptions on gcov task_tick_hook
Closes https://github.com/espressif/esp-idf/issues/13511
2024-09-05 18:28:07 +03:00
liqigan
195f08112b fix(esp_hid): Fixed protocol mode mapping bug
Closes https://github.com/espressif/esp-idf/issues/14232
2024-09-05 14:28:02 +08:00
liqigan
9545b5480f feat(bt/bluedroid): Added definition of minor class of COD for peripheral major class
Closes https://github.com/espressif/esp-idf/issues/13622
2024-09-05 14:27:55 +08:00
Jiang Jiang Jian
fe84af3012 Merge branch 'bugfix/fix_wrong_typecast_spp_v5.0' into 'release/v5.0'
fix(wifi): Fix wrong typecasting of sta_info while getting SPP Caps (Backport v5.0)

See merge request espressif/esp-idf!33122
2024-09-04 17:35:43 +08:00
shreeyash
ac04fe38e0 fix(nimble): Make CCCD flags configurable 2024-09-04 12:56:48 +05:30
zlq
0357bffbe3 fix(ext_32k): fix the external 32K issue on C3&S3 (v5.0) 2024-09-04 12:05:51 +08:00
Nachiket Kukade
1e88c7a2ff fix(wifi): Fix wrong typecasting of sta_info while getting SPP Caps 2024-09-04 10:53:22 +08:00
Rahul Tank
a2d20761f2 Merge branch 'bugfix/add_ad_type_adv_v5.0' into 'release/v5.0'
feat(nimble): additional AD types for advertisements (v5.0)

See merge request espressif/esp-idf!33237
2024-09-03 13:26:01 +08:00
morris
6d947cdb2d Merge branch 'bugfix/eth_plus_wifi_doc_v5.0' into 'release/v5.0'
docs(esp_eth): added warning to not use ESP32 as ETH CLK source with WiFi (v5.0)

See merge request espressif/esp-idf!33248
2024-09-03 10:08:30 +08:00
renpeiying
be45adaf95 docs: Remove User Guide for ESP32-Pico-Kit related docs after migration 2024-09-02 19:10:29 +08:00
renpeiying
c515d555c2 docs: Update zh_CN translation for MR32736 2024-09-02 11:45:55 +02:00
Ondrej Kosta
025e7b7bd9 docs(esp_eth): added warning to not use ESP32 as ETH CLK source with WiFi 2024-09-02 11:34:36 +02:00
SumeetSingh19
9c64db5659 feat(nimble): additional AD types for advertisements 2024-09-02 09:49:50 +05:30
Jiang Jiang Jian
6c536b1e7d Merge branch 'bugfix/check_tx_conn_traffic_fail_v5.0' into 'release/v5.0'
fix(wifi): add bar check for connection traffic and check ap_eb in txq (Backport v5.0)

See merge request espressif/esp-idf!33226
2024-09-02 11:34:55 +08:00
Marius Vikhammer
5672363887 Merge branch 'task/add_ldgen_exception_for_freertos_v5.0' into 'release/v5.0'
fix(freertos): Added freertos and ringbuf fragments to the exception list of ldgen mapping checks (v5.0)

See merge request espressif/esp-idf!33218
2024-09-02 11:02:55 +08:00
Island
4991ebf2c9 Merge branch 'bugfix/fixed_assert_on_esp32c2_v5.0' into 'release/v5.0'
fix(ble): fixed crash issue during deinit host after deinit controller on ESP32-C2 (v5.0)

See merge request espressif/esp-idf!33208
2024-09-02 10:08:32 +08:00
Jiang Jiang Jian
31ac7874b5 Merge branch 'fix/hfp_pcm_codec_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix default codec type on PCM datapath for hfp_hf (backport v5.0)

See merge request espressif/esp-idf!33163
2024-09-02 09:47:58 +08:00
Michael (XIAO Xufeng)
bb5959be33 Merge branch 'fix_wrong_ap3204_id_check_v5.0' into 'release/v5.0'
fix(psram): fixed ap3204 id check (v5.0)

See merge request espressif/esp-idf!33133
2024-08-31 02:08:19 +08:00
sibeibei
6d4656aeec fix(wifi): add bar check for connection traffic and check ap_eb in txq 2024-08-30 17:27:08 +08:00
Sudeep Mohanty
fe2495a2f7 test(freertos): Added build test for function in flash with -Os optimation
This commit adds a build test for when FreeRTOS and esp_ringbuf functions
are placed in flash and the compiler optimizes for code size.
2024-08-30 09:19:24 +02:00
Sudeep Mohanty
90b92791a7 fix(freertos): Added freertos fragments to the exception list of ldgen mapping checks
This commit adds freertos and esp_ringbuf linker fragment sections
to the exception list of the ldgen mappings checker script.
2024-08-30 09:19:24 +02:00
zwl
b6fefdaebe fix(ble): fixed crash issue during deinit host after deinit controller on ESP32-C2 2024-08-30 12:03:11 +08:00
Jiang Jiang Jian
faa67c770a Merge branch 'contrib/github_pr_14286_v5.0' into 'release/v5.0'
fix(bt): Add a parameter in the two least significant bits of Class of Device (backport v5.0)

See merge request espressif/esp-idf!33168
2024-08-30 11:30:46 +08:00
Jiang Jiang Jian
9e8f286f3e Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20240821_v5.0' into 'release/v5.0'
feat(tools): update openocd version to v0.12.0-esp32-20240821 (v5.0)

See merge request espressif/esp-idf!33173
2024-08-30 11:22:05 +08:00
Jiang Jiang Jian
4a43fbda51 Merge branch 'bugfix/add_bluedroid_support_for_esp_ip_v5.0' into 'release/v5.0'
fix(wifi_prov): Add support for ESP IP controller chips in bluedroid (v5.0)

See merge request espressif/esp-idf!33180
2024-08-30 11:17:57 +08:00
Rahul Tank
1cd4d3041a fix(wifi_prov): Add support for ESP IP controller chips in bluedroid 2024-08-29 15:07:16 +05:30
zhanghaipeng
58baefc0b1 fix(ble/bluedroid): Optimize BLE function 'esp_ble_resolve_adv_data_by_type' 2024-08-29 16:18:00 +08:00
zhanghaipeng
d304bc76c7 docs(ble/bluedroid): Optimize BLE example documentation for getting characteristic 2024-08-29 16:18:00 +08:00
Nebojša Cvetković
be99097435 fix(bt/bluedroid): Resolve warning: unused variable 'pp' 2024-08-29 16:17:59 +08:00
Island
9b4c775d8a Merge branch 'bugfix/fix_bci_452_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fixed compile warning when optimize for performance (backport v5.0)

See merge request espressif/esp-idf!33135
2024-08-29 14:43:41 +08:00
Alexey Gerenkov
63d569de07 feat(tools): update openocd version to v0.12.0-esp32-20240821 2024-08-28 13:20:52 +03:00
chenqingqing
6a1f9b291a fix(bt/bluedroid): Fix default codec type on PCM datapath for hfp_hf 2024-08-28 17:03:35 +08:00
chenqingqing
1f15a8d3dd fix(bt): Add a parameter in the two least significant bits of Class of Device 2024-08-28 16:55:19 +08:00
WebDust21
32a0d4a17e fix(bt): Enable use of RESERVED bits in COD (GitHub PR) 2024-08-28 16:55:07 +08:00
Island
57daec06b4 Merge branch 'debug/fix_deep_sleep_wake_up_by_ble_v5.0' into 'release/v5.0'
fix(ble): fix BLE immediately  wakeup deep sleep (v5.0)

See merge request espressif/esp-idf!33098
2024-08-28 15:13:09 +08:00
Jiang Jiang Jian
74a40e6029 Merge branch 'bugfix/fix_esp32c6_rxappend_esp32_tbtt_delay_v5.0' into 'release/v5.0'
fix(coex): fix esp32 crash issue, fix rx issue

See merge request espressif/esp-idf!33107
2024-08-28 13:34:58 +08:00
Jiang Jiang Jian
abc7c13430 Merge branch 'fix/freertos_port_assert_in_isr_bug_v5.0' into 'release/v5.0'
fix(freertos): Incorrect assert in FreeRTOS port layer when not in ISR context (v5.0)

See merge request espressif/esp-idf!32375
2024-08-28 11:39:25 +08:00
chenjianhua
7844ccaa8b fix(bt/bluedroid): Fixed compile warning when optimize for performance 2024-08-28 11:13:18 +08:00
Armando
519700827a fix(psram): fixed ap3204 id check 2024-08-28 11:06:49 +08:00
Sudeep Mohanty
e9e0e250a6 fix(freertos): Incorrect assert in FreeRTOS port layer when not in ISR context
This commit fixes an issue where in the FreeRTOS port layer would cause
the portASSERT_IF_IN_ISR() assert check to fail even when the system is
not in an interrupt context.
2024-08-27 16:06:25 +08:00
cjin
4d53bda333 feat(ble): add internal api to change ble slow clock source 2024-08-27 15:56:25 +08:00
liuning
fbef226525 fix(coex): fix esp32 crash issue, fix rx issue 2024-08-27 15:28:45 +08:00
Island
9468f1939b Merge branch 'bugfix/fixed_c6_c2_issues_master_v5.0' into 'release/v5.0'
Bugfix/fixed c6 c2 issues master (v5.0)

See merge request espressif/esp-idf!33067
2024-08-27 10:05:19 +08:00
Jiang Jiang Jian
ef0f7f6d23 Merge branch 'bugfix/fix_ble_resolve_adv_data_v5.0' into 'release/v5.0'
fix(ble/bluedroid): Fixed memory out-of-bounds issue when parsing adv data (v5.0)

See merge request espressif/esp-idf!33026
2024-08-26 14:49:23 +08:00
Jiang Jiang Jian
fd859c6718 Merge branch 'bugfix/fix_some_ble_bugs_cjh_v5.0' into 'release/v5.0'
Fixed some BLE bugs 240812 (backport v5.0)

See merge request espressif/esp-idf!32795
2024-08-26 14:48:07 +08:00
Jiang Jiang Jian
f8a537013b Merge branch 'fix/ble_mesh_github_pr_14140_v5.0' into 'release/v5.0'
fix(ble-mesh): don't use dangling pointer in nimble gatt service (v5.0)

See merge request espressif/esp-idf!32616
2024-08-26 14:44:29 +08:00
Jiang Jiang Jian
f3b3974734 Merge branch 'docs/delete_user_guide_esp32s2_kaluga_1_kit_v5.0' into 'release/v5.0'
docs: Delete ESP32-S2-Kaluga-Kit related user guide files (v5.0)

See merge request espressif/esp-idf!32594
2024-08-26 14:42:47 +08:00
Jiang Jiang Jian
9d66c914b4 Merge branch 'feature/ble_example_pytest_v5.0' into 'release/v5.0'
add pytest for classic bt example(backport v5.0)

See merge request espressif/esp-idf!32578
2024-08-26 14:41:17 +08:00
Island
af66e74fb4 Merge branch 'docs/add_ble_feature_status_table_v5.0' into 'release/v5.0'
docs(ble): Added BLE feature support status (v5.0)

See merge request espressif/esp-idf!32925
2024-08-26 14:02:45 +08:00
Rahul Tank
55226dff3a Merge branch 'fix/change_bt_hci_log_to_nimble_nomenclature_v5.0' into 'release/v5.0'
fix(nimble): Added BT_HCI_LOG_INCLUDED macro into esp nimble configuration according to nimble nomenclature(v5.0)

See merge request espressif/esp-idf!33042
2024-08-26 11:59:21 +08:00
zwl
8a65b300bd fix(ble): fixed ble controller issues on ESP32-C2 2024-08-24 13:58:28 +08:00
Astha Verma
847b1f719d fix(nimble): Added BT_HCI_LOG_INCLUDED macros according to nimble nomenclature 2024-08-24 11:01:11 +05:30
chenjianhua
08b30f0e89 fix(bt/bluedroid): Fixed work queue delete when create thread failed 2024-08-23 16:57:55 +08:00
chenjianhua
0010bdf34c feat(bt/bluedroid): Report HCI error code to app when command fails 2024-08-23 16:57:46 +08:00
chenjianhua
ed35ce2c22 fix(bt/bluedroid): Fixed BLE create conn cancel when conn already exist 2024-08-23 16:57:46 +08:00
chenjianhua
cbb637515f feat(bt/bluedroid): Add print and assert when failed to alloc memory 2024-08-23 16:57:46 +08:00
Jiang Jiang Jian
436a17e904 Merge branch 'bugfix/fix_clkn_lost_after_modem_sleep_v5.0' into 'release/v5.0'
fix(bt/controller): Fixed bluetooth disconnect issue after modem sleep on ESP32 (v5.0)

See merge request espressif/esp-idf!33005
2024-08-23 16:29:11 +08:00
Rahul Tank
18d9d2ad9b Merge branch 'bugfix/blesmp_getlist_bond_fail_v5.0' into 'release/v5.0'
fix(nimble): Fixed blesmp getbondlist issue (v5.0)

See merge request espressif/esp-idf!32825
2024-08-23 13:00:39 +08:00
linruihao
1882e5e6cc fix(bt/controller): Fixed bluetooth disconnect issue after modem sleep on ESP32 2024-08-23 11:01:00 +08:00
Jiang Jiang Jian
16077ec3e8 Merge branch 'bugfix/fix_mesh_ie_issue_from_leaf_to_root_v5.0' into 'release/v5.0'
fix(wifi/mesh): clear the rootless state in mesh ie when changing from leaf to root (v5.0)

See merge request espressif/esp-idf!32992
2024-08-23 10:45:08 +08:00
Jiang Jiang Jian
b47d198928 Merge branch 'docs/fix_typo_adc_oneshot_v5.0' into 'release/v5.0'
docs: fix a typo in adc_oneshot (v5.0)

See merge request espressif/esp-idf!33009
2024-08-23 10:41:23 +08:00
gongyantao
f183884dbe fix(bt): remove redundant space in hid example path 2024-08-23 10:24:46 +08:00
gongyantao
86507e6c18 fix(bt): change example sdkconfig name to sdkconfig.ci.test 2024-08-23 10:24:46 +08:00
gongyantao
319efedb76 change(ci): remove device name check in bt example 2024-08-23 10:24:46 +08:00
gongyantao
602bd2d89a fix(bt): get remote device name from eir data 2024-08-23 10:24:45 +08:00
gongyantao
85ded0b544 feat(bt/example): add ci sdkconfig for bt examples 2024-08-23 10:24:42 +08:00
Yuan Hong Hui
171b5e7a24 feat(bt):add pytest for classic bt example 2024-08-23 10:22:42 +08:00
zhanghaipeng
ae186b888b feat(ble/controller): Support get BLE controller free heap size 2024-08-23 09:42:32 +08:00
zhanghaipeng
7c6ecc6b26 docs(blufi): Optimize documentation for Blufi example 2024-08-23 09:42:32 +08:00
zhanghaipeng
3818ca3a46 fix(ble/bluedroid): Fixed memory out-of-bounds issue when parsing adv data 2024-08-23 09:42:32 +08:00
shreeyash
b01014a840 fix(nimble): Fixed blesmp getbondlist issue 2024-08-22 17:51:38 +05:30
Yuhan Wei
d7ff26825b docs(ble): Updated example links in zh_CN ble-mesh-feature-list.rst 2024-08-22 16:59:21 +08:00
Island
326316f63e Merge branch 'bugfix/fix_bleqabr24_1152_v5.0' into 'release/v5.0'
Fixed BLE vendor HCI get controller status command on ESP32 (v5.0)

See merge request espressif/esp-idf!32968
2024-08-22 16:57:13 +08:00
Rahul Tank
d889c006ff Merge branch 'feat/ble_link_estab_event_v5.0' into 'release/v5.0'
feat(nimble): BLE_GAP_EVENT_LINK_ESTAB event to ensure link is established (v5.0)

See merge request espressif/esp-idf!32261
2024-08-22 15:33:06 +08:00
Mahavir Jain
3747cb436f Merge branch 'fix/docs_nvs_encryption_update_v5.0' into 'release/v5.0'
docs(nvs_encryption): Updated the docs of nvs_encryption (v5.0)

See merge request espressif/esp-idf!32912
2024-08-22 14:04:29 +08:00
Linda
8462c7d1c2 docs: fix a typo in adc_oneshot 2024-08-22 10:33:02 +08:00
Yuhan Wei
aa06bdb836 docs(ble): Removed original blufi.rst 2024-08-22 09:52:45 +08:00
Island
b87b33c97f Merge branch 'bugfix/fixed_c2_blufi_issue_when_use_only_4.2_adv_5.0_branch' into 'release/v5.0'
fix(ble): fixed blufi issue on ESP32-C2

See merge request espressif/esp-idf!32945
2024-08-22 00:34:17 +08:00
Rahul Tank
91a0c33322 feat(nimble): BLE_GAP_EVENT_LINK_ESTAB event to ensure link established 2024-08-21 20:55:28 +05:30
zhangyanjiao
fe6cbdc3bd fix(wifi/mesh): update the mesh ip_internal_network example 2024-08-21 19:07:20 +08:00
zhangyanjiao
1c4806dadc fix(wifi/mesh): fixed the dhcp offer send error issue when root restart multiple times
Closes https://github.com/espressif/esp-idf/issues/13212
2024-08-21 19:07:12 +08:00
zhangyanjiao
ef8cf5fbe4 fix(wifi/mesh): clear the rootless state in mesh ie when changing from leaf to root
Closes https://github.com/espressif/esp-idf/issues/14063
2024-08-21 19:06:26 +08:00
hrushikesh.bhosale
745e08b499 docs(nvs_flash): Updated the docs of nvs_flash
Updated the documentation by changing subtype from key to
nvs_keys in nvs_flash.rst
2024-08-21 14:44:47 +05:30
Island
ec0f177135 Merge branch 'fix/ble_mesh_gh_pr_13135_v5.0' into 'release/v5.0'
fix(ble_mesh): Fix OP_TIME_SET and OP_TIME_STATUS (v5.0)

See merge request espressif/esp-idf!32772
2024-08-21 16:55:18 +08:00
zwl
feb21f46b6 fix(ble): fixed blufi issue on ESP32-C2 2024-08-21 15:24:43 +08:00
chenjianhua
2eb21737f4 fix(bt): Update bt lib for ESP32(241c96c)
- Fixed BLE vendor HCI get controller status command
2024-08-20 19:31:19 +08:00
Krzysztof Budzynski
f17564303e Merge branch 'docs/delete_user_guides_three_esp32_dev_boards_v5.0' into 'release/v5.0'
docs: delete user guides of ESP32-DevKitC, ESP-WROVER-KIT and ESP32-PICO-DevKitM-2 (v5.0)

See merge request espressif/esp-idf!32751
2024-08-20 18:37:33 +08:00
Rahul Tank
ba6f51ce10 Merge branch 'feat/allow_connect_during_scan_v5.0' into 'release/v5.0'
feat(nimble): Add support to allow connection during scanning (v5.0)

See merge request espressif/esp-idf!32846
2024-08-20 17:31:44 +08:00
Linda
17de132b94 docs: delete user guides of ESP32-DevKitC, ESP-WROVER-KIT and ESP32-PICO-DevKitM-2 2024-08-20 14:36:20 +08:00
Jiang Jiang Jian
9ed93caadd Merge branch 'fix/hfp_pcm_api_set_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Add PCM configuration about pcm frame sync signal shape (backport v5.0)

See merge request espressif/esp-idf!32467
2024-08-20 11:34:27 +08:00
Jiang Jiang Jian
ca6515d219 Merge branch 'bugfix/dpp_auth_failure_v5.0' into 'release/v5.0'
fix(wpa_supplicant):Deinit old dpp authentication data after receiving config.(v5.0)

See merge request espressif/esp-idf!32431
2024-08-20 11:33:15 +08:00
Jiang Jiang Jian
b54d9925fb Merge branch 'feat/save_ble_log_to_flash_0605_v5.0' into 'release/v5.0'
Feat/save ble log to flash 0605 v5.0

See merge request espressif/esp-idf!32398
2024-08-20 11:32:31 +08:00
Jiang Jiang Jian
a01bd13a9f Merge branch 'bugfix/provide_random_addr_api_v5.0' into 'release/v5.0'
fix(wifi_prov): Added API to set random address (v5.0)

See merge request espressif/esp-idf!32328
2024-08-20 10:35:16 +08:00
Jiang Jiang Jian
27eeabbabd Merge branch 'fix/ble_mesh_24_76_v5.0' into 'release/v5.0'
fix(ble_mesh): fixed BLEMESH24-76_v5.0

See merge request espressif/esp-idf!32229
2024-08-20 10:31:43 +08:00
Rahul Tank
261ec35a8f feat(nimble): Add support to allow connection during scanning 2024-08-19 15:31:52 +05:30
Yuhan Wei
742f28cc88 docs(ble): Updated ble fast provision example link in ble-mesh-faq.rst 2024-08-19 17:23:39 +08:00
Rahul Tank
79c3c405e7 Merge branch 'bugfix/fix_nimble_issues_v5.0' into 'release/v5.0'
Bugfix/fix nimble issues v5.0

See merge request espressif/esp-idf!32865
2024-08-19 16:51:39 +08:00
Rahul Tank
46d33080c3 fix(nimble): Remove ESP IP dependancy on enc_adv_data example 2024-08-19 10:08:58 +05:30
Rahul Tank
fe5355697a fix(nimble): Modify Advertising Tx power levels 2024-08-19 10:08:58 +05:30
Rahul Tank
e0393330a7 Merge branch 'doc/update_readme_enc_adv_kconfig_v5.0' into 'release/v5.0'
fix(nimble): Remove ESP IP dependancy on enc_adv_data example (v5.0)

See merge request espressif/esp-idf!32647
2024-08-19 12:20:16 +08:00
Rahul Tank
4870ada14a Merge branch 'bugfix/handle_linked_om_blufi_v5.0' into 'release/v5.0'
fix(nimble) Added change to handle linked om data at blufi layer (v5.0)

See merge request espressif/esp-idf!31977
2024-08-19 12:19:32 +08:00
Yuhan Wei
f399708eb9 docs(ble): Updated the support status for some NimBLE features 2024-08-19 09:43:57 +08:00
Pat Erley
09442d9289 fix(ble_mesh): Fix OP_TIME_SET and OP_TIME_STATUS
When a user app is handling these messages, the tai_utc_delta and
time_zone_offset fields are not correctly populated.  Resolve by
properly setting the fields.

Signed-off-by: luoxu <luoxu@espressif.com>
Closes https://github.com/espressif/esp-idf/pull/13135
2024-08-17 06:03:52 +08:00
Sergei Silnov
a819f7b565 Merge branch 'fix/component_manager_load_all_local_components_v5.0' into 'release/v5.0'
fix: component manager load all component dirs even set(COMPONENTS ...) (v5.0)

See merge request espressif/esp-idf!32041
2024-08-16 21:25:14 +08:00
Yuhan Wei
c162aa01b4 docs(ble): Added BLE feature support status 2024-08-16 17:56:14 +08:00
aditi
3769a10ef7 fix(wpa_supplicant):Deinit old dpp authentication data after receiving config. 2024-08-16 10:41:36 +05:30
xiongweichao
831d2f484b fix(bt/controller): Fixed disconnection issue
- Fixed the issue of disconnection caused by updating the channel map in sniff mode
2024-08-16 12:19:02 +08:00
chenqingqing
616869b554 fix(bt/bluedroid): Add PCM configuration about pcm frame sync signal shape 2024-08-16 12:19:02 +08:00
Jiang Jiang Jian
cb74823a38 Merge branch 'bugfix/sae_gcmp_conn_failure' into 'release/v5.0'
Fix SAE connection failure when GCMP cipher is used (v5.0)

See merge request espressif/esp-idf!32601
2024-08-15 21:05:22 +08:00
Fu Hanxi
72d9a29a52 fix: component manager load all component dirs even set(COMPONENTS ...) 2024-08-15 20:42:12 +08:00
Jiang Jiang Jian
7ae93db789 Merge branch 'bugfix/fix_ble_gattc_app_unregister_v5.0' into 'release/v5.0'
Bugfix/fix ble gattc app unregister (v5.0)

See merge request espressif/esp-idf!32441
2024-08-15 19:44:33 +08:00
Wang Meng Yang
745cd37220 Merge branch 'bugfix/fix_ble_channel_map_update_v5.0' into 'release/v5.0'
fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(f583012) (v5.0)

See merge request espressif/esp-idf!32584
2024-08-15 18:35:05 +08:00
Wang Meng Yang
dba15f8d34 Merge branch 'bugfix/fix_ble_security_param_v5.0' into 'release/v5.0'
fix(ble/bluedroid): Fixed issue with resetting BLE security parameters during initialization (v5.0)

See merge request espressif/esp-idf!32508
2024-08-15 18:35:04 +08:00
Wang Meng Yang
054d8c9c9d Merge branch 'bugfix/fix_ble_cannot_create_conn_v5.0' into 'release/v5.0'
fix(ble/bluedroid): Fixed BLE cannot create connection(v5.0)

See merge request espressif/esp-idf!32310
2024-08-15 18:35:00 +08:00
Jiang Jiang Jian
4019318c60 Merge branch 'bugfix/handle_no_pmkid_case_owe_v5.0' into 'release/v5.0'
Recompute keys in OWE incase of PMKID absence or mismatch (Backport v5.0)

See merge request espressif/esp-idf!32336
2024-08-15 16:14:04 +08:00
Jiang Jiang Jian
b99f0f9b7a Merge branch 'bugfix/heap_corrupt_in_bt_mem_release_on_esp32_v5.0' into 'release/v5.0'
fix(bt): Fix heap corruption in the call of esp_bt_mem_release on ESP32 (v5.0)

See merge request espressif/esp-idf!32804
2024-08-15 16:10:34 +08:00
Jiang Jiang Jian
0c829b34b7 Merge branch 'fix/setuptools_constraint_v5.0' into 'release/v5.0'
fix: ensure the constraint file is followed also for setuptools (v5.0)

See merge request espressif/esp-idf!32551
2024-08-15 16:08:52 +08:00
Jiang Jiang Jian
6aa56f8c34 Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20240726_v5.0' into 'release/v5.0'
feat(tools): update openocd version to v0.12.0-esp32-20240726 (v5.0)

See merge request espressif/esp-idf!32607
2024-08-15 16:02:00 +08:00
Jiang Jiang Jian
9bf654fdf5 Merge branch 'fix/incorrect_config_name_v5.0' into 'release/v5.0'
Fix encrypt image instead of the partition optimisation not being enabled (v5.0)

See merge request espressif/esp-idf!32642
2024-08-15 16:01:00 +08:00
Jiang Jiang Jian
a08133327d Merge branch 'change/exclude_cves_v5.0' into 'release/v5.0'
change: exclude CVEs that do not impact ESP-IDF components (v5.0)

See merge request espressif/esp-idf!32662
2024-08-15 16:00:31 +08:00
Jiang Jiang Jian
08fc43a63d Merge branch 'feat/print_the_ble_mac_when_init_5.0' into 'release/v5.0'
feat(ble): Print out the BT mac when the controller is initialized

See merge request espressif/esp-idf!32733
2024-08-15 15:58:40 +08:00
Jiang Jiang Jian
018e50895c Merge branch 'docs/optimized_ble_adv_data_type_v5.0' into 'release/v5.0'
docs(ble/bluedroid): Optimize BLE example for setting advertising data (v5.0)

See merge request espressif/esp-idf!32758
2024-08-15 15:58:15 +08:00
Jiang Jiang Jian
bcbb9d1b90 Merge branch 'docs/remove_user_guide_for_esp32_ethernet_migration_v5.0' into 'release/v5.0'
docs: remove user guide for esp32-ethernet-kit migration (v5.0)

See merge request espressif/esp-idf!32589
2024-08-15 15:54:58 +08:00
Jiang Jiang Jian
bb2b6c38dc Merge branch 'fix/fatfs_f_mount_immediately_after_formatting_v5.0' into 'release/v5.0'
fix(vfs): FATFS mount immediately after format if mount failed (v5.0)

See merge request espressif/esp-idf!32382
2024-08-15 15:52:11 +08:00
Jiang Jiang Jian
27b870c7e8 Merge branch 'bugfix/increase_timer_task_depth_v5.0' into 'release/v5.0'
fix(nimble): Increase Timer stack size for nimble application (v5.0)

See merge request espressif/esp-idf!32272
2024-08-15 15:51:18 +08:00
Jiang Jiang Jian
d69673aee4 Merge branch 'bugfix/fix_ble_phy_compilation_issue' into 'release/v5.0'
fix(nimble): Remove extra spaces from example CMake file (v5.0)

See merge request espressif/esp-idf!32268
2024-08-15 15:50:46 +08:00
Jiang Jiang Jian
1dd21078f8 Merge branch 'bugfix/remove_duplicate_fn_dpp_v5.0' into 'release/v5.0'
wifi: backport some dpp fixes (v5.0)

See merge request espressif/esp-idf!32263
2024-08-15 15:50:11 +08:00
Jiang Jiang Jian
e7c91416ce Merge branch 'fix/stack_overflow_in_example_spp_initiator_v5.0' into 'release/v5.0'
Fix/stack overflow in example spp initiator(backport v5.0)

See merge request espressif/esp-idf!32235
2024-08-15 15:49:51 +08:00
Jiang Jiang Jian
d7710f65b6 Merge branch 'bugfix/reset_irk_when_all_unpair_v5.0' into 'release/v5.0'
fix(nimble): Fixed BLE security vulnerability when using fixed IRK (v5.0)

See merge request espressif/esp-idf!32202
2024-08-15 15:49:37 +08:00
Wang Meng Yang
06dba23ce0 Merge branch 'bugfix/fix_hidh_integrity_check_bug_v5.0' into 'release/v5.0'
fix(esp_hid): Loose the check of input report length to be more compatible[backport 5.0]

See merge request espressif/esp-idf!32723
2024-08-15 12:13:37 +08:00
Marius Vikhammer
fb8bef8ce3 Merge branch 'test/fix_flaky_sched_time_test_v5.0' into 'release/v5.0'
test(freertos): Fixed flaky scheduling time test (v5.0)

See merge request espressif/esp-idf!32852
2024-08-15 10:13:05 +08:00
morris
ee7d5be8f8 Merge branch 'contrib/github_pr_14310_v5.0' into 'release/v5.0'
fix(gptimer): remove incorrect param from example (GitHub PR) (v5.0)

See merge request espressif/esp-idf!32687
2024-08-15 10:02:04 +08:00
morris
1d6e6f1099 Merge branch 'feat/support_psram_aps3204l_v5.0' into 'release/v5.0'
psram: support APS3204L (v5.0)

See merge request espressif/esp-idf!32393
2024-08-15 09:57:44 +08:00
morris
49570b42a9 Merge branch 'bugfix/rmt_memory_power_up_v5.0' into 'release/v5.0'
fix(rmt): power up memory block (v5.0)

See merge request espressif/esp-idf!32174
2024-08-15 09:57:03 +08:00
Sudeep Mohanty
7b6c138a95 test(freertos): Fixed flaky scheduling time test
This commit updates the scheduling time test to test for median
scheduling time values instead of average values.
2024-08-14 10:46:03 +02:00
Rahul Tank
f5d916d512 fix(nimble) Added change to handle linked om data at blufi layer 2024-08-13 16:56:31 +05:30
Michael (XIAO Xufeng)
e01962e02e Merge branch 'update/version_5_0_7' into 'release/v5.0'
Update version to 5.0.7

See merge request espressif/esp-idf!32696
2024-08-13 17:55:59 +08:00
Wang Mengyang
a372e0ee88 fix(bt): Fix heap corruption in the call of esp_bt_mem_release on ESP32
Closes https://github.com/espressif/esp-idf/issues/14263
2024-08-13 07:55:23 +08:00
zhanghaipeng
5140188496 docs(ble/bluedroid): Optimize BLE example for setting advertising data 2024-08-12 11:38:38 +08:00
Shen Weilong
553b97e84c feat(ble): Print out the BT mac when the controller is initialized 2024-08-09 20:58:57 +08:00
zhanghaipeng
ffa51a0932 feat(ble/bluedroid): Support getting BLE address type in bond list 2024-08-09 20:29:48 +08:00
zhanghaipeng
01a40193a8 docs(ble/bluedroid): Optimize documentation for BLE connection parameter updates 2024-08-09 20:29:20 +08:00
liqigan
4d4d4b8abc fix(esp_hid): Loose the check of input report length to be more compatible
Closes https://github.com/espressif/esp-idf/issues/14259
2024-08-09 15:57:17 +08:00
Xiao Xufeng
9cd7dad6e9 change(version): Update version to 5.0.7 2024-08-08 16:04:23 +08:00
LonerDan
61edd6c83f docs(gptimer): remove incorrect param from example
Fixes call to `gptimer_start` in one of the examples
which includes extra second parameter `&alarm_config`,
when the function takes only one.

Mreges https://github.com/espressif/esp-idf/pull/14310
2024-08-08 10:05:58 +08:00
Shyamal Khachane
cad8a7c41c fix(esp_wifi): Refactor and update wpa_supplicant with upstream 2024-08-07 12:36:13 +05:30
zhanghaipeng
256895f89f fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(f583012)
- Fix BLE channel map update when latency is not zero
2024-08-07 13:13:49 +08:00
Frantisek Hrbata
8027ab8398 change: exclude CVEs that do not impact ESP-IDF components
cJSON:    CVE-2024-31755 - Resolved in cJSON v1.7.18
FreeRTOS: CVE-2024-28115 - Affects only ARMv7-M MPU ports, and ARMv8-M ports

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-08-06 17:26:15 +02:00
Rahul Tank
4ed10e555d fix(nimble): Remove ESP IP dependancy on enc_adv_data example 2024-08-06 14:40:57 +05:30
harshal.patil
1bf5d48df5 fix(bootloader_support): Fix encrypt image instead of the partition feature not being enabled 2024-08-06 13:46:10 +05:30
Alexey Gerenkov
3cc27da00b feat(tools): update openocd version to v0.12.0-esp32-20240726 2024-08-05 22:39:22 +02:00
Mario Schlegel
74d8feabca fix(ble-mesh): don't use dangling pointer in nimble gatt service
Signed-off-by: luoxu <luoxu@espressif.com>
Merges https://github.com/espressif/esp-idf/pull/14140
2024-08-05 21:00:50 +08:00
renpeiying
3145eac6c5 docs: remove user guide for esp32-ethernet-kit migration 2024-08-05 18:01:27 +08:00
shenmengjing
4f89864651 docs: Delete ESP32-S2-Kaluga-Kit related user guide files 2024-08-05 16:10:53 +08:00
chenjianhua
3d143a235c feat(bt): Update bt lib for ESP32-C3 and ESP32-S3(4e58df9)
- Support enhanced BLE TX power setting and getting
2024-08-05 15:26:03 +08:00
zhiweijian
8f2dca5c69 feat(bt/controller): support mesh duplicate with extend scan 2024-08-05 15:25:49 +08:00
zwl
730230d9cf fix: fixed directed adv can't be conneted when adv filter is 0x2 on ESP32C2 2024-08-02 17:46:34 +08:00
Frantisek Hrbata
6197d1a256 fix: ensure the constraint file is followed also for setuptools
Currently, when the venv is installed or updated, we attempt to
automatically update pip and setuptools within the venv. Unfortunately,
the setuptools package is installed or updated without adhering to the
constraints file, which restricts the setuptools version due to
https://github.com/pypa/setuptools/issues/4480. Resolve this issue by
applying the constraints file to the installation and update of both pip
and setuptools.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-08-02 10:10:29 +02:00
Jiang Jiang Jian
6d79a72d62 Merge branch 'bugfix/avoid_offchan_ftm_retries_v5.0' into 'release/v5.0'
fix(wifi): Avoid internal retries for offchannel FTM Requests (Backport v5.0)

See merge request espressif/esp-idf!32491
2024-08-01 19:33:18 +08:00
zhanghaipeng
a9b0b618ab fix(ble/bluedroid): Fixed issue with resetting BLE security parameters during initialization 2024-08-01 16:18:13 +08:00
Nachiket Kukade
d5c1431340 fix(wifi): Avoid internal retries for offchannel FTM Requests 2024-07-31 22:38:30 +05:30
zhanghaipeng
915c312c8a fix(ble/bluedroid): Fix incorrect state issue when unregistering BLE GATTC application 2024-07-30 19:11:40 +08:00
Jiang Jiang Jian
4794e31652 Merge branch 'bugfix/fix_beacon_timeout_issue_in_mesh_v5.0' into 'release/v5.0'
fix(wifi/mesh): fix the beacon timeout issue in mesh (v5.0)

See merge request espressif/esp-idf!32410
2024-07-30 13:44:17 +08:00
zhangyanjiao
dcd9758708 fix(wifi/mesh): fix the beacon timeout issue in mesh 2024-07-29 16:26:53 +08:00
zwl
a27c82c69a feat(bluetooth/controller): support switching log output mode on ESP32-C2 2024-07-29 12:11:09 +08:00
zwl
13b9b65904 feat(bluetooth/controller): storage ble controller log to flash on ESP32C2 2024-07-29 12:10:36 +08:00
Armando
f095432fc0 feat(psram): support APS3204L 2024-07-29 11:44:49 +08:00
Island
4a46dce746 Merge branch 'feat/support_default_tx_level_for_esp32h2_esp32c6_esp32c2_v5.0' into 'release/v5.0'
feat(bluetooth/controller): support default tx power configurable on ESP32C2

See merge request espressif/esp-idf!32196
2024-07-29 10:32:14 +08:00
Adam Múdry
567cf951bd fix(vfs): FATFS mount immediately after format if mount failed 2024-07-26 17:59:56 +02:00
Island
0a615a6783 Merge branch 'bugfix/fixed_start_adv_error_on_esp32c2' into 'release/v5.0'
fix(ble): fixed tx memory leak issue when controller disable

See merge request espressif/esp-idf!32322
2024-07-26 13:56:04 +08:00
zhanghaipeng
efd0a06db6 fix(ble/bluedroid): Fixed BLE cannot create connection 2024-07-26 10:38:05 +08:00
Island
13033ac582 Merge branch 'bugfix/fix_ble_intr_alloc_failure' into 'release/v5.0'
fix(bt/controller): Change level of BLE interrupt to avoid allocation failure

See merge request espressif/esp-idf!32199
2024-07-25 12:10:07 +08:00
Shyamal Khachane
9a746e5b4e fix(esp_wifi): Handle PMKID mismatch or absence in OWE
Compute keys incase PMKID does not match or PMKID is absent in association response
2024-07-25 08:42:53 +05:30
Rahul Tank
a644f49cf7 fix(wifi_prov): Added API to set random address 2024-07-24 21:00:54 +05:30
zwl
04418cbf48 fix(ble): fixed tx memory leak issue when controller disable 2024-07-24 17:42:32 +08:00
Jiang Jiang Jian
a528f1326c Merge branch 'bugfix/fix_coexist_beacon_monitor_timer_issue' into 'release/v5.0'
fix(coex): fix coexist beacon monitor timer carsh issue

See merge request espressif/esp-idf!32239
2024-07-23 15:43:56 +08:00
Rahul Tank
df0d5bc4fa fix(nimble): Increase Timer stack size for nimble application 2024-07-22 15:52:34 +05:30
Rahul Tank
74431934a5 fix(nimble): Remove extra spaces from example CMake file 2024-07-22 15:26:29 +05:30
Kapil Gupta
a3ef4cb054 fix(esp_wifi): backport some dpp fixes 2024-07-22 12:09:27 +05:30
liuning
c80c955997 fix(coex): fix coexist beacon monitor timer carsh issue 2024-07-19 14:06:32 +08:00
gongyantao
7d040b7d44 feat(bt): add bt address printing for all bt examples 2024-07-19 11:51:58 +08:00
gongyantao
beab75487b fix(bt): fix uTask stack overflow in bt example spp_initiator 2024-07-19 11:50:17 +08:00
chenjianhua
84657b9d74 fix(bt/controller): Change level of BLE interrupt to avoid allocation failure 2024-07-18 14:10:33 +08:00
Rahul Tank
d651e5265d fix(nimble): Fixed BLE security vulnerability when using fixed IRK 2024-07-18 11:25:28 +05:30
luoxu
c6b5c5893b fix(ble_mesh): fixed BLEMESH24-76 2024-07-18 11:40:56 +08:00
zwl
eeea47ec5f feat(bluetooth/controller): support default tx power configurable on ESP32C2 2024-07-18 10:50:54 +08:00
Jiang Jiang Jian
ce8dd3997d Merge branch 'bugfix/fix_coex_loadprohibit_issue_v5.0' into 'release/v5.0'
fix(coex): Update bt lib for ESP32-C3 and ESP32-S3(e4ba7f6) (Backport v5.0)

See merge request espressif/esp-idf!32148
2024-07-17 20:05:57 +08:00
Jiang Jiang Jian
a783022fb2 Merge branch 'fix/netif_ppp_ip6_autoconfig_v5.0' into 'release/v5.0'
fix(esp_netif): Fix missing IPv6 autoconfig for PPP netifs (v5.0)

See merge request espressif/esp-idf!32181
2024-07-17 20:00:48 +08:00
Jiang Jiang Jian
98d3c8219a Merge branch 'bugfix/fix_mesh_xon_request_timeout_issue_v5.0' into 'release/v5.0'
fix(wifi/mesh): fix the issue that xon request timeout constantly when root reboot (v5.0)

See merge request espressif/esp-idf!32167
2024-07-17 16:02:28 +08:00
linruihao
3a08385930 fix(coex): Update bt lib for ESP32-C3 and ESP32-S3(e4ba7f6)
- Fixed coexist LoadProhibited issue
2024-07-17 15:45:19 +08:00
Jiang Jiang Jian
8d86ea02a2 Merge branch 'feat/optimize_bt_porting_hci_0628_5.0' into 'release/v5.0'
Feat/optimize bt porting hci 0628 5.0

See merge request espressif/esp-idf!32130
2024-07-17 15:39:33 +08:00
David Cermak
35da10990a fix(esp_netif): Fix missing IPv6 autoconfig for PPP netifs
Closes https://github.com/espressif/esp-idf/issues/13713
2024-07-17 08:47:42 +02:00
morris
d357849205 fix(rmt): power up memory block 2024-07-17 13:55:18 +08:00
zhangyanjiao
e0ed2f9cd8 fix(wifi/mesh): fix the issue that xon request timeout constantly when root reboot
Closes https://github.com/espressif/esp-idf/issues/13212
2024-07-17 11:19:22 +08:00
Jiang Jiang Jian
01ac18f468 Merge branch 'bugfix/11r_disable_sdkconfig_v5.0' into 'release/v5.0'
fix(wifi): Ignore 11R, ENT AP when disabled in sdkconfig

See merge request espressif/esp-idf!32149
2024-07-17 10:43:41 +08:00
zwl
4569090b6b fix(ble): fixed ble_htp example ci build error 2024-07-17 10:38:55 +08:00
zwl
cec91a1c10 feat(bluetooth/controller): adopting new HCI layer code on ESP32-C2 2024-07-16 20:10:03 +08:00
zwl
18efdefafe feat(bluetooth/controller): optimize bt hci layer code 2024-07-16 20:10:03 +08:00
Shreyas Sheth
8ee63672db fix(wifi): Ignore 11R, ENT AP when disabled in sdkconfig 2024-07-16 11:53:43 +05:30
Jiang Jiang Jian
7109734d01 Merge branch 'bugfix/fix_some_ble_bugs_cjh_v5.0' into 'release/v5.0'
Fixed some BLE bugs 240715 (backport v5.0)

See merge request espressif/esp-idf!32123
2024-07-16 10:28:41 +08:00
Jiang Jiang Jian
88ee1f5c68 Merge branch 'bugfix/ld_acl_c_3576_v5.0' into 'release/v5.0'
fix(bt/controller): Removed an improper assertion in ACL link driver (v5.0)

See merge request espressif/esp-idf!32120
2024-07-16 10:25:15 +08:00
Jiang Jiang Jian
17bdbedcd2 Merge branch 'bugfix/fix_some_wifi_bugs_240715_v5.0' into 'release/v5.0'
fix(wifi): fix some wifi bugs 240715(Backport v5.0)

See merge request espressif/esp-idf!32129
2024-07-15 21:53:13 +08:00
muhaidong
ab10ce03cd fix(wifi): fix some wifi bugs 240715
1. fixed association refused temporarily too many times issue
2. send auth after sae association refused temporarily
3. give some information when password length mismatch authmode threshold
4. send deauth when first connect and pmf disabled
5. fix sta may join bad signal ap when set by signal
2024-07-15 18:59:14 +08:00
zhanghaipeng
3752c0ad5f fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(abd7733)
- Fix the issue where RSSI is incorrect when latency is not zero
2024-07-15 15:55:17 +08:00
chenjianhua
7efd230264 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(66b5cc0)
- Fixed vendor hci get controller status command
- Prevent BLE interrupt from being preempted
2024-07-15 15:55:09 +08:00
Jin Cheng
ae7fe9eff9 fix(bt/controller): Removed an improper assertion in ACL link driver.
It can be triggered on peripheral SNIFF mode
when RX window is adjusted on ESP32.
2024-07-15 15:27:23 +08:00
Jiang Jiang Jian
6a09e585dd Merge branch 'docs/optimized_ble_controller_api_references_esp32_v5.0' into 'release/v5.0'
docs(ble): Revised the esp32 controller API explanations (v5.0)

See merge request espressif/esp-idf!31928
2024-07-15 10:39:15 +08:00
Jiang Jiang Jian
eaca226745 Merge branch 'bugfix/wps_reg_state_handling_v5.0' into 'release/v5.0'
fix(wpa_supplicant): Handle case when WPS registrar misses WSC_DONE sent by station (Backport v5.0)

See merge request espressif/esp-idf!32079
2024-07-15 10:37:59 +08:00
Rahul Tank
4780f809f5 Merge branch 'feature/periodic_adv_enhancement_v5.0' into 'release/v5.0'
NimBLE : Added periodic Adv Feature Updates in BLE 5.3 (v5.0)

See merge request espressif/esp-idf!32078
2024-07-13 19:31:34 +08:00
Roshan Bangar
d2c4efae24 feat(nimble): Added periodic Adv Feature Updates in BLE 5.3 2024-07-12 18:41:02 +05:30
Rahul Tank
a1ce7ed947 Merge branch 'feat/enc_adv_data_v5.0' into 'release/v5.0'
NimBLE: Added support of encrypted advertising data (v5.0)

See merge request espressif/esp-idf!32046
2024-07-12 21:07:06 +08:00
Island
a8f8936b48 Merge branch 'feat/add_ble50_instant_v5.0' into 'release/v5.0'
Add support for BLE 5.0 instances in related events (v5.0)

See merge request espressif/esp-idf!31993
2024-07-12 14:52:52 +08:00
Sarvesh Bodakhe
12d58c893d fix(wpa_supplicant): Avoid delaying removal of wps enrollee by 10ms
This is no longer needed as eloop timers are now executed in wifi task context.
2024-07-12 12:01:11 +05:30
Sarvesh Bodakhe
c36c3920fc fix(wpa_supplicant): Handle case when WPS registrar misses WSC_DONE sent by station
When registrar somehow misses the WSC_DONE sent by station and station
goes for next connection after sending deauth, make sure that softAP
disables the registrar.
2024-07-12 11:58:56 +05:30
Jiang Jiang Jian
517ca1b97e Merge branch 'bugfix/wps_bug_v5.0' into 'release/v5.0'
fix(wpa_supplicant):Fix for setting wps status fail when connection fails(v5.0)

See merge request espressif/esp-idf!31223
2024-07-12 11:57:21 +08:00
Wei Yu Han
e8d99f1b28 docs(ble): Removed duplicate note in esp_bt_mem_release 2024-07-12 09:19:11 +08:00
Wei Yu Han
7e1bc2879d docs(ble): Revised the explanation of esp_bt_mem_release and esp_bt_controller_mem_release 2024-07-12 09:10:46 +08:00
aditi
30effe7894 fix(wpa_supplicant):Fix for setting wps status fail when connection fails 2024-07-11 18:17:00 +05:30
Jiang Jiang Jian
2dc5e29012 Merge branch 'fix/usb_isoc_error_status_backport_v5.0' into 'release/v5.0'
fix(usb/host): Decode error flags in ISOC transfers backport to v5.0

See merge request espressif/esp-idf!31881
2024-07-11 20:21:07 +08:00
isha.pardikar@espressif.com
cdb3864e2c NimBLE: Added support of encrypted advertising data 2024-07-11 15:07:21 +05:30
Rahul Tank
1b89cfc46d Merge branch 'bugfix/fix_example_menuconfig_error_v5.0' into 'release/v5.0'
fix(nimble): Update menuconfig option to consider 5.0 support (v5.0)

See merge request espressif/esp-idf!32038
2024-07-10 22:24:25 +08:00
Tomas Rezucha
02fdd5f60e fix(usb/host): Decode error flags in ISOC transfers 2024-07-10 20:44:32 +08:00
Rahul Tank
3e9f77e434 fix(nimble): Update menuconfig option to consider 5.0 support 2024-07-10 17:23:16 +05:30
Jiang Jiang Jian
a2434a844c Merge branch 'feature/support_coex_pwr_v5.0' into 'release/v5.0'
feat(wifi): support coex pwr, fix tbtt intr miss issue, fix esp32 cant tx after reset

See merge request espressif/esp-idf!32019
2024-07-10 19:42:03 +08:00
Island
41b89275c1 Merge branch 'bugfix/split_hci_log_in_nimble_v5.0' into 'release/v5.0'
fix(bt/nimble): split hci log in nimble (backport v5.0)

See merge request espressif/esp-idf!32003
2024-07-10 18:38:59 +08:00
liuning
9689526f76 feat(wifi): support coex pwr, fix tbtt intr miss issue, fix esp32 cant tx after reset 2024-07-10 16:27:17 +08:00
Mahavir Jain
6a284148f3 Merge branch 'contrib/github_pr_13945_v5.0' into 'release/v5.0'
fix(esp_http_client): Do not allocate client->if_name twice in esp_http_client_init. (GitHub PR) (v5.0)

See merge request espressif/esp-idf!31945
2024-07-10 13:53:03 +08:00
zhanghaipeng
4593ae0741 fix(ble/bluedroid): Fixed BLE set adv param check 2024-07-10 12:23:55 +08:00
Wei Yu Han
0fa8fa367c docs(ble): Add the parameter name data in esp_vhci_host_send_packet 2024-07-10 10:43:25 +08:00
zhiweijian
0e504dbc90 fix(bt/nimble): split hci log in nimble 2024-07-09 17:38:40 +08:00
morris
67e446d6c2 Merge branch 'bugfix/fix_modbus_tcp_slave_examples_use_events_v50' into 'release/v5.0'
fix(examples/modbus): fix modbus slave examples may process event flags incorrectly (Backport v5.0)

See merge request espressif/esp-idf!28250
2024-07-09 16:29:22 +08:00
Alex Lisitsyn
cf53d01a6c fix(examples/modbus): fix modbus slave examples may process event flags incorrectly (Backport v5.0) 2024-07-09 16:29:22 +08:00
zhanghaipeng
7212e4e1a8 feat(ble/bluedroid): Support BLE50 instance in related event 2024-07-09 15:45:10 +08:00
Mahavir Jain
fddb503d69 Merge branch 'fix/fix_esp_tls_client_key_parsing_v5.0' into 'release/v5.0'
fix(esp_tls): Fixed client key parsing for ECC key (v5.0)

See merge request espressif/esp-idf!31841
2024-07-09 12:59:24 +08:00
Aditya Patwardhan
9cad274092 fix(esp_tls): Fixed client key parsing for ECC key
Client key parsing for ECC keys was failing as the
    RNG supplied to the key parsing API was uninitialized.
    This commit fixes that behaviour
2024-07-09 12:36:20 +08:00
Jiang Jiang Jian
a808db00c9 Merge branch 'bugfix/fix_esco_conflict_with_sniff_v5.0' into 'release/v5.0'
fix(bt/controller): Fixed some controller bugs (v5.0)

See merge request espressif/esp-idf!31955
2024-07-08 20:25:02 +08:00
Jiang Jiang Jian
97bac418a8 Merge branch 'fix/fix_sta_scan_when_connected_cause_bcn_timeout_loop_v5.0' into 'release/v5.0'
fix(wifi): fix sta scan when connected cause bcn timeout loop issue v5.0

See merge request espressif/esp-idf!31956
2024-07-08 20:20:54 +08:00
Jiang Jiang Jian
2691bbacbe Merge branch 'bugfix/i2c_timeout_issue_v5.0' into 'release/v5.0'
fix(i2c): fix issues related to timeout and alive interval tick (backport v5.0)

See merge request espressif/esp-idf!29981
2024-07-08 20:11:08 +08:00
wangtao@espressif.com
bc6afecff1 fix(wifi): fix sta scan when connected cause bcn timeout loop issue v5.0 2024-07-08 14:31:19 +08:00
linruihao
33b517a273 fix(bt/controller): Fixed some controller bugs
- Fixed fail to establish eSCO when connected to two devices
- Changed some error log level to Debug if the error have a workaround

Closes https://github.com/espressif/esp-idf/issues/12340
2024-07-08 14:27:06 +08:00
liqigan
efdda3105d fix(bt/controller): Fixed not report HCI_Disconnection_Complete event 2024-07-08 14:27:06 +08:00
Rahul Tank
404d41c71c Merge branch 'bugfix/revert_extra_print_v5.0' into 'release/v5.0'
Revert "fix(nimble): Added debug print to check for skipped adv report" (v5.0)

See merge request espressif/esp-idf!31934
2024-07-08 14:16:06 +08:00
Island
6ed2802567 Merge branch 'fix/blemesh24_61_v5.0' into 'release/v5.0'
fix/blemesh24_61 (v5.0)

See merge request espressif/esp-idf!31567
2024-07-08 14:06:51 +08:00
fbp2m
98260d0c5c fix: fixed allocating if_name in client context multiple times
Do not allocate client->if_name twice in esp_http_client_init().

Signed-off-by: Harshit Malpani <harshit.malpani@espressif.com>

Closes https://github.com/espressif/esp-idf/pull/13945
2024-07-07 21:21:31 +08:00
Rahul Tank
e5e63be1b8 Revert "fix(nimble): Added debug print to check for skipped adv report"
This reverts commit 69ad6bb5d1.
2024-07-05 18:10:27 +05:30
Wang Ning
a4496994f2 Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Wang Ning <wangning@espressif.com>
2024-07-05 18:08:19 +08:00
Yuhan Wei
69c9719b0d docs(ble): Add the explanations to controller parameters configurable in menuconfig 2024-07-05 18:08:19 +08:00
Wang Ning
3412201140 Apply 35 suggestion(s) to 1 file(s)
Co-authored-by: Wang Ning <wangning@espressif.com>
2024-07-05 18:08:19 +08:00
Yuhan Wei
dfaa5a960c docs(ble): Removed note in esp_bt_controller_config_t 2024-07-05 18:08:19 +08:00
Yuhan Wei
fb6595059d docs(ble): Replaced BT with Bluetooth 2024-07-05 18:08:19 +08:00
Yuhan Wei
faeab638d4 docs(ble): Removed unnecessary explanations 2024-07-05 18:08:19 +08:00
Yuhan Wei
65cdf659c6 docs(ble): Added corresponding values to the controller mode 2024-07-05 18:08:19 +08:00
Yuhan Wei
314e964764 docs(ble): Fixed the explanation of TX power type 2024-07-05 18:08:19 +08:00
Yuhan Wei
1446d2b9bd docs(ble): Added typeof for BLE sleep clock accuracy enum 2024-07-05 18:08:19 +08:00
Yuhan Wei
45d84a1afd docs(ble): Added a name for BLE sleep clock accuracy enum 2024-07-05 18:08:19 +08:00
Yuhan Wei
6d65a7db74 docs(ble): Revised the esp32 controller API explanations 2024-07-05 18:08:18 +08:00
Island
8599e25cfe Merge branch 'bugfix/fixed_ble_issues_on_esp32c2_esp32c6_v5.0' into 'release/v5.0'
Bugfix/fixed ble issues on esp32c2 esp32c6 (v5.0)

See merge request espressif/esp-idf!31862
2024-07-05 10:39:18 +08:00
luoxu
110b7adc6a fix(ble_mesh): ensure the operation of adv busy is thread-safe 2024-07-04 12:12:48 +08:00
luoxu
006086c50b feat(ble_mesh): add cas operation for bt_mesh_atomic_val_t 2024-07-04 12:12:48 +08:00
Jiang Jiang Jian
3bb82f7ce4 Merge branch 'staging/espcoredump_move_strings_flash_v5.0' into 'release/v5.0'
change(espcoredump): save RAM space by placing constants in flash (backport v5.0)

See merge request espressif/esp-idf!29192
2024-07-04 10:38:35 +08:00
Jiang Jiang Jian
e9f1311892 Merge branch 'feature/add-newlib-sbom_v5.0' into 'release/v5.0'
feat(newlib): Add sbom manifest file (v5.0)

See merge request espressif/esp-idf!31834
2024-07-04 10:14:03 +08:00
Jiang Jiang Jian
f0c2da6dc4 Merge branch 'feature/ipc_noblocking_call_v5.0' into 'release/v5.0'
feat(ipc): Adds a new no blocking IPC call (v5.0)

See merge request espressif/esp-idf!28447
2024-07-03 21:01:52 +08:00
Jiang Jiang Jian
a7e404d08e Merge branch 'feature/sae_pk_transition_disable_v5.0' into 'release/v5.0'
feat(esp_wifi): Add support for OWE and WPA3 Enterprise transition disable (Backport v5.0)

See merge request espressif/esp-idf!31379
2024-07-03 19:34:17 +08:00
Rahul Tank
7d5cbec4bd Merge branch 'bugfix/low_buf_count_print_v5.0' into 'release/v5.0'
fix(nimble): Added debug print to check for skipped adv report (v5.0)

See merge request espressif/esp-idf!31835
2024-07-03 16:43:10 +08:00
Sarvesh Bodakhe
b3fb47908c feat(wifi): Add support for WPA3 transition disable and more updates
1. Add support for SAE-PK and WPA3-Enterprise transition disable
2. Add support to handle OWE transition disable indication from AP
3. refactor: Backport common changes in scan/connect path from 90cc6158
   - 90cc6158 adds support for Network Introduction Protocol in DPP
4. Fix issue of supplicant using wrong parameters to configure bss
  - Ensure that wpa_supplicant's state machine registers the requirement for rsnxe
    before deciding to add rsnxe to a assoc request.

Co-authored-by: jgujarathi <jash.gujarathi@espressif.com>
2024-07-03 12:46:58 +05:30
Jiang Jiang Jian
d0ff5e6236 Merge branch 'bugfix/fix_some_wifi_bugs_240702_v5.0' into 'release/v5.0'
Bugfix/fix some wifi bugs 240702 v5.0(Backport v5.0)

See merge request espressif/esp-idf!31876
2024-07-03 14:18:59 +08:00
Krzysztof Budzynski
cb4a8ed85b Merge branch 'docs/migrate_esp32c3_devkitc_02_devkitm_1_user_guide_v5.0' into 'release/v5.0'
docs: Migrate user guides of ESP32-C3-DevKitM and ESP32-C3-DevKitC to esp-dev-kits (v5.0)

See merge request espressif/esp-idf!31826
2024-07-03 14:09:47 +08:00
Zhang Xiao Yan
60e90cdc75 docs: Migrate user guides of ESP32-C3-DevKitM and ESP32-C3-DevKitC to esp-dev-kits (v5.0) 2024-07-03 14:09:47 +08:00
Jiang Jiang Jian
4db9de0271 Merge branch 'bugfix/fix_phy_cal_data_v5.0' into 'release/v5.0'
fix(phy): add phy calibration data check when mode is not none calibration v5.0

See merge request espressif/esp-idf!31825
2024-07-03 14:08:39 +08:00
Jiang Jiang Jian
026f3ed97d Merge branch 'docs/format_ap_basic_configuration_tables_v5.0' into 'release/v5.0'
docs: format AP basic configuration tables in wifi.rst (v5.0)

See merge request espressif/esp-idf!31857
2024-07-03 13:54:46 +08:00
muhaidong
fbc9fe582c fix(wifi): fix configure gcmp failure issue 2024-07-03 10:57:33 +08:00
muhaidong
d121b69262 fix(wifi): fixed disable gcmp choose pairwise cipher wrong issue 2024-07-02 21:40:48 +08:00
muhaidong
ba8ace2e98 fix(wifi): annotate a rom function 2024-07-02 21:35:24 +08:00
Jiang Jiang Jian
4c6b043d5b Merge branch 'bugfix/wps_mode_change_v5.0' into 'release/v5.0'
fix(esp_wifi): Fix for issue in changing opmode when wps is enabled(v5.0)

See merge request espressif/esp-idf!30778
2024-07-02 20:54:27 +08:00
zwl
422c244fa6 fix(ble): fixed some ble controller issues on ESP32-C2 2024-07-02 15:44:55 +08:00
Linda
a29b71d96a docs: format AP basic configuration tables in wifi.rst 2024-07-02 15:13:10 +08:00
aditi_lonkar
440b786834 fix(esp_wifi): Fix for issue in changing opmode when wps is enabled 2024-07-02 12:29:44 +05:30
Jiang Jiang Jian
f378e76962 Merge branch 'lwip/if_indextoname_compolation_fix_v5.0' into 'release/v5.0'
fix(lwip): Fixed compilation error referencing undefined POSIX interface API (v5.0)

See merge request espressif/esp-idf!31408
2024-07-02 13:52:22 +08:00
Jiang Jiang Jian
aec6f19bd8 Merge branch 'docs/add_ethernet_update_to_migration_4.4_to_5.0_v5.0' into 'release/v5.0'
docs: add Ethernet driver update to migration from 4.4 to 5.0 (v5.0)

See merge request espressif/esp-idf!31848
2024-07-02 13:44:43 +08:00
Linda
f4506c95ee docs: add Ethernet driver update to migration from 4.4 to 5.0 2024-07-02 11:13:06 +08:00
Rahul Tank
69ad6bb5d1 fix(nimble): Added debug print to check for skipped adv report 2024-07-01 15:34:05 +05:30
Alexey Lapshin
6412a6fa48 feat(newlib): Add sbom manifest file 2024-07-01 17:03:21 +07:00
jack
4956c6cfbe fix(phy): add phy calibration data check when mode is not none calibration 2024-07-01 16:11:31 +08:00
Jiang Jiang Jian
a6e89b466f Merge branch 'bugfix/mgmt_gcmp_issue_v5.0' into 'release/v5.0'
fix(wifi): Fix GCMP encryption for mgmt packets and other bugfixes (Backport v5.0)

See merge request espressif/esp-idf!31068
2024-07-01 14:29:21 +08:00
Jiang Jiang Jian
3db81d8d27 Merge branch 'docs/delete_userguide_esp32_s2_devkitc_1_v5.0' into 'release/v5.0'
docs: Delete user guide esp32-s2-devkitc-1 (v5.0)

See merge request espressif/esp-idf!31622
2024-07-01 14:24:27 +08:00
Jiang Jiang Jian
9a0c562b94 Merge branch 'bugfix/fix_ble_connect_fail_report_time_v5.0' into 'release/v5.0'
fix(ble/bluedroid): Fixed BLE report event when connection fails (v5.0)

See merge request espressif/esp-idf!31784
2024-07-01 14:19:55 +08:00
Sarvesh Bodakhe
af72ce1f75 fix(esp_wifi): Fix some wifi bugs
1. Fix issues related to mgmt packets encryption in GCMP
2. Fix issue of wrong decryption of mgmt packets when PMF is enabled
3. Fix frame subtype in send_mgmt_frame
4. Fix issue of wrong Rx control information of espnow packets for esp32 and esp32s2
5. Fix send mgmt err when eapol process
2024-07-01 11:06:13 +05:30
Sarvesh Bodakhe
7fd73ede7f fix(wifi): Add bugfix to avoid RSNXE and KDE mismatch during 4-way-handshake 2024-07-01 11:05:25 +05:30
zhangshuxian
e969de7fcb docs: Delete user guide esp32-s2-devkitc-1 2024-07-01 10:42:02 +08:00
Jiang Jiang Jian
6f72d019ec Merge branch 'backport/shortened_uart_read_bytes_blocking_50' into 'release/v5.0'
fix(uart): remove unnecessary wait when sending message to ring buffer(backport5.0)

See merge request espressif/esp-idf!31384
2024-07-01 10:29:06 +08:00
Omar Chebib
ca8a14c838 fix(i2c): fix issues related to timeout and alive interval tick
Fixes https://github.com/espressif/esp-idf/issues/4999

Former usage of I2C_CMD_ALIVE_INTERVAL_TICK macro overrode the ticks_to_wait
parameter when the latter was too big
2024-07-01 10:16:35 +08:00
Jiang Jiang Jian
0d58e01665 Merge branch 'docs/delete_user_guide_esp32_s2_devkitm_1_v5.0' into 'release/v5.0'
docs: Delete user guide esp32-s2-devkitm-1 (v5.0)

See merge request espressif/esp-idf!31610
2024-07-01 10:14:17 +08:00
Jiang Jiang Jian
7243bf3f3b Merge branch 'fix/docs_wifi_get_sta_list_v5.0' into 'release/v5.0'
fix(docs): tcpip_adapter: Document replacement of tcpip_adapter_get_sta_list (v5.0)

See merge request espressif/esp-idf!31173
2024-07-01 10:13:27 +08:00
Jiang Jiang Jian
16521f6cba Merge branch 'docs/add_missing_usb_functions_to_esp32-c3_devkit_user_guides_v5.0' into 'release/v5.0'
Docs: Added missing USB functions to ESP32-C3 DevKit User Guides (v5.0)

See merge request espressif/esp-idf!30866
2024-07-01 10:12:47 +08:00
Jiang Jiang Jian
340b519b57 Merge branch 'docs/update_esp_vfs_notes_v5.0' into 'release/v5.0'
docs(vfs): update esp_vfs_register_fd api description (v5.0)

See merge request espressif/esp-idf!30428
2024-07-01 10:12:26 +08:00
Jiang Jiang Jian
cb870bcd6e Merge branch 'fix/bump_esp_littlefs_to_v5.0' into 'release/v5.0'
fix(storage/littlefs): Bump version to v1.14.4 (core v2.9.1) (v5.0)

See merge request espressif/esp-idf!30359
2024-07-01 10:12:02 +08:00
Rahul Tank
dc13544d53 Merge branch 'bugfix/set_correct_cb_arg_v5.0' into 'release/v5.0'
fix(nimble): Pass the correct cb arg during reconnection attempt (v5.0)

See merge request espressif/esp-idf!31720
2024-06-28 20:58:41 +08:00
Jiang Jiang Jian
55ca8a8b4a Merge branch 'bugfix/fix_esp32_cant_tx_after_tx_timeout_v5.0' into 'release/v5.0'
fix(wifi): fix esp32 unrecoverable m f issue

See merge request espressif/esp-idf!31790
2024-06-28 19:14:38 +08:00
liuning
dd4b56defc fix(wifi): fix esp32 unrecoverable m f issue 2024-06-28 15:24:24 +08:00
zhanghaipeng
eec3f541f0 fix(ble/bluedroid): Fixed BLE report event when connection fails 2024-06-28 12:00:51 +08:00
Jiang Jiang Jian
7c91b6e254 Merge branch 'bugfix/ft_scanning_failure_v50' into 'release/v5.0'
Fix scanning and connecting to FT APs(v5.0)

See merge request espressif/esp-idf!31194
2024-06-28 10:54:46 +08:00
jgujarathi
5b74fd5c43 fix(esp_wifi): Fix scanning and connecting to FT APs
- Ensure that scanning and connecting to FT capable APs in FT mode works
  as expected.
2024-06-27 16:06:54 +05:30
Island
ef922dd380 Merge branch 'bugfix/fix_some_ble_bugs_cjh_v5.0' into 'release/v5.0'
Fixed some BLE bugs 240620 (backport v5.0)

See merge request espressif/esp-idf!31648
2024-06-26 20:33:09 +08:00
Jiang Jiang Jian
f864a09ca6 Merge branch 'bugfix/l2cap_use_wrong_handle_v5.0' into 'release/v5.0'
fix(bt/bluedroid):  Fixed the issue of using the wrong handle to handle the BTA_JV_L2CAP_READ_EVT event(v5.0)

See merge request espressif/esp-idf!31281
2024-06-26 10:36:50 +08:00
Jiang Jiang Jian
b2fb9e3f5d Merge branch 'bugfix/station_ic_pmf_state_v5.0' into 'release/v5.0'
fix(wifi): Disable IC_PMF variable properly when station disconnects and always clear keys in tx_cb (Backport v5.0)

See merge request espressif/esp-idf!31637
2024-06-26 10:33:30 +08:00
Sarvesh Bodakhe
3e70b760d2 fix(wifi): Fix station PMF issue
Fix issue of station PMF not getting reset when disconnecing from PMF connection
2024-06-25 14:24:19 +05:30
zhangshuxian
42fe805d63 docs: Delete user guide esp32-s2-devkitm-1 2024-06-25 16:07:11 +08:00
Aditya Patwardhan
bf87512dea Merge branch 'fix/incorrect_console_input_decoding_wifi_prov_mgr_v5.0' into 'release/v5.0'
fix(tools/esp_prov): Fix incorrect input decoding when using console transport (v5.0)

See merge request espressif/esp-idf!31692
2024-06-25 14:50:04 +08:00
Island
04c4ec4ac3 Merge branch 'feat/optimize_bt_porting_layer_0619_v5.0' into 'release/v5.0'
Feat/optimize bt porting layer 0619 (v5.0)

See merge request espressif/esp-idf!31675
2024-06-25 14:18:53 +08:00
morris
7a81ba24e1 Merge branch 'fix/lcd_build_error_in_cpp_v5.0' into 'release/v5.0'
fix(lcd): build errors with deprecated lcd types in cpp (v5.0)

See merge request espressif/esp-idf!31680
2024-06-25 11:45:35 +08:00
Jiang Jiang Jian
22b0169be8 Merge branch 'fix/trigger_system_reset_in_brownout_isr_v5.0' into 'release/v5.0'
change(esp_system): trigger digital system reset in brownout isr (v5.0)

See merge request espressif/esp-idf!31687
2024-06-25 11:24:41 +08:00
Jiang Jiang Jian
fdc230e18c Merge branch 'fix/add_integrity_check_when_select_temporary_key_v5.0' into 'release/v5.0'
fix(bt): add integrity check when temporary link key selected(backport v5.0)

See merge request espressif/esp-idf!31701
2024-06-25 11:24:17 +08:00
Rahul Tank
4f0a43e039 fix(nimble): Pass the correct cb arg during reconnection attempt 2024-06-25 08:35:34 +05:30
Michael (XIAO Xufeng)
fbc4dfb392 Merge branch 'doc/auto_suspend_disabled_by_default_v5.0' into 'release/v5.0'
doc(flash): fix auto suspend enabled by default issue (v5.0)

See merge request espressif/esp-idf!30255
2024-06-24 23:59:37 +08:00
chenjianhua
ef3c6da507 feat(bt/bluedroid): Add definition for the reason of BLE authentication failure 2024-06-24 19:48:36 +08:00
chenjianhua
b9fb0b8907 fix(bt/bluedroid): Fixed BLE security vulnerability when using fixed IRK 2024-06-24 19:48:36 +08:00
linruihao
e575fa7b3e fix(bt): Overwrite a function in esp32c3 eco7 rom 2024-06-24 19:48:36 +08:00
chenjianhua
1b65330ac5 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(0738a61)
- Fixed BT BB interrupt allocation
- Refactor the prefix of assert print
- Fixed HCI LE set privacy mode command handle
2024-06-24 19:48:36 +08:00
chenjianhua
35e79a6437 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(eca46a0)
- Fixed adv data buffer free after restart adv
- Fixed BLE interrupt allocation using esp API
2024-06-24 19:48:36 +08:00
wuzhenghui
39e7503f8e change(esp_system): trigger digital system reset in brownout isr 2024-06-24 19:12:49 +08:00
gongyantao
0745e7d884 fix(bt): add integrity check when temporary link key selected 2024-06-24 17:51:43 +08:00
Xiao Xufeng
01560b9ca5 doc(flash): fix auto suspend enabled by default issue 2024-06-24 17:35:30 +08:00
zwl
a76076fe14 feat(bluetooth/controller): adjust bt/porting code structure and delete redundant code 2024-06-24 16:03:18 +08:00
harshal.patil
bcad36eb5a fix(tools/esp_prov): Fix incorrect input decoding when using console transport
- Closes https://github.com/espressif/esp-idf/issues/14013
2024-06-24 12:29:14 +05:30
Jiang Jiang Jian
509015cfab Merge branch 'bugfix/wpa3_sta_mem_leak_v5.0' into 'release/v5.0'
Fix a memory leak that occurs when SAE connection is interrupted (Backport v5.0)

See merge request espressif/esp-idf!31664
2024-06-24 14:09:51 +08:00
morris
38ebd9c079 fix(lcd): build errors with deprecated lcd types in cpp
Closes https://github.com/espressif/esp-idf/issues/14029
2024-06-24 14:07:00 +08:00
Marius Vikhammer
52fa8406f8 Merge branch 'contrib/github_pr_14010_v5.0' into 'release/v5.0'
fix(ulp): Write pin's output mode to the correct register (GitHub PR) (v5.0)

See merge request espressif/esp-idf!31598
2024-06-24 12:16:45 +08:00
Rahul Tank
0877ec2a48 Merge branch 'bugfix/free_memory_before_reattempt_v5.0' into 'release/v5.0'
fix(nimble): Clear resource before re-starting advertising (v5.0)

See merge request espressif/esp-idf!31628
2024-06-24 10:44:39 +08:00
Shyamal Khachane
ff6db87429 fix(esp_wifi): Fix a memory leak that occurs when SAE connection is interrupted
1. Free temporary data used by SAE before memsetting the same
2. Drop any received auth response that uses a different algorithm than the one currently in use
2024-06-21 16:38:27 +05:30
Rahul Tank
a0824ba73c fix(nimble): Clear resource before re-starting advertising 2024-06-20 11:04:42 +05:30
Island
b7382c60f9 Merge branch 'feat/put_bt_interface_code_to_rom_v5.0' into 'release/v5.0'
Feat/put bt interface code to rom (v5.0)

See merge request espressif/esp-idf!31552
2024-06-20 10:38:08 +08:00
LonerDan
1d0442bf99 fix(ulp-risc-v): Set RTC GPIO output mode in the correct register for ULP RISC-V
According to the ESP32-S2/S3 TRM, the output pin's mode is set in the RTC_GPIO_PINn_REG
by programming the RTC_GPIO_PINn_PAD_DRIVER bit. The current ULP RISC-V RTCIO driver
however, incorrectly programs the RTC_IO_TOUCH_PADn_REG register field RTC_IO_TOUCH_PADn_DRV.
This commit fixes the bug.
2024-06-19 09:02:37 +02:00
xiongweichao
6ff142be7e fix(bt/bluedroid): Fixed deadlock caused by not unlocking 2024-06-17 19:02:51 +08:00
xiongweichao
4633d09ff1 fix(bt/bluedroid): Fixed L2CAP using wrong handle
- Fixed the issue of using the wrong handle to handle the BTA_JV_L2CAP_READ_EVT event.
- Closes https://github.com/espressif/esp-idf/issues/13847
2024-06-17 19:02:51 +08:00
zwl
1c2d0d20c0 feat(bluetooth/controller): update controller api name on ESP32-C2 2024-06-17 16:44:32 +08:00
Rahul Tank
f262a271ed Merge branch 'bugfix/fix_no_mem_coex_issue_v5.0' into 'release/v5.0'
fix(nimble): Added change to handle extra memory for ext adv reattempt (v5.0)

See merge request espressif/esp-idf!31470
2024-06-14 19:06:34 +08:00
Rahul Tank
1ab61d2d33 fix(nimble): Added change to handle extra memory for ext adv reattempt 2024-06-14 12:08:02 +05:30
Abhik Roy
ed9f17e2bc fix(lwip): Fixed compilation error referencing undefined POSIX interface API
Closes https://github.com/espressif/esp-idf/issues/13577
2024-06-14 13:03:16 +10:00
Island
d156502b21 Merge branch 'bugfix/fix_ble_evt_time_v5.0' into 'release/v5.0'
fix(ble/controller): Update esp32 bt-lib (1e63e23) (v5.0)

See merge request espressif/esp-idf!31484
2024-06-14 10:43:20 +08:00
zwx
5db6aed3f4 fix(uart): remove unnecessary wait when sending message to ring buffer 2024-06-13 20:05:22 +08:00
linruihao
67eb7a79bf fix(bt/controller): Fixed assert issue caused by DPORT access 2024-06-13 17:35:22 +08:00
zhanghaipeng
3883a4e250 fix(ble/controller): Update esp32 bt-lib (1e63e23)
- Optimized GATT write and notify throughput on ESP32
- Fixed BLE connect timeout after using DTM on ESP32
- Added ke memory debug tools on ESP32
- Fixed memory leak issue when BLE SCAN and other event coexist on ESP32
2024-06-13 16:39:57 +08:00
Jiang Jiang Jian
9cceca593a Merge branch 'bugfix/fix_null_data_issue_in_mesh_v5.0' into 'release/v5.0'
fix(wifi): do not send null data when scan start/done for mesh (v5.0)

See merge request espressif/esp-idf!31376
2024-06-13 11:25:54 +08:00
Island
9e49bf80b3 Merge branch 'bugfix/fix_ble_pktlen_change_v5.0' into 'release/v5.0'
Bugfix/fix ble pktlen change (v5.0)

See merge request espressif/esp-idf!31252
2024-06-13 11:03:31 +08:00
Roland Dobai
cbb90deefe Merge branch 'refactor/avoid_using_git_v5.0' into 'release/v5.0'
fix(tools): Avoiding crashing when Git is not present in system when acquiring IDF version (v5.0)

See merge request espressif/esp-idf!31435
2024-06-12 20:04:24 +08:00
Jakub Kocka
23c9181071 fix(tools): Avoid crashing when Git is used to acquire IDF version
Closes https://github.com/espressif/esp-idf/issues/13345
2024-06-12 13:33:33 +02:00
zhangyanjiao
2f53cfd166 fix(wifi): do not send null data when scan start/done for mesh
Closes https://github.com/espressif/esp-idf/issues/13786
2024-06-12 10:06:18 +08:00
Jiang Jiang Jian
2381f35409 Merge branch 'bugfix/directed_bssid_probe_req_v50' into 'release/v5.0'
Send unicast probe requests if bssid is known during scan(v5.0)

See merge request espressif/esp-idf!30299
2024-06-07 20:28:20 +08:00
Roland Dobai
5bdcac048e Merge branch 'ci/fix_macos_runner_v5.0' into 'release/v5.0'
ci: select correct python version for mac runners (v5.0)

See merge request espressif/esp-idf!31355
2024-06-06 21:10:24 +08:00
Rahul Tank
dfe5f62c1b Merge branch 'bugfix/ble_gap_unpair_error_code_v5.0' into 'release/v5.0'
fix(nimble): Added return code in ble_gap_unpair error logs (v5.0)

See merge request espressif/esp-idf!31310
2024-06-06 14:57:47 +08:00
Abhinav Kudnar
b9205a00af fix(nimble): Added return code in ble_gap_unpair error logs 2024-06-06 10:15:38 +05:30
Jiang Jiang Jian
bc93b77f84 Merge branch 'fix/assert_in_bt_controller_v5.0' into 'release/v5.0'
fix(bt): fix some issues in bluetooth controller(backport v5.0)

See merge request espressif/esp-idf!31324
2024-06-06 11:22:45 +08:00
Fu Hanxi
135b75dd53 ci: ensure macos selected the correct python installed by pyenv 2024-06-05 16:01:58 +02:00
gongyantao
5c6c256630 fix(bt): fix some issues in bluetooth controller
1: fix return incorrect link key with hci command rd_stored_link_key
2: fix the assert triggered during APB TX
3: fix role switch LMP collision bug
2024-06-05 09:13:18 +08:00
jgujarathi
0db25e4f99 fix(esp_wifi): Send unicast probe requests if bssid is known during scan 2024-06-04 17:08:47 +05:30
Rahul Tank
c46dc8c6da Merge branch 'bugfix/explict_free_adv_data_v5.0' into 'release/v5.0'
fix(nimble): Explicitly NULL assign adv data (v5.0)

See merge request espressif/esp-idf!31291
2024-06-04 18:47:26 +08:00
Rahul Tank
73fb760c8a fix(nimble): Explicitly NULL assign adv data 2024-06-04 12:17:42 +05:30
Island
add3c94c02 Merge branch 'feat/add_hci_log_record_for_nimble_v5.0' into 'release/v5.0'
feat(bt/nimble): support hci log for nimble (backport v5.0)

See merge request espressif/esp-idf!31216
2024-06-04 14:18:56 +08:00
Jiang Jiang Jian
76d2ac0330 Merge branch 'bugfix/fix_dhcp_pool_issue_on_dhcp_server_v5.0' into 'release/v5.0'
fix(lwip): fixed the dhcp pool error on dhcp server (v5.0)

See merge request espressif/esp-idf!31265
2024-06-04 11:46:17 +08:00
Island
b6f8340101 Merge branch 'bugfix/esp32c2_fixed_some_ble_issues_master_v5.0' into 'release/v5.0'
Bugfix/esp32c2 fixed some ble issues master (v5.0)

See merge request espressif/esp-idf!31235
2024-06-04 10:22:00 +08:00
zhangyanjiao
c9e081ce00 fix(lwip): fixed the dhcp pool error on dhcp server 2024-06-03 11:34:55 +08:00
Jiang Jiang Jian
85fdb69ee7 Merge branch 'bugfix/fix_some_wifi_bugs_v5.0' into 'release/v5.0'
fix(wifi): fixed sniffer and espnow issue (v5.0)

See merge request espressif/esp-idf!31221
2024-06-03 11:03:59 +08:00
Island
432f1ff7eb Merge branch 'fix/ble_mesh_gatts_bugfix_v5.0' into 'release/v5.0'
BLE Mesh Gatts bugfix (v5.0)

See merge request espressif/esp-idf!30875
2024-06-03 10:27:10 +08:00
zhiweijian
1c834a6e6e feat(bt/nimble): support hci log for nimble 2024-06-03 09:53:15 +08:00
zhanghaipeng
846273356a fix(ble/bluedroid): Optimize BLE stack connect callback name 2024-06-02 19:26:38 +08:00
zhanghaipeng
1d8f0aec81 fix(ble/bluedroid): Fixed BLE no data length change event 2024-06-02 19:26:27 +08:00
Rahul Tank
9b7a80a5c4 Merge branch 'bugfix/copy_ext_adv_data_reattempt_v5.0' into 'release/v5.0'
fix(nimble): Use appendfrom to duplicate adv data (v5.0)

See merge request espressif/esp-idf!31227
2024-06-02 11:54:32 +08:00
Rahul Tank
f6c564115b fix(nimble): Use appendfrom to duplicate adv data 2024-06-01 20:32:18 +05:30
zwl
1f97c76d0c ble: fixed ble some issues on esp32c2 2024-05-31 17:14:43 +08:00
Island
1505232737 Merge branch 'bugfix/bleqabr24-549_v5.0' into 'release/v5.0'
fix(ble_mesh): fix issues in mesh deinit_v5.0

See merge request espressif/esp-idf!30543
2024-05-31 15:18:28 +08:00
zhangyanjiao
4b19d69596 docs(wifi): update the docmentation for mesh API 2024-05-31 14:17:14 +08:00
zhangyanjiao
2e216f6e2e fix(wifi): fixed sniffer and espnow issue
1. fix(wifi): fixed sniffer dump fcs error packets fail

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

2. fix(wifi): fixed the espnow priv parameter get error

Closes https://github.com/espressif/esp-idf/issues/13693
2024-05-31 14:13:50 +08:00
luoxu
cafc47cf07 fix(ble_mesh): Create service after service register success 2024-05-31 12:11:26 +08:00
luoxu
1121ffa55d fix(ble_mesh): fix issues in mesh deinit 2024-05-30 20:42:06 +08:00
Jiang Jiang Jian
289e886da0 Merge branch 'bugfix/ftm_fix_wrong_compensation_v5.0' into 'release/v5.0'
Fix issues in calibration and selecting FTM compensation with external AP (Backport v5.0)

See merge request espressif/esp-idf!30885
2024-05-30 20:02:35 +08:00
Jiang Jiang Jian
50ce5e9405 Merge branch 'bugfix/stop_tg_wdt_in_xpd_xtal_lightsleep_v5.0' into 'release/v5.0'
fix(esp_hw_support): stop tg wdt in xpd xtal lightsleep (v5.0)

See merge request espressif/esp-idf!31138
2024-05-30 20:01:13 +08:00
Rahul Tank
7a4adba797 Merge branch 'bugfix/restart_advertising_if_slave_23e_v5.0' into 'release/v5.0'
fix(nimble): start advertising if disconnect due to 0x3E in slave (v5.0)

See merge request espressif/esp-idf!31035
2024-05-29 21:56:19 +08:00
David Cermak
5f0a92e2e6 fix(docs): tcpip_adapter: Document replacement of tcpip_adapter_get_sta_list 2024-05-29 13:46:08 +02:00
Nachiket Kukade
2208e0dfc2 fix(esp_wifi): Fix issue in selecting FTM compensation with external AP
Additionally update FTM Compensation values with calibration
2024-05-29 16:09:45 +05:30
Rahul Tank
e049357001 fix(nimble): start advertising if disconnect due to 0x3E in slave 2024-05-29 15:40:52 +05:30
Kapil Gupta
06021b83e9 Merge branch 'bugfix/wps_scan_log_flood_v5.0' into 'release/v5.0'
fix(wpa_supplicant): Suppress RSN IE print to Verbose level (Backport v5.0)

See merge request espressif/esp-idf!31154
2024-05-29 15:43:29 +08:00
Rahul Tank
c5515d72d0 Merge branch 'feature/ble_resolve_adv_data_v5.0' into 'release/v5.0'
feat(nimble): Added API to get resolve ADV data (v5.0)

See merge request espressif/esp-idf!30953
2024-05-29 14:00:16 +08:00
Nachiket Kukade
c2123313b4 fix(wpa_supplicant): Suppress RSN IE print to Verbose level 2024-05-29 11:06:57 +05:30
Jiang Jiang Jian
5f71b65fa8 Merge branch 'bugfix/libphy_esp32s2_ant_cfg_20240523_v5.0' into 'release/v5.0'
fix(phy): update esp32s2 libphy support ant api(Backport v5.0)

See merge request espressif/esp-idf!31042
2024-05-29 10:25:31 +08:00
wuzhenghui
69bbaec19d fix(esp_hw_support/sleep): stop TG0/TG1 watchdog if XTAL not power down in lightsleep 2024-05-28 18:09:21 +08:00
wuzhenghui
941193fc03 change(esp_hw_support/sleep): improve esp32c3 systimer stall bug workaround 2024-05-28 18:08:27 +08:00
Abhinav Kudnar
b819382db2 feat(nimble): Added API to get resolve ADV data 2024-05-28 18:04:07 +08:00
muhaidong
9b7711e3fb fix(phy): update esp32s2 libphy support ant api 2024-05-28 17:37:01 +08:00
Jiang Jiang Jian
cb4d647d0c Merge branch 'bugfix/add_authmode_wpa_wpa2_wpa3_psk_v5.0' into 'release/v5.0'
esp_wifi: Handle case when AP advertises WPA, WPA2 and WPA3 securities simultaneously and other bugfixes (Backport v5.0)

See merge request espressif/esp-idf!29678
2024-05-28 17:34:18 +08:00
Alexey Lapshin
ef4a5fda2d fix(bt): fix gcc 13.1.0 warnings 2024-05-28 15:57:46 +08:00
Li Shuai
57be8d2457 fix(example): fixed app partition is too small for binary size 2024-05-28 15:57:46 +08:00
Sarvesh Bodakhe
184555d70b fix(esp_wifi): Improvements in scan and connect path
* Improvements in scan and connect path as per specifications along with
  minor bugfixes
* When AP advertises all PSK modes (WPA, WPA2 and WPA3), make sure that
  station treats it as WPA2_WPA3_PSK mixed mode.
2024-05-28 15:57:46 +08:00
Jiang Jiang Jian
2c4f0cd4f2 Merge branch 'bugfix/mldv6_report_memory_leak_v5.0' into 'release/v5.0'
fix(esp_netif): Fix mldv6 report memory leak in esp_netif(v5.0)

See merge request espressif/esp-idf!31061
2024-05-28 15:56:15 +08:00
WanqQixiang
e3a2ba8b07 fix(esp_netif): Fix mldv6 report memory leak in esp_netif 2024-05-27 17:31:33 +08:00
Island
6d288efe7c Merge branch 'feat/add_api_to_set_privacy_mode_v5.0' into 'release/v5.0'
feat(bt/bluedroid): support BLE set privacy mode (v5.0)

See merge request espressif/esp-idf!30907
2024-05-27 14:56:10 +08:00
Mahavir Jain
d962b76743 Merge branch 'feature/update_cjson_version_to_1.7.18_v5.0' into 'release/v5.0'
feat(cjson): update submodule to v1.7.18 (v5.0)

See merge request espressif/esp-idf!31017
2024-05-23 15:09:52 +08:00
Jiang Jiang Jian
bb71e79288 Merge branch 'bugfix/loadprohibited_after_bt_deinit_v5.0' into 'release/v5.0'
Fixed some coexist issues

See merge request espressif/esp-idf!31006
2024-05-23 11:02:55 +08:00
nilesh.kale
d28e807e2d feat(cjson): update submodule to v1.7.18
Changelog: https://github.com/DaveGamble/cJSON/releases/tag/v1.7.18
2024-05-22 13:35:09 +05:30
Jiang Jiang Jian
1f8b9b0433 Merge branch 'bugfix/libphy_chips_20240430_v5.0' into 'release/v5.0'
update c3 s3 libphy, fix coex bug

See merge request espressif/esp-idf!30971
2024-05-22 14:01:53 +08:00
baohongde
1d9f0a6259 fix(coex): Fixed some coexist issues
- Fixed crash issue in coexist callback
- Fixed coexist scheme status update issue
2024-05-22 11:49:59 +08:00
chenjianhua
f205edb6e9 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(a771b7c)
- Fixed assert when starting advertising due to preemption
- Fixed RPA generation after each reboot
- Fixed RPA renew timer start and stop
2024-05-22 11:49:59 +08:00
Jiang Jiang Jian
394a3f590f Merge branch 'bugfix/sae_memleak_v5.0' into 'release/v5.0'
fix(wpa_supplicant):Fix memory leak in wpa3-sae

See merge request espressif/esp-idf!30988
2024-05-22 11:46:21 +08:00
chenjianhua
8991f6912a feat(bt/bluedroid): support BLE set privacy mode 2024-05-22 10:46:33 +08:00
aditi_lonkar
6c4c3d6ef8 fix(wpa_supplicant):Fix memory leak in wpa3-sae
Closes https://github.com/espressif/esp-idf/issues/11381
2024-05-21 19:06:26 +05:30
Sergei Silnov
92af1f22c5 Merge branch 'ci/use_github_on_macos_runners_v5.0' into 'release/v5.0'
ci: use github repo for mac runners (v5.0)

See merge request espressif/esp-idf!30974
2024-05-21 18:49:13 +08:00
Aditya Patwardhan
3043a8368f Merge branch 'bugfix/fix_resetting_redirect_counter_v5.0' into 'release/v5.0'
fix: reset redirect counter for using same handler (v5.0)

See merge request espressif/esp-idf!30938
2024-05-21 17:23:01 +08:00
Fu Hanxi
048042df08 ci: make fast_template_app optional 2024-05-21 05:55:36 +02:00
Fu Hanxi
7bbe28ccc5 ci: use github repo for mac runners 2024-05-21 05:48:55 +02:00
Jiang Jiang Jian
eaef5261bf Merge branch 'bugfix/supplicant_disconnect_process_v5.0' into 'release/v5.0'
esp_wifi: Fix bug in esp_wifi_deauthenticate_internal() & wpa_supplicant: Add parameter to configure reason code of deauth frame (Backport v5.0)

See merge request espressif/esp-idf!29624
2024-05-21 11:37:51 +08:00
liuning
4ae201d0a8 update c3 s3 libphy, fix coex bug 2024-05-21 11:28:50 +08:00
Sarvesh Bodakhe
9efdcd52cc fix(wifi): fix bug in 'esp_wifi_deauthenticate_internal' and other improvements 2024-05-20 14:44:36 +05:30
Sarvesh Bodakhe
61a91afa3a fix(wpa_supplicant): Add some bugfixes in wpa_supplicant
1) Add parameter to configure reason code of deauth frame
2) Add logs to indicate MIC failure 4-Way-Handshake
3) Process RSNXE capabilities only if AP advertises them
2024-05-20 14:44:16 +05:30
Jiang Jiang Jian
b0173a1018 Merge branch 'bugfix/fix_some_wifi_bugs_240517_v5.0' into 'release/v5.0'
fix(wifi): fix some wifi issues(Backport v5.0)

See merge request espressif/esp-idf!30917
2024-05-20 13:31:03 +08:00
Harshit Malpani
52ca696335 fix: Add warning to enable LWIP_NETIF_LOOPBACK to use control socket API
Closes https://github.com/espressif/esp-idf/issues/13659
2024-05-20 10:48:41 +05:30
Harshit Malpani
54ee9bf5d6 fix: reset redirect counter for using same handler
Closes https://github.com/espressif/esp-idf/issues/13633
2024-05-20 10:47:07 +05:30
muhaidong
4ae21b7f82 fix(wifi): fixed some wifi bugs 240517
1. fix esp_wifi_set_mode() return error issue
2. fix qos encapsulated eapol issue
3. eapol arp and dhcp add flag PP_F_PER_PKT_RATE
4. fix lmac_stop_hw_txq issue
5. fix typo
6. limite number of amsdu  block in eb
7. fix recycle cache sub amsdu eb issue
8. update ba session store and restore rx ba num
9. fix multicast address qos frame by reset rx ba
10. fix lmacStopTransmit issue
11. sync multi antenna gpio register from IDF
12. clear eb to fix tx single AMPDU to some AP not reply BA when ampdu_entry single bit was set
13. fix internal set log level check fail issue
14. update esp_wifi_connect doc
15. update api esp_wifi_sta_get_rssi docs
16. add interupt lock during hardware reload of Rx link
2024-05-20 10:26:25 +08:00
muhaidong
bc6d79c84a fix(doc): update api esp_wifi_sta_get_rssic docs
Closes https://github.com/espressif/esp-idf/issues/12685
2024-05-20 10:11:48 +08:00
muhaidong
33c5194008 fix(wifi): fixed scan get ap number issue 2024-05-20 10:11:48 +08:00
muhaidong
705afe5162 fix(wifi): fixed task watchdog got triggered by esp_wifi_stop issue 2024-05-20 10:11:48 +08:00
muhaidong
a91a74d12a fix(wifi): fix multicast address qos frames issue 2024-05-20 10:11:48 +08:00
muhaidong
cd242a6684 fix(wifi): fix lmac_stop_hw_txq issue 2024-05-20 10:11:48 +08:00
muhaidong
155fe73757 fix(wifi): fix some wifi issues
1. fix qos encapsulated eapol issue
2. fixed dhcp offer and dhcp ack data rates
2024-05-20 10:11:24 +08:00
Rahul Tank
e746d29f39 Merge branch 'feature/get_local_used_addr_v5.0' into 'release/v5.0'
feat(nimble): Added API to get local used address (v5.0)

See merge request espressif/esp-idf!30759
2024-05-16 17:43:25 +08:00
Jiang Jiang Jian
d4f35fcb98 Merge branch 'fix/assert_1024_in_rwbt_isr_v5.0' into 'release/v5.0'
fix(bt/ble): fix some issues in bluetooth controller(backport v5.0)

See merge request espressif/esp-idf!30816
2024-05-16 16:44:56 +08:00
Abhinav Kudnar
63b02c9273 feat(nimble): Added API to get local used address 2024-05-16 09:47:48 +05:30
Rahul Tank
4e5e8aa10f Merge branch 'bugix/avoid_reset_extract_cb_v5.0' into 'release/v5.0'
fix(nimble): Avoid slave instance reset inside extract_cb (v5.0)

See merge request espressif/esp-idf!30490
2024-05-16 12:02:32 +08:00
wangning
d3e239e1fe docs(esp32c3): Added missing USB functions to esp32-c3 devkit user guides 2024-05-16 11:32:54 +08:00
Aditya Patwardhan
8a25d14e84 Merge branch 'feature/update_mbedtls_to_3.6.0_v5.0' into 'release/v5.0'
feat(mbedtls): updated mbedtls version from 3.5.2 to 3.6.0 (v5.0)

See merge request espressif/esp-idf!30671
2024-05-15 20:18:11 +08:00
nilesh.kale
ef7a749367 feat(mbedtls): updated mbedtls version from 3.5.2 to 3.6.0
This MR updated MbedTLS version to latest version 3.6.0.
2024-05-15 11:43:54 +05:30
Rahul Tank
377a24d319 fix(nimble): Create separate API to only extract cb info 2024-05-15 11:03:31 +05:30
Jin Cheng
2c45c9dcd2 fix(bt/controller): Parse out the correct packet types from Host parameters
- For HCI command HCI_Enhanced_Setup_Synchronous_Connection
2024-05-14 11:55:04 +08:00
gongyantao
fc17843294 fix(bt/ble): fix some issues in bluetooth controller
1: fix assert 1024 issue when bt tx and wifi coexist on esp32
2: fix ble scan backoff
3: parse out the correct packet types from host parameters for
   hci command hci_enhanced_setup_synchronous_connection
2024-05-14 10:06:57 +08:00
Roland Dobai
ae1195f04e Merge branch 'set_gdb_remotetimeout_v5.0' into 'release/v5.0'
tools(gdbinit): set remote timeout for the gdb connection (v5.0)

See merge request espressif/esp-idf!30807
2024-05-13 23:07:41 +08:00
Jiang Jiang Jian
8b6811ef45 Merge branch 'bugfix/fix_mesh_packet_tx_issue_v5.0' into 'release/v5.0'
fix(wifi): fix the tx issue when mesh packet lifetime remain equal to zero (v5.0)

See merge request espressif/esp-idf!30802
2024-05-13 22:30:52 +08:00
David Čermák
9751ab5122 Merge branch 'contrib/github_pr_13560_v5.0' into 'release/v5.0'
esp_eth: DP83848: correct link detection to use BMSR (GitHub PR) (v5.0)

See merge request espressif/esp-idf!30453
2024-05-13 21:55:13 +08:00
Erhan Kurubas
1ce2c81ea9 change(gdbinit): set remote timeout for the gdb connection 2024-05-13 13:54:53 +02:00
zhangyanjiao
43dce54bb4 fix(wifi): fix the tx issue when mesh packet lifetime remain equal to zero 2024-05-13 17:16:50 +08:00
Jiang Jiang Jian
c893fb1b2c Merge branch 'doc/update_bt_sleep_process_v5.0' into 'release/v5.0'
docs: Update the process of Bluetooth entering sleep in the sleep_modes.rst(v5.0)

See merge request espressif/esp-idf!30763
2024-05-13 11:03:46 +08:00
Jiang Jiang Jian
6a17b9c1c7 Merge branch 'bugfix/bt_bss_in_extram_v5.0' into 'release/v5.0'
fix(bt): Fix missing linker symbol when ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY enabled(backport v5.0)

See merge request espressif/esp-idf!30377
2024-05-13 11:03:07 +08:00
Island
8e81b118e2 Merge branch 'fix/idfgh-12762_v5.0' into 'release/v5.0'
fix(ble_mesh):Fixed a compatibility issue with the provisioner (v5.0)

See merge request espressif/esp-idf!30732
2024-05-10 17:14:20 +08:00
Island
ed6f245a5b Merge branch 'bugfix/BLEQABR23-798_v5.0' into 'release/v5.0'
bugfix(ble_mesh): Close BLEQABR23-798 (v5.0)

See merge request espressif/esp-idf!30647
2024-05-10 17:14:02 +08:00
Wang Meng Yang
7649270896 Merge branch 'optimize/bt_make_alarm_num_configurable_v5.0' into 'release/v5.0'
optimize(ble_mesh): Make alarm number configurable (v5.0)

See merge request espressif/esp-idf!30508
2024-05-10 15:05:48 +08:00
Wang Meng Yang
e8641f62e4 Merge branch 'bugfix/fix_hid_connection_failed_bug_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix HID connection bugs[backport 5.0]

See merge request espressif/esp-idf!30591
2024-05-10 12:18:50 +08:00
xiongweichao
1f4a2c9222 docs: Update the process of Bluetooth entering sleep in the sleep_modes.rst 2024-05-10 10:31:03 +08:00
Rahul Tank
dca1678547 Merge branch 'bugfix/free_controlle_memory_in_init_fail_v5.0' into 'release/v5.0'
fix(nimble): Free controller memory if init fails (v5.0)

See merge request espressif/esp-idf!30752
2024-05-09 23:36:56 +08:00
Rahul Tank
c211aaeeaa fix(nimble): Free controller memory if init fails 2024-05-09 12:26:04 +05:30
luoxu
aa830471f4 fix(ble_mesh):Fixed a compatibility issue with the provisioner
Closes https://github.com/espressif/esp-idf/issues/13741
2024-05-09 10:57:39 +08:00
liqigan
eb99868b56 fix(bt/bluedroid): Fix HID Device connection failed bug
Closes https://github.com/espressif/esp-idf/issues/13671
2024-05-09 09:24:16 +08:00
liqigan
a91bee2b4c fix(bt/bluedroid): Fix HID Host connection bugs
1. Fix is_orig value inconsistency for HIDH open event
2. Fix the error state for repeat connection of the same device
2024-05-09 09:24:16 +08:00
Aditya Patwardhan
1bec4902b2 Merge branch 'backport/support_tls1_3_v5.0' into 'release/v5.0'
https_mbedtls: update example to support TLS 1.3 connection

See merge request espressif/esp-idf!30607
2024-05-07 16:38:14 +08:00
Rahul Tank
c603b0126a Merge branch 'bugfix/disable_mbedtls_options_v5.0' into 'release/v5.0'
fix(nimble): Deselect MBEDTLS_ECP_RESTARTABLE when mbedTLS is used (v5.0)

See merge request espressif/esp-idf!30621
2024-05-07 12:37:53 +08:00
luoxu
d9186f52c3 bugfix(ble_mesh): Close BLEQABR23-798 2024-05-07 09:49:13 +08:00
Rahul Tank
54f171ec5c fix(nimble): Deselect MBEDTLS_ECP_RESTARTABLE when mbedTLS is used 2024-05-06 15:22:39 +05:30
Wang Mengyang
76486bbfcb change(bt): Rename linker script file names and symbol names
1. rename linker files
2. support memory release in case that ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY is enabled
3. improve the implementation of memory release
2024-05-06 17:14:58 +08:00
Wang Mengyang
eca6545ffe fix(bt): Fix missing linker symbol when ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY enabled
1. Closes https://github.com/espressif/esp-idf/issues/10427
2. add two linker script to unify linker script symbols for BT libraries
3. The memory release functions have also been simplified

fix(bt): remove unused file linker.lf
2024-05-06 17:14:55 +08:00
Jiang Jiang Jian
3b448491d3 Merge branch 'fix/increase_26mhz_esp32c2_slow_clock_calibration_wdt_threshold_v5.0' into 'release/v5.0'
fix(esp_system): increase 26Mhz esp32c2 slow clock calibration timeout watchdog threshold (v5.0)

See merge request espressif/esp-idf!30572
2024-05-06 14:06:39 +08:00
Mahavir Jain
089197ff8a Merge branch 'bugfix/nvs_enc_test_v5.0' into 'release/v5.0'
fix(tests): correct the flash write length for NVS encrypted test (v5.0)

See merge request espressif/esp-idf!30605
2024-05-06 13:32:28 +08:00
Harshit Malpani
5f18e58722 fix: Update https_mbedtls example to fix TLS v1.2 connection 2024-05-02 17:15:19 +05:30
Harshit Malpani
90d0689331 fix(esp-tls): Use TLS 1.2 and TLS 1.3 simultaneously
This commit fixes the issue with TLS 1.2 connection when TLS 1.3 is
enabled in config.
2024-05-02 17:15:08 +05:30
Harshit Malpani
1c3c89eb43 fix(esp-tls): Retry reads if using session tickets with TLS 1.3
Fixed the error that occurred while performing OTA upgrades over
TLS 1.3 connection. After handshake is completed, post-handshake message
is received and internal state is changed. While performing mbedtls_ssl_read(),
it checks handshake state and if it is not MBEDTLS_SSL_HANDSHAKE_OVER,
mbedtls_ssl_handshake is called again.
2024-05-02 17:11:50 +05:30
Mahavir Jain
1d530cc23c https_mbedtls: update example to support TLS 1.3 connection
- make server verification mandatory (previously it was optional)
- add PSA crypto init API and handling for session ticket event
- coding style fixes
2024-05-02 17:11:07 +05:30
Mahavir Jain
0b7bb679bb esp_tls: add initial support for TLS 1.3 connection 2024-05-02 17:11:01 +05:30
Mahavir Jain
c8dbdc6aa6 fix(tests): correct the flash write length for NVS encrypted test
Write only till the embedded file size in the NVS partition. Earlier
the length was kept as the whole partition size and it could result
in accessing embedded rodata beyond the MMU mapped range.
2024-05-02 16:54:56 +05:30
Wang Meng Yang
e1dfcbc567 Merge branch 'bugfix/hf_local_param_null_v5.0' into 'release/v5.0'
fix(bt/bluedroid): allocate memory for control block of HFP Audio Gateway (v5.0)

See merge request espressif/esp-idf!30442
2024-04-30 17:25:26 +08:00
wangjialiang
7d0cfb74bb feat(ble_mesh): Make alarm number configurable 2024-04-30 16:09:47 +08:00
Karl Palsson
0eef7d1934 fix(esp_eth): dp83848: correct link detection to use BMSR
Reading the link state via PHYSTS was incorrect, as it only reflects the
link state bit from BMSR.  BMSR latches link down events, and are not
cleared without being read.  (See 802.3-2008 section 2, section 22.2.4.2.13)
This leads to the original DP828xx code only supporting link up, then a
single link down event.

Switch to reading the link state via BMSR, but continuing to read the
negotiation results via PHYSTS and ANLPAR.  This is inline with
LAN8720x, RTL8201, KSZ80xx phy drivers, and other opensource drivers for
the DP838xx family of devices.

Tested on a private board with a DP83825i PHY.  No publically available
boards using the original DP83848 are known of for testing.

Signed-off-by: Karl Palsson <karl.palsson@marel.com>
2024-04-30 16:08:25 +08:00
wuzhenghui
820cc387d9 fix(esp_system): increase 26Mhz esp32c2 slow clock calibration timeout watchdog threshold 2024-04-30 11:45:20 +08:00
Island
961ca4f975 Merge branch 'bugfix/fix_ble_coex_assert_v5.0' into 'release/v5.0'
Update esp32 bt-lib (4012cfb)(backport v5.0)

See merge request espressif/esp-idf!30519
2024-04-28 10:48:07 +08:00
Island
2233d54812 Merge branch 'bugfix/fix_ble_max_attribute_value_v5.0' into 'release/v5.0'
Bugfix/fix ble max attribute value v5.0

See merge request espressif/esp-idf!30414
2024-04-28 10:37:12 +08:00
zhanghaipeng
f449df139c feat(ble/bluedroid): Support BLE command status debug log 2024-04-26 17:14:44 +08:00
zhanghaipeng
2efc1c3c7c fix(ble/controller): Update esp32 bt-lib (4012cfb)
- Fixed BLE coex assert
- Fixed BLE DTM status and tx count
2024-04-26 16:51:43 +08:00
morris
3087b28012 Merge branch 'bugfix/uart_bitrate_max_value_c2_v5.0' into 'release/v5.0'
fix(uart): correct C2 UART_BITRATE_MAX value (v5.0)

See merge request espressif/esp-idf!30461
2024-04-26 10:43:49 +08:00
morris
6371dcbcb0 Merge branch 'bugfix/gpio_drive_cap_v5.0' into 'release/v5.0'
fix(gpio): add workaround to ensure correct IO drive strength for C3 and S3 (v5.0)

See merge request espressif/esp-idf!30468
2024-04-26 10:43:29 +08:00
morris
cf4825be6f Merge branch 'fix/uart_wakeup_threshold_v5.0' into 'release/v5.0'
fix(uart): Fix mismatch wakeup rising edges required with the threshold configured (v5.0)

See merge request espressif/esp-idf!30465
2024-04-26 10:42:33 +08:00
zhanghaipeng
614b2bbd3f feat(ble/bluedroid): Support create BLE static random address and NRPA 2024-04-25 15:58:19 +08:00
zhanghaipeng
2ddb174b4e fix(ble/bluedroid): Optimized BLE SPP example for improved compatibility 2024-04-25 15:58:19 +08:00
zhanghaipeng
f0450152f2 feat(ble/bluedroid): Support BLE add device to resolving list 2024-04-25 15:58:19 +08:00
zhanghaipeng
ebf929b5f8 feat(ble/bluedroid): Support set resolvable provate address timeout by api 2024-04-25 15:58:19 +08:00
zhanghaipeng
182cbb85f8 fix(ble/bluedroid): Fixed BLE GATT max length of an attribute value 2024-04-25 15:58:19 +08:00
zhanghaipeng
1eebe9f680 fix(ble/bluedroid): Optimize BLE documentation comments to comply with Doxygen syntax 2024-04-25 15:58:19 +08:00
zhanghaipeng
327a9126c8 fix(ble/bluedroid): Optimize the BLE documentation 2024-04-25 15:58:19 +08:00
Song Ruo Jing
02d819b69b fix(uart): Fix mismatch wakeup rising edges required with the threshold configured
Closes https://github.com/espressif/esp-idf/issues/12586
2024-04-24 17:27:27 +08:00
Song Ruo Jing
94070c8651 fix(gpio): add workaround to ensure correct IO drive strength for C3 and S3 2024-04-24 17:00:06 +08:00
Song Ruo Jing
4727357067 fix(uart): correct C2 UART_BITRATE_MAX value 2024-04-24 16:20:44 +08:00
Rahul Tank
0ed5284eb9 Merge branch 'bugfix/rpa_timeout_api_v5.0' into 'release/v5.0'
fix(nimble): Expose API to set RPA Timeout (v5.0)

See merge request espressif/esp-idf!30410
2024-04-24 10:31:33 +08:00
Jin Cheng
7fa711346a fix(bt/bluedroid): allocate memory for control block of HFP Audio Gateway in its initialization when dynamic memory is wnabled 2024-04-24 08:28:45 +08:00
sonika.rathi
06ba157133 docs(vfs): update esp_vfs_register_fd api description
Closes https://github.com/espressif/esp-idf/issues/11586
2024-04-23 15:25:27 +02:00
Rahul Tank
6bdd4be339 fix(nimble): Expose API to set RPA Timeout 2024-04-23 11:58:43 +05:30
Island
fb12a68017 Merge branch 'feat/optimzie_ble_ctrl_memory_v5.0' into 'release/v5.0'
ble: support only legacy adv and slave function on esp32c2 (v5.0)

See merge request espressif/esp-idf!30336
2024-04-22 22:51:02 +08:00
zwl
423b5683d4 ble: update sdkconfig.defaults.esp32c2 file for blufi example 2024-04-22 11:47:12 +08:00
Jiang Jiang Jian
7c9bacb624 Merge branch 'bugfix/crash_after_bluedroid_deinit_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fixed controller using null pointer after bluedroid deinit(v5.0)

See merge request espressif/esp-idf!30329
2024-04-22 11:13:42 +08:00
Jiang Jiang Jian
dd61b7ed37 Merge branch 'bugfix/fix_some_ble_bugs_cjh_v5.0' into 'release/v5.0'
Fixed some BT and BLE bugs 2404 (backport v5.0)

See merge request espressif/esp-idf!30259
2024-04-22 10:48:04 +08:00
Jiang Jiang Jian
26af71d0f9 Merge branch 'doc/update_espnow_example_v5.0' into 'release/v5.0'
docs(wifi): change the magic varible from int to uint32_t on the receiving side (v5.0)

See merge request espressif/esp-idf!30309
2024-04-22 10:47:30 +08:00
Jiang Jiang Jian
3b6ee156c9 Merge branch 'feat/set_get_lpclk_src_v5.0' into 'release/v5.0'
feat(ble): Added API to get low power clock source(v5.0)

See merge request espressif/esp-idf!30109
2024-04-22 10:25:55 +08:00
Adam Múdry
09d21e3d78 fix(storage/littlefs): Bump version to v1.14.4 (core v2.9.1)
Fixes a bug which causes DivideByZero exception when the filesystem is full
2024-04-19 12:55:12 +02:00
chenjianhua
c9255fc852 feat(bt): Update bt lib for ESP32-C3 and ESP32-S3(c23ab4c)
- Support QA test vendor HCI command and event
2024-04-18 14:43:13 +08:00
baohongde
043ea1cb60 fix(ble/controller): Fixed LoadProhibited after bluetooth deinit 2024-04-18 14:43:07 +08:00
chenjianhua
49f11c53bd fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(5274796)
- Fixed extended uncoded and coded scan scheduling
- Add config for channel assessment and ping procedure
- Clear random address for extended advertising
- Add periodic advertising list check
- Fixed periodic advertising data setting with zero length
2024-04-18 14:43:00 +08:00
baohongde
0a86dd2eb3 feat(ble/controller): Add coexist schm for BLE 2024-04-18 14:31:53 +08:00
chenjianhua
fdd4f3d17c feat(bt): Update bt lib for ESP32(e314148)
- Support QA test vendor HCI command and event
2024-04-18 14:09:09 +08:00
zhanghaipeng
c9c946811c fix(bt/controller): Update bt lib for ESP32(5838b68)
- Fixed BLE scan assert
 - Fixed assert(10,0) in lld_pdu
 - Add BLE scan backoff in menuconfig
2024-04-18 14:09:09 +08:00
Jin Cheng
51c26053a4 fix(bt/controller): Use embedded assembly to get access to DPORT registers 2024-04-18 14:09:09 +08:00
zwl
0e058edb9f ble: support only legacy adv and slave function on esp32c2 2024-04-18 12:15:56 +08:00
Mahavir Jain
78af5840a1 Merge branch 'fix/incorrect_connection_closure_parttool_test_v5.0' into 'release/v5.0'
ci(otatool): fix test failure caused due to closing connection incorrectly (v5.0)

See merge request espressif/esp-idf!30293
2024-04-18 11:55:54 +08:00
Island
38aef776b6 Merge branch 'bugfix/fixed_coex_asset_on_esp32c2_v5.0' into 'release/v5.0'
Bugfix/fixed coex asset on esp32c2 v5.0

See merge request espressif/esp-idf!30303
2024-04-18 10:54:25 +08:00
xiongweichao
631aa85bdc fix(bt/bluedroid): Fixed crash after bluedroid deinit
hci_host_env.downstream_data_ready is set to NULL during bluedroid deinit,
causing the controller to use a null pointer when calling callback.
2024-04-18 10:53:11 +08:00
Island
4ae73b7fa7 Merge branch 'bugfix/fix_ble_appearance_v5.0' into 'release/v5.0'
Fixed BLE appearance category ranges (v5.0)

See merge request espressif/esp-idf!30287
2024-04-18 10:44:08 +08:00
Jiang Jiang Jian
d435059751 Merge branch 'bugfix/sdp_remove_record_no_evt_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fixed the crash caused by using illegal pointers during SDP deinit(v5.0)

See merge request espressif/esp-idf!29944
2024-04-18 10:24:58 +08:00
xiongweichao
3fd0dba1a3 feat(ble): Added API to get low power clock source 2024-04-18 10:07:39 +08:00
zhanghaipeng
e45d91c36d fix(ble/bluedroid): Fixed set BLE appearance value 2024-04-17 20:40:09 +08:00
KonstantinKondrashov
955341db98 fix(spi_flash): Fix stuck during flash operation
When a task was not pinned to a certain CPU.
2024-04-17 12:04:05 +03:00
KonstantinKondrashov
a41e037f0e feat(ipc): Adds a new no blocking IPC call 2024-04-17 12:04:05 +03:00
zhangyanjiao
b1c0260dfd docs(wifi): update the docmentation for sniffer API
Closes https://github.com/espressif/esp-idf/issues/10740
2024-04-17 16:19:54 +08:00
zhangyanjiao
7cd2be2e54 docs(wifi): change the magic varible from int to uint32_t on the receiving side
Closes https://github.com/espressif/esp-idf/issues/10912
2024-04-17 16:19:49 +08:00
zwl
c6d8d19b81 ble: fixed an occasional assertion issue in coexistence scenarios on ESP32C2 2024-04-17 15:04:51 +08:00
zwl
d10b60aab3 ble: fixed the bt cmakelist error when use nimble host only 2024-04-17 15:04:39 +08:00
harshal.patil
b62b36ffbb ci(otatool): fix test failure caused due to closing connection incorrectly 2024-04-17 10:17:07 +05:30
Jiang Jiang Jian
98d17f23ef Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20240318_v5.0' into 'release/v5.0'
feat(tools): update openocd version to v0.12.0-esp32-20240318 (v5.0)

See merge request espressif/esp-idf!30047
2024-04-17 10:44:44 +08:00
Wang Meng Yang
6d63daac84 Merge branch 'feature/add_api_to_send_vendor_hci_cmd_v5.0' into 'release/v5.0'
Feature/add api to send vendor hci cmd v5.0 (backport v5.0)

See merge request espressif/esp-idf!30227
2024-04-16 17:49:01 +08:00
Aditya Patwardhan
b99e3345a8 Merge branch 'bugfix/howsmyssl_cert_update_v5.0' into 'release/v5.0'
fix(examples): update root certificate for howsmyssl endpoint (v5.0)

See merge request espressif/esp-idf!30205
2024-04-16 11:36:41 +08:00
Jiang Jiang Jian
3fdc794f5d Merge branch 'bugfix/spp_crash_after_deint_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fixed SPP crash due to the connection not being disconnected before esp_spp_deinit was called(v5.0)

See merge request espressif/esp-idf!30083
2024-04-15 11:55:09 +08:00
Jiang Jiang Jian
14e344463a Merge branch 'bugfix/fix_coded_phy_s8_tx_issue_v5.0' into 'release/v5.0'
fix(esp_phy): fixed BLE coded phy s8 tx issue in coexistence scenarios (backport v5.0)

See merge request espressif/esp-idf!30191
2024-04-15 10:57:35 +08:00
zhiweijian
70f84cfca9 fix(ble/bluedroid): Fixed adv not restart due to disconnection reason 0x3e 2024-04-13 15:53:20 +08:00
zhiweijian
c755433922 feat(bt/common): Add bluerooth hci layer data stream record 2024-04-13 15:44:27 +08:00
zhiweijian
57665f7246 feat(bt/bluedroid): add api to setnd vendor hci command 2024-04-13 14:13:43 +08:00
zhiweijian
304be189d8 fix(ble/bluedroid): fixed bluedroid host DTM API 2024-04-13 14:13:26 +08:00
zhiweijian
1e72b8b803 feat(ble/bluedroid): Add APIs for BLE direct test mode on bluedroid host 2024-04-13 14:13:04 +08:00
Rahul Tank
94b7b50906 Merge branch 'bugfix/fix_cccd_compilation_warning_v5.0' into 'release/v5.0'
fix(nimble): Fix compilation issues when CCCD is set to 0 (v5.0)

See merge request espressif/esp-idf!30213
2024-04-12 20:15:50 +08:00
Rahul Tank
debefe9c70 fix(nimble): Fix compilation issues when CCCD is set to 0 2024-04-12 12:36:14 +05:30
Rahul Tank
a1097119d3 Merge branch 'bugfix/fix_cve_2024_24746_v5.0' into 'release/v5.0'
fix(nimble): Fix for Vulnerability CVE_2024_24746 (v5.0)

See merge request espressif/esp-idf!30201
2024-04-12 13:27:41 +08:00
Mahavir Jain
ff3ec291bb fix(examples): update root certificate for howsmyssl endpoint
This fixes CI failure seen because of cert migration of howsmyssl
endpoint from previous "DST Root CA X3" (cross-signed) to "ISRG Root X1".
2024-04-12 11:12:27 +08:00
xiongweichao
eab0acdb3c fix(bt/bluedorid): Fixed crash caused by using illegal pointer 2024-04-12 09:13:43 +08:00
xiongweichao
da2a32fbad fix(bt/bluedorid): Fixed no event when removing an invalid SDP record 2024-04-12 09:13:43 +08:00
Rahul Tank
6a10821296 fix(nimble): Fix for Vulnerability CVE_2024_24746 2024-04-11 20:02:49 +05:30
Rahul Tank
79b48fe84c Merge branch 'feat/add_data_len_chg_evt_v5.0' into 'release/v5.0'
fix(nimble): Add support for data length change evt (v5.0)

See merge request espressif/esp-idf!30184
2024-04-11 21:21:25 +08:00
linruihao
96d40b1c82 fix(esp_phy): update phylib for C3, S3 and C2
- fixed BLE coded phy s8 tx issue in coexistence scenarios
- fixed ESP32-C3 and ESP32-S3 BLE RX issue
- optimized ESP32-C3 and ESP32-S3 light sleep current
2024-04-11 17:42:39 +08:00
Rahul Tank
c34f7a95be fix(nimble): Add support for data length change evt 2024-04-11 12:34:05 +05:30
Rahul Tank
5b861dff3d Merge branch 'bugfix/fix_dtm_num_pkt_size_v5.0' into 'release/v5.0'
fix(nimble): Fix the size of num_packets in dtm event (v5.0)

See merge request espressif/esp-idf!30146
2024-04-11 13:38:14 +08:00
morris
e03ab4e178 Merge branch 'bugfix/fix_rtc_cntl_v5.0' into 'release/v5.0'
[S3]fix(rtc_cntl_reg.h): fix RTC_CNTL_SLAVE_PD_M

See merge request espressif/esp-idf!30169
2024-04-11 11:40:02 +08:00
xiongweichao
350a248a7f fix(bt/bluedroid): Fix SPP crash after deinit
- The disconnection event comes up after spp disable is completed, so a null pointer is used.
2024-04-10 20:11:27 +08:00
zlq
d9bf45a998 [S3]fix(rtc_cntl_reg.h): fix RTC_CNTL_SLAVE_PD_M 2024-04-10 19:47:29 +08:00
morris
370a2e8883 Merge branch 'bugfix/gptimer_alarm_config_in_sram_v5.0' into 'release/v5.0'
feat(gptimer): check the alarm config is not in flash (v5.0)

See merge request espressif/esp-idf!30136
2024-04-10 14:17:45 +08:00
Rahul Tank
5b5777f40c fix(nimble): Fix the size of num_packets in dtm event 2024-04-09 19:02:48 +05:30
morris
6ea1f92a20 feat(gptimer): check the alarm config is not in flash
related to https://github.com/espressif/esp-idf/issues/13543
2024-04-09 17:33:35 +08:00
Island
bc4c4fe06a Merge branch 'bugfix/ble_mesh_heartbeat_filter_add_v5.0' into 'release/v5.0'
Fix(ble_mesh):fix error condition for heartbeat filter adding node address (v5.0)

See merge request espressif/esp-idf!29988
2024-04-09 16:11:50 +08:00
morris
5faf0a6c71 Merge branch 'bugfix/unsupport_partial_receive_on_esp32_v5.0' into 'release/v5.0'
fix(rmt): Fix the RMT RX filter not working correctly on esp32/s2 (v5.0)

See merge request espressif/esp-idf!30079
2024-04-09 14:29:18 +08:00
Marius Vikhammer
19304c5769 Merge branch 'fix/heap-calloc-fail-wrong-size_v5.0' into 'release/v5.0'
fix(heap): Wrong size propagated in alloc fail callback of heap_caps_calloc() (backport v5.0)

See merge request espressif/esp-idf!30092
2024-04-09 12:05:15 +08:00
Rahul Tank
0ef284ebb3 Merge branch 'bugfix/set_correct_addr_type_v5.0' into 'release/v5.0'
fix(nimble): Set correct peer_addr during reattempt connection (v5.0)

See merge request espressif/esp-idf!30057
2024-04-08 21:15:38 +08:00
Guillaume Souchere
cdf5414302 fix(heap): Wrong size propagated in alloc fail callback
Propagate `n * size` as the size of the failed allocation
instead of just `size` when heap_caps_calloc() fails since
`n * size` is the actual number of bytes that the heap
component tried to allocate.
2024-04-08 08:45:18 +02:00
luoxu
7927e444b2 fix(ble_mesh): fix error condition for heartbeat filter adding node address 2024-04-08 14:28:21 +08:00
morris
b27d69dcad fix(rmt): fix the counting clock used by rx filter on esp32/s2
is always APB, independent to the channel clock selection

Closes https://github.com/espressif/esp-idf/issues/13510
2024-04-08 11:51:02 +08:00
Jiang Jiang Jian
ff4dba8e8c Merge branch 'feat/set_cpu_freq_after_pm_config_changed_v5.0' into 'release/v5.0'
fix(esp_pm): update CPU frequency immediately after updating pm_config (v5.0)

See merge request espressif/esp-idf!30070
2024-04-08 10:29:53 +08:00
Alexey Gerenkov
57bd998cda feat(tools): update openocd version to v0.12.0-esp32-20240318 2024-04-08 03:34:24 +08:00
Jiang Jiang Jian
9feaecf3f3 Merge branch 'bugfix/variable_length_rsnxe_v50' into 'release/v5.0'
Expands maximum size of RSNXE IE to 255(v5.0)

See merge request espressif/esp-idf!30054
2024-04-07 15:50:03 +08:00
wuzhenghui
c6186be010 fix(esp_pm): update CPU frequency immediately after updating pm_config
Closes https://github.com/espressif/esp-idf/issues/13492
2024-04-07 14:50:25 +08:00
Jiang Jiang Jian
397c1d9903 Merge branch 'bugfix/wps_crash_issue_v5.0' into 'release/v5.0'
fix(wpa_supplicant): Avoid dereferencing a dangling function pointer in WPS (Backport v5.0)

See merge request espressif/esp-idf!29736
2024-04-07 10:11:34 +08:00
Rahul Tank
ff8f433583 fix(nimble): Remove extra code in reattempt connection 2024-04-05 22:03:14 +05:30
jgujarathi
598e99fd4d fix(rsnxe): Expands maximum size of RSNXE IE to 255
- Allows for RSNXE IE to be processed as a variable length upto
255 bytes, changing the earlier max of 20.
2024-04-05 11:36:34 +05:30
Jiang Jiang Jian
947479155d Merge branch 'feature/refactor_ftm_code_v5.0' into 'release/v5.0'
Refactor and improve FTM code (Backport v5.0)

See merge request espressif/esp-idf!29856
2024-04-03 20:50:18 +08:00
Jiang Jiang Jian
55fc8e6ae4 Merge branch 'bugfix/aud-5252_v5.0' into 'release/v5.0'
backport v5.0: fix the issue of modem hang caused by incorrect configuration of power and isolate signals

See merge request espressif/esp-idf!30009
2024-04-03 18:56:45 +08:00
Jiang Jiang Jian
2fcd97dd25 Merge branch 'bugfix/dpp_auth_deinit_crash_v50' into 'release/v5.0'
Ensure dpp auth structure is deinited in dpp task context(v5.0)

See merge request espressif/esp-idf!29837
2024-04-03 17:29:40 +08:00
Marius Vikhammer
c73e7c6c7d Merge branch 'bugfix/log_wrap_around_cache_generation_counter_v5.0' into 'release/v5.0'
fix(log): Fix wrap-around of cache generation counter (v5.0)

See merge request espressif/esp-idf!29940
2024-04-03 16:31:48 +08:00
Rahul Tank
d859008ae5 Merge branch 'feat/add_vs_hci_cmd_evt_v5.0' into 'release/v5.0'
feat(nimble): Add APIs to handle vs HCI commands and events (v5.0)

See merge request espressif/esp-idf!29997
2024-04-03 14:41:32 +08:00
Nachiket Kukade
252c6d5ca7 feat(esp_wifi): Refactor and improve FTM code
Update wifi libs with below -

1. Break FTM State Machine code into separate functions
2. Use dynamic allocation for FTM session to save memory
3. Add API to get FTM report instead of event based mechanism
4. Add FTM Request retry and comeback support
2024-04-03 11:25:49 +05:30
Island
2796f0162f Merge branch 'bugfix/ble_bugfix_for_esp32c2' into 'release/v5.0'
ble: update esp32c2 lib to 7a428d35

See merge request espressif/esp-idf!29991
2024-04-03 12:39:55 +08:00
Sarvesh Bodakhe
3847822531 fix(wpa_supplicant): Improve execution flow for WPS registrar public APIs
Make sure that WPS registrar public APIs do not modify supplicant
data in application task context. Execute API functionlity in eloop
context to prevent protential race conditions.
2024-04-03 11:33:54 +08:00
Sarvesh Bodakhe
c24b840ce7 fix(wifi): Avoid dereferencing a dangling function pointer in WPS supplicant
Avoid dereferencing a dangling function pointer in 'eap_server_sm_deinit()'.
This issue arises when hostap unregisteres EAP methods before it removes
the server state machine for station.
2024-04-03 11:33:54 +08:00
Li Shuai
3b4d27669d fix(esp_hw_support): fixed modem hang caused by incorrect configuration of power and isolate signals 2024-04-03 10:53:13 +08:00
Jiang Jiang Jian
3cf0a49d52 Merge branch 'fix/rd_stored_link_key_error_v5.0' into 'release/v5.0'
fix(bt): fix some issues in bt controller(backport v5.0)

See merge request espressif/esp-idf!29976
2024-04-03 10:22:57 +08:00
jgujarathi
969605c7c2 fix(wpa_supplicant): Cancel offchannel listen operations before sending dpp fail
- Ensure that offchannel listening operations are cancelled before sending dpp
  fail events
2024-04-03 10:20:54 +08:00
jgujarathi
0f1c0d27c8 fix(wpa_supplicant): Ensure dpp auth structure is deinited in dpp task context
- Ensure that the dpp auth data gets deinited only in DPP task context to ensure
  that there are no concurrency issues in usage of DPP auth data.
2024-04-03 10:20:54 +08:00
Rahul Tank
94bc0df521 feat(nimble): Add APIs to handle vs HCI commands and events 2024-04-02 15:22:57 +05:30
Rahul Tank
6da2547588 Merge branch 'bugfix/revamp_reconn_scheme_v5.0' into 'release/v5.0'
fix(nimble): Cleanup code in connection reconnection implementation (v5.0)

See merge request espressif/esp-idf!29966
2024-04-02 15:07:47 +08:00
cjin
4d648f6330 feat(ble): add cca related config in c6, h2 and c2 2024-04-02 12:12:24 +08:00
cjin
4c05613b33 change(ble): support ble light sleep using ext 32k xtal on C2 2024-04-02 12:11:16 +08:00
zwl
909393befc ble: update esp32c2 lib to 7a428d35 2024-04-02 12:04:43 +08:00
gongyantao
f3133d1590 fix(bt): fix some issues in bt controller
1: fixed the incorrect timeing in reporting HCI_Link_Key_Type_Changed.
2: fixed the incorrect iv value during resuming encryption.
3: fixed the incorrect return with hci command rd_stored_link_key.
2024-04-02 09:39:32 +08:00
Rahul Tank
9ac19fbad6 fix(nimble): Change reconnection scheme 2024-04-01 17:23:29 +05:30
Jiang Jiang Jian
9d1abd72e5 Merge branch 'bugfix/fix_call_to_header_event_callback_v5.0' into 'release/v5.0'
fix: Fix call to event_handler on on_header state of HTTP Client (v5.0)

See merge request espressif/esp-idf!29956
2024-04-01 19:50:09 +08:00
Harshit Malpani
9c092a3b78 Revert "fix(esp_http_client): Call event_handler after header value is received"
This reverts commit 04ac8e43db.

Fixes https://github.com/espressif/esp-idf/issues/13497
Fixes https://github.com/espressif/esp-idf/issues/13097
2024-04-01 13:21:00 +05:30
Omar Chebib
157f7b438b change(espcoredump): save RAM space by placing constants in flash
All the log messages of espcoredump component used to be in DRAM, which would
lower the available RAM space for the user application. Since the cache is always
enabled after an exception, constants can be put in flash.
2024-04-01 15:30:45 +08:00
Jiang Jiang Jian
2486b6b39b Merge branch 'bugfix/bootloader_custom_rtc_data_crc_v5.0' into 'release/v5.0'
fix(bootloader): add legacy retained memory CRC calculation (backport v5.0)

See merge request espressif/esp-idf!28938
2024-04-01 14:59:01 +08:00
Jiang Jiang Jian
987752fcff Merge branch 'bugfix/fix_some_wifi_coexist_issue_v5.0' into 'release/v5.0'
bugfix/fix some wifi coexist issue v5.0

See merge request espressif/esp-idf!29911
2024-04-01 14:31:56 +08:00
Jiang Jiang Jian
ad8111253a Merge branch 'change/add_convt_from_hci_state_to_esp_state_v5.0' into 'release/v5.0'
change(bt/bluedroid): Use BTC util to convert HCI status to ESP status (v5.0)

See merge request espressif/esp-idf!29923
2024-04-01 14:19:44 +08:00
Konstantin Kondrashov
1e7830e57b fix(log): Fix wrap-around of cache generation counter
Closes https://github.com/espressif/esp-idf/issues/6516
2024-03-29 17:32:21 +03:00
Rahul Tank
46976bdcb7 Merge branch 'bugfix/handle_missing_free_v5.0' into 'release/v5.0'
fix(nimble): Handle missing free in application (v5.0)

See merge request espressif/esp-idf!29889
2024-03-29 21:02:43 +08:00
liuning
3a0cf2c03a feat(coex): support to scan long time on channel, fix coexist sync issue 2024-03-28 21:09:28 +08:00
liuning
8be1213da6 example: add custom partition table for mesh manual networking 2024-03-28 20:43:16 +08:00
liuning
e428e1a9ce feat(coex): improve Wi-Fi connecting compatibility at coexistence 2024-03-28 20:43:12 +08:00
liuning
12d2d95b94 fix(clk): clear all lpclk source at clk init 2024-03-28 20:41:58 +08:00
Rahul Tank
ceac0c1487 fix(nimble): Handle missing free in application 2024-03-28 08:51:43 +05:30
Jin Cheng
54d0912307 change(bt/bluedroid): Use BTC util to convert HCI status to ESP status 2024-03-28 11:05:22 +08:00
Island
a463942e14 Merge branch 'bugfix/fix_ble_power_save_ci_v5.0' into 'release/v5.0'
fix(ble): fix conn error of ble power save ci test(v5.0)

See merge request espressif/esp-idf!29824
2024-03-27 10:31:17 +08:00
Martin Vychodil
0b71bfa1c0 Merge branch 'bugfix/sdspi_acmd41_arg_v5.0' into 'release/v5.0'
fix(sdmmc): fixes for card initialization (ACMD41) (v5.0)

See merge request espressif/esp-idf!29378
2024-03-27 04:48:03 +08:00
Ivan Grokhotkov
b1b1d5473a fix(sdmmc): extend the maximum number of retries of ACMD41
According to the application note in SD Card Physical Specification:

> The host shall set ACMD41 timeout more than 1 second to abort repeat
of issuing ACMD41 when the card does not indicate ready. The timeout
count starts from the first ACMD41 which is set voltage window
in the argument.

Previously, the timeout was exactly one second, and this caused
certain larger-capacity cards to "time out", because they couldn't
finish initialization process in time.
2024-03-26 11:41:34 +01:00
Ivan Grokhotkov
383048b19f fix(sdmmc): use correct argument for ACMD41 in SPI mode
ACMD41 argument is different between SD mode and SPI mode.
In SPI mode, the only non-zero bit may be the HCS bit. Unlike the SD
mode, the bits reflecting the host's OCR should be zero.
Previously, we used to set these bits the same way as for the SD mode.
This has caused certain cards to fail initializing, apparently their
controllers have checked the ACMD41 argument more strictly and refused
to finish initialization, resulting in an error such as

    sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107

(Note that this error may have other causes than the one fixed in
this commit. For example, if the card doesn't have a sufficient and
stable power supply, it may also fail to complete the internal
initialization process, and will never clear the busy flag in R1
response.)

Closes https://github.com/espressif/esp-idf/issues/6686
Closes https://github.com/espressif/esp-idf/issues/10542
2024-03-26 11:41:34 +01:00
Aditya Patwardhan
4a7eab3d13 Merge branch 'fix/support_gcm_soft_fallback_for_non_aes_ciphers_v5.0' into 'release/v5.0'
fix(mbedtls/gcm): Add support for software fallback for non-AES ciphers in a GCM operation (v5.0)

See merge request espressif/esp-idf!29257
2024-03-26 17:20:27 +08:00
Marius Vikhammer
de5efa53c0 Merge branch 'fix/log_buffer_v5.0' into 'release/v5.0'
fix(log): Fixed incorrect argument type in hexdump log functions (v5.0)

See merge request espressif/esp-idf!29778
2024-03-26 12:05:10 +08:00
cjin
4ad40cc9d5 fix(ble): fix ci ble powe save test addresss error 2024-03-25 15:59:38 +08:00
Island
4171186f8e Merge branch 'bugfix/BT-3491_v5.0' into 'release/v5.0'
bugfix(ble_mesh): Avoid provisioner handling messages from nodes that have...(v5.0)

See merge request espressif/esp-idf!28051
2024-03-25 12:11:31 +08:00
Jakob Hasse
9c82da9a27 fix(log): Fixed incorrect argument type in hexdump log functions
Closes https://github.com/espressif/esp-idf/issues/13347
Thanks @matthew-8925
2024-03-21 15:11:29 +08:00
Rahul Tank
300d4bfef1 Merge branch 'bugfix/bonding_across_reboot_v5.0' into 'release/v5.0'
fix(nimble): Added support for deleting the oldest bonded device across reboot (v5.0)

See merge request espressif/esp-idf!29764
2024-03-21 13:38:18 +08:00
wangjialiang
92aebb963a update invalid links in the ble mesh example documentation 2024-03-21 11:13:14 +08:00
luoxu
2abccdb3d3 bugfix(ble_mesh): Avoid provisioner handling messages from nodes that have already left the network. 2024-03-21 11:13:14 +08:00
Roland Dobai
2c0efb84ed Merge branch 'refactor/idf_tools_version_v5.0' into 'release/v5.0'
refactor(idf_tools): IDF version is acquired only from version or header file (backport v5.0)

See merge request espressif/esp-idf!29744
2024-03-20 20:24:14 +08:00
Darshan Dobariya
fd1c60b9f9 fix(nimble): Added support for deleting the oldest bonded device across reboot (v5.0) 2024-03-20 15:14:04 +05:30
Jakub Kocka
c8f8185561 refactor(idf_tools): IDF version is acquired only from version or header file
Closes https://github.com/espressif/esp-idf/issues/13385
2024-03-20 07:59:58 +01:00
Martin Vychodil
9daa8eff45 Merge branch 'fix/wl_fatfsgen_safe_mode_v5.0' into 'release/v5.0'
fix(storage/fatfs): make wl_fatfsgen.py safe mode aware (v5.0)

See merge request espressif/esp-idf!29730
2024-03-20 14:37:40 +08:00
Marius Vikhammer
170cfde551 Merge branch 'bugfix/ringbuf_getsize_v5.0' into 'release/v5.0'
fix(esp_ringbuf): fix flash function prvGetFreeSize called from IRAM ISR

See merge request espressif/esp-idf!29699
2024-03-20 11:51:33 +08:00
morris
1cb07eb253 Merge branch 'bugfix/fix_adc_reset_issue_on_legacy_v5.0' into 'release/v5.0'
fix(adc): fix adc continuous get less results beacuse do not reset apb clk(legacy) (v5.0)

See merge request espressif/esp-idf!28334
2024-03-20 10:05:17 +08:00
Tomáš Rohlínek
3404830524 fix(storage/fatfs): make wl_fatfsgen.py safe mode aware 2024-03-19 13:59:33 +01:00
Jiang Jiang Jian
f2d351d75b Merge branch 'fix/fatfs_sdmmc_triming_v5.0' into 'release/v5.0'
fix(storage/fatfs): check whether sdcard supports trimming (v5.0)

See merge request espressif/esp-idf!28337
2024-03-19 14:20:57 +08:00
Jiang Jiang Jian
55adcbf919 Merge branch 'bugfix/struct_init_order_blemesh_v5.0' into 'release/v5.0'
ble_mesh: example: fix the structure init order to meet C++ requirements(backport v5.0)

See merge request espressif/esp-idf!28930
2024-03-19 14:20:22 +08:00
Jiang Jiang Jian
a82f02ae47 Merge branch 'feat/move_ag_cb_malloc_to_btc_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Moved the memory allocation of HF AG control blocks to BTC module (v5.0)

See merge request espressif/esp-idf!29633
2024-03-19 14:19:52 +08:00
Jiang Jiang Jian
3b1ec55e7b Merge branch 'doc/update_espnow_doc_v5.0' into 'release/v5.0'
docs(wifi): Updated the LMK description in ESP-NOW (v5.0)

See merge request espressif/esp-idf!29671
2024-03-19 14:19:25 +08:00
Jiang Jiang Jian
94d2ac6a2d Merge branch 'bugfix/cve-2023-52160_v5.0' into 'release/v5.0'
fix(wpa_supplicant): (PEAP client) Update Phase 2 auth requirements (v5.0)

See merge request espressif/esp-idf!29677
2024-03-19 14:19:04 +08:00
Jiang Jiang Jian
75873b4a21 Merge branch 'bugfix/make_coexist_callback_safe_v5.0' into 'release/v5.0'
fix(bt/controller): Fixed some bugs in esp32 bt controller (v5.0)

See merge request espressif/esp-idf!29684
2024-03-19 14:18:13 +08:00
Omar Chebib
4a22a5b764 fix(esp_ringbuf): fix flash function prvGetFreeSize called from IRAM ISR
* Closes https://github.com/espressif/esp-idf/issues/13378
2024-03-18 13:39:39 +08:00
linruihao
9277a80293 fix(bt/controller): Fixed some bugs in esp32 bt controller
1. fixed crash issue in coexist callback
2. fixed wrong LMP message send when expect peer device increase tx power to max
2024-03-15 19:08:58 +08:00
Roland Dobai
914d893c5c Merge branch 'fix/fix_curses_py312_v5.0' into 'release/v5.0'
Fix Access Violation Error on Windows with Python 3.12 (v5.0)

See merge request espressif/esp-idf!29511
2024-03-15 16:19:57 +08:00
Kapil Gupta
34121bdeac fix(wpa_supplicant): (PEAP client) Update Phase 2 auth requirements
The previous PEAP client behavior allowed the server to skip Phase 2
authentication with the expectation that the server was authenticated
during Phase 1 through TLS server certificate validation. Various PEAP
specifications are not exactly clear on what the behavior on this front
is supposed to be and as such, this ended up being more flexible than
the TTLS/FAST/TEAP cases. However, this is not really ideal when
unfortunately common misconfiguration of PEAP is used in deployed
devices where the server trust root (ca_cert) is not configured or the
user has an easy option for allowing this validation step to be skipped.

Change the default PEAP client behavior to be to require Phase 2
authentication to be successfully completed for cases where TLS session
resumption is not used and the client certificate has not been
configured. Those two exceptions are the main cases where a deployed
authentication server might skip Phase 2 and as such, where a more
strict default behavior could result in undesired interoperability
issues. Requiring Phase 2 authentication will end up disabling TLS
session resumption automatically to avoid interoperability issues.

Allow Phase 2 authentication behavior to be configured with a new phase1
configuration parameter option:
'phase2_auth' option can be used to control Phase 2 (i.e., within TLS
tunnel) behavior for PEAP:
 * 0 = do not require Phase 2 authentication
 * 1 = require Phase 2 authentication when client certificate
   (private_key/client_cert) is no used and TLS session resumption was
   not used (default)
 * 2 = require Phase 2 authentication in all cases
2024-03-15 13:22:22 +05:30
zhangyanjiao
693ceaba3c docs(wifi): Updated the LMK description in ESP-NOW
Closes https://github.com/espressif/esp-idf/issues/12976
2024-03-15 15:14:11 +08:00
Jiang Jiang Jian
1bd6dffbef Merge branch 'bugfix/fix_maximum_value_of_config_rtc_clk_cal_cycles_bug_v5.0' into 'release/v5.0'
ESP All Chip: fixed the maximum value of config RTC_CLK_CAL_SYCLES bug (v5.0)

See merge request espressif/esp-idf!29650
2024-03-15 11:19:14 +08:00
Jiang Jiang Jian
343560e1c5 Merge branch 'bugfix/fix_s3_bbpll_cali_fail_bug_v5.0' into 'release/v5.0'
fix: fix s3 bbpll calibration fail bug (v5.0)

See merge request espressif/esp-idf!29646
2024-03-15 11:18:45 +08:00
Jiang Jiang Jian
155eb11672 Merge branch 'bugfix/fix_fastmem_slowmem_lost_data_bug_v5.0' into 'release/v5.0'
[C3/S3]Fix sleep fast_mem & slow_mem may lost bug (v5.0)

See merge request espressif/esp-idf!29642
2024-03-15 11:18:14 +08:00
hongshuqing
44815d75eb fix: fix_maximum_value_of_config_rtc_clk_cal_cycle_bug 2024-03-14 16:22:39 +08:00
InfiniteYuan
5f11da04b0 ble_mesh: example: fix the structure init order to meet C++ requirements
Closes https://github.com/espressif/esp-idf/issues/8110
2024-03-14 16:20:36 +08:00
InfiniteYuan
d5f11597e6 ble_mesh: stack: fix the structure init order to meet C++ requirements 2024-03-14 16:20:36 +08:00
hongshuqing
64a99ef412 fix: fix s3 bbpll cali fail bug 2024-03-14 15:45:43 +08:00
chaijie@espressif.com
9a3a74463a fix: fix sleep fast_mem & slow_mem may lost bug 2024-03-14 15:18:57 +08:00
Jin Cheng
baf45b004e feat(bt/bluedroid): Moved the memory allocation of HF AG control blocks to BTC module 2024-03-14 10:53:48 +08:00
Rahul Tank
2769144e64 Merge branch 'contrib/github_pr_13034_v5.0' into 'release/v5.0'
docs(nimble): Fixed typo in examples/bluetooth/nimble/blehr/README (GitHub PR) (v5.0)

See merge request espressif/esp-idf!29617
2024-03-14 03:03:06 +08:00
Martin Vychodil
05a45e9c96 Merge branch 'bugfix/nvs_lock_initi_and_multipage_blob_v5.0' into 'release/v5.0'
Bugfix/nvs Improved handling of BLOB during unreliable power environment and concurrent data access scenarios (v5.0)

See merge request espressif/esp-idf!29322
2024-03-13 23:06:23 +08:00
morris
09d7bb4ffb Merge branch 'bugfix/fix_flash_encryption_rom_c3_v5.0' into 'release/v5.0'
fix(spi_flash): Fix issue that flash encryption failed while rom_impl config is enabled (backport v5.0)

See merge request espressif/esp-idf!29352
2024-03-13 21:32:12 +08:00
Alex Verschoot
c9c10b14d8 Update README.md
Fix typo
2024-03-13 17:09:41 +05:30
Aditya Patwardhan
822399516c Merge branch 'bugfix/update_disabling_hmac_jtag_method_v5.0' into 'release/v5.0'
fix(esp_hw_support): update hmac toggle method due to discrepency in ROM code (v5.0)

See merge request espressif/esp-idf!29532
2024-03-13 19:25:09 +08:00
Rahul Tank
20792606de Merge branch 'bugfix/reconnect_host_based_v5.0' into 'release/v5.0'
fix(nimble): Added ble_host_rpa_enabled flag for address resoultion for esp32 (v5.0)

See merge request espressif/esp-idf!29572
2024-03-13 12:26:24 +08:00
radek.tandler
27f432eb05 fix(nvs): Adopted CMakeLists for nvs_host_test of IDF v5.0 2024-03-12 13:28:02 +01:00
harshal.patil
c84dca6e7d fix(tcp_transport): Fix coverity report regarding tcp_transport 2024-03-12 13:48:06 +05:30
harshal.patil
f7b3cd6cbd ci(mbedtls/gcm): Added test to verify software fallback for non-AES cipher GCM operations 2024-03-12 13:47:50 +05:30
harshal.patil
c367de40ba fix(mbedtls/gcm): Add support for software fallback for non-AES ciphers in a GCM operation
- Even if the config MBEDTLS_HARDWARE_AES is enabled, we now support fallback
to software implementation of GCM operations when non-AES ciphers are used.
2024-03-12 13:47:25 +05:30
Roland Dobai
e334aa0cfa Merge branch 'feature/export_bat_exit_codes_v5.0' into 'release/v5.0'
feat(tools): produce correct err code in install/export .bat scripts (v5.0)

See merge request espressif/esp-idf!29546
2024-03-12 15:12:38 +08:00
nilesh.kale
14d7caa921 fix(esp_hw_support): update hmac toggle method due to discrepency in ROM code
Need to update the HMAC enable/disable method due to discrepancy in ROM code
across different targets for the esp_hmac_disable() API.
2024-03-12 12:24:51 +05:30
Darshan Dobariya
a00e268c70 fix(nimble): Added ble_host_rpa_enabled flag for address resoultion for esp32 (v5.0) 2024-03-12 12:20:05 +05:30
Rahul Tank
d39db5ede8 Merge branch 'feat/ble_gap_dev_auth_v5.0' into 'release/v5.0'
feat(nimble): Authorize or deauthorize a BLE device for a connection (v5.0)

See merge request espressif/esp-idf!29241
2024-03-12 12:51:29 +08:00
Jiang Jiang Jian
d388c85fd2 Merge branch 'bugfix/fix_some_ble_bugs_cjh_v5.0' into 'release/v5.0'
Fixed some BLE bugs 2403 (backport v5.0)

See merge request espressif/esp-idf!29467
2024-03-12 11:01:32 +08:00
Jiang Jiang Jian
ffdd5dc2fa Merge branch 'bugfix/fix_some_ble_bugs_240310_v5.0' into 'release/v5.0'
Bugfix/fix some ble bugs 240310 v5.0(backport v5.0)

See merge request espressif/esp-idf!29519
2024-03-12 11:01:14 +08:00
Jiang Jiang Jian
edaff79b9a Merge branch 'bugfix/fix_smart_config_bssid_set_issue_v5.0' into 'release/v5.0'
fix(wifi): fix smart config bssid set issue(Backport v5.0)

See merge request espressif/esp-idf!29528
2024-03-12 10:59:53 +08:00
Marek Fiala
929ad0ef91 feat(tools): produce correct err code in export/install .bat scripts
Plus unify labels to begin with underscore
2024-03-11 10:03:27 +01:00
Darshan Dobariya
5a0a8a2c82 feat(nimble): Authorize or deauthorize a BLE device for a connection (v5.0) 2024-03-11 10:24:01 +05:30
Rahul Tank
9aaa048dfc Merge branch 'bugfix/handle_callout_free_in_deinit_v5.0' into 'release/v5.0'
fix(nimble): Handle memory leak in callout deinit (v5.0)

See merge request espressif/esp-idf!29461
2024-03-11 12:52:59 +08:00
muhaidong
b2d49b6d00 fix(wifi): fix smart config bssid set issue 2024-03-11 11:40:15 +08:00
Jiang Jiang Jian
c286a416ba Merge branch 'bugfix/fix_esp_wifi_scan_start_memory_leakage_issue_v5.0' into 'release/v5.0'
fix(wifi): fix esp_wifi_scan_start memory leakage issue(Backport v5.0)

See merge request espressif/esp-idf!29477
2024-03-11 11:19:31 +08:00
Omar Chebib
1e8b9f8b9c fix(bootloader): add legacy retained memory CRC calculation
* Closes https://github.com/espressif/esp-idf/issues/12849

In former versions of ESP-IDF, the user custom memory data in the retained memory
was taken into account during the CRC calculation. This was changed in a later
commit, the custom memory was ignored, therefore this can seen as a breaking change.
This commit gives the possibility to choose between the former (legacy) or
new way of calculating the CRC.
2024-03-11 11:03:06 +08:00
zhanghaipeng
af28f8cfb5 fix(ble/bluedroid): Fixed BLE BLE periodic advertising parameter check 2024-03-10 20:04:44 +08:00
zhanghaipeng
3221583d2f fix(ble/bluedroid): Fixed BLE crash when repeatedly initialize and deinitialize host 2024-03-10 20:04:44 +08:00
Rahul Tank
9f47994989 fix(nimble): Handle memory leak in callout deinit 2024-03-08 20:31:46 +05:30
Rahul Tank
2365dd1635 Merge branch 'bugfix/gap_connect_failed_with_0x0d_v5.0' into 'release/v5.0'
fix(nimble): Revise the help section for the Kconfig macro BLE_RPA_TIMEOUT (v5.0)

See merge request espressif/esp-idf!29494
2024-03-08 22:44:07 +08:00
Jan Beran
5b9a0a3379 fix(menuconfig): Prevent Access violation on Windows with Python 3.12
Closes https://github.com/espressif/esp-idf/issues/13232
2024-03-08 14:25:49 +01:00
radek.tandler
5ae6eade3d fix(nvs): Fixed Page::findItem performance degradation caused by wrong condition before hash map use
The condition enabling use of hash map when page is searched for Item was modified
to correct the bug introduced by commit addressing delete of any BLOB_INDEX Items.
This correction returns the performance of findItem to the state before previous change.
2024-03-08 13:05:48 +01:00
Martin Vychodil
8c7a8283a9 Merge branch 'update/littlefs_demo_example_v5.0_v2' into 'release/v5.0'
LittleFS demo example added & Update/littlefs demo example (v5.0) v2

See merge request espressif/esp-idf!29451
2024-03-08 19:47:40 +08:00
Abhinav Kudnar
ff4004f977 fix(nimble): Revise the help section for the Kconfig macro BLE_RPA_TIMEOUT 2024-03-08 11:33:39 +05:30
chenjianhua
727e351b35 feat(bt/bluedroid): Add ext adv and privacy status check 2024-03-08 09:29:55 +08:00
thekurtovic
221d33cee0 fix(bt/bluedroid): Fixed "reprot" typo in esp_ble_gap_ext_adv_reprot_t 2024-03-08 09:29:55 +08:00
Raghu Saxena
1c2adf4201 fix(bt/example): Use correct struct type 2024-03-08 09:29:55 +08:00
Joshua
c3aa6c6700 fix(bt/blufi): Fixed BluFi module link error(C++ hybrid compilation) 2024-03-08 09:29:55 +08:00
chenjianhua
380679a387 fix(bt/bluedroid): Fixed crash when calculating GATTS database hash 2024-03-08 09:29:55 +08:00
chenjianhua
12d7e0467f fix(bt): Update bt lib for ESP32(5ea2fca)
- Fixed HCI command status event sending for disconnect command
- Fixed LE transmitter test command param check
2024-03-08 09:29:55 +08:00
Jin Cheng
b4cb3e5744 fix(bt/controller): Fixed 3 esp32 bt controller bugs
update esp32 bt-lib (952debf4)

1. Increased the length of queue for coexist requestions
2. fix(bt/controller): Cleared BT SNIFF when no connections exists
3. fix(bt/controller): Corrected a typo in coex module
2024-03-08 09:29:55 +08:00
chenjianhua
02544b8386 fix(bt): Update bt lib for ESP32(2de69f3)
- Fixed HCI command status event send when LLCP busy
2024-03-08 09:29:55 +08:00
Rahul Tank
39a07ff440 Merge branch 'bugfix/add_esp_timer_get_expiry_time_v5.0' into 'release/v5.0'
fix(nimble): Add support for esp_timer_get_expiry_time to nimble porting layer (v5.0)

See merge request espressif/esp-idf!29464
2024-03-07 21:49:33 +08:00
muhaidong
0f3286aa92 fix(wifi): fix esp_wifi_scan_start memory leakage issue
Closes https://github.com/espressif/esp-idf/issues/10693
2024-03-07 17:43:57 +08:00
Rahul Tank
8fcba94795 fix(nimble): Add support for esp_timer_get_expiry_time to nimble porting layer 2024-03-07 11:24:21 +05:30
Rahul Tank
b6b820fdc9 Merge branch 'bugfix/addr_resol_for_esp32_v5.0' into 'release/v5.0'
fix(nimble): Added the check to prevent address resolution in case of identity addr for esp32 ( v5.0)

See merge request espressif/esp-idf!29345
2024-03-07 12:05:53 +08:00
Adam Múdry
e45760ad72 feat: LittleFS bump version to 1.14.2 2024-03-07 01:29:42 +01:00
Adam Múdry
f44f6378ed feat: LittleFS bump version to 1.13.0 2024-03-07 01:19:33 +01:00
sonika.rathi
e67d8b5fe8 feat(example/storage/littlefs): add LittleFS demo example 2024-03-07 01:19:24 +01:00
Martin Vychodil
1909ac5e7a Merge branch 'revert-2809d47a' into 'release/v5.0'
Revert "Merge branch 'update/littlefs_demo_example_v5.0' into 'release/v5.0'"

See merge request espressif/esp-idf!29444
2024-03-07 04:30:00 +08:00
Martin Vychodil
f68a7bc76b Revert "Merge branch 'update/littlefs_demo_example_v5.0' into 'release/v5.0'"
This reverts merge request !28453
2024-03-06 18:41:31 +01:00
Marius Vikhammer
e6c0672e4f Merge branch 'docs/usb_host_stack_config_v5.0' into 'release/v5.0'
USB host: host stack configiuration docs backport to v5.0

See merge request espressif/esp-idf!28774
2024-03-06 15:36:47 +08:00
Island
54517f039e Merge branch 'feature/ble_mesh_example_light_driver_v5.0' into 'release/v5.0'
feat: replace lightdriver, and support more chips in ble mesh examples(backport v5.0)

See merge request espressif/esp-idf!28921
2024-03-06 14:10:03 +08:00
Abhinav Kudnar
a3d5d1155b fix(nimble): Added the check to prevent address resolution in case of identity addr for esp32 2024-03-05 14:50:20 +05:30
Michael (XIAO Xufeng)
0ce1c1b494 Merge branch 'feature/add_new_pkg_and_flash_psram_efuses_v5.0' into 'release/v5.0'
feat(efuse): Add flash&psram efuses for S3 (v5.0)

See merge request espressif/esp-idf!29144
2024-03-05 10:47:08 +08:00
Jiang Jiang Jian
f934022760 Merge branch 'contrib/github_pr_13294_v5.0' into 'release/v5.0'
Flush rgb lcd PSRAM framebuffers after allocation (GitHub PR) (v5.0)

See merge request espressif/esp-idf!29395
2024-03-05 10:45:06 +08:00
Jiang Jiang Jian
5ff53bf799 Merge branch 'bugfix/esp_intr_free_v5.0' into 'release/v5.0'
fix(esp_hw_support): Fix esp_intr_free when task has no core affinity (v5.0)

See merge request espressif/esp-idf!29195
2024-03-05 10:42:45 +08:00
Rahul Tank
17de25948c Merge branch 'bugfix/increase_reattempt_conn_count_v5.0' into 'release/v5.0'
fix(nimble): Increase range of reattempt connection count (v5.0)

See merge request espressif/esp-idf!29342
2024-03-04 19:44:44 +08:00
Martin Vychodil
2809d47a80 Merge branch 'update/littlefs_demo_example_v5.0' into 'release/v5.0'
LittleFS demo example added (v5.0)

See merge request espressif/esp-idf!28453
2024-03-04 19:35:52 +08:00
Markus Ebner
0252c793d2 fix(esp_lcd): Flush rgb lcd PSRAM framebuffers after allocation
Flush PSRAM framebuffers after allocation to avoid visual corruption.

Merges https://github.com/espressif/esp-idf/pull/13294
Closes https://github.com/espressif/esp-idf/issues/13293
2024-03-04 17:41:30 +08:00
Cao Sen Miao
d8f505751e fix(spi_flash): Fix issue that flash encryption failed while rom_impl config is enabled
The issue is `esp_flash_write_encryped` function in ROM on ESP32C3, ESP32S3
calls legacy implementation, which uses old configuration. And this causes
write fails.
The solution in this commit is to compile and link this function(and related)
in IRAM instead of the ROM one.
The IRAM cost increases around 1.2KB after the fix
2024-03-04 11:55:50 +08:00
morris
76ea0115c2 Merge branch 'bugfix/usb_host_usbh_callback_misses_action_v5.0' into 'release/v5.0'
fix(usb): Fix bug where usbh_process() misses an event (v5.0)

See merge request espressif/esp-idf!29366
2024-03-04 11:38:04 +08:00
Jiang Jiang Jian
d409df4bfb Merge branch 'contrib/github_pr_12867_v5.0' into 'release/v5.0'
fix(esp32): Removed rogue semicolon in #define in esp_smartconfig.h (GitHub PR) (v5.0)

See merge request espressif/esp-idf!29113
2024-03-04 10:44:28 +08:00
Jiang Jiang Jian
597a7d107c Merge branch 'bugfix/fix_ble_max_reconnect_v5.0' into 'release/v5.0'
fix(ble/bluedroid): Update maximum BLE reconnection attempts configuration(backport v5.0)

See merge request espressif/esp-idf!29222
2024-03-04 10:43:39 +08:00
Michael (XIAO Xufeng)
50fc2bf6ad Merge branch 'bugfix/hpm_dc_default_disabled_v5.0' into 'release/v5.0'
spi_flash: fixed issue that enabling HPM-DC by default may cause app unable to restart (v5.0)

See merge request espressif/esp-idf!28113
2024-03-04 10:25:43 +08:00
Xiao Xufeng
31201cc947 doc(spi_flash): hide unsupported optional features 2024-03-03 23:11:43 +08:00
Xiao Xufeng
c32a56fe3b spi_flash: fixed issue that enabling HPM-DC by default may cause app unable to restart 2024-03-03 23:11:43 +08:00
Rahul Tank
ae0beef801 Merge branch 'bugfix/add_adv_itvl_range_check_v5.0' into 'release/v5.0'
fix(nimble): Add adv interval min/max range check (v5.0)

See merge request espressif/esp-idf!28853
2024-03-01 18:18:07 +08:00
Marius Vikhammer
f00e5a042f Merge branch 'ci/new-known_failure_cases_workflow(v5.0)' into 'release/v5.0'
ci: change known_failure_cases workflow(v5.0)

See merge request espressif/esp-idf!27964
2024-03-01 15:04:04 +08:00
Darian Leung
8277243522 fix(usb): Fix bug where usbh_process() misses an event
This commit fixes a bug where if multiple concurrent USBH API calls trigger
multiple events on the same device, some events will be lost. As a result,
those lost events don't get processed by the subsequent usbh_process() call.
2024-03-01 14:24:39 +08:00
David Čermák
1a4825955d Merge branch 'feature/mmd_access_v5.0' into 'release/v5.0'
esp_eth: Add functions to access PHY using MDIO (v5.0)

See merge request espressif/esp-idf!28841
2024-02-29 22:30:49 +08:00
David Čermák
13959f258b Merge branch 'bugfix/ip101_reset_timing_v5.0' into 'release/v5.0'
fix(esp_eth): ip101-specific reset_hw to match reset timings from datasheet (v5.0)

See merge request espressif/esp-idf!29013
2024-02-29 21:24:12 +08:00
David Čermák
f74639952e Merge branch 'bugfix/eth_link_reset_v5.0' into 'release/v5.0'
fix(esp_eth): Fixed Ethernet link reset when Ethernet is stopped (v5.0)

See merge request espressif/esp-idf!29330
2024-02-29 19:32:32 +08:00
David Čermák
539f326fd2 Merge branch 'ci/enable_ip101_jobs_v5.0' into 'release/v5.0'
ci(esp_eth): enabled Ethernet ip101 jobs (v5.0)

See merge request espressif/esp-idf!28606
2024-02-29 19:28:18 +08:00
Rahul Tank
41a50ca5ce fix(nimble): Increase range of reattempt connection count 2024-02-29 15:58:07 +05:30
Simon H
515f085f70 fix(esp_wifi): Remove semicolon from SMARTCONFIG_START_CONFIG_DEFAULT
Removed rogue semicolon from SMARTCONFIG_START_CONFIG_DEFAULT() macro. This
fixes build issues when this macro is used via C++ brace initialization.

Closes https://github.com/espressif/esp-idf/pull/12867

[Darian Leung: Updated commit message]
Signed-off-by: Darian Leung <darian@espressif.com>
2024-02-29 17:59:51 +08:00
Rahul Tank
effd2ededb fix(nimble): Add adv interval min/max range check (v5.0) 2024-02-29 11:02:41 +05:30
Jiang Jiang Jian
702853c00e Merge branch 'bugfix/esp32c2_eap_auth_v5.0' into 'release/v5.0'
fix(wifi): Added low heap usage Kconfig option for eap enterprise (v5.0)

See merge request espressif/esp-idf!28826
2024-02-29 11:24:50 +08:00
Jiang Jiang Jian
1e8aa6c8b6 Merge branch 'bugfix/mbo_api_flag_v5.0' into 'release/v5.0'
fix(wpa_supplicant):Add MBO config flag for mbo apis(v5.0)

See merge request espressif/esp-idf!28696
2024-02-29 11:24:31 +08:00
Ondrej Kosta
3d90c7755f fix(esp_eth): Fixed Ethernet link reset when Ethernet is stopped 2024-02-28 15:50:30 +01:00
radek.tandler
56cb47be79 fix(nvs): Improved lockig mechanism for initialization phase 2024-02-28 12:43:51 +01:00
radek.tandler
12d8abde53 fix(nvs): eraseMultiPageBlob to robustly delete all related BLOB_DATA records and respect VER_ANY 2024-02-28 12:43:51 +01:00
radek.tandler
6cd48e0e91 fix(nvs): corrected findItem to return BLOB_DATA when chunkIndex = CHUNK_ANY 2024-02-28 12:43:51 +01:00
radek.tandler
4b16c95883 fix(nvs): added check and erase of mismatched BLOB_DATA on init 2024-02-28 12:43:51 +01:00
Ivan Grokhotkov
2321decd98 fix(nvs): prevent out of bounds write if blob data is inconsistent 2024-02-28 12:43:50 +01:00
Island
b1992f1b84 Merge branch 'bugfix/ble_update_lib_20240223_v5.0' into 'release/v5.0'
update lib on release/v5.0

See merge request espressif/esp-idf!29208
2024-02-28 16:54:25 +08:00
Jiang Jiang Jian
a1dad7ef57 Merge branch 'bugfix/fix_issues_in_wifi_and_lwip_v5.0' into 'release/v5.0'
fix(wifi): fixed issues in wifi and lwip (v5.0)

See merge request espressif/esp-idf!29201
2024-02-28 16:35:17 +08:00
Jiang Jiang Jian
d80aa9f5b2 Merge branch 'bugfix/encrypted_flash_write_safe_addr_v5.0' into 'release/v5.0'
fix(spi_flash): check for safe write address in encrypted flash API (v5.0)

See merge request espressif/esp-idf!29206
2024-02-28 11:06:48 +08:00
Jiang Jiang Jian
022e57e255 Merge branch 'docs/rf_coexistence_api_guides_support_esp32c2_v5.0' into 'release/v5.0'
Docs: RF coexistence api guides support esp32c2 (v5.0)

See merge request espressif/esp-idf!29216
2024-02-28 11:06:18 +08:00
Jiang Jiang Jian
5952e6ccaf Merge branch 'bugfix/spi_eth_recv_alloc_v5.0' into 'release/v5.0'
fix(esp_eth): improved SPI Ethernet _alloc_recv_buf error handling (v5.0)

See merge request espressif/esp-idf!29084
2024-02-28 11:04:19 +08:00
xuxiao
f12a5394cc feat(example): modify iperf sdkconfig to imporve iperf performance 2024-02-28 10:59:21 +08:00
Abhik Roy
0e9f7aac87 fix(lwip): Fixed debug format, added ci test config
Detailed description of the changes:
  - lwip_debug: Fixed string format error in ip6 and napt (espressif/esp-lwip@f5c43549)
  - dns: fix init with only ipv4 enabled (espressif/esp-lwip@5aab73d7)
2024-02-28 10:59:21 +08:00
zhangyanjiao
99093b8743 feat(lwip): add fall back dns config in menuconfig 2024-02-28 10:59:21 +08:00
zhangyanjiao
ce93d231e9 fix(wifi): fixed scan and mesh deinit issues
1. update scan ap number when clear scan ap records
2. wait for child disconnect when mesh deinit
2024-02-28 10:59:21 +08:00
aditi_lonkar
7c65911c18 fix(wpa_supplicant):Add MBO config flag for mbo apis 2024-02-28 10:37:57 +08:00
Kapil Gupta
c62022b312 fix(wifi): add low memory options for eap enterprise 2024-02-28 10:37:40 +08:00
Jiang Jiang Jian
462dfaf45c Merge branch 'change/reduce_usage_of_iram_when_bt_in_single_mode_v5.0' into 'release/v5.0'
change(bt/bluedroid): Redirect app functions in controller based on the bluetooth mode(backport v5.0)

See merge request espressif/esp-idf!29226
2024-02-28 10:35:38 +08:00
Rahul Tank
ee8edad531 Merge branch 'bugfix/move_count_v5.0' into 'release/v5.0'
fix(nimble): Fix compilation issue in nimble for -O2 flag (v5.0)

See merge request espressif/esp-idf!29074
2024-02-28 09:10:59 +08:00
Roland Dobai
cdae7acb1f Merge branch 'feat/bump_up_pre_commit_hook_v5.0' into 'release/v5.0'
fix: Bump up pre-commit hooks version (v5.0)

See merge request espressif/esp-idf!29254
2024-02-27 17:43:28 +08:00
Darshan Dobariya
9e34b224b1 fix(nimble): Fix compilation issue in nimble for -O2 flag 2024-02-27 13:54:50 +05:30
Rahul Tank
0e56e20eeb Merge branch 'bugfix/fix_out_of_order_messages_causing_dos_v5.0' into 'release/v5.0'
fix(nimble): Out of order messages during SMP causing DOS vulnerability (v5.0)

See merge request espressif/esp-idf!28939
2024-02-27 16:15:46 +08:00
Sumeet Singh
a125c073a0 fix(nimble): Out of order messages during SMP causing DOS vulerability (v5.0) 2024-02-27 10:56:40 +05:30
Rahul Tank
f60c9f1659 Merge branch 'bugfix/nimble_host_clean_up_api_v5.0' into 'release/v5.0'
fix(nimble): Added API to get current stack operation status (v5.0)

See merge request espressif/esp-idf!28858
2024-02-27 13:23:22 +08:00
zwl
3389b68ba9 bugfix(ble) : fixed some ble issues on ESP32-C2 2024-02-27 09:12:29 +08:00
zwl
69b6af9ea9 ble(update):
Update c2 lib to 79be7ec9
2024-02-27 09:12:29 +08:00
zhanghaipeng
b354d97795 fix(ble/bluedroid): Update maximum BLE reconnection attempts configuration 2024-02-27 09:12:12 +08:00
KonstantinKondrashov
f6925f12a0 fix(esp_hw_support): Fix esp_intr_free when taks has no core affinity
Closes https://github.com/espressif/esp-idf/issues/12608
2024-02-26 12:08:46 +02:00
Jan Beran
706b1f555f fix: Bump up pre-commit hooks version 2024-02-26 10:35:06 +01:00
Rahul Tank
3211fa200e fix(nimble): Added API to get current stack operation status (v5.0) 2024-02-26 12:08:18 +05:30
morris
1ddc3564b8 Merge branch 'feature/rmt_encoder_memory_allocator_v5.0' into 'release/v5.0'
feat(rmt): added a help function for allocating encoder memory (v5.0)

See merge request espressif/esp-idf!28792
2024-02-26 13:58:47 +08:00
gongyantao
9b605ab112 change(bt/bluedroid): Redirect app functions in controller based on the bluetooth mode 2024-02-23 19:07:12 +08:00
linruihao
c57f0f45da docs: update rf coexistenct api guides
1. support esp32c2
2. fix inconsistency between CN and EN docs of rf coexistence
3. adjust the visibility of some contents based on soc_caps
2024-02-23 17:01:14 +08:00
linruihao
99237104ba fix(esp_coex): add support_coexistence soc_caps for esp32c2 2024-02-23 16:41:52 +08:00
Jiang Jiang Jian
2ed1e79d9a Merge branch 'bugfix/fix_coex_lib_circular_dependency_v5.0' into 'release/v5.0'
fix(esp_coex): fix circular dependency issue on esp32 (v5.0)

See merge request espressif/esp-idf!29174
2024-02-23 15:04:17 +08:00
Mahavir Jain
f01e9be6d5 Merge branch 'fix/build_failure_when_hardware_gcm_is_disabled_v5.0' into 'release/v5.0'
fix(mbedtls/gcm): Fix build failure when config `MBEDTLS_HARDWARE_GCM` is disabled (v5.0)

See merge request espressif/esp-idf!29069
2024-02-23 14:47:49 +08:00
Rahul Tank
6977aa0583 Merge branch 'feat/add_dtm_function_support_v5.0' into 'release/v5.0'
feat(nimble): Add APIs to support BLE DTM functions (v5.0)

See merge request espressif/esp-idf!27144
2024-02-23 12:48:29 +08:00
Mahavir Jain
5ac48e7468 fix(spi_flash): check for safe write address in encrypted flash API 2024-02-23 12:42:46 +08:00
harshal.patil
74eb2add93 fix(mbedtls/gcm): Avoid using GCM hardware when config MBEDTLS_HARDWARE_GCM is disabled 2024-02-23 11:26:21 +08:00
harshal.patil
9f461c010b fix(mbedtls/gcm): Fix build failure when config MBEDTLS_HARDWARE_GCM is disabled 2024-02-23 11:26:21 +08:00
Jiang Jiang Jian
66d71efb87 Merge branch 'bugfix/update_spp_doc_v5.0' into 'release/v5.0'
docs(bt/bluedroid): update API documents of SPP (v5.0)

See merge request espressif/esp-idf!29172
2024-02-23 11:15:03 +08:00
Jiang Jiang Jian
7a649e80c1 Merge branch 'feat/support_get_bluedroid_status_v5.0' into 'release/v5.0'
Support get status of bluedroid host (backport v5.0)

See merge request espressif/esp-idf!28883
2024-02-23 10:55:14 +08:00
Jiang Jiang Jian
f6be88415f Merge branch 'bugfix/fix_double_free_coc_v5.0' into 'release/v5.0'
fix(nimble): Removed double free of packet (v5.0)

See merge request espressif/esp-idf!29033
2024-02-23 10:50:56 +08:00
Jiang Jiang Jian
6992b536e4 Merge branch 'bugfix/fix_blufi_deinit_v5.0' into 'release/v5.0'
Blufi : Corrected blufi host deinit API (v5.0)

See merge request espressif/esp-idf!29001
2024-02-23 10:50:31 +08:00
Jiang Jiang Jian
646658a564 Merge branch 'bugfix/fix_dangling_pointer_in_remove_bond_list_section_v5.0' into 'release/v5.0'
fix(bt/bluedroid): fix dangling pointer issue when logging removed section (backport v5.0)

See merge request espressif/esp-idf!28963
2024-02-23 10:49:27 +08:00
Jiang Jiang Jian
48570f5466 Merge branch 'bugfix/ble_mesh_deinit_reinit_v5.0' into 'release/v5.0'
feat: ble mesh: improve ble mesh deinit when nimble enable(backport v5.0)

See merge request espressif/esp-idf!28924
2024-02-23 10:49:03 +08:00
Jiang Jiang Jian
1cc35f0bdc Merge branch 'bugfix/ble_mesh_ble_advtype_v5.0' into 'release/v5.0'
ble_mesh: update ble mesh ble adv type(backport v5.0)

See merge request espressif/esp-idf!28915
2024-02-23 10:47:45 +08:00
Jiang Jiang Jian
d253654f0f Merge branch 'bugfix/ble_bug_backport_20240205_v5.0' into 'release/v5.0'
Bugfix/ble bug backport 20240205 (backport v5.0)

See merge request espressif/esp-idf!28898
2024-02-23 10:47:06 +08:00
Jiang Jiang Jian
0c555c9fbc Merge branch 'bugfix/fix_dtm_tx_count_v5.0' into 'release/v5.0'
Update bt lib for ESP32-C3 and ESP32-S3(30b57c45)(backport v5.0)

See merge request espressif/esp-idf!28878
2024-02-23 10:45:16 +08:00
Jiang Jiang Jian
6d5f4bcda6 Merge branch 'feat/use_esp_debug_backend_pkg' into 'release/v5.0'
Replace 'debug_backend' with 'esp-debug-backend' from PyPi

See merge request espressif/esp-idf!28820
2024-02-23 10:42:38 +08:00
Jiang Jiang Jian
91ed63ef02 Merge branch 'feature/supplicant_bss_extmem_v5.0' into 'release/v5.0'
WiFi: Add support to move supplicant BSS to external memory (v5.0)

See merge request espressif/esp-idf!28745
2024-02-23 10:41:41 +08:00
Jiang Jiang Jian
153b81b546 Merge branch 'bugfix/spp_disc_connect_btqabr2023_156_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fixed SPP connection failure(v5.0)

See merge request espressif/esp-idf!28543
2024-02-23 10:40:41 +08:00
morris
7c88240e38 feat(rmt): added a help function for allocating encoder memory
The encoder memory location should respect the RMT_MEM_ALLOC_CAPS,
which is affected by some Kconfig options, like ISR_IRAM_SAFE

Closes https://github.com/espressif/esp-idf/issues/13032
2024-02-23 10:29:31 +08:00
morris
b721f9cd09 Merge branch 'bugfix/fix_incorrect_regbase_name_of_i2s_v5.0' into 'release/v5.0'
fix(i2s): fixed incorrect reg base name on C3 (v5.0)

See merge request espressif/esp-idf!28632
2024-02-23 10:28:41 +08:00
morris
e6d25871f1 Merge branch 'contrib/github_pr_12963_v5.0' into 'release/v5.0'
fix misformatted link (GitHub PR) (v5.0)

See merge request espressif/esp-idf!28756
2024-02-23 10:27:46 +08:00
morris
e9fa7a9f06 Merge branch 'bugfix/mcpwm_reset_generator_gpio_v5.0' into 'release/v5.0'
fix(mcpwm): reset GPIO used by generator after delete (v5.0)

See merge request espressif/esp-idf!28833
2024-02-23 10:27:10 +08:00
morris
7146c557e9 Merge branch 'feature/bytes_encoder_config_update_v5.0' into 'release/v5.0'
feat(rmt): support update bytes encoder configurations at runtime (v5.0)

See merge request espressif/esp-idf!28383
2024-02-23 10:26:01 +08:00
morris
fcc7bcbfc7 Merge branch 'contrib/github_pr_13020_v5.0' into 'release/v5.0'
fix (esp_lcd): Don't assume panels are 16bit in VSYNC restart logic (GitHub PR) (v5.0)

See merge request espressif/esp-idf!28813
2024-02-23 10:25:42 +08:00
Roland Dobai
21abe3eda6 Merge branch 'fix/py_dep_check_v5.0' into 'release/v5.0'
fix(tools): catch more general errors in python dependency checker (v5.0)

See merge request espressif/esp-idf!29165
2024-02-23 01:10:08 +08:00
Fu Hanxi
c40c612cf5 Merge branch 'ci/limit_idf_build_apps_to_1.x_5.0' into 'release/v5.0'
ci: limit idf-build-apps version to 1.x in pre-commit config file (5.0)

See merge request espressif/esp-idf!28829
2024-02-22 20:55:05 +08:00
Konstantin Kondrashov
4c2eec029f feat(efuse): Adds support for alternative efuse names 2024-02-22 13:31:28 +02:00
Peter Dragun
575e924d61 fix(tools): catch more general errors in python dependency checker 2024-02-22 11:33:52 +01:00
KonstantinKondrashov
a66baa1984 feat(efuse): Add flash&psram efuses for S3 2024-02-22 11:40:33 +02:00
Roland Dobai
cd36f43f09 Merge branch 'feature/python-reorder-imports-instead-isort_v5.0' into 'release/v5.0'
feat: Use python-reorder-imports instead of isort (v5.0)

See merge request espressif/esp-idf!28733
2024-02-22 17:32:47 +08:00
Marius Vikhammer
2caab9344e Merge branch 'docs/add_cannonical_url_v5.0' into 'release/v5.0'
docs(build): add cannonical stable url to all docs (v5.0)

See merge request espressif/esp-idf!28849
2024-02-22 17:32:34 +08:00
Marius Vikhammer
422bb72993 Merge branch 'bugfix/linenoise_calculates_negative_prompt_len_v5.0' into 'release/v5.0'
fix(console): Fixed linenoise prompt length calculation (v5.0)

See merge request espressif/esp-idf!28528
2024-02-22 17:32:01 +08:00
Roland Dobai
760587ab0d Merge branch 'feature/python-reorder-imports-instead-isort_v5.0' into 'release/v5.0'
feat: Use python-reorder-imports instead of isort (v5.0)

See merge request espressif/esp-idf!28733
2024-02-22 17:30:59 +08:00
Mahavir Jain
68c450df47 Merge branch 'feature/conservative_key_revocation_in_secure_boot_v5.0' into 'release/v5.0'
feat: Add API to verify the bootloader and application image before revoking... (v5.0)

See merge request espressif/esp-idf!28490
2024-02-22 17:15:24 +08:00
Mahavir Jain
5af8e8890d Merge branch 'bugfix/fix_http_auth_without_qop_v5.0' into 'release/v5.0'
fix(esp_http_client): Fix http digest auth without qop (v5.0)

See merge request espressif/esp-idf!28759
2024-02-22 17:15:15 +08:00
Mahavir Jain
534e3ad1fa Merge branch 'bugfix/ota_anti_rollback_checks_2_v5.0' into 'release/v5.0'
feat(bootloader_support): Read secure_version under sha256 protection (v5.0)

See merge request espressif/esp-idf!29061
2024-02-22 17:13:17 +08:00
Mahavir Jain
96e3e4c589 Merge branch 'feature/update_mbedtls_v5.0' into 'release/v5.0'
feat(mbedtls): updated mbedtls version from 3.5.0 to 3.5.2 (v5.0)

See merge request espressif/esp-idf!28894
2024-02-22 17:12:39 +08:00
Aditya Patwardhan
14ddc194bd Merge branch 'feat/flash_enc_encrypt_app_image_of_size_image_length_v5.0' into 'release/v5.0'
feat(bootloader_support): Encrypt only the app image instead of the whole partition (v5.0)

See merge request espressif/esp-idf!28267
2024-02-22 17:06:42 +08:00
linruihao
bc5addf826 fix(esp_coex): fix circular dependency issue on esp32
Closes https://github.com/espressif/esp-idf/issues/13113
2024-02-22 16:52:37 +08:00
Jin Cheng
7e4995d92c docs(bt/bluedroid): update API documents of SPP 2024-02-22 09:57:47 +08:00
Aditya Patwardhan
7ef4d6b769 Merge branch 'update/version_5_0_6' into 'release/v5.0'
Update version to 5.0.6

See merge request espressif/esp-idf!29118
2024-02-21 16:41:56 +08:00
Mahavir Jain
1620858985 fix(bootloader_support): check the secure version only for app image
Secure version in the image header is only available for the application
image. However, for certain security workflows, bootloader verifies
itself (own image) and hence the secure version check during that must be
avoided.

Regression introduced in recent commit-id: 3305cb4d

Tested that both secure boot and flash-enc workflows work correctly
with the anti-rollback scenario.
2024-02-20 11:18:28 +02:00
Aditya Patwardhan
bcca689866 change(version): Update version to 5.0.6 2024-02-20 10:03:13 +05:30
Ondrej Kosta
62a2b27082 fix(esp_eth): improved SPI Ethernet _alloc_recv_buf error handling 2024-02-16 14:43:53 +01:00
Mahavir Jain
f2743707b8 fix(ota): additional checks for secure version in anti-rollback case
Some additional checks related to secure version of the application in
anti-rollback case have been added to avoid any attempts to boot lower
security version but valid application (e.g., passive partition image).

- Read secure_version under sha256 protection

- First check has been added in the bootloader to ensure correct secure
  version after application verification and loading stage. This check
  happens before setting up the flash cache mapping and handling over
  the final control to application. This check ensures that application
  was not swapped (e.g., to lower security version but valid image) just
  before the load stage in bootloader.

- Second check has been added in the application startup code to ensure
  that currently booting app has higher security version than the one
  programmed in the eFuse for anti-rollback scenario. This will ensure
  that only the legit application boots-up on the device for
  anti-rollback case.
2024-02-15 15:14:51 +02:00
Bogdan Kolendovskyy
e703fad818 esp_eth: Add functions to access PHY using MDIO
Specifically:
  - Set/get address
  - Read/write data at address with specified MDIO access function
  - Read/write both address and data with a single call
2024-02-13 12:46:36 +01:00
Rahul Tank
146cf22f76 fix(nimble): Removed double free of packet 2024-02-13 14:42:42 +05:30
Bogdan Kolendovskyy
749191016b fix(esp_eth): ip101-specific reset_hw to match reset timings from datasheet
IP101 requires 10ms reset assertion time and 10ms post-reset delay to properly initialize.
2024-02-09 15:01:03 +01:00
Roshan Bangar
93176970d9 Blufi : fix blufi deinit 2024-02-08 17:14:12 +05:30
Rahul Tank
b2778ec38d feat(nimble): Add APIs to support BLE DTM functions 2024-02-07 15:20:51 +05:30
gongyantao
817ae554ca fix(bt/bluedroid): fix dangling pointer issue when logging remove section 2024-02-07 14:58:17 +08:00
MinZai97
6641a692b7 feat: replace lightdriver, and support more chips in ble mesh examples 2024-02-07 13:28:52 +08:00
YuanMingFu
ed2ea01b76 ble_mesh: update ble mesh ble adv type 2024-02-07 13:09:32 +08:00
InfiniteYuan
dae30350dd feat: ble mesh: improve ble mesh deinit when nimble enable 2024-02-06 14:44:58 +08:00
morris
8ac48a138e fix(rgb_lcd): relax the check for the data line GPIO
There are a bunch of cases you might want some pins not exposed.

Eg.

  * Reading say 8 bit data and outputting the top 5 bits, discarding the rest by not mapping those data pins to output pins

 * Not using hsync/vsync because sync data is embedded within the data bits for more timing flexibility (eg. interlacing).

 * Using the LCD module as a high speed parallel data output bus, with no need for sync/control pins.

Removing this validation makes these cases work.

Merges https://github.com/espressif/esp-idf/pull/13103
2024-02-06 10:37:20 +08:00
zhiweijian
4a413b9d27 feat(ble/controller): Add API to get BLE controller status on ESP32 2024-02-05 16:11:26 +08:00
zhiweijian
fb94d9175f Fixed xQueueSemaphoreTask assert when deinit host during scan 2024-02-05 16:11:08 +08:00
nilesh.kale
4f63e93118 feat(mbedtls): updated mbedtls version from 3.5.0 to 3.5.2
This updates the submodule mbedtls to its latest version 3.5.2.
2024-02-05 12:50:59 +05:30
chenjianhua
479ec4af2a feat(bt/bluedroid): Support get status of bluedroid host 2024-02-04 16:52:12 +08:00
chenjianhua
51db5c76b7 fix(bt/example): Fixed UART HCI when flow control is off on ESP32C3 2024-02-04 16:52:04 +08:00
chenjianhua
1e5296008a feat(bt/bluedroid): Make the max number of bond device to be configurable 2024-02-04 16:51:55 +08:00
zhanghaipeng
50ef8650ac fix(ble/controller): Fixed tx count in direct test mode on ESP32-C3 and ESP32-S3
- Fixed tx count in direct test mode on ESP32-C3 and ESP32-S3
- fixed modem sleep enter failed sometimes
2024-02-04 14:28:28 +08:00
chenjianhua
1363cbe1ca fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(91980c2)
- Fixed scheduling when modem sleep wakeup delayed
- Fixed IRQ FIFO overflow when enter critical
- Fixed clock sync timeout for modem sleep
- Fixed directed adv with RPA when privacy disabled
- Fixed instant passed for connection update and PHY update
2024-02-04 14:28:12 +08:00
Marius Vikhammer
474ebfc3ee docs(build): add cannonical stable url to all docs 2024-02-02 10:36:44 +08:00
morris
1ce7be11fa fix(mcpwm): reset GPIO used by generator after delete
Closes https://github.com/espressif/esp-idf/issues/12980
2024-02-01 17:49:53 +08:00
Fu Hanxi
e94615eade ci: limit idf-build-apps version to 1.x in pre-commit config file 2024-02-01 09:58:23 +01:00
Jiang Jiang Jian
899bc1d6b2 Merge branch 'bugfix/no_wakeup_sleep_v5.0' into 'release/v5.0'
fix(ble): Fixed Bluetooth not waking up due to clock drift(v5.0)

See merge request espressif/esp-idf!28723
2024-02-01 00:02:09 +08:00
Alexey Gerenkov
164be1cd52 tests: Replace 'debug_backend' with 'esp-debug-backend' from PyPi 2024-01-31 18:49:21 +03:00
Brian Whitman
d44dc57f8a fix(rgb_lcd): don't assume 16 bit width on panels for restart logic
Merges https://github.com/espressif/esp-idf/pull/13020
2024-01-31 18:56:49 +08:00
Island
58b52c1230 Merge branch 'ble_dev/added_ble_power_save_pytest_v5.0' into 'release/v5.0'
Added pytest case for BLE power save example v5.0

See merge request espressif/esp-idf!28594
2024-01-31 18:33:14 +08:00
Island
1d83a2125a Merge branch 'feat/ble_mesh_miscellaneous_update_v5.0' into 'release/v5.0'
feat(ble_mesh): Miscellaneous updates for mesh kconfig, relay related(v5.0)

See merge request espressif/esp-idf!28034
2024-01-31 18:29:34 +08:00
Island
68a90a1f05 Merge branch 'bugfix/fix_sm_inject_io_return_val_v5.0' into 'release/v5.0'
fix(nimble): Added change to ensure that API execution returns success (v5.0)

See merge request espressif/esp-idf!28651
2024-01-31 17:34:02 +08:00
Jan Beran
632620fa60 feat: Use python-reorder-imports instead of isort 2024-01-31 09:31:47 +01:00
Jiang Jiang Jian
decb0c21c5 Merge branch 'bugfix/fix_systick_lost_in_esp32_dfs_v5.0' into 'release/v5.0'
fix(esp_pm): safely check ccompare validity in DFS update_ccompare (v5.0)

See merge request espressif/esp-idf!28563
2024-01-31 10:42:18 +08:00
Darshan Dobariya
c5c3b5bfe8 fix(nimble): Added change to ensure that API execution returns success (v5.0) 2024-01-30 14:48:53 +05:30
Island
cb4aa11362 Merge branch 'bugfix/add_minor_fixes_debug_v5.0' into 'release/v5.0'
fix(nimble): Add minor debug fixes (v5.0)

See merge request espressif/esp-idf!28534
2024-01-30 17:00:50 +08:00
wuzhenghui
6a63a5b69c fix(esp_pm): safely check ccompare validity in DFS update_ccompare 2024-01-30 16:03:40 +08:00
xiongweichao
332b293215 fix(ble): Fixed macro definition error for 136K clock drift 2024-01-30 15:36:22 +08:00
xiongweichao
08061d3414 fix(ble): Fixed Bluetooth not waking up due to clock drift 2024-01-30 15:36:22 +08:00
Jiang Jiang Jian
090dd4047c Merge branch 'bugfix/fix_ble_tx_2m_problem_causing_by_phy_wifi_enable_set_v5.0' into 'release/v5.0'
fix(esp_phy): Fixed BLE TX 2M problem causing by phy_wifi_enable_set() (backport v5.0)

See merge request espressif/esp-idf!28768
2024-01-30 14:44:06 +08:00
igor.udot
8003214fd5 ci: change known_failure_cases workflow 2024-01-30 14:27:42 +08:00
Rahul Tank
18caeb919a fix(nimble): Add minor debug fixes 2024-01-30 08:11:37 +05:30
mofeifei
8cf35aa27b docs: update cn trans usb_host.rst 2024-01-29 10:26:14 +01:00
Roman Leonov
470ecb3033 feat(docs): added USB Host Stack Configuration description 2024-01-29 10:22:26 +01:00
zhiweijian
e988463ea4 fix(esp_phy): Fixed BLE TX 2M problem causing by phy_wifi_enable_set()
1. Fixed BLE 2M phy TX problem causing by phy_wifi_enable_set() on ESP32-C3 and ESP32-S3
2. Fixed BLE CCA bug on ESP32-C2
3. Fixed BLE and WIFI could not receive packets after entering light sleep for a long time on ESP32-C3, ESP32-S3 and ESP32-C2
2024-01-29 16:36:35 +08:00
Harshit Malpani
484de5ee1c fix(esp_http_client): Fix http digest auth without qop
Closes https://github.com/espressif/esp-idf/issues/12962
2024-01-29 11:22:40 +05:30
Gabor Kiss-Vamosi
d43bf5dc51 fix misformatted link 2024-01-29 13:16:29 +08:00
Jiang Jiang Jian
f16621c429 Merge branch 'bugfix/fix_pmk_invalid_wpa_or_wpa2_connect_fail_issue_v5.0' into 'release/v5.0'
fix(wifi): fix pmk invalid lead same ssid wpa and wpa2 connect fail issue(Backport v5.0)

See merge request espressif/esp-idf!28674
2024-01-29 10:44:38 +08:00
cjin
5e44ecb938 fix(ble): delete unused example ci test script 2024-01-29 10:25:36 +08:00
cjin
227ad67a09 feat(ble): added pytest for ble power save example 2024-01-29 10:25:36 +08:00
xiongweichao
9c50e0c809 fix(ble): Fixed the issue of being unable to enter light sleep
- Fixed the issue where light sleep cannot be entered when external 32k XTAL does not exist
2024-01-29 10:25:36 +08:00
Kapil Gupta
443842fd9d fix(wifi): Add support to move supplicant BSS to external memory 2024-01-27 11:15:10 +05:30
Island
1da4afc70a Merge branch 'bugfix/address_resolution_v5.0' into 'release/v5.0'
fix(nimble): Added support for address resolution during inquiry (v5.0)

See merge request espressif/esp-idf!28520
2024-01-25 14:07:04 +08:00
Island
acf8c3e9e3 Merge branch 'bugfix/fix_some_ble_issue_v5.0' into 'release/v5.0'
Bugfix/fix some ble issue v5.0(backport v5.0)

See merge request espressif/esp-idf!28615
2024-01-25 12:19:24 +08:00
Island
7324e55dc0 Merge branch 'bugfix/ble_check_adv_data_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix ble adv data check to avoid memory overflow(backport v5.0)

See merge request espressif/esp-idf!28407
2024-01-25 12:19:11 +08:00
Island
bcc7d4e427 Merge branch 'bugfix/fix_ble_memory_leak_v5.0' into 'release/v5.0'
fix(ble/bluedroid): Fix ble memory leak when gattc config off(backport v5.0)

See merge request espressif/esp-idf!28497
2024-01-25 12:18:59 +08:00
muhaidong
48b9fde3e3 fix(wifi): fix pmk invalid lead same ssid wpa and wpa2 connect fail issue 2024-01-24 16:38:43 +08:00
Mahavir Jain
4b13be6cf0 Merge branch 'bugfix/update_jtag_disabling_api_v5.0' into 'release/v5.0'
fix(esp_hw_support): fix API esp_hmac_disable_jtag() to disable JTAG (v5.0)

See merge request espressif/esp-idf!28502
2024-01-24 15:07:27 +08:00
Mahavir Jain
44593bf3ef Merge branch 'feat/update_cjson_v1_7_17_v5.0' into 'release/v5.0'
feat(cJSON): update submodule to v1.7.17 (v5.0)

See merge request espressif/esp-idf!28350
2024-01-24 15:06:59 +08:00
Jiang Jiang Jian
9be6e00f1e Merge branch 'bugfix/fix_scan_request_ifs_error_v5.0' into 'release/v5.0'
Fixed BLE scan request ifs time error in coexistence scenarios(backport v5.0)

See merge request espressif/esp-idf!28576
2024-01-24 14:00:49 +08:00
laokaiyao
12714a6fda fix(i2s): fixed incorrect reg base name on C3
Closes https://github.com/espressif/esp-idf/issues/12643
2024-01-23 12:07:50 +08:00
zhanghaipeng
ca056b198f feat(bt/bluedroid): Support ext adv aux option 2024-01-22 20:54:04 +08:00
zhanghaipeng
e37dcaa92f fix(bt/bluedroid): Fix BLE malloc internal wrapper fail 2024-01-22 20:53:53 +08:00
Zeke Gustafson
570cc22bdc feat(ble/bluedroid): Add getter for BLE GAP callback 2024-01-22 20:53:44 +08:00
Zeke Gustafson
46253edd6a feat(ble/bluedroid): Add getter for BLE GATTS callback 2024-01-22 20:53:36 +08:00
zhanghaipeng
b9caeb4559 feat(ble/bluedroid): Add getter for BLE GATTC calllback 2024-01-22 20:53:28 +08:00
zhanghaipeng
a3759a122e docs(ble/bluedroid): Optimize documentation for BLE duplicate scan 2024-01-22 20:53:20 +08:00
zhanghaipeng
b447216f8a fix(ble/bluedroid): Fix dangling pointer issue in deletion of bonded devices 2024-01-22 20:53:08 +08:00
zhanghaipeng
00b839ca66 fix(ble/bluedroid): Fix BLE background connection log level 2024-01-22 20:53:00 +08:00
Adam Múdry
43d0b27053 feat: LittleFS bump version to 1.13.0 2024-01-22 20:21:21 +08:00
sonika.rathi
4ffa46428e feat(example/storage/littlefs): add LittleFS demo example 2024-01-22 20:21:21 +08:00
Ondrej Kosta
8c305d182b ci(esp_eth): enabled Ethernet ip101 jobs 2024-01-22 12:48:41 +01:00
Jiang Jiang Jian
ad2c1809ce Merge branch 'bugfix/ble_update_lib_20231229_v5.0' into 'release/v5.0'
update lib on release/v5.0

See merge request espressif/esp-idf!28187
2024-01-22 11:15:01 +08:00
linruihao
698c736c06 fix(esp_coex): Fixed potential BLE scan request ifs timer error bug 2024-01-19 19:42:32 +08:00
luoxu
90ee8c4cb8 bugfix(ble_mesh): add duplicate scan config for esp32s3 2024-01-19 16:57:59 +08:00
luoxu
e138aae301 feat(ble_mesh): Miscellaneous updates for mesh kconfig, relay related 2024-01-19 16:57:59 +08:00
Harshit Malpani
a2ed654c6d feat(cjson): update submodule to v1.7.17
Changelog: https://github.com/DaveGamble/cJSON/releases/tag/v1.7.17
2024-01-19 14:08:06 +05:30
zhiweijian
8aa3f66084 Fixed BLE scan request ifs timer error in coexistence scenarios 2024-01-19 14:53:40 +08:00
Jiang Jiang Jian
d6933bd3c7 Merge branch 'bugfix/fix_crash_issue_when_mesh_deinit_v5.0' into 'release/v5.0'
fix(wifi): fix the crash and malloc fail issue (v5.0)

See merge request espressif/esp-idf!28557
2024-01-19 11:10:38 +08:00
Jiang Jiang Jian
463514a3ba Merge branch 'bugfix/fix_mac_bb_pd_iwdt_timeout_v5.0' into 'release/v5.0'
fix(ble): fixed interrupt timeout in MAC_BB_PD callback (v5.0)

See merge request espressif/esp-idf!28466
2024-01-18 19:42:56 +08:00
zhangyanjiao
8e8c240f84 fix(wifi): fix the crash and malloc fail issue
1. fix(wifi/mesh): fix the crash issue when mesh deinit
2. fix(wifi):fix when ap recv auth in sa query porcess will memset psq issue
2024-01-18 11:27:22 +08:00
Jiang Jiang Jian
2398c20ce9 Merge branch 'bugfix/fix_wpa3_connect_fail_issue_v5.0' into 'release/v5.0'
fix(wifi): fix wpa3 connect fail issue

See merge request espressif/esp-idf!28436
2024-01-18 11:19:10 +08:00
Michael (XIAO Xufeng)
5a3a5b47a7 Merge branch 'bugfix/recalib_bbpll_before_tuning_v5.0' into 'release/v5.0'
fix(bbpll): fix bbpll may not lock or not stable bug for stop early (ESP32C2/S3/C6/H2) (v5.0)

See merge request espressif/esp-idf!28286
2024-01-17 21:22:30 +08:00
xiongweichao
6674d0f0e5 fix(bt/bluedroid): Fixed SPP connection failure
The connection failure is caused by the BTU and application layer status being out of sync.
2024-01-17 19:40:38 +08:00
cjin
dd7bd8ab34 Revert "change(ble): added ble cca en and thresh option"
This reverts commit f6760db77d.
2024-01-17 18:01:06 +08:00
Sudeep Mohanty
a5ad77accf fix(console): Fixed linenoise prompt length calculation
This commit fixes a potential issue where in the prompt length used
for the linenoise based console could be calculated as a negative
integer, leading to a console hang.

Closes https://github.com/espressif/esp-idf/issues/4924
2024-01-17 09:42:41 +01:00
harshal.patil
8176a0341e feat(bootloader_support): Encrypt only the app image instead of the whole partition
Currently, when flash encryption is enabled, the whole partition gets encrypted.
This can be optimised by encrypting only the app image instead of encrypting the whole partition.

Closes https://github.com/espressif/esp-idf/issues/12576
2024-01-17 14:06:49 +05:30
harshal.patil
c3facf79da fix(bootloader_support): Fix image_length calculation when secure boot v1 is enabled
Fixed the value of the image_length field of the image metadata populated by esp_image_verfiy()
to include the size of the signature sector when Secure Boot V1 is enabled.
2024-01-17 14:06:48 +05:30
luomanruo
6cc8d4e697 ble(update):
Update c2 lib to e5789394
2024-01-17 15:41:51 +08:00
luomanruo
46bbb6cb48 ble: npl count is zero if nimble host is not used 2024-01-17 15:41:51 +08:00
luomanruo
edcb550e85 ble(update):
Update c2 lib to e5789394
2024-01-17 15:41:51 +08:00
Darshan Dobariya
c35c5adfb2 fix(nimble): Added support for address resolution during inquiry (v5.0) 2024-01-17 11:30:48 +05:30
nilesh.kale
1cd2bb4b22 fix(esp_hw_support): fix API esp_hmac_disable_jtag() to disable JTAG
After ets_hmac_disable(), invalidating JTAG register process is ineffective.
So, added call to enable hmac begore invalidating JTAG REG.
And similarly disabled it after invalidation.
2024-01-16 14:40:09 +05:30
zhanghaipeng
587a797f7b fix(ble/bluedroid): Fix ble memory leak when gattc config off 2024-01-16 15:44:54 +08:00
schottj
75f1a51f3e fix(app_update): fixed undeclared variable 'ret' in esp_ota_ops.c 2024-01-16 12:10:17 +05:30
Harshit Malpani
e713b3cbb5 feat: Add API to verify the bootloader and app image
Added an API to verify the bootloader and app image before revoking the key in Secure Boot V2.
This will help in preventing the device to be bricked if the bootloader/application cannot be
verified by any other keys in efuse
2024-01-16 11:57:06 +05:30
Roland Dobai
02c6d5033f Merge branch 'fix/kconcheck_checks_v5.0' into 'release/v5.0'
fix(kconfcheck): Fixed false-positive indent errors and extended limits (backport v5.0)

See merge request espressif/esp-idf!28469
2024-01-16 00:06:59 +08:00
linruihao
50ef9e3533 fix(ble): fixed interrupt timeout in MAC_BB_PD callback 2024-01-15 16:17:06 +08:00
Jakub Kocka
cb6de0af4e fix(kconfcheck): Fixed false-positive indent errors and extended limits 2024-01-15 09:15:58 +01:00
Xiao Xufeng
376be14e1c fix(rtc): fixed bbpll not calibrated from bootloader issue 2024-01-14 02:38:49 +08:00
muhaidong
ef3830b4d8 fix(wifi): fix wpa3 connect fail issue 2024-01-12 16:35:13 +08:00
Jiang Jiang Jian
6e4eb1a6cc Merge branch 'bugfix/fix_some_wifi_bugs_240111_v5.0' into 'release/v5.0'
fix(wifi): fix some wifi bugs (Backport v5.0)

See merge request espressif/esp-idf!28410
2024-01-11 22:44:15 +08:00
Jiang Jiang Jian
2b16bd7eac Merge branch 'bugfix/change_default_value_for_ip_ttl_5.0' into 'release/v5.0'
Fix(lwip):bugfix for change default value for ip ttl 5.0

See merge request espressif/esp-idf!28399
2024-01-11 21:20:32 +08:00
muhaidong
be1be3c64a fix(wifi): fix some wifi bugs
1. support dump ACK frame for CSI
2. fix psram enabled but initialized fail issue
2024-01-11 17:51:00 +08:00
Jiang Jiang Jian
d4693f85d8 Merge branch 'bugfix/fix_http_client_error_v5.0' into 'release/v5.0'
esp_http_client: Fix reset errno to 0 before call esp_transport_read(backport v5.0)

See merge request espressif/esp-idf!28327
2024-01-11 16:52:14 +08:00
alanmaxwell
93d1c3125e feat(wifi): support dump 802.11 ACK frame for CSI 2024-01-11 16:41:55 +08:00
zhanghaipeng
8476ff2fa3 fix(bt/bluedroid): Fix ble adv data check to avoid memory overflow 2024-01-11 16:34:59 +08:00
xueyunfei
8926466b4d Fix(lwip):bugfix for change default value for ip ttl 2024-01-11 14:30:23 +08:00
morris
c940cf08c4 feat(rmt): support update bytes encoder configurations at runtime
Closes https://github.com/espressif/esp-idf/issues/12775
2024-01-11 13:47:04 +08:00
Jiang Jiang Jian
50de63e280 Merge branch 'bugfix/coex_ble_scan_rate_v5.0' into 'release/v5.0'
fix(coex): Fix esp32 ble scan not restart when wifi start stop

See merge request espressif/esp-idf!27601
2024-01-11 13:42:06 +08:00
Mahavir Jain
3af1b71f0b Merge branch 'bugfix/fix_dynamic_mbedtls_crash_v5.0' into 'release/v5.0'
mbedtls: Fix enable dynamic mbedtls will occur heap corruption when server support TLS renegotiation(backport v5.0)

See merge request espressif/esp-idf!28324
2024-01-11 12:40:06 +08:00
liuning
11f4f925bd fix(coex): Fix esp32 ble scan not restart when wifi start stop, fix(wifi): Fix no sleep null after data sent 2024-01-11 11:42:12 +08:00
liuning
7a8230ef35 esp_wifi: support connectionless manually pwr mgmt 2024-01-11 11:42:12 +08:00
Jiang Jiang Jian
545b251d91 Merge branch 'ci/temp_disable_jobs_v5.0' into 'release/v5.0'
ci: remove ip101 jobs and twai_std jobs (v5.0)

See merge request espressif/esp-idf!28379
2024-01-11 11:38:21 +08:00
Fu Hanxi
96c9c43c5e ci: remove ip101 jobs and twai_std jobs 2024-01-10 10:33:18 +01:00
Jiang Jiang Jian
e313438eb0 Merge branch 'bugfix/dpp_listen_bugs_v5.0' into 'release/v5.0'
fix(wpa_supplicant): Fix few bugs in dpp(v5.0)

See merge request espressif/esp-idf!26794
2024-01-10 11:27:19 +08:00
Roland Dobai
907638ea66 Merge branch 'fix/gdbgui_py311_v5.0' into 'release/v5.0'
Tools: Fix support of gdbgui on Unix with Python 3.11 (v5.0)

See merge request espressif/esp-idf!28315
2024-01-09 23:42:55 +08:00
Marius Vikhammer
01dabff7c3 Merge branch 'bugfix/fix_wrong_dcache_0_size_issue_on_s2_v5.0' into 'release/v5.0'
fix(cache): fix wrong dcache size 0 configuration issue on s2 (v5.0)

See merge request espressif/esp-idf!28291
2024-01-09 14:16:11 +08:00
David Čermák
25b8c3d573 Merge branch 'feature/lan8720_to_new_runner_v5.0' into 'release/v5.0'
ci(esp_eth): moved LAN8720 test to a new runner

See merge request espressif/esp-idf!28258
2024-01-08 23:52:08 +08:00
Rahul Tank
37ccf9b6c5 Merge branch 'bugfix/reattempt_conn_feat_extended_v5.0' into 'release/v5.0'
fix(nimble): Support for reattempt connection in ext connect (v5.0)

See merge request espressif/esp-idf!28307
2024-01-08 20:36:50 +08:00
Island
7158b6fa8c Merge branch 'bugfix/increase_btu_task_stack_size_v5.0' into 'release/v5.0'
fix(bt/bludroid): Increase BTU task stack size(backport v5.0)

See merge request espressif/esp-idf!28321
2024-01-08 19:47:22 +08:00
jgujarathi
6cb42e4304 fix(wpa_supplicant): Add support for a dpp authentication timeout
- Adds support for a 1 second dpp authentication timeout.
2024-01-08 15:57:50 +05:30
jgujarathi
d982e66c21 fix(wpa_supplicant): Restructuring DPP init method to ensure cleanup
- Restructuring DPP init function to ensure cleanup of variables in case of
  init failure
2024-01-08 15:57:50 +05:30
jgujarathi
339efe8cae fix(wpa_supplicant): Fix location of clearing up dpp global variables
- Fix location of cleaing up dpp global variables to ensure that there are
  no concurrency issues.
2024-01-08 15:57:50 +05:30
jgujarathi
ed4582c9e0 fix(wpa_supplicant): Fix a memory leak in dpp deinit path
- Ensures that the auth information of dpp gets freed when there is
  dpp gets deinited.
2024-01-08 15:57:50 +05:30
jgujarathi
8009cdae1d fix(wpa_supplicant): Move concurrent wps and dpp check to before creating task
- Move the check for checking concurrent wps and dpp check to before creating
  task rather than after.
2024-01-08 15:57:50 +05:30
jgujarathi
290b30e56e fix(wpa_supplicant): Fix a crash in esp_wifi_wps_disable
- Fixes a crash observed in esp_wifi_wps_disable when wps process
  is ongoing, caused due to concurrency issues in cancelling timers.
2024-01-08 15:57:50 +05:30
aditi_lonkar
5fbe36db0f fix(esp_wifi):Fix WDT when esp_supp_dpp_start_listen called multiple times 2024-01-08 15:57:49 +05:30
Tomáš Rohlínek
cf3ebb9012 fix(storage/fatfs): check whether sdcard supports triming
Closes https://github.com/espressif/esp-idf/issues/12912
2024-01-08 09:35:24 +01:00
gaoxu
8c2e1a69f5 fix(adc): fix adc continuous get less results beacuse do not reset apb clk(legacy) 2024-01-08 16:12:22 +08:00
Harshit Malpani
5a4fda230a fix(esp_http_client): Add test case in esp_http_client example
Add a test case in esp_http_client example to test HTTP_METHOD_HEAD
with async mode
2024-01-08 15:31:55 +08:00
jim
56e5190f33 esp_http_client: Fix reset errno to 0 before call esp_transport_read
Closes https://github.com/espressif/esp-idf/issues/9020
2024-01-08 15:31:21 +08:00
jim
dfe28ce029 mbedtls: Fix enable dynamic mbedtls will occur heap corruption when server support TLS renegotiation 2024-01-08 14:37:41 +08:00
linruihao
82a7b0160a fix(bt/bludroid): Increase BTU task stack size 2024-01-08 11:36:53 +08:00
Roland Dobai
abad298532 fix(gdbgui): Fix support of gdbgui on Unix with Python 3.11
Closes https://github.com/espressif/esp-idf/issues/12764
2024-01-05 18:52:37 +01:00
Rahul Tank
f1fe837b23 fix(nimble): Support for reattempt connection in ext connect 2024-01-05 16:43:32 +05:30
Mahavir Jain
209a0361c0 Merge branch 'feat/add_ble_support_in_local_ctrl_example_v5.0' into 'release/v5.0'
feat(examples): Fix encoding issue in esp_local_ctrl's proto script (v5.0)

See merge request espressif/esp-idf!28129
2024-01-05 14:19:47 +08:00
Island
97bfd92534 Merge branch 'bugfix/fix_ble_robost_cashing_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix BLE robost cashing config(backport v5.0)

See merge request espressif/esp-idf!28199
2024-01-05 12:44:59 +08:00
Armando
d9f7b7fe4a fix(cache): fix wrong dcache size 0 configuration issue on s2
Closes https://github.com/espressif/esp-idf/issues/12711
2024-01-05 10:40:04 +08:00
chaijie@espressif.com
d91c6d0da8 fix(bbpll): fix bbpll calibration may stop early bug(ESP32C2/S3) 2024-01-05 03:36:48 +08:00
Ondrej Kosta
44252caf3f ci(esp_eth): moved LAN8720 test to a new runner 2024-01-04 13:19:36 +01:00
morris
69f1349dd6 Merge branch 'contrib/github_pr_12908_v5.0' into 'release/v5.0'
spi_lcd: add flag to control the DC level in cmd/param/data phase separately (GitHub PR) (v5.0)

See merge request espressif/esp-idf!28242
2024-01-04 10:25:43 +08:00
Roland Dobai
d778f085be Merge branch 'ci/pre_commit_sbom_validation_v5.0' into 'release/v5.0'
ci: add sbom validation using pre-commit's post-commit stage (v5.0)

See merge request espressif/esp-idf!28230
2024-01-03 18:37:26 +08:00
morris
471db88884 Merge branch 'refactor/uart_read_bytes_from_ringbuf_v5.0' into 'release/v5.0'
change(uart): improved the internal logic of uart_read_bytes (v5.0)

See merge request espressif/esp-idf!28224
2024-01-03 17:29:15 +08:00
Kit Sczudlo
d7602bf30e feat(spi_lcd): control DC level for cmd, param, color phase separately
Closes https://github.com/espressif/esp-idf/issues/10635
Merges https://github.com/espressif/esp-idf/pull/12908
2024-01-03 17:25:17 +08:00
Mahavir Jain
471ca6a6bf Merge branch 'contrib/github_pr_12177_v5.0' into 'release/v5.0'
mbedtls: define MBEDTLS_SSL_CID_TLS1_3_PAD_GRANULARITY for CID padding (GitHub PR) (v5.0)

See merge request espressif/esp-idf!28210
2024-01-03 16:52:10 +08:00
Jiang Jiang Jian
dfdbf4aba4 Merge branch 'bugfix/add_header_files_for_wifi_os_adapter_5.0' into 'release/v5.0'
Fix(esp_wifi): Add the missing header file to the wifi header files 5.0

See merge request espressif/esp-idf!28211
2024-01-03 16:41:07 +08:00
xueyunfei
e0cdfe3590 Fix(esp_wifi): Add the missing header file to the wifi header files 2024-01-03 10:38:31 +08:00
Frantisek Hrbata
54f5ade84e ci: add sbom validation using pre-commit's post-commit stage
With 09ba070b7e ("fix: allow to use older pre-commit hook version")
and b93cc581a5 ("fix: set default pre-commit hook stages to pre-commit..")
we set the default pre-commit hook stage to commit/pre-commit, which avoids
running the pre-commit plugins/hooks multiple times for different stages.
Unfortunately this also affects "pre-commit run" used in CI and
now it runs only plugins which are by default using the
commit/pre-commit stage. Meaning the sbom validation, which uses
post-commit, is not run at all. This adds an explicit pre-commit command
for validate-sbom-manifest plugin, which needs to be started in
post-commit stage.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-01-02 16:30:34 +01:00
Song Ruo Jing
e2ee4d03c3 change(uart): improved the internal logic of uart_read_bytes
Ringbuffer usage becomes more efficient with the use of xRingbufferReceiveUpTo

Closes https://github.com/espressif/esp-idf/issues/12386
2024-01-02 20:19:21 +08:00
Jiang Jiang Jian
600991b43c Merge branch 'bugfix/timer_index_out_of_bound_v5.0' into 'release/v5.0'
Fix timer index out of bound issue (Backport v5.0)

See merge request espressif/esp-idf!27445
2024-01-02 17:44:34 +08:00
Jiang Jiang Jian
15fa0a88d4 Merge branch 'bigfix/BLEQABR23-503_v50' into 'release/v5.0'
fix(ble_mesh): reject node-reseting when provision link is active (V5.0)

See merge request espressif/esp-idf!25847
2024-01-02 15:38:38 +08:00
Wu Meng Shi
b278566acc fix(ble_mesh): reject node-reseting when provision link is active (V5.0) 2024-01-02 15:38:37 +08:00
Daniel Mangum
3ef1cf7edb mbedtls: define MBEDTLS_SSL_CID_TLS1_3_PAD_GRANULARITY for CID padding
Updates config to define the new MBEDTLS_SSL_CID_TLS1_3_PAD_GRANULARITY
option, which replaced the previously used
MBEDTLS_SSL_CID_PADDING_GRANULARITY. The old option is continuing to be
used as the new one exceeds the maximum length for an option name in
esp-idf.

See https://github.com/Mbed-TLS/mbedtls/pull/4490 for more information.

Signed-off-by: Daniel Mangum <georgedanielmangum@gmail.com>
2024-01-02 11:22:38 +05:30
zhanghaipeng
d303ef3ba0 fix(bt/bluedroid): Update ble gattc gatts coex example 2024-01-02 13:30:30 +08:00
zhanghaipeng
7a0268ab66 fix(bt/bluedroid): Optimize ble remove all bonded devices function 2024-01-02 13:28:05 +08:00
zhanghaipeng
e76135fedf fix(bt/bluedroid): Update ble ibeacon example document 2024-01-02 13:28:05 +08:00
zhanghaipeng
e8a7e1f600 fix(bt/bluedroid): Fix BLE robost cashing config 2024-01-02 13:28:05 +08:00
Shyamal Khachane
bc866f36df fix(esp_wifi): Fix timer index out of bound issue causing execution of timer function to fail 2024-01-02 11:26:13 +08:00
Jiang Jiang Jian
35556a6a85 Merge branch 'backport/fix_ble_prepare_write_v5.0' into 'release/v5.0'
Backport/fix ble prepare write v5.0

See merge request espressif/esp-idf!27908
2023-12-31 14:25:28 +08:00
Jiang Jiang Jian
1a9fe8e426 Merge branch 'bugfix/fix_ble_app_unregister_no_event_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix ble app unregister no event(backport v5.0)

See merge request espressif/esp-idf!28174
2023-12-31 14:23:32 +08:00
Rahul Tank
91e1bf2e01 Merge branch 'bugfix/fix_gatts_stop_race_condition_v5.0' into 'release/v5.0'
fix(nimble): Handled race condition for conn variables being set to NULL (v5.0)

See merge request espressif/esp-idf!28170
2023-12-29 21:03:07 +08:00
Jiang Jiang Jian
8094c0ff4a Merge branch 'bugfix/fix_ble_phy_tx_ifs_v5.0' into 'release/v5.0'
Bugfix/fix ble phy tx ifs v5.0(backport v5.0)

See merge request espressif/esp-idf!28164
2023-12-29 15:29:42 +08:00
zhanghaipeng
558cc16710 fix(bt/bluedroid): Fix ble app unregister no event 2023-12-28 19:13:21 +08:00
Rahul Tank
61a772e5c0 fix(nimble): Handled race condition for conn variables being set to NULL(v5.0) 2023-12-28 15:20:15 +05:30
zhanghaipeng
36c57c023a fix(phy): Fix ble tx ifs time for ESP32 2023-12-28 14:57:45 +08:00
Jiang Jiang Jian
3ce7f472bf Merge branch 'bugfix/fix_ble_recorrect_enable_bug_v5.0' into 'release/v5.0'
fix(ble/controller): Fixed BLE recorrect enable bug and fixed BLE bb isr enable by default (backport v5.0)

See merge request espressif/esp-idf!28109
2023-12-27 20:11:16 +08:00
Jiang Jiang Jian
bdfbb2fe73 Merge branch 'bugfix/crash_in_btc_hf_init_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Avoided crash of LoadProhibited during HFP AG deinitialization (v5.0)

See merge request espressif/esp-idf!28118
2023-12-27 19:42:30 +08:00
Jiang Jiang Jian
d6a7ff5aa7 Merge branch 'bugfix/fix_establish_two_sco_fail_v5.0' into 'release/v5.0'
fix(bt/controller): Fixed establish two sco connections failed (Backport v5.0)

See merge request espressif/esp-idf!28103
2023-12-27 19:38:48 +08:00
harshal.patil
ca584ef4d7 fix(examples): Fix encoding issue in esp_local_ctrl's proto script 2023-12-26 14:06:48 +05:30
Jin Cheng
2a82608282 fix(bt/bluedroid): Disabled Sniff Subrating temporarily as it did not work well 2023-12-26 11:52:13 +08:00
Jin Cheng
75c54798dc fix(bt/bluedroid): Changed the default air mode to invalid value 2023-12-26 11:52:13 +08:00
Jin Cheng
0dc2e89604 fix(bt/bluedroid): Removed redundant operation of SCO clean up 2023-12-26 11:52:13 +08:00
Jin Cheng
eb2cdbdc91 fix(bt/bluedroid): Corrected the definitions of HF Client callback events 2023-12-26 11:52:13 +08:00
Jin Cheng
cfb6bf4c6b fix(bt/bluedroid): Avoided crash of LoadProhibited during HFP AG deinitialization
Move the release of the control blocks from the start
of deinitialization to the profile disabled event.
2023-12-26 11:52:13 +08:00
Jin Cheng
886a0cfe84 fix(bt/bluedroid): Added dynamic memory allocation for HFP control blocks 2023-12-26 11:52:13 +08:00
zhiweijian
d09adbc8fc fix(ble/controller): Fixed BLE recorrect enable bug and fixed BLE bb isr enable by default 2023-12-25 16:16:53 +08:00
linruihao
42bdbcc946 fix(bt/controller): Fixed establish two sco connections failed 2023-12-25 15:48:39 +08:00
Jiang Jiang Jian
86f06e0560 Merge branch 'bugfix/fix_memory_leak_in_c3_s3_controller_v5.0' into 'release/v5.0'
Fixed memory leak in ESP32C3 and ESP32S3 controller (Backport v5.0)

See merge request espressif/esp-idf!27893
2023-12-25 14:28:16 +08:00
Jiang Jiang Jian
f41f731c56 Merge branch 'fix/build_error_in_compiler_performance_mode_v5.0' into 'release/v5.0'
fix(bt/bluedroid): fixed build error when compiler in performace mode (backport v5.0)

See merge request espressif/esp-idf!27865
2023-12-25 14:07:18 +08:00
Jiang Jiang Jian
31194d3646 Merge branch 'bugfix/fix_some_ble_bugs_v5.0' into 'release/v5.0'
Fixed some BLE bugs (backport v5.0)

See merge request espressif/esp-idf!27697
2023-12-25 14:06:39 +08:00
Jiang Jiang Jian
2988dbe3a6 Merge branch 'fix/esp_hw_support_remove_unused_include_dirs_v5.0' into 'release/v5.0'
fix(esp_hw_support): Removed nonexistent include directories from cmake (v5.0)

See merge request espressif/esp-idf!27609
2023-12-25 14:06:18 +08:00
Jiang Jiang Jian
437703f121 Merge branch 'fix/ble_mesh_example_relay_enable_v5.0' into 'release/v5.0'
fix(ble_mesh): Enable relay by default for the specific dev role (v5.0)

See merge request espressif/esp-idf!27511
2023-12-25 14:05:38 +08:00
Jiang Jiang Jian
042fe83a61 Merge branch 'bugfix/BLEQABR23-35_v5.0' into 'release/v5.0'
fix(ble_mesh): avoid ble_mesh packet collision by using random adv interval(v5.0)

See merge request espressif/esp-idf!27489
2023-12-25 14:05:25 +08:00
Jiang Jiang Jian
b9ee54988f Merge branch 'fix/esp_netif_lock_v5.0' into 'release/v5.0'
fix(esp_netif): Lock netif list with TCPIP context (v5.0)

See merge request espressif/esp-idf!26712
2023-12-25 14:02:57 +08:00
Jiang Jiang Jian
bb2f5aed5b Merge branch 'fix/btc_config_lock_error_v5.0' into 'release/v5.0'
fix(bt/bluedroid): fixed btc_config_lock error (backport v5.0)

See merge request espressif/esp-idf!28071
2023-12-25 14:01:09 +08:00
morris
0b38d37bdc Merge branch 'bugfix/boot_flash_build_v5.0' into 'release/v5.0'
bugfix(spi_flash): Fix build error when octal flash is enabled (backport v5.0)

See merge request espressif/esp-idf!28088
2023-12-25 10:30:26 +08:00
zhanghaipeng
73da8018c5 fix(bt/bluedroid): Fix prepare write for BLE example 2023-12-23 20:19:29 +08:00
zhanghaipeng
412ea9d23e fix(bt/bluedroid): Fix BLE prepare write 2023-12-23 20:19:29 +08:00
morris
2e482b8c80 Merge branch 'bugfix/fix_adc_continuous_pytest_error' into 'release/v5.0'
ADC: fix adc continuous pytest error that only get first digit

See merge request espressif/esp-idf!28031
2023-12-22 19:20:00 +08:00
Cao Sen Miao
99ed0a2dcd bugfix(spi_flash): Fix build error when octal flash is enabled,
Closes https://github.com/espressif/esp-idf/issues/12850
2023-12-22 19:10:04 +08:00
morris
b823435d78 Merge branch 'fix/usb_host_soc_caps_backport_v5.0' into 'release/v5.0'
USB host soc caps (backport v5.0)

See merge request espressif/esp-idf!27400
2023-12-22 17:15:50 +08:00
Island
d7149ac4fc Merge branch 'bugfix/ble_update_lib_20231219_v5.0' into 'release/v5.0'
update lib on release/v5.0

See merge request espressif/esp-idf!27998
2023-12-22 14:57:26 +08:00
gongyantao
e38db79729 fix(bt/bluedroid): fixed btc_config_lock error 2023-12-22 11:30:57 +08:00
David Čermák
616b881b91 Merge branch 'bugfix/lwip_dns_docs_v5.0' into 'release/v5.0'
fix(lwip): Document DNS limitation in lwIP (v5.0)

See merge request espressif/esp-idf!27563
2023-12-22 04:43:37 +08:00
Island
561300bfd3 Merge branch 'bugfix/BLEQABR23-811_v5.0' into 'release/v5.0'
bugfix(ble_mesh): Enable CONFIG_BT_NIMBLE_VS_SUPPORT when using the duplicate...(v5.0)

See merge request espressif/esp-idf!27569
2023-12-21 20:22:13 +08:00
gaoxu
a87bc7f31c fix(adc): fix adc continuous pytest get result error 2023-12-21 16:58:29 +08:00
Jiang Jiang Jian
8991849b74 Merge branch 'bufix/Backport_some_lwip_bugs_for_5.0_1215' into 'release/v5.0'
Bufix/backport some lwip bugs for 5.0 1215

See merge request espressif/esp-idf!27941
2023-12-21 11:13:12 +08:00
Jiang Jiang Jian
c74c15a92f Merge branch 'docs/Separate_low-power_documents_v5.0' into 'release/v5.0'
docs:separate low power documents (backport v5.0)

See merge request espressif/esp-idf!28020
2023-12-21 11:11:51 +08:00
Island
85a2945adb Merge branch 'bugfix/ble_stack_disable_v5.0' into 'release/v5.0'
Bugfix/ble stack disable v5.0(backport v5.0)

See merge request espressif/esp-idf!27649
2023-12-20 21:45:52 +08:00
David Čermák
d45d83dfd2 Merge branch 'feature/eth_loopback_v5.0' into 'release/v5.0'
Ethernet driver fixes backport to v5.0

See merge request espressif/esp-idf!26808
2023-12-20 21:15:50 +08:00
Mahavir Jain
4272b44315 Merge branch 'bugfix/fix-clean-up-in-error-condition-in-http-example_v5.0' into 'release/v5.0'
fix(example/http): Fixed potential memory leak/crash in when handling error condition (v5.0)

See merge request espressif/esp-idf!27876
2023-12-20 16:42:25 +08:00
luoxu
9c9af32f7a bugfix(ble_mesh): Supplementary configuration options that should be enabled. 2023-12-20 11:18:55 +08:00
Liu Linyan
9e193a03f1 fix(ble_mesh): Support using random adv interval for mesh packets 2023-12-20 11:18:55 +08:00
luoxu
6e3ab36441 bugfix(ble_mesh): Enable CONFIG_BT_NIMBLE_VS_SUPPORT when using the duplicate scan feature on the NimBLE host. 2023-12-20 11:18:03 +08:00
Krzysztof Budzynski
d0a89f848e Apply 2 suggestion(s) to 2 file(s) 2023-12-20 10:57:07 +08:00
wangtao@espressif.com
a5db7c63ea docs:Separate low-power documents 2023-12-20 10:56:51 +08:00
morris
a20d0b234c Merge branch 'bugfix/u32_reg_tsens_v5.0' into 'release/v5.0'
fix(tempertuer_sensor): Fix regs on temperature sensor is not volatile due to GCC bug(backport v5.0)

See merge request espressif/esp-idf!27949
2023-12-20 10:43:20 +08:00
Roland Dobai
97acb47d2f Merge branch 'feat/manifest_check_v5.0' into 'release/v5.0'
feat: use esp-idf-sbom pre-commit plugin (v5.0)

See merge request espressif/esp-idf!27750
2023-12-20 00:10:38 +08:00
Frantisek Hrbata
b20cd8ccfa feat: use esp-idf-sbom pre-commit plugin
Currently sbom manifest is checked only in .gitmodules and
this check is done in pre-commit and also in CI. Meaning it's running
three times(pre-commit before push if user has it enabled, in CI
as there is the pre-commit run again and again with test in CI). Since
esp-idf-sbom contains a full manifest validation support and pre-commit
plugin for it, let's use it. This removes all the current sbom testing
and replaces it with a signle pre-commit plugin which validates all
manifests files(sbom.yml, idf_component.yml, .gitmodules and also
referenced manifests) in repository. Note that this checks all
manifests, not only ones which were modified. The check is reasonably
fast though, so it should not cause any problem. The reason for
validating all manifest files is that we want to make sure that the sbom
information in .gitmodules is updated too and that the hash
recorded in .gitmodules is up-to-date. Meaning submodule update
would not trigger this plugin, because no manifest was changed.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-12-19 12:55:35 +01:00
Roland Dobai
4c5ba485cc Merge branch 'tools/use_recommended_tool_priority' into 'release/v5.0'
fix (idf_tools): Opt for the recommended tool in tools.json rather than the supported one (v5.0)

See merge request espressif/esp-idf!27794
2023-12-19 19:37:00 +08:00
Roland Dobai
ed375f22e0 Merge branch 'contrib/github_pr_12683_v5.0' into 'release/v5.0'
fix(tools): fix path delimiter in gdbinit for Windows (v5.0)

See merge request espressif/esp-idf!27576
2023-12-19 19:35:30 +08:00
Roland Dobai
585c252527 Merge branch 'feature/docker_git_safe_dirs_v5.0' into 'release/v5.0'
feat(docker): allow to add dirs into git's safe.directory (v5.0)

See merge request espressif/esp-idf!27561
2023-12-19 19:34:36 +08:00
morris
acf76e323a Merge branch 'bugfix/fix_adc_continuous_do_not_rst_apb_clk_v5.0' into 'release/v5.0'
fix(adc): fix adc continuous get less results beacuse do not reset apb clk (v5.0)

See merge request espressif/esp-idf!27605
2023-12-19 16:53:51 +08:00
morris
e73aec3cbc Merge branch 'fix/spi_lcd_example_fix_border_pixel_display_v5.0' into 'release/v5.0'
fix(spi_master): fixed lcd example block border pixel issue (v5.0)

See merge request espressif/esp-idf!27921
2023-12-19 16:51:14 +08:00
morris
6dc42296d7 Merge branch 'contrib/github_pr_12559_v5.0' into 'release/v5.0'
fix(spi): Correct REG_SPI_BASE(i) macro for all targets (GitHub PR) (v5.0)

See merge request espressif/esp-idf!27716
2023-12-19 16:50:14 +08:00
morris
e4a487da22 Merge branch 'bugfix/i80_lcd_tx_param_check_enhancement_v5.0' into 'release/v5.0'
fix(i80_lcd): enhance the check of a valid data phase (v5.0)

See merge request espressif/esp-idf!27429
2023-12-19 16:48:45 +08:00
Roland Dobai
792e27d7b1 Merge branch 'feature/add_fatfs_sbom_v5.0' into 'release/v5.0'
feat(storage/fatfs): add sbom file manifest for FatFs (v5.0)

See merge request espressif/esp-idf!27481
2023-12-19 16:47:01 +08:00
Tomas Rohlinek
ec8b402046 feat(storage/fatfs): add sbom file manifest for FatFs (v5.0) 2023-12-19 16:47:01 +08:00
cjin
f6760db77d change(ble): added ble cca en and thresh option 2023-12-19 14:42:48 +08:00
luomanruo
8b513228e3 ble: support for selecting CSA#2 by menuconfig
ble(fix): fixed event receiving on host side without returning event buffer to pool
2023-12-19 14:32:18 +08:00
luomanruo
9af84f4ff7 ble(update):
Update c2 lib to 7c6c9d53
2023-12-19 12:25:17 +08:00
Island
f2221c055a Merge branch 'bugfix/ble_update_lib_20231201_v5.0' into 'release/v5.0'
update lib on release/v5.0

See merge request espressif/esp-idf!27586
2023-12-19 12:06:46 +08:00
Island
7c5cb1054c Merge branch 'backport/fix_ble_menuconfig_v5.0' into 'release/v5.0'
Backport/fix ble menuconfig v5.0(backport v5.0)

See merge request espressif/esp-idf!27496
2023-12-19 11:59:19 +08:00
Martin Vychodil
ead2652c33 Merge branch 'fix/fatfsgen_construct_v5.0' into 'release/v5.0'
fix(tools): Fix fatfsgen construct dependency (v5.0)

See merge request espressif/esp-idf!27656
2023-12-18 21:20:23 +08:00
Anton Maklakov
93c25851c1 Merge branch 'feature/update-gdb-to-12.1_20231023_v5.0' into 'release/v5.0'
feat(tools): update gdb version to 12.1_20231023 (v5.0)

See merge request espressif/esp-idf!27378
2023-12-18 18:13:30 +08:00
zhanghaipeng
55603c9a3d fix(bt/bluedroid): Fix ble gattc deregister 2023-12-18 17:55:24 +08:00
zhanghaipeng
c06869b2e7 fix(bt/bluedroid): Fix ble adv and scan status when deinit bluedroid 2023-12-18 17:55:24 +08:00
Cao Sen Miao
c7b7f1568d fix(tempertuer_sensor): Fix regs on temperature sensor is not volatile due to GCC bug 2023-12-18 14:59:41 +08:00
Jiang Jiang Jian
a1339e949c Merge branch 'bugfix/fix_issuse_in_scan_and_mesh_v5.0' into 'release/v5.0'
fix(wifi): fix issues in scan and wifi mesh (backport v5.0)

See merge request espressif/esp-idf!27839
2023-12-18 10:23:09 +08:00
Mahavir Jain
52f8747e8e Merge branch 'fix/cleanup_deleted_menuconfig_option_entries_v5.0' into 'release/v5.0'
fix(mbedtls): Fix menuconfig option entries (v5.0)

See merge request espressif/esp-idf!27465
2023-12-17 16:28:14 +08:00
Rahul Tank
df12bdbad2 Merge branch 'bugfix/authcomplete_failure_v5.0' into 'release/v5.0'
fix(nimble): Fixed authcomplete failure caused by a mismatch in the c1 value (v5.0)

See merge request espressif/esp-idf!27634
2023-12-16 19:47:53 +08:00
Darshan Dobariya
4d0c8e8a35 fix(nimble): Fixed authcomplete failure caused by a mismatch in the c1 value (v5.0) 2023-12-16 15:31:45 +05:30
Rahul Tank
dce8a538f5 Merge branch 'bugfix/add_peer_null_check_v5.0' into 'release/v5.0'
fix(nimble): Added NULL peer addr check (v5.0)

See merge request espressif/esp-idf!27940
2023-12-16 17:53:03 +08:00
Rahul Tank
83ebd694fa fix(nimble): Added NULL peer addr check 2023-12-16 13:22:59 +05:30
Rahul Tank
6161d7732f Merge branch 'bugfix/fix_duplicate_exception_vsc_v5.0' into 'release/v5.0'
fix(nimble): Fix the parameters in duplicate exception list vsc command(v5.0)

See merge request espressif/esp-idf!27559
2023-12-16 15:47:16 +08:00
Jiang Jiang Jian
871247de22 Merge branch 'test/ctrl_acl_u_pkt_type_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Added an API to specify data types for ACL-U traffic

See merge request espressif/esp-idf!27599
2023-12-15 19:34:55 +08:00
Jiang Jiang Jian
5e319c6760 Merge branch 'bugfix/fix_onebyte_watchpoint_setting_v5.0' into 'release/v5.0'
fix(riscv): supports 1 byte and larger than 64byte range watchpoint setting (v5.0 )

See merge request espressif/esp-idf!27216
2023-12-15 19:29:57 +08:00
Jiang Jiang Jian
2808077645 Merge branch 'fix/twai_tag_not_defined_in_configure_gpio' into 'release/v5.0'
fix(twai): fix build error TWAI_TAG used but not defined (v5.0)

See merge request espressif/esp-idf!27811
2023-12-15 19:29:27 +08:00
Rahul Tank
259006a8c3 fix(nimble): Fix the parameters in duplicate exception list vsc command 2023-12-15 15:56:19 +05:30
Rahul Tank
9b28d121f0 Merge branch 'bugfix/add_legacy_adv_clear_vsc_v5.0' into 'release/v5.0'
fix(nimble): Add support for VSC to clear legacy adv memory (v5.0)

See merge request espressif/esp-idf!27473
2023-12-15 18:02:34 +08:00
Aditya Patwardhan
5a14730f75 fix(mbedtls): Removed redundant menuconfig entry 2023-12-15 09:50:22 +00:00
Mahavir Jain
d198439225 Merge branch 'fix/aes_mpi_interrupt_allocation_workflow_v5.0' into 'release/v5.0'
fix(mbedtls): move interrupt allocation during initialization phase (v5.0)

See merge request espressif/esp-idf!27442
2023-12-15 17:49:12 +08:00
Mahavir Jain
bd3cd0cc0c Merge branch 'bugfix/preencrypted_ota_failed_with_partial_download_v5.0' into 'release/v5.0'
fix(esp_https_ota): fix preencrypted ota failed with pytest server and partial http enabled (v5.0)

See merge request espressif/esp-idf!27355
2023-12-15 17:47:52 +08:00
Mahavir Jain
60c62958ca Merge branch 'bugfix/wrong_ota_upgrade_size_log_v5.0' into 'release/v5.0'
fix(esp_https_ota): Fix wrong debug print for ota upgrade size (v5.0)

See merge request espressif/esp-idf!27353
2023-12-15 17:47:37 +08:00
Mahavir Jain
0e19d1ff9c Merge branch 'bugfix/fix_http_client_async_mode_v5.0' into 'release/v5.0'
fix(esp_http_client): Fix esp_http_client async mode (v5.0)

See merge request espressif/esp-idf!27515
2023-12-15 17:47:21 +08:00
Mahavir Jain
330fbdda57 Merge branch 'fix/esp32s3_soc_drom_high_addr_v5.0' into 'release/v5.0'
fix(soc): esp32s3/Fix the DROM_HIGH_ADDR (v5.0)

See merge request espressif/esp-idf!27823
2023-12-15 17:46:55 +08:00
Mahavir Jain
0797e1cb96 Merge branch 'contrib/github_pr_12460_v5.0' into 'release/v5.0'
fixing OTA write up to SPI_FLASH_SEC_SIZE margins (GitHub PR) (v5.0)

See merge request espressif/esp-idf!27645
2023-12-15 17:46:14 +08:00
Mahavir Jain
104580865d Merge branch 'fix/wrong_order_of_includes_in_esp_tls_v5.0' into 'release/v5.0'
fix(esp-tls): Fix missing header files in esp_tls_errors.h header file (v5.0)

See merge request espressif/esp-idf!27705
2023-12-15 17:45:26 +08:00
Xue yun fei
a60e0adb66 optimize(lwip):when psram is enable the number of ooseq is not limited 2023-12-15 15:29:44 +08:00
xueyunfei
ec63da0753 Backport some lwip bugs for 5.0
* Update submodule: git log --oneline 6bf7044c0368d587f70f7083e39e0a619b4d5788..542ba2997f6cc14fe9c3d781bf9b0d890cd70bb1
Detailed description of the changes:
- fix router forwarding flag set (esp-lwip@542ba299)
- optimize add TCP ooseq buf timeout configuration (esp-lwip@4a8286ab)
2023-12-15 15:28:53 +08:00
Rahul Tank
d31cb0d0cd fix(nimble): Add support for VSC to clear legacy adv memory
Legacy adv does not have an API for clear adv memory in controller.
 Added VSC for same.
2023-12-14 17:41:19 +05:30
wanlei
4e8de2c105 fix(spi_master): fixed lcd example block border pixel issue 2023-12-14 17:18:00 +08:00
Aditya Patwardhan
be58e27f58 Merge branch 'update/version_5_0_5' into 'release/v5.0'
change(version): Update version to 5.0.5

See merge request espressif/esp-idf!27884
2023-12-14 14:23:40 +08:00
linruihao
9a4c4b11d3 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(9129dec) 2023-12-13 20:06:55 +08:00
GuyBrush
40263563fd fix(tools): fix path delimiter in gdbinit for Windows
Merges https://github.com/espressif/esp-idf/pull/12683

Signed-off-by: Alexey Lapshin <alexey.lapshin@espressif.com>
2023-12-13 09:27:44 +00:00
Aditya Patwardhan
03d7a3807b change(version): Update version to 5.0.5 2023-12-13 13:49:52 +05:50
Zim Kalinowski
2e9999d7b1 fix(example/http): Fixed potential memory leak/crash in when handling error condition 2023-12-13 10:10:43 +05:30
gongyantao
264a743a7b fix(bt/bluedroid): fixed build error when compiler in performace mode
Closes https://github.com/espressif/esp-idf/issues/12751
2023-12-12 19:04:36 +08:00
Aleksei Apaseev
d17433623d fix(idf_tools): Opt for the recommended tool in tools.json rather than the supported one (v5.0) 2023-12-12 14:19:39 +08:00
zhangyanjiao
82f409107c feat(wifi): add new api to get one scan ap record 2023-12-11 18:09:13 +08:00
zhangyanjiao
192f9025fb fix(wifi): fix issues in scan and wifi mesh
1. fix(wifi): fix the crash issue when clear scan ap list
2. fix the bug that station can't found AP when the authmode is WPA
2. fix wifi mode error when mesh start after station has connected to router
2023-12-11 18:05:55 +08:00
Aditya Patwardhan
d9aab654c4 fix(soc): esp32s3/Fix the DROM_DROM_HIGH limit
Previously the DROM_HIGH_ADDR for esp32s3 was 0x3D000000, which
    convers only 16 MB of address range. But esp32s3 supports 32 MB
    external memory. So this address should be 0x3E000000
2023-12-11 12:22:48 +05:30
wanlei
62efb02ecf fix(twai): fix build error TWAI_TAG used but not defined
bug introduced from efef8401
closes https://github.com/espressif/esp-idf/issues/12760
2023-12-11 14:19:37 +08:00
Jiang Jiang Jian
9fe3bf2a3c Merge branch 'bugfix/fix_ble_clear_white_list_v5.0' into 'release/v5.0'
Fixed add(remove) RPA to(from) white list on ESP32C3(65db61f)(backport 5.0)

See merge request espressif/esp-idf!27757
2023-12-08 19:09:05 +08:00
Island
b1e88e3f6e Merge branch 'bugfix/remove_bond_v5.0' into 'release/v5.0'
fix(nimble): Handled IRK/LTK deletion based on key availability(v5.0)

See merge request espressif/esp-idf!26598
2023-12-08 18:43:20 +08:00
chenjianhua
32d3bf7919 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(65db61f)
- Fixed remove and clear white list
2023-12-08 13:40:44 +08:00
Abhinav Kudnar
2d14933dbc fix(nimble): Handled IRK/LTK deletion based on key availability. 2023-12-07 13:47:16 +05:30
Jiang Jiang Jian
2e387a71b0 Merge branch 'bugfix/fix_dhcp_server_can_not_restore_address_pool_issue_5.0' into 'release/v5.0'
fix(dhcp server):dhcp server can not restore address pool 5.0

See merge request espressif/esp-idf!27692
2023-12-06 16:57:35 +08:00
wanlei
64ac8f0874 fix(spi): correct some signals and dummy bits docs 2023-12-06 16:28:51 +08:00
TD-er
a27b43a6db fix(spi): Correct REG_SPI_BASE(i) macro for all targets
The existing formula can never match these registers.

Closes https://github.com/espressif/esp-idf/pull/12559
Closes https://github.com/espressif/esp-idf/pull/12562
2023-12-06 16:27:06 +08:00
luomanruo
38f9aa04f8 ble(fix): Fixed crash issue when reset event queue 2023-12-06 14:16:33 +08:00
Harshit Malpani
0728e4cdf4 fix(esp-tls): Add headers in esp_tls_errors.h header file
Closes https://github.com/espressif/esp-idf/issues/12541
2023-12-06 10:20:07 +05:30
chenjianhua
51ba771176 fix(bt): Update bt lib for ESP32(fa43201)
- Fixed assert for instant passed workaround
- Fixed scan evt timeout
- Fixed random address setting when scanning
2023-12-06 10:51:38 +08:00
shangke
2c3b392b0e fix(bt/controller): Fixed some HCI commands parameter 2023-12-06 10:51:31 +08:00
xueyunfei
112ce3f3a5 fix(dhcp server):dhcp server can not restore address pool 2023-12-06 10:32:27 +08:00
luomanruo
8e48c4756e ble: update ble log on ESP32C2
ble(fix): clear event queue when init event queue
2023-12-05 16:11:15 +08:00
Island
ab5576d91d Merge branch 'bugfix/fix_bleqabr23_808_v5.0' into 'release/v5.0'
Fixed assert when LLCP instant passed on ESP32-C3 (backport v5.0)

See merge request espressif/esp-idf!27635
2023-12-05 12:32:45 +08:00
Roland Dobai
53bebcade5 fix(tools): Fix fatfsgen construct exception type and dependency
construct=2.10.70 fixed an issue
(c3866e9492)
and StringError is raised instead of UnicodeDecodeError.
2023-12-04 17:24:46 +01:00
kohait00
7a4cec1edb fix(app_update): avoid erasing an extra sector than the actual required size
OTA update used to fail if `firmware_size == partition_size`, because the code was trying to
erase one additional sector beyond the space reserved for the firmware partition.

This commit fixes the problem and OTA update can work if the firmware
size exactly matches the allocated partition size.

Closes https://github.com/espressif/esp-idf/pull/12460
2023-12-04 18:48:30 +05:30
chenjianhua
259e8ab25b fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(b8f0db9)
- Fixed assert when llcp instant passed
2023-12-04 17:09:50 +08:00
chenjianhua
19919a2222 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(70ab55f)
- Fixed assert for instant passed workaround
- Fixed add RPA to white list
- Fixed AES encryption for RPA resolution
2023-12-04 17:09:38 +08:00
chenjianhua
52333aeac9 fix(bt/bluedroid): Fixed add RPA to white list 2023-12-04 17:09:28 +08:00
Jiang Jiang Jian
1d611df0b5 Merge branch 'bugfix/alarm_args_double_free_v5.0' into 'release/v5.0'
Bugfix/alarm args double free v5.0

See merge request espressif/esp-idf!27539
2023-12-04 14:57:21 +08:00
zhanghaipeng
1355f58180 feat(bt/bluedroid): Support ble create sync report disable and filter duplicate 2023-12-04 14:38:51 +08:00
gaoxu
38d0be39a8 fix(adc): fix adc continuous get less results beacuse do not reset apb clk 2023-12-04 14:29:57 +08:00
Jakob Hasse
900ee4e7a6 fix(esp_hw_support): Removed unused include directories from cmake
* Closes https://github.com/espressif/esp-idf/issues/12700
2023-12-04 14:12:18 +08:00
Jin Cheng
e7a52632f0 feat(bt/bluedroid): Added an API to specify data types for ACL-U traffic 2023-12-04 10:28:05 +08:00
luomanruo
63c78087ed ble(update):
Update c2 lib to 47a787f0
2023-12-01 19:30:43 +08:00
harshal.patil
206af07ad4 fix(mbedtls/aes): fix AES interrupt allocation for AES-GCM operations 2023-12-01 16:49:47 +05:30
harshal.patil
b72804340c fix(mbedtls): move interrupt allocation during initialization phase 2023-12-01 16:49:47 +05:30
zhanghaipeng
7129df2ad5 fix(bt/bluedroid): Fix BLE SMP register log level 2023-12-01 17:01:26 +08:00
David Cermak
ee02d4d51b fix(lwip): Document DNS limitation in lwIP
* Add a note that DNS server config is global in lwIP
* Add a section about defining LWIP config macros from CMake
* Mention the DNS limitation in ESP-IDF additions to lwIP
* Update CN for lwIP DNS limitation

Co-Authored-By: Wang Ziyan <wangziyan@espressif.com>
2023-12-01 08:47:16 +01:00
Frantisek Hrbata
13e4c1a9e7 feat(docker): allow to add paths into git's safe.directory
With 8959555cee7e[1] ("setup_git_directory(): add an owner check for the top..")
git added an ownership check of the git directory and refuses to
run any git commands, even parsing the config file, if the git directory
is not owned by the current user. The "fatal: detected dubious ownership in repository"
is reported.

This fixes CVE-2022-24765[2], which allows to compromise user account. On a
multi-user system or e.g. on a shared file system, one user may create a "rogue"
git repository with e.g. core.fsmonitor set to an arbitrary command. Other user
may unwillingly execute this command by running e.g. git-diff or
git-status within the "rogue" git repository, which may be in one of the parent
directories. If e.g. PS1 is set to display information about a git
repository in CWD, as suggested in Git in Bash[3], the user do not need to run
any git command to trigger this, just entering some subdirectory under
this "rogue" git repository is enough, because the git command will be
started transparently through the script used in PS1. The core.fsmonitor
can be set to arbitrary command. It's purpose is to help git to identify changed files
and speed up the scanning for changed files.

rogue
├── .git     # owned by user1
└── dir1     # owned by user2
    ├── dir2 # owned by user2
    └── .git # owned by user2

user1 sets core.fsmonitor for git repository in rogue directory
$ git config --add core.fsmonitor "bash -c 'rm -rf \$HOME'"

user2 enters dir1 and runs e.g. git diff and triggers the core.fsmonitor command.

The ownership check may cause problems when running git commands in
ESP-IDF Docker container. For example user may run the container as
root, but the mounted project may be owned by a particular user.

In this case git will refuse to execute any git command within the
"/project" directory, because it's not owned by root. To overcome this,
git allows to set safe.directories, for which the ownership check is
skipped. The security check may be completely disabled by setting
safe.directories to "*". This solution was proposed in PR 12636[4], but
it would allow make it possible to exploit this vulnerability again.

This fix allows user to specify git's safe.directory in IDF_GIT_SAFE_DIR
environmental variable, which may be set during container startup.

The IDF_GIT_SAFE_DIR has same format as PATH and multiple directories can be
specified by using a ":" separator. To entirely disable this git security check
within the container, user may set IDF_GIT_SAFE_DIR='*'. This might be
heplfull in CI.

Closes https://github.com/espressif/esp-idf/pull/12636

[1] - 8959555cee
[2] - https://nvd.nist.gov/vuln/detail/cve-2022-24765
[3] - https://git-scm.com/book/en/v2/Appendix-A%3A-Git-in-Other-Environments-Git-in-Bash
[4] - https://github.com/espressif/esp-idf/pull/12636

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-12-01 08:31:06 +01:00
Island
a060a261ef Merge branch 'bugfix/ble_update_lib_20231124_v5.0' into 'release/v5.0'
ble(update):Update c2 lib to 79ed4e8a

See merge request espressif/esp-idf!27392
2023-12-01 13:58:16 +08:00
Jiang Jiang Jian
c56fa7ce36 Merge branch 'bugfix/fix_wifi_deinit_s_wifi_modem_sleep_lock_v5.0' into 'release/v5.0'
fix(wifi): fix wifi deinit s_wifi_modem_sleep_lock

See merge request espressif/esp-idf!27449
2023-12-01 13:57:41 +08:00
Jin Cheng
db287328bc fix(bt/bluedroid): Set the alarm_arg to NULL after releasing to avoid double free in L2CAP layer 2023-11-30 20:14:31 +08:00
Jin Cheng
bab64a98d8 fix(bt/bluedroid): Set the alarm_arg to NULL after releasing to avoid double free in BTC layer 2023-11-30 20:14:31 +08:00
Michael (XIAO Xufeng)
3cab1a00bc Merge branch 'feat/max_ver_c3_199_v5.0' into 'release/v5.0'
feat(soc): Increase max supported version of C3 to 1.99 (v5.0)

See merge request espressif/esp-idf!26824
2023-11-30 17:01:13 +08:00
Harshit Malpani
c2f66b5d89 fix(esp_http_client): Fix esp_http_client async mode
Closes https://github.com/espressif/esp-idf/issues/12358
2023-11-30 12:11:43 +05:30
Liu Linyan
4de66ad588 fix(ble_mesh): Enable relay by default for the specific dev role 2023-11-30 12:28:32 +08:00
zhanghaipeng
9ab954096a fix(bt/bluedroid): Fix bluedroid menuconfig 2023-11-30 10:39:06 +08:00
zhanghaipeng
92080994fd docs(bt/bluedroid): Update ble example document 2023-11-30 10:38:43 +08:00
Michael (XIAO Xufeng)
893725dd40 feat(soc): Increase max supported version of C3 to 1.99 2023-11-29 15:52:09 +08:00
luomanruo
0b71f8a2d2 ble(fix): fix RX issue on ESP32-C2(amend) 2023-11-29 11:05:11 +08:00
liuning
606360d33d fix(wifi): fix wifi deinit s_wifi_modem_sleep_lock 2023-11-28 20:52:42 +08:00
morris
f73a701e3c fix(i80_lcd): enhance the check of a valid data phase
in case the user passes a (uint8_t){0x00} parameter with the perameter size
set to zero
2023-11-28 09:57:21 +08:00
David Cermak
41cd40e7f3 fix(esp_netif): Make esp_netif_next_unsafe() public and update usage
Updates usage of esp_netif_next() in examples and tests
* Uses netif_find_if() in IPv6 examples
* Fixes esp_netif_next() usage in L2TAP
2023-11-27 08:22:55 +01:00
David Cermak
b3954c198d feat(esp_netif): Added new API to search in netif list 2023-11-27 08:22:55 +01:00
David Cermak
104a1eeb16 fix(esp_netif): Fix races in netif object locking 2023-11-27 08:22:51 +01:00
Roman Leonov
e50593662f fix(usb/host): remove bInterval verification during pipe opening for INTR and ISOC EPs 2023-11-24 16:26:08 +01:00
Tomas Rezucha
9cdd6ac5f1 fix(usb/host): Do not abort on string descriptor overflow
Some devices return full LANGID table, even if short LANGID table was requested.
No memory overflow occurs, because we have allocated enough memory for transfers to the
default pipe. So we can ignore the error and continue with string desc fetching.
2023-11-24 16:25:54 +01:00
Darian Leung
ce351790a8 refactor(hal/usb_dwc): Add DWC OTG configuration values
This commit adds a subset of the DWC OTG configuration values to the
'usb_dwc_ll.h' file. Only relevant configuration values have been added.

Some DWC OTG releated constants have also been moved from 'usb_dwc_hal.h'
to 'usb_dwc_ll.h' and renamed.
2023-11-24 16:25:02 +01:00
Darian Leung
ec2ba71f97 refactor(soc): SOC_USB_PERIPH_NUM option
This commit refactors SOC_USB_PERIPH_NUM as follows:

- Renamed to SOC_USB_OTG_PERIPH_NUM to avoid confusion with USB Serial JTAG
- Updated to unsigned integer "1U"
- Updated some build rules to depend on SOC_USB_OTG_SUPPORTED instead
2023-11-24 16:21:07 +01:00
luomanruo
71ed11a7f0 ble: update rom.ld file 2023-11-24 20:35:07 +08:00
luomanruo
b147fcad42 ble: update sdkconfig_version on ESP32C2, ESP32H2 and ESP32C6 2023-11-24 20:17:28 +08:00
luomanruo
d8dd468631 ble(fix): fix RX issue on ESP32-C2 2023-11-24 19:44:11 +08:00
luomanruo
69e7b56c48 ble:
Update c2 lib to 79ed4e8a
2023-11-24 19:20:54 +08:00
Alexey Lapshin
f7a6ca13e9 feat(tools): update gdb version to 12.1_20231023 2023-11-24 11:17:52 +04:00
Jiang Jiang Jian
32160c7b74 Merge branch 'bugfix/fix_ps_none_wake_null_v5.0' into 'release/v5.0'
fix(wifi): fix endless wake null at ps none mode (v5.0)

See merge request espressif/esp-idf!27346
2023-11-23 23:57:07 +08:00
Ondrej Kosta
3c8b6d328c feat(esp_eth): added ioctl option to read/write PHY registers
LAN87xx: Added extra delay after setting PHY speed
2023-11-23 15:34:34 +01:00
Ondrej Kosta
4da9358402 fix(esp_eth): various Ethernet driver fixes
ksz8851snl: enabled reception of multicast frames

Internal EMAC: fixed APLL CLK deinitialization

DM9051 and KSZ80xx: fixed speed configuration when not in loopback mode

phy_802_3: added multiple attempts when autodetecting PHY address
2023-11-23 13:14:31 +00:00
Bogdan Kolendovskyy
64ee5098b2 esp_eth: fixed chip drivers to reflect chip specific loopback behaviour
In esp_eth_phy_802_3.h:
Make 802.3 API public.

In esp_eth_phy_802_3.c:
Add loopback check in eth_phy_802_3_set_duplex(). Now ESP_ERR_INVALID_STATE is invoked on attempt to set duplex to half
when loopback is enabled.
Remove static property from esp_eth_phy_802_3_autonego_ctrl and esp_eth_phy_802_3_loopback.

In esp_eth_phy_dm9051.c:
Add dm9051_loopback() because DM9051 requires setting additional bit to enable auto-negotiation loopback for data to be
received. Add dm9051_set_speed() which invokes ESP_ERR_INVALID_STATE on attempt to set speed to 10 Mbps when loopback is
enabled because such speed configuration is unsupported.

In esp_eth_phy_ksz80xx.c:
Add ksz80xx_set_speed() which invokes ESP_ERR_INVALID_STATE on attempt to set speed to 10 Mbps when loopback is enabled
because such speed configuration is unsupported.

In esp_eth_phy_ksz8851snl.c:
Change phy_ksz8851_set_duplex() to invoke ESP_ERR_INVALID_STATE on attempt to set duplex to half when loopback is enabled.

In  esp_eth_phy_dp83848.c, esp_eth_phy_rtl8201.c:
Add autonego_ctrl implementation which prevents enabling autonegotiation when loopback is enabled.
Add loopback implementation which disables autonegotiation prior to enabling loopback.

In esp_eth_phy_lan87xx.c:
Add autonego_ctrl implementation which prevents enabling autonegotiation when loopback is enabled.
Add loopback implementation which disables autonegotiation prior to enabling loopback.
Fix link indicating being down when loopback is enabled by force setting link up.
2023-11-23 13:14:31 +00:00
Jiang Jiang Jian
15825570a3 Merge branch 'contrib/github_pr_12052_v5.0' into 'release/v5.0'
Two small patches for build system and fatfs (GitHub PR) (v5.0)

See merge request espressif/esp-idf!26432
2023-11-23 19:27:38 +08:00
Jiang Jiang Jian
eaba52d7df Merge branch 'fix/remove_deprecated_bt_example_sdkfonfigs_v5.0' into 'release/v5.0'
ci(bt/bluedroid): remove configs that are not in effect (backport v5.0)

See merge request espressif/esp-idf!27283
2023-11-23 19:14:14 +08:00
Jiang Jiang Jian
893dac658e Merge branch 'bugfix/validate_random_address_v5.0' into 'release/v5.0'
fix(nimble): Added check to validate allowed random address (v5.0)

See merge request espressif/esp-idf!26929
2023-11-23 19:12:15 +08:00
nilesh.kale
54bf1e708b fix: fix preencrypted ota failed with pytest server and partial http enabled 2023-11-23 12:48:28 +05:30
Jiang Jiang Jian
ae02cc7b7c Merge branch 'feat/dynamic_integration_pipeline_v5.0' into 'release/v5.0'
CI: dynamic integration pipeline v5.0

See merge request espressif/esp-idf!26947
2023-11-23 15:17:12 +08:00
Jiang Jiang Jian
85651c507f Merge branch 'contrib/github_pr_12558_v5.0' into 'release/v5.0'
Fix: esptool_py incorrectly assumed target name equals binary name (GitHub PR) (v5.0)

See merge request espressif/esp-idf!27272
2023-11-23 15:13:59 +08:00
nilesh.kale
47fe2499ca fix(component-esp_https_ota): Fix wrong debug print for ota upgrade size 2023-11-23 12:28:50 +05:30
Jiang Jiang Jian
a8caeb9af4 Merge branch 'bugfix/fix_lightsleep_current_leakage_on_usj_pad_v5.0' into 'release/v5.0'
fix(esp_hw_support): fix lightsleep current leakage on usb pad (backport v5.0)

See merge request espressif/esp-idf!27208
2023-11-23 14:46:38 +08:00
zhangyanjiao
0b740b3b80 fix(wifi): fix endless wake null at ps none mode 2023-11-23 14:43:40 +08:00
Jiang Jiang Jian
cba997763d Merge branch 'bugfix/fix_some_wifi_bugs_231121_v5.0' into 'release/v5.0'
fix(wifi): fix some wifi bugs(Backport v5.0)

See merge request espressif/esp-idf!27306
2023-11-23 14:41:40 +08:00
morris
f97e379122 Merge branch 'fix/twai_crash_on_s3_gpio_19and20' into 'release/v5.0'
fix(twai): example crash using usb-serial-jtag gpio (v5.0)

See merge request espressif/esp-idf!26660
2023-11-23 14:34:20 +08:00
morris
3bb601cee7 Merge branch 'feature/mcpwm_trigger_driver_v5.0' into 'release/v5.0'
feature(MCPWM): Add MCPWM trigger driver (v5.0)

See merge request espressif/esp-idf!26788
2023-11-23 14:33:20 +08:00
Jiang Jiang Jian
5f497153f7 Merge branch 'bugfix/rmt_stop_issue_v5.0' into 'release/v5.0'
fix(rmt): a disabled channel may pick up a pending transaction (v5.0)

See merge request espressif/esp-idf!26780
2023-11-23 14:27:25 +08:00
Rahul Tank
94c90c71bc fix(nimble): Added check to validate allowed random address 2023-11-23 10:37:54 +05:30
morris
28224b3af5 Merge branch 'bugfix/fix_wrong_adc_attenuation_name_v5.0' into 'release/v5.0'
fix(adc): rename ADC_ATTEN_DB_11 to ADC_ATTEN_DB_12 (v5.0)

See merge request espressif/esp-idf!26968
2023-11-23 12:04:24 +08:00
Jiang Jiang Jian
20d82594d7 Merge branch 'bugfix/ble_gap_connect_v5.0' into 'release/v5.0'
fix(nimble):Handled the Load access fault crash caused due to an invalid setting of index-variable 'reattempt_idx'.(v5.0)

See merge request espressif/esp-idf!26950
2023-11-23 12:03:59 +08:00
morris
692952d60e Merge branch 'bugfix/ledc_max_duty_cycle_v5.0' into 'release/v5.0'
fix(ledc): fix ledc driver 100% duty cycle configuration (backport v5.0)

See merge request espressif/esp-idf!27228
2023-11-23 12:03:28 +08:00
Jiang Jiang Jian
a5c2e40416 Merge branch 'bugfix/ble_update_lib_1110_5.0' into 'release/v5.0'
Bugfix/ble update lib 1110 5.0

See merge request espressif/esp-idf!27063
2023-11-23 11:05:29 +08:00
Jiang Jiang Jian
457c00eead Merge branch 'fix/ci_autocomplete_v5.0' into 'release/v5.0'
Tools, CI: Improve autocomplete tests (v5.0)

See merge request espressif/esp-idf!27038
2023-11-23 11:04:37 +08:00
Jiang Jiang Jian
201608e590 Merge branch 'bugfix/fix_adc_oneshot_do_not_spilt_clk_v5.0' into 'release/v5.0'
fix(adc): fix ADC oneshot mod don't divide clk (v5.0)

See merge request espressif/esp-idf!26676
2023-11-23 11:02:10 +08:00
Jiang Jiang Jian
de88da5370 Merge branch 'bugfix/return_code_of_ota_finish_api_v5.0' into 'release/v5.0'
fix(esp_https_ota): fix return code of esp_https_ota_finish API (v5.0)

See merge request espressif/esp-idf!27336
2023-11-23 11:01:20 +08:00
Jiang Jiang Jian
2166b5986e Merge branch 'bugfix/fix_wifi_init_reentrant_issue_v5.0' into 'release/v5.0'
fix(wifi): fix wifi init reentrant issue (v5.0)

See merge request espressif/esp-idf!27175
2023-11-23 10:57:40 +08:00
Jiang Jiang Jian
5c1f5f2522 Merge branch 'bugfix/add_par_check_in_ag_cind_res_v5.0' into 'release/v5.0'
Bugfix/add par check in ag cind res v5.0

See merge request espressif/esp-idf!27258
2023-11-23 10:48:16 +08:00
wuzhenghui
ead822e6ee fix(esp_hw_support): fix lightsleep current leakage on usb-phy controlled pad 2023-11-23 10:21:02 +08:00
Jiang Jiang Jian
d7667c79ef Merge branch 'bugfix/fix_dhcp_subnet_option_api_dos_not_work_issue_5.0' into 'release/v5.0'
Fix(dhcps):fix dhcp subnet option api dos not work issue 5.0

See merge request espressif/esp-idf!27300
2023-11-23 00:05:38 +08:00
Frantisek Hrbata
d587d24c43 feat(ci): add test for custom cmake CMAKE_EXECUTABLE_SUFFIX
Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-11-22 14:44:18 +00:00
Arno Moonen
7d87f56e35 fix(build): fix build failure if CMAKE_EXECUTABLE_SUFFIX is set
From: Arno Moonen <arno.moonen@airios.eu>

Follows original message from Arno Moonen <arno.moonen@airios.eu>

While integrating the ESP-IDF into our existing CMake structure,
I've come across quite some hurdles. Most I've been able to fix
in our CMake files, however this one I could not.

Most of the targets created by the esptool_py component assume
that the EXECUTABLE IDF build property (which contains the name
of the CMake executable target) always equals the name of the
created binary.

This is however not always true. For instance, in our setup we use
CMAKE_EXECUTABLE_SUFFIX_C and CMAKE_EXECUTABLE_SUFFIX_CXX in our
toolchain file (both set to .elf). If we do add_executable(my_app),
the target binary file would actually be my_app.elf.

In order to fix this, I've updated it to use the TARGET_FILE generated
expression. That way we also no longer need the EXECUTABLE_DIR IDF build
property here.

I've fixed this on v5.0.1 (as that's the ESP-IDF version I'm currently
trying to integrate), but I assume it should be easy to apply the same
fix to newer versions and the master branch as well.

Note that this problem might exist in multiple places where EXECUTABLE
is being used. While going through the ESP-IDF code base, I even noticed
that a few places actually already seem to use the TARGET_FILE expression.
To be honest the property name might be somewhat confusing as well, as it
is actually the executable target.

Closes https://github.com/espressif/esp-idf/pull/12558
2023-11-22 14:44:18 +00:00
Abhinav Kudnar
2e833a6a12 fix(nimble):Handled the Load access fault crash caused due to an invalid setting of index-varible 'reattempt_idx'. 2023-11-22 19:39:55 +05:30
Harshit Malpani
73de32f29f fix(esp_https_ota): fix return code of esp_https_ota_finish API
Closes https://github.com/espressif/esp-idf/issues/12635
2023-11-22 17:10:31 +05:30
muhaidong
2e5937286c fix(wifi): fix some wifi bugs
1 sta not pmf capable when ap requires should reject profile
2 fix softap set config issue
3 allow some special igtk keyindx to workaround faulty APs
2023-11-22 19:04:43 +08:00
Jiang Jiang Jian
5c4ddf2d83 Merge branch 'bugfix/clear_ulp_wake_intr_in_wake_source_enable_v5.0' into 'release/v5.0'
fix(esp_hw_support): clear all type ULP wakeup intr status at ulp wakeup source enable (backport v5.0)

See merge request espressif/esp-idf!27189
2023-11-22 17:33:23 +08:00
Jiang Jiang Jian
1884afc9c4 Merge branch 'bugfix/dpp_config_memset_v5.0' into 'release/v5.0'
Wi-Fi: Fixed some DPP issues (v5.0)

See merge request espressif/esp-idf!27193
2023-11-22 17:31:31 +08:00
Jiang Jiang Jian
c0dd50a35b Merge branch 'bugfix/esp32s3_usb_otg_console_without_efuse_v5.0' into 'release/v5.0'
fix(console): switch USB PHY to OTG when OTG is used for console (v5.0)

See merge request espressif/esp-idf!27135
2023-11-22 17:31:10 +08:00
Jiang Jiang Jian
09a9a9257d Merge branch 'check_debug_aware_config_v5.0' into 'release/v5.0'
fix(esp_hw_support): re-enable CONFIG_ESP_DEBUG_OCDAWARE functionality (v5.0)

See merge request espressif/esp-idf!27107
2023-11-22 17:30:59 +08:00
Jiang Jiang Jian
2e0d1508c4 Merge branch 'bugfix/spp_deinit_crash_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix the crash of invalid access to released resources (v5.0)

See merge request espressif/esp-idf!27252
2023-11-22 17:29:27 +08:00
Jiang Jiang Jian
d920052bf0 Merge branch 'feature/support_for_32_and_128_bit_custom_uuids_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Add new APIs for 32 and 128-bit UUIDs (backport v5.0)

See merge request espressif/esp-idf!27231
2023-11-22 17:29:12 +08:00
Jiang Jiang Jian
12ee01fc87 Merge branch 'fix/wifi_prov_mgr_retry_auth_expire_v5.0' into 'release/v5.0'
fix (wifi_prov): Retry provisioning on `WIFI_AUTH_EXPIRE` event (v5.0)

See merge request espressif/esp-idf!26902
2023-11-22 17:27:13 +08:00
Jin Cheng
9998c2bd82 fix(bt/bluedroid): corrected the API documents of profile HFP and A2DP 2023-11-22 09:21:59 +00:00
Jin Cheng
4c8502e00d fix(bt/bluedroid): Added some argument check in APIs of HFP AG 2023-11-22 09:21:59 +00:00
liuning
ac5ce8d02d fix(wifi): fix wifi init reentrant issue 2023-11-22 16:58:55 +08:00
Jiang Jiang Jian
293cf4d332 Merge branch 'bugfix/s3_irom_addr_v5.0' into 'release/v5.0'
soc: fix SOC_IROM_MASK_HIGH for esp32s3 (v5.0)

See merge request espressif/esp-idf!27137
2023-11-22 13:58:47 +08:00
Jiang Jiang Jian
e4a38c3cba Merge branch 'bugfix/fix_psram_access_faild_after_pd_cpu_wakeup_v5.0' into 'release/v5.0'
fix(esp_pm): fix psram access failed after pd_cpu wakeup if uart driver driven console is used (backport v5.0)

See merge request espressif/esp-idf!27054
2023-11-22 13:58:38 +08:00
luomanruo
1c0fb3bb4a ble(fix): deinit crash issue 2023-11-22 03:13:43 +00:00
zwl
08e4757764 fix(ble): fixed ble occasional rx exception issue 2023-11-22 03:13:43 +00:00
luomanruo
1c261213d7 ble: update controller log module 2023-11-22 03:13:43 +00:00
luomanruo
30cd76b0f0 ble: update c2 lib to db4e1fb2 2023-11-22 03:13:43 +00:00
luomanruo
977b7f4bdb ble(fix): Fixed the issue of not returning memory to the memory pool after deinit callout
ble(fix): Fixed the issue of not returning memory to the memory pool after deinit callout
2023-11-22 03:13:43 +00:00
Song Ruo Jing
c0a1d27858 fix(ledc): fix ledc driver 100% duty cycle configuration
Update ledc duty cycle value range in doxygen.
Fix duty configuration error at 100% duty cycle for ESP32.
Improve LEDC API doxygen.

Closes https://github.com/espressif/esp-idf/pull/11516
Closes https://github.com/espressif/esp-idf/issues/12593
Closes https://github.com/espressif/esp-idf/issues/12083
2023-11-22 03:12:38 +00:00
wuzhenghui
8c34ab0e67 fix(riscv): supports 1 byte and larger than 64byte range watchpoint setting 2023-11-22 03:12:06 +00:00
wuzhenghui
0a17593a7f change(soc): rename SOC_CPU_WATCHPOINT_SIZE to SOC_CPU_WATCHPOINT_MAX_REGION_SIZE 2023-11-22 03:12:06 +00:00
Alexey Lapshin
686789de89 riscv: remove outdated macros 2023-11-22 03:12:06 +00:00
Alexey Lapshin
dacb36b422 riscv: fix trigger add from trap handlers 2023-11-22 03:12:06 +00:00
Alexey Lapshin
d3da497c74 riscv: fix & refactor triggers add/delete 2023-11-22 03:12:06 +00:00
Ilia Lutchenko
fffc6f9328 feat(bt/bluedroid): Add new APIs for 32 and 128-bit UUIDs
1. Added new API functions that can add 32 and 128-bit UUID to the EIR data
when these UUIDs are set in SDP.
The old functions that only work with 16-bit UUIDs have been left
unchanged to avoid having to redo code that already utilizes them.

2. Fixed bug with zero handler return in btc_sdp.c
sdp_create_record.handle in tBTA_SDP struct wasn't saved before.
Because of it Bluetooth stack always returned zero handler to
application callback.

Closes https://github.com/espressif/esp-idf/issues/11529
2023-11-22 03:10:00 +00:00
Jin Cheng
8ae138e7be fix(bt/bluedroid): Fix the crash of invalid access to released resources
It is caused by the delayed timer is alarmed after esp_spp_deinit.
2023-11-22 03:09:13 +00:00
Jiang Jiang Jian
6c9c30f125 Merge branch 'bugfix/coex_deprecate_config_rename_v5.0' into 'release/v5.0'
fix(esp_coex): Fix deprecated configuration options not rename to new one (Backport v5.0)

See merge request espressif/esp-idf!27092
2023-11-22 11:07:00 +08:00
wuzhenghui
ea8b719288 fix(esp_hw_support): clear all type ULP wakeup intr status at ulp wakeup source enable 2023-11-22 03:06:03 +00:00
Erhan Kurubas
5f1d3790cc fix(esp_hw_support): re-enable CONFIG_ESP_DEBUG_OCDAWARE functionality 2023-11-22 03:05:34 +00:00
Ivan Grokhotkov
c29f14e7b2 fix(console): switch USB PHY to OTG when OTG is used for console
On ESP32-S3 with the default efuse settings, USB PHY is connected to
the USB_SERIAL_JTAG peripheral. If USB OTG peripheral is used for the
console, we need to additionally switch the PHY to USB OTG, otherwise
we won't get any output.

Closes https://github.com/espressif/esp-idf/issues/12437
2023-11-22 03:04:13 +00:00
Ivan Grokhotkov
3fd3848932 fix(soc): update SOC_IROM_MASK_HIGH for esp32 for consistency 2023-11-22 03:03:35 +00:00
Ivan Grokhotkov
207996eb68 fix(soc): correct SOC_IROM_MASK_HIGH for esp32s3
Fixes corrupted backtraces on S3 when a function is in ROM.

Closes https://github.com/espressif/esp-idf/issues/11512
2023-11-22 03:03:35 +00:00
wuzhenghui
6de1e945c8 fix(esp_pm): fix psram access faild after pd_cpu wakeup 2023-11-22 03:02:06 +00:00
Kapil Gupta
a155523263 fix(wpa_supplicant): memzero wifi config before sending config event 2023-11-22 02:58:06 +00:00
Kapil Gupta
6383609e99 fix(wifi): Disallow DPP and WPS concurrency 2023-11-22 02:58:06 +00:00
xueyunfei
40f1ca7666 Fix(dhcps):fix dhcp subnet option api dos not work issue 2023-11-22 02:56:07 +00:00
Jiang Jiang Jian
35f09a6ce6 Merge branch 'bugfix/connect_before_connected_v5.0' into 'release/v5.0'
fix(connect): Change second connect time to 730

See merge request espressif/esp-idf!26974
2023-11-22 10:48:38 +08:00
Jiang Jiang Jian
13fdffbe98 Merge branch 'bugfix/pairing_when_enc_with_no_key_fails_v5.0' into 'release/v5.0'
fix(nimble): Initate pairing if encryption fails with reason no pin or key missing (v5.0)

See merge request espressif/esp-idf!27018
2023-11-22 10:47:22 +08:00
Island
6d77fe9b79 Merge branch 'backport/fix_ble_scan_rsp_v5.0' into 'release/v5.0'
Backport/fix ble scan rsp v5.0(backport v5.0)

See merge request espressif/esp-idf!27006
2023-11-21 12:15:09 +08:00
gongyantao
82aed29e59 ci(bt/bluedroid): remove configs that are not in effect 2023-11-21 10:11:12 +08:00
Island
a84ad081b2 Merge branch 'bugfix/fix_some_ble_bugs_v5.0' into 'release/v5.0'
Fixed some BLE bugs (backport v5.0)

See merge request espressif/esp-idf!27167
2023-11-17 10:34:35 +08:00
chenjianhua
50b49d856f fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(2758518)
- Fixed power state setting when entering modem sleep
2023-11-15 17:16:46 +08:00
chenjianhua
cd242a5e3e Update bt lib for ESP32-C3 and ESP32-S3(f817304)
- Support get the range of TX power level
- Support clear legacy adv using vendor hci
2023-11-15 17:16:19 +08:00
zhanghaipeng
6bf79dfa8f fix(ble/controller): Fix bugs in setting adv data and scan response data 2023-11-15 17:16:08 +08:00
chenjianhua
905da8f5bf update esp32 bt-lib (6458728)
- Modify mesh proxy solic uuid to 0x18590303
- Support get the range of TX power level
- Support clear legacy adv using vendor hci
2023-11-15 17:15:16 +08:00
chenjianhua
8cc73fe6bf feat(bt/bluedroid): support clear legacy advertising 2023-11-15 17:12:40 +08:00
Chen Yudong
81350e30f3 ci: fix assign test jobs 2023-11-15 05:49:32 +00:00
Chen Yudong
4d4b89755c ci: add label rules for integration test 2023-11-15 05:49:32 +00:00
Chen Yudong
249468e5bc ci: add qa-test-tag rules 2023-11-15 05:49:32 +00:00
Chen Yudong
29a2249170 ci: dynamic integration test child pipeline 2023-11-15 05:49:32 +00:00
Jiang Jiang Jian
3405065ed5 Merge branch 'bugfix/fix_deinit_init_wifi_scan_fail_issue_v5.0' into 'release/v5.0'
Bugfix/fix deinit init wifi scan fail issue v5.0(Backport v5.0)

See merge request espressif/esp-idf!27053
2023-11-14 15:27:26 +08:00
ding huan
856daf8a35 disable scan time set by esp_wifi_scan_start 2023-11-14 13:52:55 +08:00
ding huan
2542b74edd fix(connect): Change second connect delay time to 730 and not depends on default value 2023-11-14 11:00:32 +08:00
Jiang Jiang Jian
e42bcf2e88 Merge branch 'bugfix/build_error_when_enable_ag_and_hf_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix build error when both of the HFP roles are enabled (v5.0)

See merge request espressif/esp-idf!27078
2023-11-13 16:00:36 +08:00
Jiang Jiang Jian
33f8e6acea Merge branch 'bugfix/fix_wifi_issue_v5.0' into 'release/v5.0'
esp_wifi: backport some wifi fix(v5.0)

See merge request espressif/esp-idf!27041
2023-11-13 15:59:54 +08:00
linruihao
27acfa5377 fix(esp_coex): Fix deprecated configuration options not rename to new one 2023-11-13 14:38:38 +08:00
Wang Mengyang
ee53260db8 fix(bt/bluedroid): Fix build error when both of the HFP roles are enabled and also CONFIG_BT_BLE_DYNAMIC_ENV_MEMORY is set to true 2023-11-10 21:08:17 +08:00
Roland Dobai
3239ef1c8e Merge branch 'coredump_missing_proj_desc_v5.0' into 'release/v5.0'
fix(tools/coredump): ignore missing project description

See merge request espressif/esp-idf!27005
2023-11-10 20:51:30 +08:00
muhaidong
3937e35a08 change(hal): remove useless code from periph_ll_wifi_bt_module_enable_clk 2023-11-10 11:43:01 +08:00
muhaidong
4ee958df57 fix(wifi): fix deinit init wifi scan fail issue 2023-11-10 11:18:12 +08:00
Chen Jichang
01c5d8d72e feature(MCPWM): Add MCPWM trigger driver and test
Each MCPWM operator has two Trigger (named T0 and T1), and they can be
routed to GPIO fault signal or timer sync event.Generator can be set up
to perform different action on Trigger event.
This commit add a trigger driver and a test for the driver.

fix(mcpwm): fault trigger test forget connect timer and operator
2023-11-09 21:52:37 +08:00
alanmaxwell
5460d41b43 esp_wifi: backport some wifi fix
1. optimize BB filter timer to pass corner case
2. fix parse beacon rsnx ie missed break
2023-11-09 21:52:06 +08:00
Roland Dobai
1e69dbf6cf ci(fix): Improve the stability of the autocomplete tests 2023-11-09 14:10:13 +01:00
Rahul Tank
6ff708aa91 fix(nimble): Initate pairing if encryption fails with reason no pin or key missing 2023-11-09 11:52:16 +05:30
wanlei
efef840124 fix(twai): twai example crash using usb-serial-jtag pins
Calling gpio_hal_iomux_func_sel() via gpio_config() may
disconnects/disables any influence from USJ when using USJ pins
2023-11-09 02:52:27 +00:00
Peter Dragun
34a6d8ebe7 fix(tools/coredump): ignore missing project description 2023-11-08 13:10:10 +01:00
zhanghaipeng
44f7c7f6bb fix(bt/bluedroid): Fix ble keysize check 2023-11-08 19:47:32 +08:00
zhanghaipeng
ef444d6a1b fix(bt/bluedroid): Fix ble adv report evt type 2023-11-08 19:47:26 +08:00
morris
6a7e250442 feat(rmt): support calling rmt_receive in ISR callback 2023-11-08 15:03:44 +08:00
ding huan
3c1ec70457 fix(connect): Change second connect time to 730 2023-11-07 19:48:49 +08:00
Armando
f8500f77b1 fix(adc): rename ADC_ATTEN_DB_11 to ADC_ATTEN_DB_12
By design, it's 12 dB. There're errors among chips, so the actual
attenuation will be 11dB more or less
2023-11-07 14:12:50 +08:00
Jiang Jiang Jian
d5a32fa5e8 Merge branch 'fix/check_integrity_on_used_blocks_v5.0' into 'release/v5.0'
heap: fix integrity check on used blocks by the tlsf component (backport v5.0)

See merge request espressif/esp-idf!26564
2023-11-03 16:40:38 +08:00
Jiang Jiang Jian
403ad764c8 Merge branch 'bugfix/backport_fix_1102' into 'release/v5.0'
fix(wifi): backport some wifi fix v5.0

See merge request espressif/esp-idf!26864
2023-11-03 16:35:27 +08:00
Laukik Hase
b2a4cf197e fix (wifi_prov): Retry provisioning on WIFI_AUTH_EXPIRE event
- Closes https://github.com/espressif/esp-idf/issues/11749
2023-11-03 11:51:02 +05:30
Wang Meng Yang
2d00212e19 Merge branch 'feature/include_hf_and_ag_in_single_build_v5.0' into 'release/v5.0'
Feature/include hf and ag in single build v5.0

See merge request espressif/esp-idf!26842
2023-11-03 14:09:35 +08:00
alanmaxwell
98d617b0dc fix(wifi): optimize wifi bin size and fix some issue
1.Optimize bin size for STA only mode
2.Change fragment threshold to 256
3.Support fragment for LR mode
4.Fix rx fragment fail in Open mode.
5.Fix ampdu duration issue
2023-11-03 11:44:40 +08:00
morris
da2399a2c5 fix(rmt): a disabled channel may pick up a pending transaction
because in the trans_done interrupt, the driver didn't check the channel FSM
2023-11-03 02:40:56 +00:00
Jiang Jiang Jian
af91df9e6f Merge branch 'fix/exception_was_unhandled_for_bt_spp_vfs_acceptor_v5.0' into 'release/v5.0'
fix(bt/bluedroid): fix LoadProhibited error in spp vfs acceptor example (backport v5.0)

See merge request espressif/esp-idf!26862
2023-11-03 01:28:30 +08:00
Michael (XIAO Xufeng)
a0c0857d94 Merge branch 'bugfix/ota_fail_on_octal_flash_v5.0' into 'release/v5.0'
fix(ota): Fixed OTA fail on octal flash with 32MB memory (backport v5.0)

See merge request espressif/esp-idf!26812
2023-11-02 21:12:06 +08:00
Michael (XIAO Xufeng)
1db67a7133 Merge branch 'bugfix/spi_master_fifo_use_dma_v5.0' into 'release/v5.0'
fix(spi): fixed undesired touching to DMA (v5.0)

See merge request espressif/esp-idf!26771
2023-11-02 21:11:10 +08:00
Kapil Gupta
5402e14cfb fix(esp_wifi): Drop fragmented AMPDU(fixCVE-2020-26142) 2023-11-02 19:20:17 +08:00
Kapil Gupta
ea93f7620b fix(esp_wifi): Fix key install issue in PTK renew 2023-11-02 19:20:17 +08:00
Roland Dobai
963284fc4c Merge branch 'coredump-info-offset_v5.0' into 'release/v5.0'
fix(tools/coredump-info): pass non-default partition table offset to esp-coredump (v5.0)

See merge request espressif/esp-idf!26832
2023-11-02 19:20:01 +08:00
Jiang Jiang Jian
dbdd6c7eb8 Merge branch 'bugfix/fix_espcoredump_compilation_warning_v5.0' into 'release/v5.0'
fix(espcoredump): fixed compilation warning (v5.0)

See merge request espressif/esp-idf!26592
2023-11-02 16:17:24 +08:00
Guillaume Souchere
d8a8149abd fix(heap): Patch tlsf_check_pool in ROM heap
The integrity_walker now calls the integrity check hook to control
free AND used blocks of memory in the TLSF pool. This integrity walker
function is called from tlsf_check_pool.

This commit creates a patch of integrity_walker function to update the
outdated implementation in the ROM.
2023-11-02 09:04:24 +01:00
Guillaume Souchere
825f99f16e fix(heap): Fixed integrity check on used blocks by the tlsf component
This commit updates the tlsf submodule to include the modification made in the component
aiming to perform integrity check on all blocks (not only the free ones).
Added test to test the fix in test_apps/heap_tests.

Fixes https://github.com/espressif/esp-idf/issues/12231
2023-11-02 08:21:06 +01:00
Jiang Jiang Jian
3f207efa4b Merge branch 'bugfix/supplicant_tls_fix_v5.0' into 'release/v5.0'
fix(wpa_supplicant): Correct iv lenght passed in mbedtls_cipher_set_iv() (v5.0)

See merge request espressif/esp-idf!26847
2023-11-02 15:13:20 +08:00
Jiang Jiang Jian
ae755628d0 Merge branch 'fix/xtensa-register-corrupted-after-context-switch_v5.0' into 'release/v5.0'
fix(xtensa): fix registers curruption on context switch (v5.0)

See merge request espressif/esp-idf!26211
2023-11-02 15:12:56 +08:00
Jiang Jiang Jian
03732b50fd Merge branch 'feature/pbkdf2_fast_implementation_v5.0' into 'release/v5.0'
change(esp_wifi): Copy fastpbkdf2 implementation

See merge request espressif/esp-idf!26852
2023-11-02 15:12:20 +08:00
Jiang Jiang Jian
ea59318583 Merge branch 'bugfix/fix_phy_calibration_error_for_c2_v5.0' into 'release/v5.0'
fix(phy): fix phy calibration error in none mode for 26MHz XTAL ESP32C2 (backport v5.0)

See merge request espressif/esp-idf!26556
2023-11-02 15:12:06 +08:00
Island
02089b1825 Merge branch 'bugfix/ble_update_lib_1027_5.0' into 'release/v5.0'
ble: update c2 lib to 1d31e175

See merge request espressif/esp-idf!26713
2023-11-02 14:11:34 +08:00
Xiao Xufeng
93e973fa21 fix(spi): fixed undesired touching to DMA
Closes https://github.com/espressif/esp-idf/issues/12241
2023-11-02 12:32:40 +08:00
Jiang Jiang Jian
2aa66f5188 Merge branch 'bugfix/fix_ble_bond_error_after_reboot_v5.0' into 'release/v5.0'
fix(ble/bluedroid): fixed BLE bond error after reboot (backport v5.0)

See merge request espressif/esp-idf!26721
2023-11-02 12:10:57 +08:00
gongyantao
c4affdb943 fix(bt/bluedroid): fix loadprohibited error in spp vfs acceptor example 2023-11-02 11:47:38 +08:00
Rahul Tank
1f34bece78 Merge branch 'bugfix/remove_iram_attr_from_ceva_files_v5.0' into 'release/v5.0'
fix(nimble): remove IRAM_ATTR from npl_os_freertos.c file (v5.0)

See merge request espressif/esp-idf!26840
2023-11-02 11:17:58 +08:00
Michal Jenikovsky
b1e5ef2c47 fatfs: raw diskio: Fixed handling read-only filesystem
ff_ routines incorrectly reported disk state and caused whole fatfs
to lock-up when trying to write to read-only device.

Signed-off-by: Michal Jenikovsky <jendo@jmsystems.sk>
2023-11-02 02:19:09 +00:00
Michal Jenikovsky
5dafc957ef idf.py: gdb action incorrectly generated EOL gdbinit scripts
GDB on Windows incorrectly reads EOL in the script files causing 'gdb'
action to fail.

(gdb) source .../build/gdbinit/py_extensions
(gdb) source .../build\gdbinit\symbols
add symbol table from file "...\build\bootloader\bootloader.elf"
.../build\gdbinit\symbols:6: Error in sourced command file:
Undefined command: "".  Try "help".

Forcing line separator to '\n' resolved the issue

Signed-off-by: Michal Jenikovsky <jendo@jmsystems.sk>
2023-11-02 02:19:09 +00:00
Alexey Lapshin
06ac8505b9 fix(xtensa): fix registers curruption on context switch
a6, a7 registers may be corrupted on multicore ESP chips while FreeRTOS
Kernel SMP context switch
2023-11-02 02:18:11 +00:00
Kapil Gupta
46f81cebe4 fix(wpa_supplicant): implement sha1_finish for fastpbkdf2 2023-11-01 21:58:00 +05:30
Kapil Gupta
cc12adf71b ci(esp_wifi): unit test for fast PBKDF2 validation 2023-11-01 21:57:23 +05:30
Kapil Gupta
973aca32be change(esp_wifi): Port fast_pbkdf2 implementation for mbedlts
Add changes to use fast_pbkdf2 as default for PMK calculations.
fast_pbkdf2 is significantly faster than current implementations
for esp chips.

Also removes unnecessary code for pbkdf-sha256 and pbkdf-sha512.
2023-11-01 21:56:56 +05:30
Kapil Gupta
5d26770886 change(esp_wifi): Copy fastpbkdf2 implementation
Copy pbkdf2 implementation from https://github.com/ctz/fastpbkdf2(3c56895)
2023-11-01 21:56:48 +05:30
Jiang Jiang Jian
e9ee047908 Merge branch 'feat/support_esp32c3_eco7_wifi_v5.0' into 'release/v5.0'
Backport/support esp32c3 v1.1 WiFi/BT/BLE(v5.0)

See merge request espressif/esp-idf!26756
2023-11-01 20:35:05 +08:00
Kapil Gupta
4ae0dc38cc fix(wpa_supplicant): Correct iv lenght passed in mbedtls_cipher_set_iv() 2023-11-01 18:02:42 +05:30
Rahul Tank
2b5f344a21 fix(nimble): remove IRAM_ATTR from npl_os_freertos.c file 2023-11-01 17:40:22 +05:30
Jin Cheng
7135c2d1fa feat(bt/bluedroid): Support to build HID Host and HID Device in single binary 2023-11-01 19:34:15 +08:00
Wang Mengyang
37d94af1f7 feat(bt/bluedroid): Support to build HFP Audio Gateway and Hands Free Unit in single binary 2023-11-01 19:34:09 +08:00
zhangyanjiao
49f02b3b43 fix(phy): Update phy lib to master 2023-11-01 17:56:48 +08:00
Peter Dragun
b784bbb27b fix(tools/coredump-info): pass non-default partition table offset to esp-coredump 2023-11-01 10:27:36 +01:00
zhanghaipeng
a84c563c1e fix(bt/bluedroid): Fix BLE remove bond list status 2023-11-01 17:14:32 +08:00
zhiweijian
52112a9b91 fix(ble/bluedroid): fixed BLE bond error after reboot 2023-11-01 17:13:50 +08:00
Jiang Jiang Jian
52ff4707d8 Merge branch 'backport/fix_ble_bugs_v5.0' into 'release/v5.0'
Backport/fix ble bugs v5.0(backport v5.0)

See merge request espressif/esp-idf!26763
2023-11-01 16:05:29 +08:00
Jiang Jiang Jian
912c1666ff Merge branch 'bugfix/fix_compilation_issue_v5.0' into 'release/v5.0'
fix(wpa_supplicant): Fix compilation issue in EAP disabled (v5.0)

See merge request espressif/esp-idf!26728
2023-11-01 13:19:57 +08:00
Cao Sen Miao
f5e80b68c7 fix(ota): Fixed OTA fail on octal flash with 32MB memory,
Closes https://github.com/espressif/esp-idf/issues/11903
2023-11-01 12:27:16 +08:00
zhiweijian
2a3d18c0cc feat: support ble esp32c3 eco7 2023-10-31 20:38:17 +08:00
Sarvesh Bodakhe
c90353291c fix(esp_wifi): Fix issue of station disconnecting immediately when AP RSSI is zero 2023-10-31 20:38:17 +08:00
liuning
20a34298cf fix(rom): fix rom ld for v5.0 2023-10-31 20:38:17 +08:00
liuning
728cd2489a feat(esp_wifi): support ps-none mode at coexist 2023-10-31 20:38:17 +08:00
liuning
345accbe13 fix(rom): remove related rom funcs in c3 rom eco7 MR 2023-10-31 20:38:17 +08:00
alanmaxwell
3d8915f2b3 feat(wifi): support esp32c3 v1.1 WiFi
1.bringup c3 v1.1 and sync func to c3 eco7 rom
2.support to set null&probe lifetime
3.support to adjust listen interval to dtim period
4.support tx pkt w/o wake null
5.allow to tx null0 if requtest to rx data
2023-10-31 20:38:05 +08:00
luomanruo
21885a0cf9 ble: update c2 lib to 6ed444f2 2023-10-31 16:28:50 +08:00
luomanruo
27f1557d70 ble: update c2 rom.ld 2023-10-31 16:28:50 +08:00
luomanruo
30f1c507d4 ble: update c2 lib to 1d31e175 2023-10-31 16:28:49 +08:00
zhanghaipeng
d6165c0859 feat(bt/bluedroid): Display BLE permission check handle in error trace 2023-10-31 14:37:39 +08:00
zhanghaipeng
336244a060 fix(bt/bluedroid): Fix max BLE gattc notify number to improve compatibility 2023-10-31 14:37:39 +08:00
zhanghaipeng
ea64b7cb1b feat(bt/bluedroid): Support BLE gattc notify registration number 2023-10-31 14:37:39 +08:00
zhanghaipeng
5758407281 fix(bt/bluedroid): Fix key size check in BLE smp 2023-10-31 14:37:39 +08:00
zhanghaipeng
018e84599a fix(bt/bluedroid): Optimize compatibility with Android 10 and later devices 2023-10-31 14:37:39 +08:00
zhanghaipeng
b19e24ef01 feat(bt/bluedroid): Support hid device control point 2023-10-31 14:37:39 +08:00
zhanghaipeng
fc96662044 fix(bt/bluedroid): Optimize compatibility with IOS and MACOS devices 2023-10-31 14:37:39 +08:00
Jiang Guang Ming
0e99be11f0 fix(esp32c3): Update esp32c3 chip revision 2023-10-30 20:56:57 +08:00
Jiang Guang Ming
89bf50f05a feat(esp32c3): Add rom ld with ROM tag esp32c3-eco7-20230720 2023-10-30 20:55:31 +08:00
Jiang Jiang Jian
a6afbb38a4 Merge branch 'bugfix/backport_wifi_fix_1026_v5.0' into 'release/v5.0'
fix(wifi): fix some wifi issues(v5.0)

See merge request espressif/esp-idf!26691
2023-10-30 17:57:53 +08:00
Kapil Gupta
f2da30262a fix(wpa_supplicant): Fix compilation issue in EAP disabled 2023-10-27 18:09:37 +05:30
Jiang Jiang Jian
4bd203b6da Merge branch 'bugfix/wps_condition_chain_v5.0' into 'release/v5.0'
fix(wifi): Fix static analyzer warning for WPS code (v5.0)

See merge request espressif/esp-idf!26495
2023-10-27 19:46:03 +08:00
Jiang Jiang Jian
eb432da2db Merge branch 'feature/support_esp32c2_rom_mbedtls_v5.0' into 'release/v5.0'
feat(mbedtls): support c2 mbedtls can use crypto algorithm in ROM (backport v5.0)

See merge request espressif/esp-idf!26700
2023-10-27 19:45:26 +08:00
Jiang Jiang Jian
9d8b38bafd Merge branch 'bugfix/dpp_bugs_v5.0' into 'release/v5.0'
fix(wpa_supplicant): Fix few dpp bugs(v5.0)

See merge request espressif/esp-idf!26686
2023-10-27 19:43:53 +08:00
Jiang Jiang Jian
4f97598f7d Merge branch 'bugfix/iperf_improvements_v5.0' into 'release/v5.0'
fix(examples/iperf): Update and rename default TCP/UDP buffer sizes (Backport v5.0)

See merge request espressif/esp-idf!26679
2023-10-27 11:30:19 +08:00
Wang Meng Yang
8e5bd616be Merge branch 'bugfix/unable_to_load_bonded_ble_devices_from_nvs_v5.0' into 'release/v5.0'
fix(bt&ble): fix BLE unable to load bonded device info after reboot. (backport v5.0)

See merge request espressif/esp-idf!26466
2023-10-27 10:27:21 +08:00
Jiang Guang Ming
c2f6a5c180 docs: Update COPYRIGHT.rst since mbedtls supported in C2 ROM 2023-10-26 21:00:39 +08:00
Jiang Guang Ming
d5fda4a286 docs: add the description of CONFIG_MBEDTLS_USE_CRYPTO_ROM_IMPL 2023-10-26 21:00:39 +08:00
Jiang Guang Ming
7789d30686 feat(mbedtls): add new config CONFIG_MBEDTLS_USE_CRYPTO_ROM_IMPL for mbedtls unit-test 2023-10-26 21:00:27 +08:00
Jiang Guang Ming
883d7e793f feat(mbedtls): support C2 mbedtls can use crypto algorithm in ROM 2023-10-26 20:56:29 +08:00
Jiang Jiang Jian
ecdbdc789c Merge branch 'doc/update_espnow_example_v5.0' into 'release/v5.0'
doc(WiFi/Vendor): Update the ESPNOW example for the recv callback function  (backport v5.0)

See merge request espressif/esp-idf!26677
2023-10-26 20:48:56 +08:00
gongyantao
dc85f670aa fix(bt/bluedroid): update the newest active device in bluetooth
1: update the newest active device when an ACL link is established and
   the remote device info is not in bond list. This updates will not stored
   into NVRAM until a new device is paired.
2023-10-26 19:33:06 +08:00
jgujarathi
bde852d403 fix(wifi): backport some wifi fix
1.Fix issue with frequent disconections when scanning for only a single
 channel.
2.Prints error message and returns ESP_ERR_NOT_SUPPORTED in case
 esp32c2 tries to set bandwidth to HT40.
3.Ensure that beacon timeout get trigged once.
2023-10-26 17:59:46 +08:00
Jiang Jiang Jian
5293a3e403 Merge branch 'feature/mbedtls_3_5_0_update_v5.0' into 'release/v5.0'
feat(mbedtls): update to 3.5.0 release (v5.0)

See merge request espressif/esp-idf!26477
2023-10-26 17:58:51 +08:00
muhaidong
6bfac2a6e4 fix(wifi): fix some wifi issues
1. fix enable psram wapi dhcp fail issue
2. fix tx power issue
2023-10-26 17:55:37 +08:00
muhaidong
bcb6a2f386 fix(wifi): fix ccmp and gcmp PN became large issue 2023-10-26 17:55:37 +08:00
xueyunfei
1f5e7e33df feat(esp_wifi):static buf for management,control,qos null,null data rx packet 2023-10-26 17:55:37 +08:00
Jiang Jiang Jian
349bc1795c Merge branch 'feature/free_bt_memory_5.0' into 'release/v5.0'
feat(bt): Frees BLE memory when no longer in use

See merge request espressif/esp-idf!26574
2023-10-26 17:55:32 +08:00
alanmaxwell
555891bb54 fix(wifi): fix multi antenna issue 2023-10-26 17:54:35 +08:00
Jiang Jiang Jian
279e00927b Merge branch 'bufix/Backport_some_lwip_bugs_for_5.0_1026' into 'release/v5.0'
Bufix/backport some lwip bugs for 5.0 1026

See merge request espressif/esp-idf!26678
2023-10-26 17:49:42 +08:00
Jiang Jiang Jian
e89e490565 Merge branch 'bugfix/update_scan_example_for_scan_get_ap_records_v5.0' into 'release/v5.0'
fix(wifi): update scan example for scan get ap records(Backport v5.0)

See merge request espressif/esp-idf!26681
2023-10-26 16:56:52 +08:00
Jiang Jiang Jian
2100dddaf1 Merge branch 'bugfix/spurious_beacon_timeout_v5.0' into 'release/v5.0'
Fixed some WiFi Issues (Backport v5.0)

See merge request espressif/esp-idf!26600
2023-10-26 14:48:44 +08:00
aditi_lonkar
8edd26b4f3 fix(wpa_supplicant): Fix few dpp bugs
1) Fix crash in dpp Listen without bootstrap
  2) Fix crash on receiving dpp auth_req from hostapd with dpp akm
  3) Ensures that the mode is set to station before dpp init
  4) Ensures that dpp follows the path of init->bootstrap->listen
2023-10-26 12:09:44 +05:30
muhaidong
b57ff5dce6 fix(wifi): update scan example for scan get ap records 2023-10-26 13:19:07 +08:00
Nachiket Kukade
d5bf0121ab fix(examples/iperf): Update and rename default TCP/UDP buffer sizes 2023-10-26 10:31:22 +05:30
xueyunfei
4bd2b33d9b Fix(tcp):optimize tcp connection 2023-10-26 13:00:44 +08:00
xueyunfei
1e3bb1469a fix(dhcp server):fix set dhcp server poll fail issue 2023-10-26 12:59:57 +08:00
zhangyanjiao
c06e48c02e doc(WiFi/Vendor): Update the ESPNOW example for the recv callback function 2023-10-26 12:02:37 +08:00
Jiang Jiang Jian
231e822d03 Merge branch 'bugfix/backport_some_ble_bugs_20231020_v5.0' into 'release/v5.0'
Fixed some BLE bugs 20231020 (backport v5.0)

See merge request espressif/esp-idf!26606
2023-10-26 11:51:48 +08:00
gaoxu
60d9fd9e3a fix(adc): fix adc oneshot mod do not split clk 2023-10-26 11:43:41 +08:00
Jiang Jiang Jian
4ba42edafc Merge branch 'bugfix/fix_cpu_switches_freq_bug_s2s3_to_v5.0' into 'release/v5.0'
EspS2/S3: fixed the bug of insufficient voltage when the CPU switches frequency(V5.0)

See merge request espressif/esp-idf!26281
2023-10-25 10:25:14 +08:00
morris
674b533eed Merge branch 'feature/mcpwm_timer_change_freq_v5.0' into 'release/v5.0'
feat(mcpwm): support update timer period dynamically (v5.0)

See merge request espressif/esp-idf!26625
2023-10-25 09:49:03 +08:00
Shen Weilong
6875e2b7d0 feat(bt): Frees BLE memory when no longer in use
It will free libble.a & libbt all txt, data and bss segment memory.
          This memory is combined into one large memory and put into the heap
          pool.
2023-10-24 06:04:39 +00:00
morris
0187f3b4e3 feat(mcpwm): support update timer period dynamically
Implement the requirement asked in
https://www.esp32.com/viewtopic.php?f=13&t=35919
2023-10-24 10:08:29 +08:00
Alexey Gerenkov
d2b9326df1 Merge branch 'bugfix/docs_hw_breakpoints_num_v5.0' into 'release/v5.0'
fix(docs/jtag): Fix hard-coded HW breakpoints/watchpoints number (v5.0)

See merge request espressif/esp-idf!26501
2023-10-23 20:16:27 +08:00
Wang Meng Yang
478ac965aa Merge branch 'fix/remove_esp_hf_ag_devices_status_indchage_in_example_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Send device status of AG to HF with a different api (backport v5.0)

See merge request espressif/esp-idf!26588
2023-10-23 16:35:38 +08:00
Wang Meng Yang
46c75fc31c Merge branch 'bugfix/coex_cfg_option_invisible_v5.0' into 'release/v5.0'
fix(esp_coex): Fix dependency errors in coexist configuration (Backport v5.0)

See merge request espressif/esp-idf!26581
2023-10-23 16:21:00 +08:00
zhiweijian
c6588baf8f Update BLE lib on ESP32-C3 and ESP32-S3
- modify mesh proxy solic uuid to 0x18590303
- Fixed DTM payload length cannot be 0
- Added config to enable Hw recorrect eco
- report the number of packets sent on the TX end
2023-10-20 17:16:53 +08:00
zhiweijian
f3729b1610 feat: add config to disable ble hci uart flow control 2023-10-20 17:16:45 +08:00
zhiweijian
b13e24f26c change: enable pll track by default on ESP32 2023-10-20 17:16:37 +08:00
zhiweijian
39674d11e0 Add mesh adv type for exception list 2023-10-20 17:16:27 +08:00
chenjianhua
3502d25a2e Update bt lib for ESP32-C3 and ESP32-S3(c8aa206)
- Fixed extended adv address setting after adv restart
- Fixed scan channel index setting for extended scan
- Add API to set aux channel index for extended adv
2023-10-20 17:16:17 +08:00
chenjianhua
ab427cc1c0 Update bt lib for ESP32-C3 and ESP32-S3(29996e0)
- Fixed address resolution for directed adv with RPA when scanning
- Fixed resolvable private address renew after timeout
2023-10-20 17:16:06 +08:00
zhiweijian
a16c26c4ca Add new mesh types for exception list on ESP32-C3 and ESP32-S3 2023-10-20 17:15:55 +08:00
zhiweijian
cc746091a9 Fixed bluedroid host build warning when log is disabled 2023-10-20 17:15:45 +08:00
Mahavir Jain
f333925342 Merge branch 'feature/locking_layer_for_ecdsa_v5.0' into 'release/v5.0'
feat(esp_hw_support): Added locking mechanism for the ECC peripheral (v5.0)

See merge request espressif/esp-idf!26287
2023-10-20 15:57:16 +08:00
jgujarathi
6881b3fa33 fix(esp_wifi): Fixes issues in PMKSA and AID assignment
- Fix missing PMKSA flush scenarios.

- Fix wrong AID assigned to station when multiple stations try to connect
  simultaneously with mixed order of auth-request and assoc-request frames.
2023-10-20 13:12:12 +05:30
Rahul Tank
22f31de902 fix(espcoredump): fixed compilation warning
Added conditional compilation for logging stack usage only when CONFIG_ESP_COREDUMP_LOGS is
enabled.

Closes: https://github.com/espressif/esp-idf/issues/12318
2023-10-20 11:23:44 +05:30
Island
ded1414d7b Merge branch 'bugfix/update_ble_lib_1018_5_0' into 'release/v5.0'
change(ble): update ble lib on c6 h2 and c2 chip

See merge request espressif/esp-idf!26545
2023-10-20 10:25:25 +08:00
gongyantao
65e0356c3d fix(bt/bluedroid): Send device status of AG to HF with a different api
1: replace api esp_hf_ag_devices_status_indchange with esp_hf_ag_ciev_report in bluetooth
   hfp_ag example to send device status of AG to HF unit.
2: remove the unused codes
2023-10-20 10:03:34 +08:00
linruihao
dd16903b51 fix(esp_coex): Fix dependency errors in coexist configuration 2023-10-19 19:04:32 +08:00
Roland Dobai
443f2b8ebe Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20230921_v5.0' into 'release/v5.0'
feat(tools): Update OpenOCD version to v0.12.0-esp32-20230921 (v5.0)

See merge request espressif/esp-idf!26550
2023-10-19 17:44:10 +08:00
Jiang Jiang Jian
861410f4eb Merge branch 'docs/update_wifi_and_wpa_supplicant_documentation_v5.0' into 'release/v5.0'
docs(wifi): Update wifi and wifi security documentation_v5.0

See merge request espressif/esp-idf!25752
2023-10-19 10:38:30 +08:00
Jiang Jiang Jian
64ceda77f4 Merge branch 'feat/imporve_iperf_performance_v5.0' into 'release/v5.0'
feat(wifi): optimize iperf performance (Backport V5.0)

See merge request espressif/esp-idf!26406
2023-10-19 10:33:28 +08:00
Kapil Gupta
28ba29a95d fix(wifi): Fix static analyzer warning for WPS code 2023-10-18 17:55:38 +05:30
luomanruo
8b7c87028b ble: update controller log module for ESP32-C2 2023-10-18 18:03:45 +08:00
luomanruo
3d381ba560 ble: update controller log module for ESP32-C2 2023-10-18 16:59:11 +08:00
Alexey Gerenkov
e943bbda36 feat(tools): Update OpenOCD version to v0.12.0-esp32-20230921 2023-10-18 10:51:45 +02:00
cjin
82563128c8 change(ble): update ble lib on c6 h2 and c2 chip 2023-10-18 16:28:22 +08:00
Marius Vikhammer
9ca65d9720 Merge branch 'bugfix/fix_freertos_system_task_names_v5.0' into 'release/v5.0'
fix(freertos): Updated IDLE task names for each core to have the coreID as a suffix (v5.0)

See merge request espressif/esp-idf!26119
2023-10-18 16:09:48 +08:00
Marius Vikhammer
d5255c9ba8 Merge branch 'contrib/github_pr_12258_v5.0' into 'release/v5.0'
fix(vfs): Fix event_write may not exit critical section (GitHub PR) (v5.0)

See merge request espressif/esp-idf!26048
2023-10-18 15:52:04 +08:00
Mahavir Jain
39ea20354d Merge branch 'fix_esp32s3_irq_names_v5.0' into 'release/v5.0'
fix(interrupts): reorder esp32s3 irq names to align with the respective irq numbers (v5.0)

See merge request espressif/esp-idf!26504
2023-10-18 13:48:55 +08:00
Shreyas Sheth
5004647fb1 fix(wifi): Fix crash occuring when station SAE group is not set to SECP256R1 2023-10-17 14:11:19 +05:30
Shreyas Sheth
79e55b6e92 docs(wifi): Update wifi and wifi security documentation and bugfixes
1. Update documentation for WPA3 Enterprise and WPA3 Enterprise 192-bit
mode
2. Update documentation for WPA3 OWE and OWE transition mode
3. Update documentation related to SAE PK, SAE PWE and Transition Disable
4. Update documnetation for wifi connect API
5. Fix config paramter information for wifi scan start
6. Fix documentation related to scan threshold config setting
7. Replace ESP_ERR_WIFI_ARG error code as ESP_ERR_INVALID_ARG
8. Update documentation for 802.11R Fast transition
9. Fix sta connecting with wpa security in enterprise mode
2023-10-17 14:01:18 +05:30
Island
00d58a92dc Merge branch 'ble_dev/added_modem_reset_on_ble_v5_0' into 'release/v5.0'
feat(ble): added modem reset on c2

See merge request espressif/esp-idf!26450
2023-10-17 15:42:12 +08:00
Erhan Kurubas
9fc58a706d fix(interrupts): reorder esp32s3 irq names to align with the respective irq numbers 2023-10-17 09:02:31 +02:00
Island
467cae8a41 Merge branch 'backport_v5.0' into 'release/v5.0'
Fix some BLE bugs in bluedroid host(backport 5.0)

See merge request espressif/esp-idf!26168
2023-10-17 11:00:39 +08:00
Nic Ballinger
3229216527 fix(docs/jtag): Fix hard-coded HW breakpoints/watchpoints number
Closes https://github.com/espressif/esp-idf/pull/11986
2023-10-16 17:33:48 +03:00
zhanghaipeng
baf04c4334 fix(bt/bluedroid): Fix hid example stack overflow bugs when using esp32s3 2023-10-16 19:30:29 +08:00
zhanghaipeng
98d88f86a7 fix(bt/bluedroid): Fix remove resolving list error for esp32 2023-10-16 19:30:18 +08:00
zhanghaipeng
5c6533d574 fix(bt/bluedroid): Fix bugs in ble service change characteristic 2023-10-16 19:30:08 +08:00
zhanghaipeng
c1b8734fb9 feat(bt/bluedroid): Support scan response data length zero in BLE 2023-10-16 19:29:56 +08:00
zhanghaipeng
18c8d0e04c fix(bt/bluedroid): Optimize the description of Scan Duplicate in BLE 2023-10-16 19:29:45 +08:00
morris
447e9701ef Merge branch 'bugfix/usb_serial_jtag_write_return_val_v5.0' into 'release/v5.0'
bugfix(usb_serial_jtag): Fix usb_serial_jtag wrong return value, vfs lose data randomly (backport v5.0)

See merge request espressif/esp-idf!26439
2023-10-16 14:26:11 +08:00
morris
c33962259c Merge branch 'bugfix/temp_clk_gate_v5.01' into 'release/v5.0'
fix(temperature_snesor): Put clock gate enable/disable in to sar_periph_ctrl together (backport v5.0)

See merge request espressif/esp-idf!26437
2023-10-16 14:22:13 +08:00
Mahavir Jain
3e90ed6428 fix(mbedtls): remove deprecated MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
This config has been removed in the upstream mbedTLS starting 3.0
release. Please see mbedTLS changelog for more details.
2023-10-16 03:54:57 +00:00
Mahavir Jain
088c546964 fix(mbedtls): dynamic buffer feature issue with mbedtls 3.5.0
Set max TLS version in the SSL context during setup phase. Dynamic
buffer feature overrides the `mbedtls_ssl_setup` API and hence
this change is required per upstream 3.5.0 codebase change.
2023-10-16 03:54:57 +00:00
Mahavir Jain
97fe016e4e feat(mbedtls): update to 3.5.0 release
Changelog:
https://github.com/Mbed-TLS/mbedtls/releases/tag/mbedtls-3.5.0
2023-10-16 03:54:57 +00:00
Mahavir Jain
10ef082950 Merge branch 'feature/update_openthread_upstream_manually' into 'release/v5.0'
feat(openthread): update upstream manually.

See merge request espressif/esp-idf!26388
2023-10-16 11:53:39 +08:00
Jiang Jiang Jian
65321ea317 Merge branch 'bugfix/use_bt_sdp_bqb_include_macro_for_ertm_mode_flag_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Add correct macro for ertm mode included flag (v5.0)

See merge request espressif/esp-idf!26456
2023-10-16 11:51:56 +08:00
Wang Meng Yang
209608623c Merge branch 'bugfix/config_tpoll_fail_v5.0' into 'release/v5.0'
Bugfix/config tpoll fail v5.0

See merge request espressif/esp-idf!26452
2023-10-16 10:59:05 +08:00
Island
f8f999870f Merge branch 'bugfix/0925_update_libble_c2_v5.0' into 'release/v5.0'
ble: update c2 libble to 7ec5b5c1

See merge request espressif/esp-idf!26192
2023-10-16 10:47:32 +08:00
gongyantao
c80e82fa07 fix(bt/bluedroid): Add correct macro for ertm mode included flag 2023-10-13 14:44:35 +08:00
baohongde
64e1f2fe5e feat(bt/hci): Added Vendor-Specific HCI command to disable DM1 for ACL-U 2023-10-13 14:22:39 +08:00
baohongde
299fa49d75 fix(bt/bluedroid): Triggering disconnect event of GAP correctly 2023-10-13 14:22:39 +08:00
baohongde
363f37cc67 fix(bt/bluedroid): Fix issue of QoS configuration failure when t_poll is greater than 40 2023-10-13 14:22:39 +08:00
cjin
dc8e00e22f feat(ble): added modem reset on c2 2023-10-13 11:44:18 +08:00
Cao Sen Miao
dc6fd94048 fix(usb_serial_jtag): Clean-up usb_serial_jtag lose byte fix, Closes https://github.com/espressif/esp-idf/pull/11344 2023-10-12 15:13:41 +08:00
Chip Weinberger
8037563c53 [Usb Serial JTAG] printing to console could sometimes skip bytes 2023-10-12 15:13:30 +08:00
Cao Sen Miao
3a04291f8e fix(usb_serial_jtag): Fix usb_serial_jtag wrong return value, vfs lose data randomly,
Closes https://github.com/espressif/esp-idf/issues/12119,
Closes https://github.com/espressif/esp-idf/pull/11344,
Closes https://github.com/espressif/esp-idf/issues/9318
Closes https://github.com/espressif/esp-idf/issues/11192
2023-10-12 15:13:21 +08:00
Cao Sen Miao
5c692796e8 fix(temperature_snesor): Put clock gate enable/disable in to sar_periph_ctrl together 2023-10-12 14:21:24 +08:00
Jiang Jiang Jian
f1efc6223e Merge branch 'bugfix/authmode_log_192_bit_v5.0' into 'release/v5.0'
WPA3 enterprise 192 bit fix and config modification (Backport v5.0)

See merge request espressif/esp-idf!26163
2023-10-12 10:36:10 +08:00
luomanruo
26fbfe7d94 ble: update tx power level index of ESP32-C2 2023-10-11 21:05:21 +08:00
luomanruo
b7f17f7531 ble:update c2 libble to 6a8d1f3d 2023-10-11 20:55:26 +08:00
Island
6a33321693 Merge branch 'bugfix/deepfree_v50' into 'release/v5.0'
fix(ble_mesh): fix compilation failure on using scene model. (v5.0)

See merge request espressif/esp-idf!26358
2023-10-11 19:28:53 +08:00
Wu Meng Shi
d9af38524b fix(ble_mesh): fix compilation failure on using scene model. (v5.0) 2023-10-11 19:28:53 +08:00
xuxiao
d2b82b47c7 feat(wifi): optimize iperf performance (Backport V5.0) 2023-10-11 17:14:52 +08:00
David Čermák
82ccd61c06 Merge branch 'bugfix/napt_updatesV5.0' into 'release/v5.0'
feat(lwip): Fixes and Improvements for NAPT and SBOM Support (v5.0)

See merge request espressif/esp-idf!26336
2023-10-11 15:28:16 +08:00
David Čermák
fd10813b41 Merge branch 'bugfix/ksz8041_model_number_0x13_v5.0' into 'release/v5.0'
fix(esp_eth): Add model number 0x13 to list of suported models (v5.0)

See merge request espressif/esp-idf!26381
2023-10-11 15:22:06 +08:00
Roland Dobai
b9a15e601b Merge branch 'feat/monitor_port_detection' into 'release/v5.0'
feat(tools/monitor): add simple port detection [backport v5.0]

See merge request espressif/esp-idf!26329
2023-10-10 20:31:19 +08:00
Roland Dobai
c08f099361 Merge branch 'fix/bp_wp_in_panic_v5.0' into 'release/v5.0'
fix(breakpoint): fix bp/wp logic when debugger is connected (v5.0)

See merge request espressif/esp-idf!25634
2023-10-10 17:57:51 +08:00
Aditya Patwardhan
bcd5292435 Merge branch 'bugfix/security_check_order_in_startup_v5.0' into 'release/v5.0'
fix(startup): flip the security configuration check order (v5.0)

See merge request espressif/esp-idf!26362
2023-10-10 17:10:28 +08:00
Island
3df12b0c7d Merge branch 'bugfix/BLEQABR23-414_v50' into 'release/v5.0'
bugfix(mesh): Fix PB-GATT adv is reported to the app layer too frequently(v5.0)

See merge request espressif/esp-idf!25896
2023-10-10 12:01:42 +08:00
Wu Meng Shi
f3f0917166 bugfix(mesh): Fix PB-GATT adv is reported to the app layer too frequently(v5.0) 2023-10-10 12:01:41 +08:00
zwx
7d6b70c48e feat(openthread): update upstream manually. 2023-10-10 11:37:53 +08:00
Shyamal Khachane
437fbbc518 fix(esp_wifi): WPA3 enterprise 192 bit fix and config modification
1. Added SOC caps dependency for enabling 192 bit security in wifi enterprise example
2. Fixed authmode in log and connected event for WPA3 enterprise 192 bit security
2023-10-09 16:34:14 +05:30
Bogdan Kolendovskyy
2cb11f7698 fix(esp_eth): Add model number 0x13 to list of suported models
Add model number 0x13 to KSZ80xx driver's list of supported models
corresonding to KSZ8041RLNI.
2023-10-09 12:47:38 +02:00
Mahavir Jain
ae5cbbf656 Merge branch 'feat/add_support_to_add_auth_data_v5.0' into 'release/v5.0'
fix(esp_http_client): Call event_handler after header value is received (v5.0)

See merge request espressif/esp-idf!26322
2023-10-09 16:24:26 +08:00
Mahavir Jain
67a1fe6373 fix(startup): flip the security configuration check order
For cases where the bootloader is not enabled with the security features
ends up receiving an incorrect application with flash encryption enabled
should not really program any security efuses.

In the startup sequence, we first used to program the ROM DL mode
configuration but now we check for the flash encryption related checks
first. If the flash encryption related checks finds that flash
encryption is not enabled on the device then it aborts the boot process.
This is the case with `CONFIG_SECURE_FLASH_CHECK_ENC_EN_IN_APP` enabled.

This would at-least ensure that accidental program of security enabled
application does not really program any ROM DL mode efuses and there is
chance to recover the device.
2023-10-09 03:30:11 +00:00
Jiang Jiang Jian
0f3eb4f5a6 Merge branch 'bugfix/pbc_overlap_in_wps_pin_method_v5.0' into 'release/v5.0'
wpa_supplicant: Fix for issue of wps-pbc overlap in wps-pin method(v5.0)

See merge request espressif/esp-idf!25738
2023-10-08 14:09:22 +08:00
morris
8093ef885e Merge branch 'fix/spi_polling_api_buslock_logic_v5.0' into 'release/v5.0'
fix(spi_master): polling_transmit forgot release bus lock when alloc DMA buffer failed (v5.0)

See merge request espressif/esp-idf!25577
2023-10-08 11:41:50 +08:00
morris
52342cda83 Merge branch 'change/remove_s3_120_sdr_warning_v5.0' into 'release/v5.0'
mspi: remove s3 120mhz sdr warning (v5.0)

See merge request espressif/esp-idf!26255
2023-10-08 10:52:41 +08:00
Jiang Jiang Jian
1b5a9a9420 Merge branch 'bugfix/check_mapping_target_conflict_v5.0' into 'release/v5.0'
fix(ldgen): check target conflict for entries with section aliases (v5.0)

See merge request espressif/esp-idf!26124
2023-10-07 14:38:01 +08:00
Jiang Jiang Jian
1f870c8102 Merge branch 'feature/rename_wpa2_ent_to_eap_client_v5.0' into 'release/v5.0'
WiFi: Rename WPA2 enterprise APIs to EAP Client. (v5.0)

See merge request espressif/esp-idf!26098
2023-10-07 14:33:17 +08:00
Jiang Jiang Jian
f2dbd880ee Merge branch 'bugfix/set_eir_when_no_eir_data_v5.0' into 'release/v5.0'
change(bt/bluedroid): Send a name tag with zero length when there is no EIR data

See merge request espressif/esp-idf!25950
2023-10-07 14:31:11 +08:00
Jiang Jiang Jian
32dcb1abd9 Merge branch 'bugfix/BLEQABR23-632v50' into 'release/v5.0'
fix(ble_mesh): avoid executing bt_mesh_host_init() more than once when using nimble (v5.0)

See merge request espressif/esp-idf!26242
2023-10-07 14:29:17 +08:00
Wu Meng Shi
9dc12cb8c2 fix(ble_mesh): avoid executing bt_mesh_host_init() more than once when using nimble (v5.0) 2023-10-07 14:29:16 +08:00
Jiang Jiang Jian
ffae14ac1d Merge branch 'bugfix/suppress_compiler_warning_silent_reboot_is_enabled_v5.0' into 'release/v5.0'
fix(esp_system): suppress compiler warning if ESP_SYSTEM_PANIC_SILENT_REBOOT is enabled (backport v5.0)

See merge request espressif/esp-idf!26037
2023-10-07 14:28:52 +08:00
Jiang Jiang Jian
64639bb296 Merge branch 'test/bqb_test_bt_classic_hfp_v5.0' into 'release/v5.0'
feat(bt/hfp): Add support for HFP BQB auto test (backport v5.0)

See merge request espressif/esp-idf!26223
2023-10-07 14:28:28 +08:00
Jiang Jiang Jian
d4b9cb7e63 Merge branch 'test/bqb_test_bt_classic_l2cap_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Add flags for BQB auto test of L2CAP (backport v5.0)

See merge request espressif/esp-idf!26219
2023-10-07 14:27:06 +08:00
Jiang Jiang Jian
ef2a051313 Merge branch 'bugfix/hfp_api_pkt_stat_nums_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix the judgment condition for packet transmission status statistics (backport v5.0)

See merge request espressif/esp-idf!26170
2023-10-07 14:25:13 +08:00
Jiang Jiang Jian
7b786f7716 Merge branch 'bugfix/reduce_bss_logging_v5.0' into 'release/v5.0'
wifi: Reduce BSS logging in wpa_supplicant

See merge request espressif/esp-idf!25824
2023-10-07 14:22:58 +08:00
Jiang Jiang Jian
acfe0474dd Merge branch 'ci/connect_at_different_phase_v5.0' into 'release/v5.0'
ci(wifi): Test connect api at different phase (backport v5.0)

See merge request espressif/esp-idf!25673
2023-10-07 14:21:54 +08:00
Abhik Roy
08a83bbea5 feat(lwip): Fixes and Improvements for NAPT and SBOM Support
- napt: restore to the initial state in deinit (espressif/esp-lwip@5c4f899f)
- napt: Fix ip_portmap_add() to keep only one port mapping (espressif/esp-lwip@d65ad241)
- napt: Fix clean compilation (espressif/esp-lwip@7033e26f)
- napt: Fix IP forwarding when forward netif enable NAPT (espressif/esp-lwip@bc78df87)
- napt/stats: Move some napt counters to stats module (espressif/esp-lwip@b55e64ae)
- ip_napt_maint: Fix timestamp overflow handling (2.1.3) (espressif/esp-lwip@a7e0a50c)
- napt: Fixes and improvements (2.1.3) (espressif/esp-lwip@fadb9109)
- Add sbom descripton file for Software BOM (espressif/esp-lwip@f07097d7)
2023-10-06 19:46:18 +11:00
Peter Dragun
570f5880be feat(tools/monitor): add simple port detection
Closes https://github.com/espressif/esp-idf/issues/8114
2023-10-05 16:29:43 +02:00
Harshit Malpani
1f93358d4e fix(esp_http_client): Call event_handler after header value is received 2023-10-05 10:24:18 +05:30
Fu Hanxi
5dba99409e Merge branch 'test/idf-build-apps-1.0.0_v5.0' into 'release/v5.0'
CI: make master pipeline compatible with idf-build-apps 1.0.0 release (v5.0)

See merge request espressif/esp-idf!26248
2023-10-02 21:02:08 +08:00
Fu Hanxi
5e2c3e23ae ci: fix breaking change in idf-build-apps 1.0.0
x
2023-09-29 14:16:14 +02:00
Rahul Tank
3f55377ab4 Merge branch 'bugfix/post_reattempt_cnt_event_v5.0' into 'release/v5.0'
fix(nimble): Add event for reattempt connection count information(v5.0)

See merge request espressif/esp-idf!26113
2023-09-29 16:30:55 +08:00
harshal.patil
6fdbd027c5 feat(esp_hw_support): Add locking layer for the ECC peripheral 2023-09-29 11:24:34 +05:30
Rahul Tank
782a60a11d fix(nimble): Add event for reattempt connection count information 2023-09-28 20:05:46 +05:30
Rahul Tank
2007f2f4cc Merge branch 'bugfix/remove_unused_coex_header_v5.0' into 'release/v5.0'
remove(nimble): Removed unused coex header inclusion (v5.0)

See merge request espressif/esp-idf!26180
2023-09-28 22:30:55 +08:00
Mahavir Jain
817f8ef669 Merge branch 'bugfix/http_client_tcp_config_v5.0' into 'release/v5.0'
http_client: Set common tcp config to both TCP and SSL transport (v5.0)

See merge request espressif/esp-idf!26206
2023-09-28 17:36:24 +08:00
morris
b07b08d9eb Merge branch 'bugfix/shared_intr_memory_location_v5.0' into 'release/v5.0'
fix(intr): always allocate memory from internal ram (v5.0)

See merge request espressif/esp-idf!26188
2023-09-28 16:44:14 +08:00
morris
821f6f117a Merge branch 'bugfix/rmt_pm_lock_type_v5.0' into 'release/v5.0'
fix(rmt): use ESP_PM_CPU_FREQ_MAX for RMT for non-dma channel (v5.0)

See merge request espressif/esp-idf!26259
2023-09-28 16:43:34 +08:00
Wang Meng Yang
284d6d235b Merge branch 'bugfix/add_params_check_for_hci_v5.0' into 'release/v5.0'
Fixed some HCI commands parameter (backport v5.0)

See merge request espressif/esp-idf!26150
2023-09-28 16:18:00 +08:00
hongshuqing
6ae027eb8b s2s3 cpu sw freq 2023-09-28 15:02:30 +08:00
Rahul Tank
f4e6510852 remove(nimble): Removed unused coex header inclusion 2023-09-28 10:47:06 +05:30
Rahul Tank
6d7c58516b Merge branch 'bugfix/ext_adv_log_v5.0' into 'release/v5.0'
fix(nimble): added log for extended advertisement (v5.0)

See merge request espressif/esp-idf!25940
2023-09-28 13:08:34 +08:00
wuzhenghui
49bd0ca8fd fix(esp_system): suppress compiler warning if ESP_SYSTEM_PANIC_SILENT_REBOOT is enabled 2023-09-28 02:53:07 +00:00
Mahavir Jain
012f13366a Merge branch 'feature/add_support_for_ds_peripheral_on_ota_v5.0' into 'release/v5.0'
feat(esp_http_client): Added support for OTA using ds peripheral for TLS (v5.0)

See merge request espressif/esp-idf!26092
2023-09-28 02:35:37 +08:00
David Čermák
d801c78081 Merge branch 'feature/eth_iram_optimization_v5.0' into 'release/v5.0'
feat(esp_eth): added IRAM optimization option for internal EMAC (v5.0)

See merge request espressif/esp-idf!25843
2023-09-27 20:58:06 +08:00
Mahavir Jain
f2077b13fb Merge branch 'bugfix/fix_condition_to_verify_when_no_SB_v5.0' into 'release/v5.0'
fix(bootloader_support): Fix condition for checking signature in the application (v5.0)

See merge request espressif/esp-idf!26226
2023-09-27 18:14:46 +08:00
morris
36392368f4 fix(rmt): fixed unstable transfer during DFS
Closes https://github.com/espressif/esp-idf/issues/12292
2023-09-27 17:33:18 +08:00
Wang Meng Yang
6c9b6207b2 Merge branch 'bugfix/fix_hid_congestion_v5.0' into 'release/v5.0'
Fix(bt/bluedroid): Fix the issue for HID congestion checking[backport 5.0]

See merge request espressif/esp-idf!26232
2023-09-27 16:26:38 +08:00
Armando
30fda7f5c2 change(mspi): remove s3 120mhz sdr warning 2023-09-27 15:00:26 +08:00
gongyantao
1b6cfd828d fix(bt/bluedroid): ble fails to load bonded device info after reboot
1: add a quantity check in bt when writing paired device info into nvs.
2: delete the exceeded device info from NVS when get bonded list during
bluedroid initialization.
3: unify the process of bt and ble to load bonded list during bluedroid
initialization.
2023-09-27 10:44:19 +08:00
morris
fcfb16050f fix(intr): always allocate memory from internal ram
Closes https://github.com/espressif/esp-idf/issues/12271
2023-09-27 02:36:01 +00:00
Ondrej Kosta
acf5b6eccb docs(esp_eth): added Ethernet to Improving Network Speed section 2023-09-26 13:29:37 +00:00
Ondrej Kosta
8d4ae2014b feat(esp_eth): added IRAM optimization option for internal EMAC 2023-09-26 13:29:37 +00:00
Mahavir Jain
b089f6e038 Merge branch 'update/micro-ecc_submodule_v5.0' into 'release/v5.0'
feat(bootloader): Update micro-ecc version to v1.1 (v5.0)

See merge request espressif/esp-idf!26140
2023-09-26 18:34:27 +08:00
Harshit Malpani
c71801f9fa fix(bootloader): Update kconfig option 2023-09-26 13:31:58 +05:30
Harshit Malpani
3ea86d53b1 fix(bootloader_support): Fix condition for SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
Fix the condition to verify the image when SECURE_SIGNED_APPS_ECDSA_V2_SCHEME and
SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT are selected.
2023-09-26 13:31:58 +05:30
wanglai@espressif.com
025a669983 fix(bt/bluedroid): Modify the operator name to English in hfp_ag example 2023-09-26 15:10:15 +08:00
wanglai@espressif.com
261a2618b9 fix(bt/bluedroid): Revise the description for index in esp_hf_ag_clcc_response and correct the error return in btc_hf_indchange_notification
1: modify the description of param index in function
esp_hf_ag_clcc_response.
2: fix the error code return of function btc_hf_indchange_notification.
2023-09-26 15:10:15 +08:00
wanglai@espressif.com
f4170d127e feat(bt/bluedroid): Add flag to control whether to send AT+CLIP cmd for BQB test 2023-09-26 15:10:15 +08:00
wanglai@espressif.com
7e1af63bfc feat(bt/bluedroid): Add flag to change HFP client features for BQB test 2023-09-26 15:10:15 +08:00
wanglai@espressif.com
9897df3647 feat(bt/bluedroid): Add eSCO S1 support for hfp client BQB test 2023-09-26 15:10:15 +08:00
wanglai@espressif.com
23e3279a84 feat(bt/bluedroid): Add flag to send BRSF features for hfp ag BQB test 2023-09-26 15:10:15 +08:00
wanglai@espressif.com
4f332026e6 feat(bt/bluedroid): Modify the btc hf features for AT+NREC cmd in BQB test 2023-09-26 15:10:15 +08:00
wanglai@espressif.com
ce41d2c0a8 fix(bt/bluedroid): Fix the process of sending OK in ATD and COPS cmds 2023-09-26 15:10:15 +08:00
wanglai@espressif.com
9a11ce19ea feat(bt/bluedroid): Add supprot for specific indicator sending from AG to Client 2023-09-26 15:10:15 +08:00
wanglai@espressif.com
2a747a3058 feat(bt/bluedroid): Modify AT+CNUM response api and HFP AG example 2023-09-26 15:10:15 +08:00
wanglai@espressif.com
0687fad3d6 feat(bt/bluedroid): Add HFP config for BQB test 2023-09-26 15:10:14 +08:00
liqigan
833d3226c5 fix(bt/bluedroid): Fix the issue for HID congestion checking 2023-09-26 14:15:44 +08:00
wanglai@espressif.com
6c1d11ad7e feat(bt/bluedroid): Add flags for BQB auto test of L2CAP
1: add sdp_bqb_disable_flag to avoid running sdpu_build_n_send_error.
2: add sdp_bqb_inact_timeout_flag to set the SDP inactivity timeout to 90 seconds.
3: add l2cap_bqb_bad_cmd_len_rej_flag to reject the C-Frame with invalid PDU length
4: add l2cap_bqb_ertm_mode_included_flag to set L2CAP_FCR_ERTM_MODE for most L2CAP cases
2023-09-26 14:06:24 +08:00
David Cermak
0c379e6663 fix(http_client): Set common tcp config to both TCP and SSL transport
Foundation transport contained TCP properties for both TCP and SSL
transport, so it was enough to set the TCP connection properties
(keepalive, interface binding) to one transport only. After merging
5778a7c7 we have separate TCP properties for these transports and need
to set the same for both.
This commit also fixes unnecessary allocation of 1 more byte for if_name

Closes https://github.com/espressif/esp-protocols/issues/322
2023-09-25 14:57:25 +02:00
darshan
0ae59943e2 fix(nimble): added log for extended advertisement (v5.0) 2023-09-25 17:41:33 +05:30
Rahul Tank
840d8a2aee Merge branch 'feature/adv_queue_congestion_v5.0' into 'release/v5.0'
feat(nimble): Added adv queue congestion check (v5.0)

See merge request espressif/esp-idf!25731
2023-09-25 19:18:39 +08:00
baohongde
7620ff11b5 change(bt/bluedroid): Send a name tag with zero length when there is no EIR data 2023-09-25 06:28:42 +00:00
Kapil Gupta
32c6d13001 change(wifi): Rename ESP_WIFI_MBEDTLS_CRYPTO to WPA_MBEDTLS_CRYPTO 2023-09-25 10:58:06 +05:30
Kapil Gupta
9562935813 change(wifi): Add dependency of group 19 for MbedTLS crypto 2023-09-25 10:57:57 +05:30
Kapil Gupta
3f0800ef66 change(wifi): Add supplicant's public API header files to doc 2023-09-25 10:57:11 +05:30
shangke
5d3d6bf7c0 fix(bt/controller): Fixed some HCI commands parameter
1: add param check for HCI_Recevie_Synchronization_Train.
2: add param check for HCI_Set_Connectionless_Peripheral_Broadcast.
3: fix slave cannot take a secure authentication.
2023-09-25 11:42:36 +08:00
chenqingqing
af72846e92 fix(bt/bluedroid): Fix the judgment condition for packet transmission status statistics 2023-09-25 10:50:52 +08:00
zhanghaipeng
a921a2dfd7 fix(bt/bluedroid): Fix set periodic advertising data error 2023-09-23 20:23:49 +08:00
harshal.patil
9bf94cb7e1 feat(bootloader): Update micro-ecc version to v1.1
This fix ensures that https://nvd.nist.gov/vuln/detail/CVE-2020-27209 is not
reported by the ESP-IDF SBOM tool. Please note that, this CVE was anyways not
applicable for ESP32 platform, as the bootloader (user of micro-ecc library)
do not perform signing on the device, its only verification that happens in
secure-boot-v1 case.
2023-09-22 10:50:00 +05:30
Krzysztof Budzynski
ce6d37fe35 Merge branch 'docs/add_Chinese_translation_for_api-reference/peripherals/spi_slave_hd.rst_backport_v5.0' into 'release/v5.0'
docs: provide CN translation for api-reference/peripherals/spi_slave_hd.rst (Backport v5.0)

See merge request espressif/esp-idf!26103
2023-09-22 10:51:48 +08:00
Cai Xin Ying
202d1f11e9 docs: provide CN translation for api-reference/peripherals/spi_slave_hd.rst (Backport v5.0) 2023-09-22 10:51:47 +08:00
You Wei
39cc5e0fcc fix(ldgen): duplicate entries in the generated .ld file 2023-09-21 19:41:24 +08:00
You Wei
82f26d48a3 fix(ldgen): check target conflict for entries with section alias 2023-09-21 19:41:24 +08:00
Sudeep Mohanty
e53e0c553f fix(freertos): Updated IDLE task names for each core to have the coreID as a suffix
This commit updates the IDLE task names for each core by concatenating
the respective coreIDs to the names.

Closes https://github.com/espressif/esp-idf/issues/12204
2023-09-21 13:11:36 +02:00
Jiang Jiang Jian
5b2404af4b Merge branch 'feat/add_internal_pull_up_or_pull_down_option_for_deepsleep_wakeup_prepare_v5.0' into 'release/v5.0'
feat(pm): add internal pull-up/downs option for gpio used for deepsleep wakeup (backport v5.0)

See merge request espressif/esp-idf!26041
2023-09-21 15:36:50 +08:00
Kapil Gupta
a03df471ae change(example): Update eap-fast example 2023-09-21 11:54:36 +05:30
Kapil Gupta
30cfd31ea5 change(example): Update wifi enterprise example 2023-09-21 11:54:36 +05:30
Kapil Gupta
5cc7d3741d change(esp_wifi): Rename WiFi enterprise connection APIs 2023-09-21 11:54:32 +05:30
Aditya Patwardhan
1e95e18576 feat(esp_http_client): Added support for OTA using ds peripheral for TLS 2023-09-21 10:22:41 +05:30
Jiang Jiang Jian
11091e654a Merge branch 'bugfix/pthread_cond_var_link_hook_v5.0' into 'release/v5.0'
bugfix(pthread): fixed pthread_condvar linker hook (v5.0)

See merge request espressif/esp-idf!26005
2023-09-21 10:56:50 +08:00
Kapil Gupta
c853492e1c change(wifi): Reduce BSS logging in wpa_supplicant 2023-09-21 02:55:35 +00:00
Jiang Jiang Jian
c4d7be43ed Merge branch 'bugfix/wps_wpa3_passphrase_v5.0' into 'release/v5.0'
WiFi: get passphrase in WPS if AP support SAE (v5.0)

See merge request espressif/esp-idf!25886
2023-09-21 10:54:06 +08:00
Jiang Jiang Jian
aedd7fe002 Merge branch 'docs/update_multi_antenna_switch_docs_v5.0' into 'release/v5.0'
Docs/update multi antenna switch docs v5.0(Backport v5.0)

See merge request espressif/esp-idf!25819
2023-09-21 10:53:14 +08:00
aditi_lonkar
9f0d0e27ef wpa_supplicant: Fix for issue of wps-pbc overlap in wps-pin method 2023-09-21 02:52:49 +00:00
Jiang Jiang Jian
92b4e5c15b Merge branch 'bugfix/skip_using_cache_in_wrong_passwd_cfg_v5.0' into 'release/v5.0'
Skip PMK cache usage if configured password is incorrect (Backport v5.0)

See merge request espressif/esp-idf!25707
2023-09-21 10:52:10 +08:00
Jiang Jiang Jian
be49757cbf Merge branch 'contrib/github_pr_9694_v5.0' into 'release/v5.0'
add low power doc and picture (GitHub PR)(backport v5.0)

See merge request espressif/esp-idf!25591
2023-09-21 10:37:38 +08:00
Jiang Jiang Jian
0b4adebda5 Merge branch 'feature/configurable_wpa2_ent_v5.0' into 'release/v5.0'
Make enterprise support configurable to save binary size.(v5.0)

See merge request espressif/esp-idf!25557
2023-09-21 10:37:20 +08:00
Wang Meng Yang
3ab19cc298 Merge branch 'origin/test/bqb_test_bt_classic_avdtp_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Add avdt abort function for BQB test(backport v5.0)

See merge request espressif/esp-idf!26046
2023-09-21 09:47:36 +08:00
Lou Tianhao
0c09543d65 feat(pm): add internal pull-up/downs option for gpio used for deepsleep wakeup 2023-09-20 17:30:18 +08:00
Wang Meng Yang
a48a845cfa Merge branch 'change/optimize_sniff_request_v5.0' into 'release/v5.0'
Change(bt/bluedroid): Limit sniff request when pending mode change event[backport 5.0]

See merge request espressif/esp-idf!26054
2023-09-20 16:50:50 +08:00
Rahul Tank
35bc5c3beb Merge branch 'bugfix/update_ble_phy_example_v5.0' into 'release/v5.0'
fix(nimble): Updated BLE Phy example (v5.0)

See merge request espressif/esp-idf!26016
2023-09-20 16:34:55 +08:00
Aditya Patwardhan
d2109f0527 Merge branch 'bugfix/aes_dma_descriptor_setup_issue_v5.0' into 'release/v5.0'
fix(aes): correct the linking of the DMA descriptors (v5.0)

See merge request espressif/esp-idf!25785
2023-09-20 13:52:03 +08:00
liqigan
0016eb028c change(bt/bluedroid): Limit sniff request when pending mode change event 2023-09-19 20:10:37 +08:00
LiPeng
a431bb4579 fix(vfs): Fix event_write may not exit critical section
This commit fixes the event_write() function where the critical section
was unbalanced.

Merges https://github.com/espressif/esp-idf/pull/12258
2023-09-19 08:52:51 +02:00
Island
caf6660080 Merge branch 'bugfix/fix_some_ble_bug_v5.0' into 'release/v5.0'
Fixed some BLE bugs (backport v5.0)

See merge request espressif/esp-idf!26031
2023-09-19 14:51:03 +08:00
morris
69b0a57777 Merge branch 'contrib/github_pr_12179_v5.0' into 'release/v5.0'
fix(uart): Fix uart_ll_set_baudrate div-by-zero crash due to uint32_t overflow (backport v5.0)

See merge request espressif/esp-idf!26017
2023-09-19 13:15:17 +08:00
Wang Meng Yang
185ed100fd Merge branch 'bugfix/error_param_in_BTA_AG_WBS_EVT_v5.0' into 'release/v5.0'
Bugfix/error param in bta ag wbs evt (v5.0)

See merge request espressif/esp-idf!26002
2023-09-19 12:01:01 +08:00
wanglai@espressif.com
40b99b513c feat(bt/bluedroid): Add avdt abort function for BQB test
1: add new AVDTP abort function for BQB test
2023-09-19 11:55:58 +08:00
morris
711477d354 Merge branch 'feature/specify_rmt_intr_priority_v5.0' into 'release/v5.0'
feat(rmt): specify interrupt priority (v5.0)

See merge request espressif/esp-idf!25719
2023-09-19 11:49:18 +08:00
morris
2bec2de36e Merge branch 'feature/mcpwm_interrupt_priority_v5.0' into 'release/v5.0'
feat(MCPWM): Support set interrupt priority(v5.0)

See merge request espressif/esp-idf!25522
2023-09-19 10:41:58 +08:00
morris
d86397aca4 Merge branch 'feature/pcnt_interrupt_priority_v5.0' into 'release/v5.0'
feat(pcnt): support set interrupt priority(v5.0)

See merge request espressif/esp-idf!25520
2023-09-19 10:27:28 +08:00
morris
d6df3b7758 Merge branch 'feature/add_mcpwm_carrier_clk_source_v5.0' into 'release/v5.0'
feat(MCPWM): Add mcpwm carrier clk source(v5.0)

See merge request espressif/esp-idf!25523
2023-09-19 10:24:25 +08:00
chenjianhua
9af8a1e7a7 Update bt lib for ESP32-C3 and ESP32-S3(59725b5)
- Support BLE RX error packet count record
- Fixed adv random delay when adv interval is less than 20ms
- Fixed adv random address setting when owner address type is public
2023-09-18 19:39:41 +08:00
chenjianhua
9fce08c5d2 Update bt lib for ESP32-C3 and ESP32-S3(ff6efe7)
- fix(bt/controller): Fixed PHY enable and disable
- feat(bt/controller): Support DAA and LBT mode for BLE CCA
2023-09-18 19:39:27 +08:00
chenjianhua
19a07ffb96 update esp32 bt-lib (7b24543)
- Support BLE RX error packet count record
- Fixed instant setting for LLC procedures with instants
- Fixed adv random delay when adv interval is less than 20ms
2023-09-18 19:38:38 +08:00
zhanghaipeng
c85c755ec6 fix(bt): Fix bugs about updating connect param 2023-09-18 19:38:20 +08:00
zhanghaipeng
4e6a831d57 fix(bt): Fix bug while calculating block cipher using aes-128 2023-09-18 19:38:13 +08:00
zhanghaipeng
ed1a83a93f docs(bt): Update comment in ble 2023-09-18 19:38:04 +08:00
zhanghaipeng
debcf93282 feat(bt/bluedroid): Support periodic adv adi feature 2023-09-18 19:37:55 +08:00
chenjianhua
559368ba77 fix(bt/bluedroid): Fixed BLE disconnect event report when disconnecting 2023-09-18 19:37:45 +08:00
chenjianhua
c75ffd7de1 fix(bt/bluedroid): Fixed GATTC cache address save when list is full 2023-09-18 19:37:38 +08:00
chenjianhua
fc57ae154d feat(bt/bluedroid): Support high duty adv interval setting 2023-09-18 19:37:28 +08:00
chenjianhua
3115bd17b5 fix(bt/bluedroid): Fix address check when using NRPA as random device address 2023-09-18 19:37:18 +08:00
Wang Meng Yang
ae3029cad8 Merge branch 'bugfix/fix_some_hci_cmd_param_check_v5.0' into 'release/v5.0'
fix(bt/controller): Fixed some HCI commands parameter check  (Backport v5.0)

See merge request espressif/esp-idf!25714
2023-09-18 19:07:35 +08:00
Song Ruo Jing
b75ccbde65 fix(docs): Improve the DFS and Peripheral Drivers section in power_management.rst 2023-09-18 16:34:18 +08:00
Song Ruo Jing
6fd9a50c17 fix(uart): Add 8/16-bit register field access workaround to ESP32C2 2023-09-18 16:34:18 +08:00
Eduardo Lacerda Campos
5a1d9da84f fix(uart): Fix uart_ll_set_baudrate div-by-zero crash due to uint32_t overflow
Merges https://github.com/espressif/esp-idf/pull/12179
2023-09-18 16:34:05 +08:00
Rahul Tank
751380762c fix(nimble): Updated BLE Phy example
The existing example has some issues which are now fixed.

1. Original example had legacy_pdu set which was not causing
   the PHY to actually change. Fixed this
2. Added a way to initiate connection directly on 2M or Coded Phy.
2023-09-18 13:25:41 +05:30
morris
2fd9ca6554 Merge branch 'feature/esp_lcd_st7789_rgb_data_endian_config_v5.0' into 'release/v5.0'
feat(st7789): add data endian config (v5.0)

See merge request espressif/esp-idf!25803
2023-09-18 15:50:23 +08:00
Island
87aeb49cff Merge branch 'feature/support_ble_53_host_feat_v5.0' into 'release/v5.0'
Support BLE host feature for PTS (backport v5.0)

See merge request espressif/esp-idf!25646
2023-09-18 15:23:06 +08:00
Wang Meng Yang
5a98ae1a52 Merge branch 'bugfix/fix_hidd_send_rpt_without_connection_v5.0' into 'release/v5.0'
Change(bt/bluedroid): Optimize HIDD sending interrupt report behavior[backport 5.0]

See merge request espressif/esp-idf!25919
2023-09-18 14:07:20 +08:00
Jakob Hasse
83b9a7e2a5 fix(pthread): fixed pthread_condvar linker hook 2023-09-18 12:31:34 +08:00
darshan
4c118e23ca feat(nimble): Added adv queue congestion check 2023-09-18 09:15:51 +05:30
Island
d1d4519f96 Merge branch 'feature/esp32c2_add_trace_function_v5.0' into 'release/v5.0'
ble: supported trace function and adv report flow control on esp32c2

See merge request espressif/esp-idf!25641
2023-09-18 11:44:27 +08:00
Rahul Tank
e3f05d0972 Merge branch 'feat/add_high_duty_adv_interval_v5.0' into 'release/v5.0'
feat(nimble): Added support for high duty adv interval (v5.0)

See merge request espressif/esp-idf!25554
2023-09-18 11:40:24 +08:00
morris
42a703f287 Merge branch 'feature/esp_lcd_spi_support_quad_mode_v5.0' into 'release/v5.0'
esp_lcd: spi support quad mode (v5.0)

See merge request espressif/esp-idf!25562
2023-09-18 11:28:59 +08:00
Wang Meng Yang
a6abcfb990 Merge branch 'test/bqb_test_bt_classic_sdp_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Add language base attr list to SDP record for BQB test (backport v5.0)

See merge request espressif/esp-idf!25930
2023-09-18 11:06:52 +08:00
Wang Meng Yang
b212ab6176 Merge branch 'test/bqb_test_bt_classic_hid_v5.0' into 'release/v5.0'
feat(bt/bqb): Add setting local di record function for specific hid case of bqb auto test (backport v5.0)

See merge request espressif/esp-idf!25834
2023-09-18 11:05:35 +08:00
Jin Cheng
11ecd9e5cf fix(bt/bluedroid): Fixed incorrect arrangement in type esp_hf_dial_type_t 2023-09-18 11:04:19 +08:00
Jin Cheng
89bfe3e352 change(bt/bluedroid): Added line information printing when error occurs CHECK_HF_IDX 2023-09-18 11:04:19 +08:00
Jin Cheng
03d9d39ec7 fix(bt/bluedroid): Fixed the issue of uninitialized parameters in event BTA_AG_WBS_EVT 2023-09-18 11:04:19 +08:00
morris
8276854072 Merge branch 'feature/esp_lcd_panel_add_data_and_type_v5.0' into 'release/v5.0'
feat(esp_lcd): add user data and init cmd (v5.0)

See merge request espressif/esp-idf!25722
2023-09-18 11:03:35 +08:00
Wang Meng Yang
1b4464a6be Merge branch 'test/bqb_test_bt_classic_a2dp_v5.0' into 'release/v5.0'
feat(bt/bqb): Add setting SBC encoder and reject invalid codec type support for a2dp BQB test (backport v5.0)

See merge request espressif/esp-idf!25685
2023-09-18 11:02:56 +08:00
Planck (Lu Zeyu)
f089f0d83b feat(rmt): specify interrupt priority 2023-09-18 03:02:49 +00:00
Wang Meng Yang
6314d3540b Merge branch 'bugfix/hf_ag_report_event_with_null_bdaddr_v5.0' into 'release/v5.0'
Bugfix/fixed bugs of HFP in BlueDroid (v5.0)

See merge request espressif/esp-idf!25828
2023-09-18 10:52:01 +08:00
Jiang Jiang Jian
21a6d5b4cd Merge branch 'docs/update_wakeup_gpio_esp32s2_esp32s3_esp32c6_esp32h2_v5.0' into 'release/v5.0'
docs: Updated wakeup GPIOs for ESP32-S2, ESP32-S3, ESP32-C6 and ESP32-H2

See merge request espressif/esp-idf!25617
2023-09-18 10:46:14 +08:00
Marius Vikhammer
6447807e4e Merge branch 'doc/fix_xts_key_length_256_desc_v5.0' into 'release/v5.0'
fix(doc): Fix incorrect description for xts_key_length_256 efuse (v5.0)

See merge request espressif/esp-idf!25932
2023-09-18 10:21:31 +08:00
Marius Vikhammer
1bdc5dedc1 Merge branch 'bugfix/freertos_vTaskSuspendAll_test_flakiness_v5.0' into 'release/v5.0'
FreeRTOS: Fix vTaskSuspendAll unit test flakiness (v5.0)

See merge request espressif/esp-idf!25609
2023-09-18 10:20:39 +08:00
Mahavir Jain
833970b783 Merge branch 'feature/freertos_add_sbom_file_v5.0' into 'release/v5.0'
feat(freertos): Added SBOM manifest file for SPDX file generation (v5.0)

See merge request espressif/esp-idf!25892
2023-09-16 21:35:15 +08:00
Roland Dobai
0b86f34cb4 Merge branch 'bugfix/failed_module_import_v5.0' into 'release/v5.0'
fix(tools): extend error message for failed python module import (v5.0)

See merge request espressif/esp-idf!25869
2023-09-16 00:01:40 +08:00
Roland Dobai
58392ec5d5 Merge branch 'fix/click-port-compl_v5.0' into 'release/v5.0'
fix(tools): fix autocomplete for --port option (v5.0)

See merge request espressif/esp-idf!25875
2023-09-16 00:00:38 +08:00
Roland Dobai
eb7a99040d Merge branch 'dependency_check_fix_v5.0' into 'release/v5.0'
bug(tools): dependency check catch exception when package not installed (v5.0)

See merge request espressif/esp-idf!25657
2023-09-16 00:00:12 +08:00
Roland Dobai
7ce55ea9fe Merge branch 'feature/configurable_gcov_task_size_v5.0' into 'release/v5.0'
feat(gcov): make gcov dump task size configurable (v5.0)

See merge request espressif/esp-idf!25601
2023-09-15 23:59:55 +08:00
Kapil Gupta
a869c484d0 fix(wifi): Get passphrase in WPS if AP support SAE
Also add changes to send NACK if WPS message received twice.
2023-09-15 10:28:48 +00:00
Island
3da1684b4a Merge branch 'backport_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix memory no free issue when disconneting for mesh(backport v5.0)

See merge request espressif/esp-idf!25957
2023-09-15 14:21:25 +08:00
Aditya Patwardhan
e0a3a3d64c Merge branch 'bugfix/usb/host/urb_check_revert_v5.0' into 'release/v5.0'
[USB Host] Fix transfer determination during argument checking for regular EP transfer (backport v5.0)

See merge request espressif/esp-idf!25964
2023-09-14 23:52:20 +08:00
Roman Leonov
8fbf4ba605 bugfix(usb/host): Fix transfer direction determination during argument checking for regular EP transfer 2023-09-13 21:53:28 +02:00
zhanghaipeng
b0d4fb3b35 fix(bt/bluedroid): Fix memory no free issue when disconneting for mesh 2023-09-13 18:17:56 +08:00
luomanruo
79b2773102 change(ble): update controller log print interface 2023-09-12 17:40:50 +08:00
Aditya Patwardhan
47da0967ac Merge branch 'update/version_5_0_4' into 'release/v5.0'
versions: Update version to 5.0.4

See merge request espressif/esp-idf!25906
2023-09-12 15:54:55 +08:00
KonstantinKondrashov
f3876b60f5 fix(doc): Fix incorrect description for xts_key_length_256 efuse 2023-09-12 14:53:10 +08:00
wanglai@espressif.com
a02cb1ebc0 feat(bt/bluedroid): Add language base attr list to SDP record for BQB test 2023-09-12 13:04:33 +08:00
Linda
9fb3f19e3a docs: Updated wakeup GPIOs for ESP32-S2, ESP32-S3, ESP32-C6 and ESP32-H2 2023-09-12 11:17:07 +08:00
liqigan
4b7f77a769 change(bt/bluedroid): Optimize HIDD sending interrupt report behavior
HID device is allowed to trigger reconnection by sending an interrupt
report. When reconnection is in progress, no more interrupt report can
be sent until the procedure is accomplished.
2023-09-11 20:14:25 +08:00
Aditya Patwardhan
a4223c75a6 versions: Update version to 5.0.4 2023-09-11 10:38:15 +05:50
Sudeep Mohanty
9fe0fa3455 feat(freertos): Added SBOM manifest file for SPDX file generation
This commit adds the SBOM manifest file for the FreeRTOS-Kernel to aid
SPDX file generation.
2023-09-08 12:56:04 +02:00
cjin
e741807b5a ble: support esp32c2 wakeup overhead 2023-09-08 17:03:06 +08:00
cjin
a29eaf058e feat: Support esp32c2 BLE power save example 2023-09-08 17:03:03 +08:00
Peter Dragun
f06d3ff5bb fix(tools): fix autocomplete for --port option
Closes https://github.com/espressif/esp-idf/issues/7970
2023-09-08 09:29:20 +02:00
Frantisek Hrbata
ca31d75cc3 fix(tools): extend error message for failed python module import
Currently idf.py reports just "Please use idf.py only in an ESP-IDF shell environment".
Sometimes it may be useful to know for which module the import failed.
Also the problem does not have to be related to shell environment only, but the
python venv can be corrupted. This adds a little bit more verbose error
message.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-09-08 07:29:56 +02:00
zwl
dc417eeab9 feat(ble): enable adv report flow control on esp32c2 2023-09-07 16:38:03 +08:00
zwl
99197d4a02 feat(ble): supported trace function and adv report flow control on esp32c2 2023-09-07 16:30:20 +08:00
muhaidong
d04b4e836b esp_wifi: update multi antenna switch docs 2023-09-07 14:43:29 +08:00
wanglai@espressif.com
60b4e1f998 feat(bt/bluedroid): Add setting local di record function for bt classic hid device bqb test 2023-09-07 14:20:56 +08:00
wanglai@espressif.com
5f243e9b95 fix(bt/bluedroid): Changed HID related copyright automatically 2023-09-07 14:20:36 +08:00
Wang Mengyang
50a854ce10 ci(bt/bluedroid): Add CI build test for HFP examples with voice over HCI enabled 2023-09-07 11:37:18 +08:00
chenqingqing
fbf196a7f9 feat(bt/api): Add new apis for hfp to get the numbers of packet status received and sent 2023-09-07 11:37:09 +08:00
Jin Cheng
54fecc5561 fix(bt/bluedroid): Deleted the redundant 'memset' in btc_hf_cb_handler 2023-09-07 10:59:06 +08:00
Jin Cheng
5dc39ebf5a docs(bt/bluedroid): Changed the description of esp_hf_client_reject_call 2023-09-07 10:56:11 +08:00
Jin Cheng
963f5a40db fix(bt/bluedroid): Fixed invalid access to freed semaphore 2023-09-07 10:56:11 +08:00
Jin Cheng
fbf2d5d5d9 fix(bt/bluedroid): Fixed wrong indexes of HF-AG indicators 2023-09-07 10:56:11 +08:00
Jin Cheng
774056bf62 fix(bt/bluedroid): Added peer Bluetooth device address into HF callback parameters 2023-09-07 10:56:11 +08:00
Jin Cheng
e1864ca1e8 fix(bt/bluedroid): Changed log level from WARNING to DEBUG in bta_ag_sco_read_cback 2023-09-07 10:56:11 +08:00
Jin Cheng
e36e0f5233 fix(bt/bluedroid): Fixed wrong code logic in 'AT+CIND?' of HFP 2023-09-07 10:56:11 +08:00
Jin Cheng
f0ed003d91 fix(bt/bluedroid): Fixed errors in parsing ATD command in HFP AG 2023-09-07 10:56:11 +08:00
Jin Cheng
fb14ef7c24 fix(bt/bluedroid): Fixed NULL Bluetooth device address in HF-AG events was reported to application layer 2023-09-07 10:56:11 +08:00
muhaidong
2c3ae21591 esp_wifi: the antenna parameter of example is not correct 2023-09-07 10:56:06 +08:00
muhaidong
c4dffd57c3 esp_wifi: fix pre commit issue 2023-09-07 10:56:06 +08:00
xiehanxin
9c71aad75b add enum type for antenna number 2023-09-07 10:56:06 +08:00
xiehanxin
7bf89d83d5 add multiple antenna test example 2023-09-07 10:56:06 +08:00
Planck (Lu Zeyu)
9ab9e05639 feat(st7789): add data endian config
Closes https://github.com/espressif/esp-idf/issues/11416
2023-09-06 17:04:34 +08:00
Mahavir Jain
aba35cd526 fix(aes): correct the linking of the DMA descriptors
For certain data lengths, the last input descriptor was not getting appended
correctly and hence the EOF flag in the DMA descriptor link list was
set at incorrect location. This was resulting in the peripheral being
stalled expecting more data and eventually the code used to timeout
waiting for the AES completion interrupt.

Required configs for this issue:

CONFIG_MBEDTLS_HARDWARE_AES
CONFIG_SOC_AES_SUPPORT_DMA

This observation is similar to the issue reported in:
https://github.com/espressif/esp-idf/issues/10647

To recreate this issue, start the AES-GCM DMA operation with data length
12280 bytes and this should stall the operation forever.

In this fix, we are tracing the entire descriptor list and then appending the
extra bytes descriptor at correct position (as the last node).
2023-09-06 08:30:00 +05:30
Mahavir Jain
29be69d797 fix(aes-gcm): correct the DMA completion wait condition for hardware GCM case
DMA operation completion must wait until the last DMA descriptor
ownership has been changed to hardware, that is hardware is completed
the write operation for entire data. Earlier for the hardware GCM case,
the first DMA descriptor was checked and it could have resulted in some
race condition for non interrupt (MBEDTLS_AES_USE_INTERRUPT disabled) case.
2023-09-06 08:29:57 +05:30
wanglai@espressif.com
c95c3ba38e feat(bt/bluedroid): Set SBC encoder as PTS required for BQB test.
1: set SBC encoder as PTS required. The encoder is effective first.
But it changes to default after media start.
2023-09-05 01:55:37 +00:00
wanglai@espressif.com
14b1290a20 fix(bt/bluedroid): Reject SET CONFIGURATION command with error code INVALID_CODEC_TYPE.
1: reset p_scb->avdt_handle in cleanup function.
2: cancel comparing p_scb->codec_type and p_scb->seps[xx].codec_type to
   send the error INVALID_CODEC_TYPE.
2023-09-05 01:55:37 +00:00
Liu Zhong Wei
8668c55512 feat(esp_lcd): add user data and init cmd 2023-09-04 13:26:18 +08:00
linruihao
7e4a64a9ab fix(bt/controller): Fixed some HCI commands parameter check
Fixed HCI_Change_Connection_Packet_Type Command parameter check
Fixed HCI_Accpet_Synchronous_Connection_Request Command parameter check
Fixed HCI_Set_Connectionless_Peripheral_Broadcast_Data Command parameter check
2023-09-04 11:36:29 +08:00
ding huan
1eae9ce61c ci(wifi): Test connect api at different phase 2023-09-02 21:48:59 +08:00
Shyamal Khachane
7a3d12316a fix(esp_wifi): Skip PMK cache usage if configured password is incorrect 2023-09-01 18:48:11 +05:30
wanlei
bf1a67362e fix(spi_master): polling_transmit forgot release bus lock when alloc DMA buffer failed
Close https://github.com/espressif/esp-idf/issues/11845
2023-09-01 17:30:26 +08:00
Peter Dragun
6c37f49d16 bug(tools): dependency check catch exception when package not installed 2023-08-30 17:14:10 +02:00
chenjianhua
11e8970a45 bluedroid: add GATT read multi variable API and evt 2023-08-30 15:17:56 +08:00
chenjianhua
0315b24514 bluedroid: add periodic adv sync transfer API and EVT 2023-08-30 15:17:47 +08:00
chenjianhua
630154ed2d bluedroid: support gatts show local database 2023-08-30 15:17:38 +08:00
chenjianhua
3100841f64 bluedroid: fixed GATT multi notify and robust caching 2023-08-30 15:17:30 +08:00
chenjianhua
285e86ad04 bluedroid: add config for GAP service and periodic adv sync transfer 2023-08-30 15:17:14 +08:00
chenjianhua
0b76c3615e bluedroid: add internal GATT API for PTS 2023-08-30 15:15:23 +08:00
chenjianhua
69b8b587c9 bluedroid: add config for robust caching and RPA timeout 2023-08-30 15:15:09 +08:00
chenjianhua
42a1d94830 bluedroid: support GATT robust caching feature 2023-08-30 15:13:03 +08:00
chenjianhua
1ce00f01ca bluedroid: support GATT services database hash calculate 2023-08-30 15:12:52 +08:00
chenjianhua
ed34a2b500 bluedroid: support periodic advertising sync transfer cmd 2023-08-30 15:12:41 +08:00
chenjianhua
52e3e684e0 bluedroid: support LE L2CAP credit based connection 2023-08-30 15:12:12 +08:00
chenjianhua
4145099bdc bluedroid: support oob pairing for smp secure connection 2023-08-30 15:11:34 +08:00
Erhan Kurubas
5577f709b0 fix(breakpoint): fix bp/wp logic when debugger is connected 2023-08-29 12:37:33 +02:00
Chen Jichang
03ec7a0c5d feat(pcnt): support set interrupt priority(v5.0) 2023-08-29 07:48:30 +00:00
wangtao
eb25e92584 backport for v5.0 delete esp32c6 info 2023-08-29 11:48:52 +08:00
Island
7065c87963 Merge branch 'bugfix/ble_hci_issues_chain_mbuf_v5.0' into 'release/v5.0'
fix hci issues when chain mbuf exists

See merge request espressif/esp-idf!25533
2023-08-29 10:27:40 +08:00
Darian Leung
715ff1e432 freertos: Fix vTaskSuspendAll unit test falkiness
This commit fixes falkey unit tests (due to memory leaks) by adding a short
delay at the end of the test to allow the idle task to free task memory.
2023-08-28 19:09:53 +08:00
Erhan Kurubas
a9f039e56f feat(gcov): make gcov dump task size configurable 2023-08-28 12:02:58 +02:00
chenjianxing
760ce1ebd8 docs: update power save part 2023-08-28 14:23:19 +08:00
wang tao
86310135f6 add low power doc and picture
Merges https://github.com/espressif/esp-idf/pull/9694
2023-08-28 14:23:09 +08:00
Jiang Jiang Jian
a78ad034f5 Merge branch 'bugfix/fix_mem_map_issue_v5.0' into 'release/v5.0'
flash_mmap: fix range issue (v5.0)

See merge request espressif/esp-idf!24529
2023-08-26 10:28:44 +08:00
Jiang Jiang Jian
45e1b89efe Merge branch 'feature/default_clock_source_can_leave_empty_v5.0' into 'release/v5.0'
feat(mcpwm): default clock source setting can leave empty (v5.0)

See merge request espressif/esp-idf!25549
2023-08-26 10:15:28 +08:00
Jiang Jiang Jian
62e6999279 Merge branch 'bugfix/fix_adc_continuous_driver_isr_flag_issue_v5.0' into 'release/v5.0'
adc: fix continuous hal func not in iram when gdma isr iram (v5.0)

See merge request espressif/esp-idf!25506
2023-08-26 09:59:54 +08:00
Jiang Jiang Jian
3d99ce2d1a Merge branch 'bugfix/supplicant_osi_violation_v5.0' into 'release/v5.0'
Fix abstraction violation in wpa_supplicant (Backport v5.0)

See merge request espressif/esp-idf!25566
2023-08-26 07:24:11 +08:00
Jiang Jiang Jian
8797a92844 Merge branch 'bugfix/fixed_esp32_psram_2t_mode_cannot_detect_issue_v5.0' into 'release/v5.0'
psram: fixed esp32 2t mode fail issue (v5.0)

See merge request espressif/esp-idf!23028
2023-08-25 15:07:35 +08:00
Nachiket Kukade
304d6164ae fix(supplicant): Fix abstraction violation in wpa_supplicant 2023-08-25 12:33:29 +05:30
Rahul Tank
4095399436 feat(nimble): Added support for high duty adv interval 2023-08-25 12:06:50 +05:30
Roland Dobai
8f3085c1bb Merge branch 'docs/uninstall_idf_v5.0' into 'release/v5.0'
docs(idf-tools): Add uninstallation instructions (backport v5.0)

See merge request espressif/esp-idf!25495
2023-08-25 14:33:29 +08:00
Liu Zhongwei
a6958aa142 feat(esp_lcd): spi add support for quad mode 2023-08-25 14:18:41 +08:00
Liu Zhongwei
c6992fa8b8 feat(esp_lcd): rgb add callback when bounce buffer finish 2023-08-25 14:18:41 +08:00
aditi_lonkar
ff523686b5 esp_wifi: Make enterprise support configurable to save binary size. 2023-08-25 11:14:49 +05:30
Jiang Jiang Jian
f7618e10da Merge branch 'fix/esp_prov_recent_changes_v5.0' into 'release/v5.0'
fix(esp_prov): update devices tuple usage due to API deprecations (v5.0)

See merge request espressif/esp-idf!25537
2023-08-25 13:36:07 +08:00
luomanruo
eb8a741be2 ble: Assert when getting memory fail 2023-08-25 12:27:05 +08:00
Jiang Jiang Jian
1baf1055bd Merge branch 'feature/config_device_name_in_eir_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Add option whether to include device name in extended inquiry response

See merge request espressif/esp-idf!25542
2023-08-25 12:27:03 +08:00
luomanruo
0861bf4c55 ble: Fix hci issues when chain mbuf exists 2023-08-25 12:26:50 +08:00
Jiang Jiang Jian
f218fa50d4 Merge branch 'ci/fix_example_test_advanced_ota_v5.0' into 'release/v5.0'
ci(fix): example test advanced_https_ota_example_bluedroid_gatts (v5.0)

See merge request espressif/esp-idf!25525
2023-08-25 12:14:10 +08:00
Jiang Jiang Jian
e8507d1380 Merge branch 'contrib/github_pr_11923_v5.0' into 'release/v5.0'
fix(esp-tls): fix pointer cast and condition for CONFIG_ATECC608A_TCUSTOM (GitHub PR) (v5.0)

See merge request espressif/esp-idf!25501
2023-08-25 12:11:12 +08:00
Jiang Jiang Jian
8e3b112c74 Merge branch 'bugfix/fix_legacy_adc_continuous_driver_dma_descriptor_not_internal_issue_v5.0' into 'release/v5.0'
adc: fixed legacy adc continuous driver dma descriptor not in internal ram issue (v5.0)

See merge request espressif/esp-idf!25509
2023-08-25 12:08:15 +08:00
Jiang Jiang Jian
328f592e9d Merge branch 'bugfix/esp_timer_prevents_delay_for_isr_dispatch_callbacks_v5.0' into 'release/v5.0'
fix(esp_timer): Fix delay in ISR dispatch callbacks (v5.0)

See merge request espressif/esp-idf!25473
2023-08-25 12:08:02 +08:00
Jiang Jiang Jian
1b580186f2 Merge branch 'bugfix/sdmmc_host_cclk_lp_v5.0' into 'release/v5.0'
sdmmc: keep clock enabled for the duration of ACMD41 (v5.0)

See merge request espressif/esp-idf!24334
2023-08-25 12:07:24 +08:00
Jiang Jiang Jian
787a6c9408 Merge branch 'bugfix/fix_no_mac_retention_at_wifi_start_v5.0' into 'release/v5.0'
fix(esp_wifi): fix no mac retention at wifi start

See merge request espressif/esp-idf!25517
2023-08-25 11:32:12 +08:00
Armando
d90cb866f1 test(adc): continuous driver iram test with gdma iram safe option only 2023-08-25 10:56:20 +08:00
Armando
53b1c2a2e6 test(flash_mmap): test flash mmap pages 2023-08-25 10:37:48 +08:00
Armando
6183b555aa fix(flash_mmap): fixed limited free I/D pages on ESP32S3, C2, C3 2023-08-25 10:37:48 +08:00
morris
358b408753 feat(mcpwm): default clock source setting can leave empty 2023-08-25 10:26:36 +08:00
morris
676553f432 fix(adc): invalid assertion on the adc_unit 2023-08-25 10:21:46 +08:00
Chen Jichang
615222f1c2 feat(MCPWM): Support set interrupt priority(v5.0) 2023-08-24 19:56:42 +08:00
baohongde
d82a2e2eec feat(bt/bluedroid): Add option whether to include device name in extended inquiry response 2023-08-24 19:36:26 +08:00
harshal.patil
771f6b2b7e fix(esp_prov): update devices tuple usage due to API deprecations
- a recent commit fixed the API deprecations,
and the BLEDevice object now needs to be accessed through a tuple.
- thus the changes were made in the code wherein the object was used,
but updating the usage in the condition when de
vname is not None got skipped.
2023-08-24 14:48:39 +05:30
Armando
9d6809bc99 psram: fixed esp32 2t mode fail issue 2023-08-24 15:30:07 +08:00
liuning
484f4cce31 fix(esp_wifi): fix no mac retention at wifi start 2023-08-24 06:36:34 +00:00
Jiang Jiang Jian
61ef154a60 Merge branch 'bugfix/v5.0_ble_issues_bugfix_c2' into 'release/v5.0'
Bugfix/v5.0 ble issues bugfix c2

See merge request espressif/esp-idf!25437
2023-08-24 14:13:26 +08:00
Chen Yudong
a84f601493 ci(fix): example test advanced_https_ota_example_bluedroid_gatts 2023-08-24 12:25:02 +08:00
Alex
97bdb74766 fix(esp-tls): fix pointer cast and condition for CONFIG_ATECC608A_TCUSTOM
Closes https://github.com/espressif/esp-idf/pull/11923
2023-08-24 04:17:56 +00:00
Chen Jichang
2a88fb9e81 feat(MCPWM): Add mcpwm carrier clk source
The MCPWM carrier is part of the operator and can work independently
without the MCPWM timer being enabled. This commit add the MCPWM
carrier clk source.
2023-08-24 11:45:28 +08:00
Armando
d2fb10008e fix(adc): fix adc continuous hal func not in iram when gdma isr iram 2023-08-24 10:50:33 +08:00
Jiang Jiang Jian
056de3bfb5 Merge branch 'contrib/github_pr_12039_v5.0' into 'release/v5.0'
docs(iperf): Update documentation with console interface details(v5.0)

See merge request espressif/esp-idf!25510
2023-08-24 10:18:41 +08:00
Ivan Grokhotkov
f82d97216a sdmmc: keep clock enabled for the duration of ACMD41
SD specification requires that card clock is not disabled until the
card is idle, following ACMD41 command.
2023-08-24 02:16:37 +00:00
Steven Macías
a1920067a2 docs(iperf): Update documentation with console interface details
Closes https://github.com/espressif/esp-idf/pull/12039
2023-08-23 19:46:46 +08:00
Armando
5a90dfb776 adc: fixed legacy adc continuous driver dma descriptor not in internal ram issue 2023-08-23 19:45:56 +08:00
Marius Vikhammer
6bb1e32782 Merge branch 'bugfix/usb/host/urb_compliance_verification_add_v5.0' into 'release/v5.0'
[USB Host] added URB check args and transfer check compliance for regular EP transfer submit (v5.0)

See merge request espressif/esp-idf!25469
2023-08-23 19:09:17 +08:00
Shang Zhou
024c311475 docs: Update CN translation for get-started/index.rst 2023-08-23 11:21:23 +02:00
radim.karnis
4cafb6bfa8 docs(idf-tools): Add uninstallation instructions 2023-08-23 11:21:23 +02:00
KonstantinKondrashov
453e0c784d refactor(esp_timer): Remove duplicate code and move it to a common file 2023-08-23 17:12:45 +08:00
Alan Fisher
41dc26f5bd fix(esp_timer): Fix delay in ISR dispatch callbacks
Set the following alarm before calling the alarm handler.

Closes https://github.com/espressif/esp-idf/pull/11637
Closes https://github.com/espressif/esp-idf/issues/11636
2023-08-23 17:10:45 +08:00
Jiang Jiang Jian
46f5638847 Merge branch 'bugfix/incorrect_time_after_ota_v5.0' into 'release/v5.0'
esp_hw_support: Fix invalid system time if s_esp_rtc_time_us & s_rtc_last_ticks were moved around (v5.0)

See merge request espressif/esp-idf!24410
2023-08-23 16:34:43 +08:00
Jiang Jiang Jian
29cd791cd9 Merge branch 'bugfix/fix_pmf_set_race_v5.0' into 'release/v5.0'
fix(wifi): Prevent PMF config overwritten by tx_cb(v5.0)

See merge request espressif/esp-idf!25416
2023-08-23 14:57:34 +08:00
Marius Vikhammer
b01f0fee50 Merge branch 'bugfix/usb_hcd_interrupt_alloc_error_return_v5.0' into 'release/v5.0'
USB Host: Fix coverity issues with hcd_install() (v5.0)

See merge request espressif/esp-idf!25464
2023-08-23 14:03:58 +08:00
Marius Vikhammer
6c6a55ef91 Merge branch 'bugfix/intr_flags_to_level_v5.0' into 'release/v5.0'
fix(intr_flags_to_level): fix value returned one more than correct value (v5.0)

See merge request espressif/esp-idf!25425
2023-08-23 13:55:30 +08:00
Shreyas Sheth
711279c36f fix(wifi): Prevent PMF config overwritten by tx_cb 2023-08-23 03:44:47 +00:00
Jiang Jiang Jian
186b5b4d55 Merge branch 'bugfix/ignore_eapol_nonkey_v5.0' into 'release/v5.0'
Ignore EAPOL non-key frames in EAPOL txdone callback (Backport v5.0)

See merge request espressif/esp-idf!25455
2023-08-23 10:37:44 +08:00
luomanruo
ee1c3119a7 ble: update btlib to f9db7b90, some esp32c2 issues bugfixed 2023-08-23 10:23:02 +08:00
Roman Leonov
af45a6d40d usb_host: added URB check args and transfer check compliance for regular EP transfer submit 2023-08-22 16:31:37 +08:00
Darian Leung
a4fa0019ec usb_host: Fix coverity issues with hcd_install()
- Use single "err_ret" variable for returning errors
- Simplify bail out procedure by using more labels
2023-08-22 15:31:40 +08:00
Mahavir Jain
8b692dd0ca Merge branch 'contrib/github_pr_11869_v5.0' into 'release/v5.0'
bugfix: avoid warning in espcoredump when log disabled (GitHub PR) (v5.0)

See merge request espressif/esp-idf!25144
2023-08-22 14:51:41 +08:00
Jiang Jiang Jian
d52c033574 Merge branch 'fix/wifi_wps_pbc_overlap_v5.0' into 'release/v5.0'
fix(wpa_supplicant): Add support to detect PBC overlap in wps registrar mode (Backport v5.0)

See merge request espressif/esp-idf!25441
2023-08-22 10:41:01 +08:00
Jiang Jiang Jian
85b69db02d Merge branch 'bugfix/fix_dhcp_server_address_pool_issue_5.0' into 'release/v5.0'
fix(dhcp server): Fix dhcp server address pool issue 5.0

See merge request espressif/esp-idf!25435
2023-08-22 10:38:55 +08:00
Jiang Jiang Jian
80231a8c58 Merge branch 'bugfix/optimize_beacon_rx_v5.0' into 'release/v5.0'
fix(phy): fix some phy issue(v5.0)

See merge request espressif/esp-idf!25436
2023-08-22 10:25:20 +08:00
Nachiket Kukade
9489c588bc fix(supplicant): Ignore EAPOL non-key frames in EAPOL txdone callback 2023-08-21 19:01:45 +05:30
Jiang Jiang Jian
87d429fb57 Merge branch 'bugfix/incr_sdp_max_conns_v5.0' into 'release/v5.0'
fix(bt): Increased SDP maximum connections to avoid connection exhausted (v5.0)

See merge request espressif/esp-idf!25430
2023-08-21 20:20:12 +08:00
Jiang Jiang Jian
478022104a Merge branch 'bugfix/fix_espnow_set_lr_rate_fail_v5.0' into 'release/v5.0'
fix(wifi/vendor): fix some bugs in LR and ESP-NOW (backport v5.0)

See merge request espressif/esp-idf!25414
2023-08-21 15:48:37 +08:00
Sarvesh Bodakhe
8c22b81949 fix(wpa_supplicant): Add support to detect PBC overlap in wps registrar mode 2023-08-21 12:34:17 +05:30
morris
9aefeb6dcb Merge branch 'bugfix/twai_install_returns_error_on_intr_alloc_fail_v5.0' into 'release/v5.0'
TWAI: twai_driver_install() returns error on interrupt allocation failure (GitHub PR) (v5.0)

See merge request espressif/esp-idf!24824
2023-08-21 13:26:43 +08:00
Jiang Jiang Jian
98c2bc85bb Merge branch 'bugfix/neighbour_report_crash_v50' into 'release/v5.0'
Fix crash in RRM neighbour report requests.(v5.0)

See merge request espressif/esp-idf!25408
2023-08-21 12:30:22 +08:00
alanmaxwell
cf4c628ef3 fix(phy): fix some phy issue
1. WIFI RX multipath optimization
2. BLE TX sideband optimization for C3/S3
3. Optimize ht40 tx side band issue
2023-08-21 12:00:38 +08:00
xueyunfei
bc003fc6d4 fix(dhcp server): Fix dhcp server address pool issue 2023-08-21 11:54:30 +08:00
luomanruo
9806a1e7e2 update btlib to f9db7b90, some esp32c2 issues bugfixed 2023-08-21 11:52:56 +08:00
Jin Cheng
849ab66f5f fix(bt): Increased SDP maximum connections to avoid connection exhausted 2023-08-21 11:20:48 +08:00
Jiang Jiang Jian
d811f7c1f0 Merge branch 'docs/fatfs_add_api_reference_v5.0' into 'release/v5.0'
docs(fatfs): Move mentioned APIs to a separate API reference section (v5.0)

See merge request espressif/esp-idf!25350
2023-08-21 10:42:51 +08:00
Jiang Jiang Jian
f9816801a9 Merge branch 'bugfix/secure_ota_without_padding_v5.0' into 'release/v5.0'
fix(secure_ota): secure app verification issue without padding bytes (v5.0)

See merge request espressif/esp-idf!25213
2023-08-21 10:42:05 +08:00
Jiang Jiang Jian
095f1f259b Merge branch 'bugfix/sha_dma_mode_incorrect_result_v5.0' into 'release/v5.0'
fix(sha): DMA mode iteration calculation issue for certain data lengths (v5.0)

See merge request espressif/esp-idf!25128
2023-08-21 10:40:15 +08:00
Jiang Jiang Jian
52e2f9b0ad Merge branch 'refactor/usb_host_usbh_interface_v5.0' into 'release/v5.0'
USB Host: Refactor USBH interface (v5.0)

See merge request espressif/esp-idf!24212
2023-08-21 10:39:28 +08:00
Jiang Jiang Jian
38bd8d3044 Merge branch 'bugfix/esp32s3_usb_otg_console_v5.0' into 'release/v5.0'
system: support USB_OTG CDC console on ESP32-S3 (v5.0)

See merge request espressif/esp-idf!24338
2023-08-21 10:37:29 +08:00
Jiang Jiang Jian
7c91c8f78d Merge branch 'feature/freertos_iram_optimization_5.0' into 'release/v5.0'
freertos: Update linker fragment files to optimise IRAM utilisation (v5.0)

See merge request espressif/esp-idf!24222
2023-08-21 10:33:23 +08:00
Planck (Lu Zeyu)
5a5fae5f1e fix(intr_flags_to_level): fix value returned one more than correct value 2023-08-21 10:09:00 +08:00
Jiang Jiang Jian
4efb3d7a7a Merge branch 'lwip/dhcp_client_fix_forwardportV5.0' into 'release/v5.0'
Fix: Added check to ensure safe restart of dhcp fine timer (v5.0)

See merge request espressif/esp-idf!24707
2023-08-18 17:22:54 +08:00
Jiang Jiang Jian
80d3e7a0b2 Merge branch 'bugfix/temperature_get_value_negative_v5.0' into 'release/v5.0'
bugfix(temperature_sensor): Fix issue that get the value is negative (backport v5.0)

See merge request espressif/esp-idf!25252
2023-08-18 17:21:32 +08:00
zhangyanjiao
8157b2606b fix(wifi/vendor): fix some bugs in LR and ESP-NOW
1. Fix the LR rate set fail for espnow and 80211 tx
2. Fixed the RX error when softAP/station and ESP-NOW both encrypted,
   and the ESP-NOW peer address is equal to the connection peer address
2023-08-18 17:13:47 +08:00
Jiang Jiang Jian
273928f14d Merge branch 'bugfix/netif_default_sta_init_v5.0' into 'release/v5.0'
wifi: Fix default wifi-netif creation to assert if no event loop (v5.0)

See merge request espressif/esp-idf!25345
2023-08-18 16:22:23 +08:00
jgujarathi
673a3b9b80 fix(rrm) : Fix crash in RRM neighbour report requests.
Fix crash in sending new RRM neighbour report requests by removing
the call to neighbour report request timeout callback in case of
already ongoing neighbour report request timer.
2023-08-18 12:53:07 +05:30
Mahavir Jain
958dae0c21 Merge branch 'feature/update_mbedtls_v5.0' into 'release/v5.0'
feat(mbedtls): Update to release/v3.4.1 (v5.0)

See merge request espressif/esp-idf!25395
2023-08-18 15:04:23 +08:00
Jiang Jiang Jian
bb4b3a36bc Merge branch 'bugfix/action_tx_sleep_fix' into 'release/v5.0'
Trigger null data frame TX before going offchannel.(v5.0)

See merge request espressif/esp-idf!25111
2023-08-18 15:02:12 +08:00
Nebojsa Cvetkovic
222190f08d twai: twai_driver_install() returns error on interrupt allocation failure
This commit updates twai_driver_install() so that an error is returned when
esp_intr_alloc() fails, instead of aborting.

Closes https://github.com/espressif/esp-idf/pull/11494

[darian@espressif.com: Refactored object allocation and free procedures]
[darian@espressif.com: Updated commit message]
Signed-off-by: Darian Leung <darian@espressif.com>
2023-08-18 11:20:13 +08:00
jgujarathi
7e45bf4573 fix(esp_wifi) : Trigger null data frame TX before offchan channel switch
1. Triggers null data frame TX to before channel switch during
   offchannel action frame TX req.
2. revert send wake up and sleep null between scaning
2023-08-17 17:35:10 +05:30
Harshit Malpani
53408df990 feat(mbedtls): Update to release/v3.4.1 2023-08-17 17:31:10 +05:30
Abhik Roy
73d238cdfb fix: Added check to ensure safe restart of dhcp fine timer 2023-08-17 19:04:33 +10:00
Jiang Jiang Jian
92bc2c74fc Merge branch 'bugfix/eapol_txdone_cb_issue_v5.0' into 'release/v5.0'
Fix EAPOL Key TxDone callback implementation (Backport v5.0)

See merge request espressif/esp-idf!25380
2023-08-17 16:37:42 +08:00
Nachiket Kukade
b7a28abd2c fix(wifi): Fix EAPOL Key TxDone callback implementation
Fix issues arising due to not distinguishing between M2 and M4
TxDone during 4-way handshake. Also fix EAPOL frame rate to lowest
possible rate.
2023-08-17 13:58:08 +08:00
Jiang Jiang Jian
58f24412db Merge branch 'bugfix/fix_ftm_error_propagation_v5.0' into 'release/v5.0'
Fix error propagation while initiating FTM (Backport v5.0)

See merge request espressif/esp-idf!25221
2023-08-17 00:42:39 +08:00
Nachiket Kukade
de2df68585 fix(wifi): Fix error propagation while initiating FTM 2023-08-16 12:36:14 +05:30
Roland Dobai
098a0293b1 Merge branch 'fix/v5.0_noload_included_in_flash_size' into 'release/v5.0'
fix: noload being included in ram and flash sizes

See merge request espressif/esp-idf!25339
2023-08-15 21:53:40 +08:00
Jiang Jiang Jian
7a0e39d5f0 Merge branch 'feature/improve_pd_vddsido_help_doc_v5.0' into 'release/v5.0'
docs(esp_hw_support): improve ESP_SLEEP_PSRAM/FLASH_LEAKAGE_WORKAROUND help doc in Kconfig (backport v5.0)

See merge request espressif/esp-idf!25235
2023-08-15 21:04:23 +08:00
David Cermak
fdbb885964 fix(wifi): Fix default wifi-netif creation to assert if no event loop
- Added ESP_ERROR_CHECK() checks to `esp_wifi_set_default_wifi_..._handlers()` calls
- Added ESP_ERROR_CHECH() to `esp_netif_attach_wifi_...()` calls
- Updated documentation to reflect the changes

Closes https://github.com/espressif/esp-idf/issues/11580
2023-08-15 11:06:38 +02:00
Jiang Jiang Jian
cce8fa3781 Merge branch 'bugfix/allow_owe_traffic_after_eapol_v5.0' into 'release/v5.0'
Fix some OWE issues (Backport v5.0)

See merge request espressif/esp-idf!25238
2023-08-15 13:59:42 +08:00
Jiang Jiang Jian
0508821a68 Merge branch 'bugfix/minor_enterprise_fixes_v5.0' into 'release/v5.0'
Drop Eapol msg if EAP success is not processed (Backport v5.0)

See merge request espressif/esp-idf!25067
2023-08-15 13:59:30 +08:00
Jiang Jiang Jian
01871aa91b Merge branch 'backport_v5.0' into 'release/v5.0'
fix(bt): Fix ble periodic advertising data length 0 error(backport v5.0)

See merge request espressif/esp-idf!25007
2023-08-15 11:04:47 +08:00
Jiang Jiang Jian
402a8f90d7 Merge branch 'bugfix/ccmp_decrypt_log_v5.0' into 'release/v5.0'
esp_wifi: Move ccmp mgmt enc/decrypt logs to verbose (v5.0)

See merge request espressif/esp-idf!25169
2023-08-15 11:04:05 +08:00
Shang Zhou
2a1e6f73ee docs: Provide CN translation for wear-levelling.rst 2023-08-14 12:59:10 +02:00
Adam Múdry
556816423c docs(fatfs): Move mentioned APIs to a separate API reference section 2023-08-14 12:59:08 +02:00
Wang Meng Yang
16aef4bbee Merge branch 'bugfix/remove_deprecated_err_code_v5.0' into 'release/v5.0'
fix(bt): Removed an incorrectly defined HCI error code (5.0)

See merge request espressif/esp-idf!25289
2023-08-14 14:56:10 +08:00
Island
9523b57c8d Merge branch 'bugfix/fix_current_issue_after_ble_init_5.0' into 'release/v5.0'
ble: move phy enabled/disable to controller enable/disable

See merge request espressif/esp-idf!25082
2023-08-14 13:11:36 +08:00
Wang Meng Yang
018f493cb3 Merge branch 'bugfix/fix_variable_type_v5.0' into 'release/v5.0'
fix(bt): Fix argument type of ESP_LOGI for spp examples about format error (backport v5.0)

See merge request espressif/esp-idf!25326
2023-08-14 10:32:38 +08:00
Djordje Nedic
3b047f7572 fix: noload being included in ram and flash sizes
This fixes noload sections being included in the total flash and ram
size calculations. These sections represent things that already exist in
the rom or flash in different partitions and are not a part of the app.
2023-08-11 22:32:11 +02:00
chenqingqing
342ae32a23 fix(bt): Fix argument type of ESP_LOGI for spp examples about format error
Closes https://github.com/espressif/esp-idf/pull/11819
2023-08-11 15:01:18 +08:00
Island
1812fdc58a Merge branch 'bluedroid/memory_full_v5.0' into 'release/v5.0'
fix (Bluedroid) : Fix the memory corruption issue (v5.0)

See merge request espressif/esp-idf!25182
2023-08-11 14:49:12 +08:00
satish.solanke
c7cda1c489 Fix the mem corruption 2023-08-10 14:30:32 +00:00
Mahavir Jain
baa90a6177 Merge branch 'feature/support_mbedtls_ecp_fixed_point_configurable_v5.0' into 'release/v5.0'
feat(mbedtls): support ecp fixed-point multiplication configurable (backport v5.0)

See merge request espressif/esp-idf!25287
2023-08-10 11:44:14 +08:00
Rahul Tank
52890aeb22 Merge branch 'bugix/nimble_port_run_crash_v5.0' into 'release/v5.0'
fix(nimble): Added checks before accessing event pointers (v5.0)

See merge request espressif/esp-idf!25267
2023-08-09 22:57:20 +08:00
Wang Meng Yang
e6c1c5cf6d Merge branch 'bugfix/role_switch_enc_mode_lmp_timeout_v5.0' into 'release/v5.0'
fix(bt/controller): Fix disconnection due to lmp messages not being processed by both sides(v5.0)

See merge request espressif/esp-idf!25203
2023-08-09 19:20:02 +08:00
Roland Dobai
5983040644 Merge branch 'fix/bin_names_with_dots_v5.0' into 'release/v5.0'
fix(build_system): Allow dots in the name of an app binary (backport v5.0)

See merge request espressif/esp-idf!25275
2023-08-09 18:35:19 +08:00
Jin Cheng
48a31a8a51 fix(bt): Removed an incorrectly defined HCI error code 2023-08-09 17:32:41 +08:00
Jiang Guang Ming
498d012510 docs: add new mbedtls configuration option in optimize size 2023-08-09 16:54:43 +08:00
Jiang Guang Ming
b554ee475c feat(mbedtls): support ecp fixed-point multiplication configurable 2023-08-09 16:54:28 +08:00
morris
78324fc655 Merge branch 'docs/add_cn_trans_for_contribute/index.rst_backport_v5.0' into 'release/v5.0'
docs: Provide CN translation for contribute/index.rst_backport v5.0

See merge request espressif/esp-idf!25271
2023-08-09 10:53:18 +08:00
Roland Dobai
cf90dc98f5 Merge branch 'bugfix/link_gcov_rtio_v5.0' into 'release/v5.0'
gcov: Fix not linked gcov rtio functions

See merge request espressif/esp-idf!24502
2023-08-09 00:13:13 +08:00
Roland Dobai
2ab2d8dce7 Merge branch 'fix/esp32s3_sysview_trace_corrupt_v5.0' into 'release/v5.0'
fix(app_trace): Fix apptrace data corruption on ESP32-S3 (v5.0)

See merge request espressif/esp-idf!24681
2023-08-09 00:05:20 +08:00
radim.karnis
8abc88dab0 fix(build_system): Allow dots in the name of an app binary 2023-08-08 15:14:35 +02:00
renpeiying
78491181ff docs:Provide CN translation for contribute/index.rst 2023-08-08 19:40:47 +08:00
isha.pardikar@espressif.com
b412b1f2c9 fix(nimble): Added checks before accessing event pointers 2023-08-08 15:47:40 +05:30
Roland Dobai
3c07dc26ed Merge branch 'version_check_fix_dev_5.0' into 'release/v5.0'
fix(tools): check_python_version accept dev releases as requirement (v5.0)

See merge request espressif/esp-idf!25187
2023-08-08 15:20:45 +08:00
cjin
42677134dc ble: move phy enabled/disable to controller enable/disable 2023-08-08 14:10:10 +08:00
Rahul Tank
60acb3239d Merge branch 'feature/add_duplicate_excep_list_vsc_v5.0' into 'release/v5.0'
feat(mesh): Add support for Duplicate Exception list update VSC for Nimble (v5.0)

See merge request espressif/esp-idf!25133
2023-08-08 13:56:35 +08:00
morris
c7a5b3c948 Merge branch 'bugfix/i80_lcd_reset_gpio_config_v5.0' into 'release/v5.0'
fix(i80_lcd): reset cs gpio on exit (v5.0)

See merge request espressif/esp-idf!25244
2023-08-08 10:16:19 +08:00
morris
a55ab7cb5d Merge branch 'feature/usb_host_restrict_ahb_errata_workaround_to_esp32s2_eco0_v5.0' into 'release/v5.0'
USB Host: Restrict ESP32-S2 AHB errata workaround to only ECO0 chips (v5.0)

See merge request espressif/esp-idf!25053
2023-08-08 10:12:42 +08:00
Rahul Tank
b9c34e83f8 feat(mesh): Add support for Duplicate Exception list update VSC for
Nimble
2023-08-07 20:00:14 +05:30
Cao Sen Miao
4f67fe7d3f bugfix(temperature_sensor): Fix issue that get the value is negative 2023-08-07 19:05:59 +08:00
Peter Dragun
5369eea710 fix(tools): check_python_version accept dev releases as requirement 2023-08-07 10:27:04 +02:00
morris
38c8db565f fix(i80_lcd): reset cs gpio on exit 2023-08-07 15:54:21 +08:00
Roland Dobai
6e5bcdfe4c Merge branch 'bugfix/sbom_hash_check_v5.0' into 'release/v5.0'
fix(test_submodules.py): don't rely on submodule init (v5.0)

See merge request espressif/esp-idf!25058
2023-08-07 14:04:04 +08:00
Shyamal Khachane
63b32f4dda fix(esp_wifi): Fix some OWE issues
1. Allow flow of traffic after 4 way handshake is completed
2. Fix beacon timeout issue in transition mode
2023-08-07 11:11:00 +05:30
wuzhenghui
cb139b4386 change(esp_hw_support): improve ESP_SLEEP_PSRAM/FLASH_LEAKAGE_WORKAROUND help doc in Kconfig 2023-08-07 11:35:49 +08:00
Wang Meng Yang
bd23db594b Merge branch 'test/bqb_test_bt_classic_spp_rfcomm_v5.0' into 'release/v5.0'
feat(bt/bqb): Add BQB enabling and rfcomm msc command sending support (backport v5.0)

See merge request espressif/esp-idf!25098
2023-08-07 11:35:28 +08:00
morris
5e933a8fc5 Merge branch 'feature/gptimer_interrupt_priority_v5.0' into 'release/v5.0'
feat(gptimer): support set interrupt priority (v5.0)

See merge request espressif/esp-idf!25200
2023-08-07 11:14:30 +08:00
Michael (XIAO Xufeng)
116f343115 Merge branch 'feat/psram_support_d2wd_single_clk_u4wdh_v5.0' into 'release/v5.0'
spiram: Add support for U4WDH, and fixed D0WD/D2WD cannot share CLK pins (v5.0)

See merge request espressif/esp-idf!25172
2023-08-05 03:28:31 +08:00
Rahul Tank
2f7ccb7e3f Merge branch 'bugfix/handle_NULL_data_periodic_adv_v5.0' into 'release/v5.0'
fix(nimble): Add check to set length only if data is valid in periodic adv (v5.0)

See merge request espressif/esp-idf!25179
2023-08-04 21:16:09 +08:00
morris
2f88ec6824 Merge branch 'docs/add_Chinese_translation_for_api-guides_hardware-abstraction.rst_backport_v5.0' into 'release/v5.0'
docs: provide CN tranlsation for api-guides/hardware-abstraction.rst (backport v5.0)

See merge request espressif/esp-idf!25044
2023-08-04 16:44:32 +08:00
Mahavir Jain
52c9c342bd fix(secure_ota): secure app verification issue without padding bytes
For the following configuration case:

 - CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME
 - CONFIG_SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
 - CONFIG_SECURE_BOOT_ALLOW_SHORT_APP_PARTITION

verification of the application was failing because the externally
padded bytes were not considered in the hash (checksum) process.

This commit fixes the problem by enabling relevant code for secure OTA
without secure boot case.

Closes https://github.com/espressif/esp-idf/issues/11995
2023-08-04 12:25:20 +05:30
morris
f5154364ac feat(gptimer): support set interrupt priority
Related forum post: https://esp32.com/viewtopic.php?f=13&t=34959
2023-08-04 12:55:16 +08:00
xiongweichao
4fd3eb28d6 fix(bt/controller): Fix disconnection due to lmp messages not being processed by both sides
The master sent lmp_enc_mode_req, and the slave sent lmp_switch_req.
However, both sides failed to handle the LMP message, resulting in LMP timeout.
2023-08-04 11:04:46 +08:00
Rahul Tank
f34f4272a0 fix (nimble): Add check to set length only if data is valid in periodic adv 2023-08-03 14:45:47 +05:30
Jiang Jiang Jian
5eddb9e016 Merge branch 'bugfix/esp_netif_ppp_backport_regression' into 'release/v5.0'
esp_netif: Fix regression from 12d09e0b when PPP enabled (v5.0)

See merge request espressif/esp-idf!24920
2023-08-03 16:35:43 +08:00
Michael (XIAO Xufeng)
f168e9f174 spiram: Support configure CLK onto the same pin as flash for ESP32-D0WD
When using PSRAM of rev0, the Flash and PSRAM should use different clock pins. But if using newer PSRAM, this is not necesary. This MR fixed the issue that allocating CLK of PSRAM to the same pin as Flash may crash.
2023-08-03 15:44:59 +08:00
Kapil Gupta
4b29d8340b esp_wifi: Move ccmp mgmt enc/decrypt logs to verbose 2023-08-03 10:58:53 +05:30
Mahavir Jain
ca087a174d Merge branch 'feat/update_cjson_submodule_v5.0' into 'release/v5.0'
feat: Update cJSON version to v1.7.16 (v5.0)

See merge request espressif/esp-idf!25138
2023-08-03 13:10:05 +08:00
Mahavir Jain
6fa9586fd8 Merge branch 'esp_prov/update_deprecation_warnings_v5.0' into 'release/v5.0'
fix(esp_prov): Fixed the deprecation APIs warnings (v5.0)

See merge request espressif/esp-idf!25151
2023-08-03 12:48:57 +08:00
Jiang Jiang Jian
7744f7888c Merge branch 'docs/rewrite_all_low_to_any_low_when_not_esp32_v5.0' into 'release/v5.0'
Docs: rewrite_all_low_to_any_low_when_not_esp32(backport v5.0)

See merge request espressif/esp-idf!24998
2023-08-03 11:39:58 +08:00
Jiang Jiang Jian
cbb4126f71 Merge branch 'bugfix/fix_cache_data_mem_corrupt_after_sleep_v5.0' into 'release/v5.0'
fix(lightsleep): Suspend cache before goto sleep to avoid cache load wrong data (backport v5.0)

See merge request espressif/esp-idf!25089
2023-08-03 11:39:05 +08:00
Roland Dobai
6daffb32b3 Merge branch 'bugfix/ps_export_extra_paths_v5.0' into 'release/v5.0'
tools: export.ps1: define functions for helper python tools (v5.0)

See merge request espressif/esp-idf!25140
2023-08-02 21:17:30 +08:00
Island
6531a415f2 Merge branch 'ble_mesh/esp32c6_BLEQABR23-266v5.0' into 'release/v5.0'
ble mesh: stack: return error when scanning failed to be enabled(v5.0)

See merge request espressif/esp-idf!24774
2023-08-02 21:07:21 +08:00
Wu Meng Shi
e81d8f8329 ble mesh: stack: return error when scanning failed to be enabled(v5.0) 2023-08-02 21:07:20 +08:00
harshal.patil
01a870bd8a fix(esp_prov): Fixed the deprecation APIs warnings
- Updated the extraction of service_uuids using AdvertisementData
- Replaced the `get_services()` API with the `services` property
2023-08-02 17:22:18 +05:30
Christoph Baechler
34efd5af6f bugfix: avoid warning in espcoredump when log disabled 2023-08-02 15:04:34 +05:30
Ivan Grokhotkov
c5d3f350a0 feat(tools): add espsecure.py to the Windows export scripts
This is not needed on Linux/macOS where the path to esptool directory
is added to PATH.
2023-08-02 10:44:15 +02:00
Ivan Grokhotkov
4153351bb8 change(tools): export.ps1: define functions for helper python tools
Follows the approach used in Initialise-Idf.ps1 created by the tools
installer. This is the closes equivalent of "alias" used in export.bat

Closes https://github.com/espressif/esp-idf/issues/9849
2023-08-02 10:44:15 +02:00
Harshit Malpani
c6caa80d4c feat: Update cJSON version to v1.7.16
Changelog: https://github.com/DaveGamble/cJSON/releases/tag/v1.7.16
2023-08-02 13:54:33 +05:30
Lou Tianhao
6a7646e5f4 docs(pm/sleep): rewrite_all_low_to_any_low_when_not_esp32 2023-08-02 15:23:03 +08:00
Mahavir Jain
080214b31a ci(test): add SHA DMA mode test for large data in PSRAM
Covers a test scenario described in following issue:
https://github.com/espressif/esp-idf/issues/11915
2023-08-02 04:48:48 +00:00
Mahavir Jain
66b718ac82 fix(sha): DMA mode iteration calculation issue for certain data lengths
SHA hardware DMA mode calculation had off-by-one error for specific
input lengths. This was causing last chunk of the input data not being
fed to the hardware accelerator and hence resulting in an incorrect
final result.

Closes: https://github.com/espressif/esp-idf/issues/11915
2023-08-02 04:48:48 +00:00
Island
6db7b11d7e Merge branch 'doc/c2_5.0' into 'release/v5.0'
c2 5.0 doc, header files re-organized

See merge request espressif/esp-idf!25112
2023-08-01 23:11:33 +08:00
Rahul Tank
339dff07f3 Merge branch 'bugfix/remove_52_feature_macro' into 'release/v5.0'
fix(nimble): Update Menuconfig option to remove separate 5.2 feature option

See merge request espressif/esp-idf!24954
2023-08-01 21:42:47 +08:00
luomanruo
3fd6493ade c2 5.0 doc, header files re-organized 2023-08-01 14:43:11 +08:00
Rahul Tank
9ec33f6a68 Merge branch 'bugfix/l2cap_coc_more_one_pkt_v5.0' into 'release/v5.0'
NimBLE: Fixed crash when L2CAP COC sends large amount of data. (v5.0)

See merge request espressif/esp-idf!25060
2023-08-01 14:01:21 +08:00
Krzysztof Budzynski
8beb1a2f8d Merge branch 'docs/add_Chinese_translation_for_api-guides/openthread.rst_backport_v5.0' into 'release/v5.0'
provide CN translation for api-guides/openthread.rst (backport v5.0)

See merge request espressif/esp-idf!25047
2023-08-01 13:15:18 +08:00
Cai Xin Ying
8a187da064 provide CN translation for api-guides/openthread.rst (backport v5.0) 2023-08-01 13:15:17 +08:00
wuzhenghui
652bc76354 fix(lightsleep): fix access pu_cfg after sleep wakeup which is linked to flash 2023-07-31 21:36:27 +08:00
wanglai@espressif.com
f5ad81e04a fix(bt/bqb): Modify BQB related configurations 2023-07-31 18:18:29 +08:00
wanglai@espressif.com
543a0aaa25 feat(bt): Add BQB enabling and rfcomm msc command sending support
1: add the CONFIG_BT_BQB_ENABLED for some functions of bqb test.
2: add bqb_rfc_send_msc_cmd function to send rfcomm msc command with
   only address arg input.
2023-07-31 17:58:01 +08:00
Alexey Gerenkov
ea3f68824f fix(app_trace): Fix apptrace data corruption on ESP32-S3
Close https://github.com/espressif/esp-idf/issues/10604
diff --git a/components/soc/esp32s3/include/soc/tracemem_config.h b/components/soc/esp32s3/include/soc/tracemem_config.h
index 55c9b907dd..75fd87419b 100644
--- a/components/soc/esp32s3/include/soc/tracemem_config.h
+++ b/components/soc/esp32s3/include/soc/tracemem_config.h
@@ -10,7 +10,7 @@ extern "C" {
 #endif

 #define TRACEMEM_MUX_BLK0_NUM                   22
-#define TRACEMEM_MUX_BLK1_NUM                   23
+#define TRACEMEM_MUX_BLK1_NUM                   26

 #if (TRACEMEM_MUX_BLK0_NUM < 6) || (TRACEMEM_MUX_BLK0_NUM > 29)
 #error Invalid TRAX block 0 num!
2023-07-31 11:20:44 +03:00
wuzhenghui
2236c2fd34 fix(lightsleep): suspend cache before goto sleep to avoid cache load wrong data after spi io isolation 2023-07-31 15:35:00 +08:00
wanlei
1283619767 cache: refactor cache_utils into cache_hal instade 2023-07-31 15:34:56 +08:00
wanlei
68e07d90ba cache: fix cache suspended/resumed twice on S3 2023-07-31 15:08:18 +08:00
Aditya Patwardhan
049c219c8c Merge branch 'docs/add_protocomm_trans_v5.0' into 'release/v5.0'
Docs: add CN translation for api-reference/provisioning/protocomm.rst (backport v5.0)

See merge request espressif/esp-idf!25035
2023-07-31 15:05:49 +08:00
Cai Xin Ying
082a2972cd Docs: add CN translation for api-reference/provisioning/protocomm.rst (backport v5.0) 2023-07-31 15:05:48 +08:00
isha.pardikar@espressif.com
3fc8422fe6 NimBLE: Fixed crash when L2CAP COC sends large amount of data. 2023-07-28 15:58:48 +05:30
Frantisek Hrbata
951510489d fix(test_submodules.py): don't rely on submodule init
Current version of the test is using "git-submodule foreach", which
requires submodules to be initialized. Non-initialized submodules are
ignored. Our CI is not performing submodule initialization, but instead
it only downloads the submodule content in tools/ci/ci_fetch_submodule.py
from cache and copies it into the submodule path.

Since we already know the submodule path from .gitconfig, we can use it
as argument to git-ls-tree and avoid calling git-submodule at all. This
allows to perform the test even if the submodules are not initialization
and also it makes the code simpler.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-07-28 12:14:41 +02:00
Shyamal Khachane
29777aaa51 fix(esp_wifi): Drop Eapol msg if EAP success is not processed 2023-07-28 15:26:20 +05:30
Darian Leung
70dde52e91 soc: Move revision MAX/MIN static assert to esp_hw_support
Previously, "soc/chip_revision.h" contained a static assert to check that the
CONFIG_ESP_REV_MIN_FULL <= CONFIG_ESP_REV_MAX_FULL. There are two issues with
this assert:

- Contained in a header file, so it is only compiled if the "chip_revision.h"
is included somewhere
- CONFIG_ESP_REV_MIN_FULL and CONFIG_ESP_REV_MAX_FULL are defined in
"esp_hw_support", which is a G0 component. This creates a reverse dependency
of G0 on G1.

This commit moves the static assert "revision.c" in "esp_hw_support".
2023-07-28 11:36:20 +02:00
Darian Leung
9935a17b1d usb_host: Restrict ESP32-S2 AHB errata workaround to only ECO0 chips 2023-07-28 11:34:54 +02:00
Jiang Jiang Jian
f572b91024 Merge branch 'bugfix/fix_wifi_espnow_coexist_API_doc_v5.0' into 'release/v5.0'
bugfix: fix wifi espnow coexist api doc v5.0

See merge request espressif/esp-idf!25023
2023-07-28 17:19:27 +08:00
Darian Leung
aeef81cde7 usb_host: Run formatting script 2023-07-28 10:39:37 +02:00
Darian Leung
3c7776cd58 usb_host: Fix spelling errors 2023-07-28 10:36:41 +02:00
Darian Leung
f5f3196c01 usb_host: Refactor USBH and USB Host Library calls to HCD
This commit refactors the USBH and the USB Host Library in the following ways:

- USBH now presents an abstraction of an endpoint (via usbh_ep_handle_t)
    - Added separate functions to enqueue/dequeue URBs to a particular endpoint
    - USB Host Library no longer calls HCD API directly. Calls USBH endpoint API
      instead.
- Renamed "notif_cb" to "proc_req_cb" (Processing Request Callback)
    - This is to avoid confusion with FreerTOS task notifications and Host
      Library client event notifications.
    - The processing functions of each layer (i.e., "xxx_process()") request
      calls via the "proc_req_cb"
    - The main handling function (i.e., usb_host_lib_handle_events()) is
      responsible for calling the required "xxx_process()" of each layer
2023-07-28 10:36:41 +02:00
caixinying-git
832f1f9f0b docs: provide CN tranlsation for api-guides/hardware-abstraction.rst 2023-07-28 14:38:20 +08:00
morris
62b7ed25f3 Merge branch 'feature/usb/update_cdc_examples_backport_v5.0' into 'release/v5.0'
usb: Update host CDC examples (backport v5.0)

See merge request espressif/esp-idf!23073
2023-07-28 10:33:59 +08:00
morris
8e5718fd0c Merge branch 'bugfix/bod_intr_v5.0' into 'release/v5.0'
brownout: Disable the hardware BOD when BOD interrupt is enabled(backport v5.0)

See merge request espressif/esp-idf!24693
2023-07-28 10:32:19 +08:00
liuning
57335c9051 fix(esp_wifi): fix ret when setting channel at wifi not started 2023-07-27 19:09:07 +08:00
darshan.dobariya
9fa4ff5300 fix(nimble): Update Menuconfig option to remove separate 5.2 feature option 2023-07-27 14:38:53 +05:30
liuning
332a4d3bef feat(esp_wifi): add ESPNOW power-save example 2023-07-27 14:23:58 +08:00
Jiang Jiang Jian
c920123629 Merge branch 'bugfix/fix_some_wifi_bugs_230726_v5.0' into 'release/v5.0'
fix(wifi): fix some wifi bugs 230726(Backport v5.0)

See merge request espressif/esp-idf!25000
2023-07-27 13:51:21 +08:00
Roland Dobai
35c484324f Merge branch 'bugfix/debug_ext_ctrl_c_v5.0' into 'release/v5.0'
tools: fix waiting on gdb process when interrupted with CTRL+C (v5.0)

See merge request espressif/esp-idf!24934
2023-07-26 21:09:52 +08:00
muhaidong
8b59c17ef0 fix(wifi): fix some wifi bugs 230726
1. process association request verify ssid
2. fix ftm timer macro issue
3. lower the dhcp discover and request retry backoff time
2023-07-26 16:52:13 +08:00
zhanghaipeng
cb85b7b7a7 fix(bt): Fix bug with address resolution enabling during non-connected activities 2023-07-26 16:39:06 +08:00
zhanghaipeng
aff7ff1a9f docs(bt): Organize header files for esp32c3 and esp32s3 2023-07-26 16:39:06 +08:00
zhanghaipeng
0e9974a918 fix(bt): Fix ble periodic advertising data length 0 error
- Fixed issues about data length 0 when set ext adv data,ext scan rsp data and periodic adv data
2023-07-26 16:39:06 +08:00
muhaidong
210ffa0475 fix(wifi): missed annotate ld function from txop fix 2023-07-26 11:54:10 +08:00
Jiang Jiang Jian
b4b4306677 Merge branch 'bugfix/sae_and_nvs_fixes_v5.0' into 'release/v5.0'
Fix SAE and SAE related NVS issues (Backport v5.0)

See merge request espressif/esp-idf!24956
2023-07-26 11:06:29 +08:00
Jiang Jiang Jian
ba0ab6687d Merge branch 'change/rewrite_all_low_to_any_low_when_not_esp32' into 'release/v5.0'
Change: rewrite EXT1 triggle mode all_low to any_low when not esp32(backport v5.0)

See merge request espressif/esp-idf!24988
2023-07-26 10:17:43 +08:00
Lou Tianhao
3727d56c82 Change: rewrite EXT1 triggle mode all_low to any_low when not esp32 2023-07-25 17:53:33 +08:00
Shyamal Khachane
585cbec17b fix(wifi): Fix SAE and SAE related NVS issues
1. Discard commit frame received at confirmed state in SAE STA
2. Bugfix NVS get values for sae pwe
3. Bugfix memory leak caused by assoc retry timer and assoc IE
4. Bugfix store nvs authmode security values
2023-07-25 13:53:42 +05:30
morris
c36f5fb77a Merge branch 'contrib/github_pr_11810_v5.0' into 'release/v5.0'
ledc.c: Fix frequency calculation. (GitHub PR) (v5.0)

See merge request espressif/esp-idf!24698
2023-07-25 16:15:05 +08:00
morris
3fba3425f1 Merge branch 'bugfix/fix_spi_flash_api_concurrency_issue_v5.0' into 'release/v5.0'
spi_flash: fix concurrency issue when concurrently calling esp_flash apis (v5.0)

See merge request espressif/esp-idf!24512
2023-07-25 11:04:57 +08:00
morris
598c1fa7e2 Merge branch 'bugfix/fix_gpio_driver_calloc_v5.0' into 'release/v5.0'
fix(gpio): fix potential crash when processing gpio isr (v5.0)

See merge request espressif/esp-idf!24902
2023-07-25 11:03:09 +08:00
Roland Dobai
5b440d1bd1 Merge branch 'ci/update_pre_commit_copyright_checker_v5.0' into 'release/v5.0'
ci(pre-commit): Use the newest copyright checker (v5.0)

See merge request espressif/esp-idf!24908
2023-07-24 21:08:25 +08:00
Mahavir Jain
22d34feac4 Merge branch 'ci/fix_failures_in_esp_http_client_example_v5.0' into 'release/v5.0'
CI: fix esp_http_client example failures in CI. Timeout was observed in the... (v5.0)

See merge request espressif/esp-idf!24950
2023-07-24 17:17:23 +08:00
Jiang Jiang Jian
000450504d Merge branch 'bugfix/cache_writeback_bug_v5.0' into 'release/v5.0'
esp_rom: patch Cache_WriteBack_Addr (backport v5.0)

See merge request espressif/esp-idf!24940
2023-07-24 15:41:32 +08:00
Fu Hanxi
b4ee8b573a ci: requires serial processing for check-all-apps-readmes 2023-07-24 15:28:18 +08:00
Armando
38de42bd26 feat(spi_flash): add common test_flash_utils component 2023-07-24 15:28:18 +08:00
Armando
403cdb03ec spi_flash: rename spi_flash_os_func_app: spi_start, spi_end
spi_start -> s_acquire_spi_bus_lock
spi_end -> s_release_spi_bus_lock
2023-07-24 15:28:18 +08:00
Armando
c56ff93007 spiflash: added esp_flash API concurrency pressure test 2023-07-24 15:28:18 +08:00
Armando
5a59c50951 spi_flash: fix concurrency issue when calling esp_flash apis under xip_psram or auto_suspen 2023-07-24 15:28:18 +08:00
Armando
0c2cd2dfa6 spiflash: fix not calling on_spi_acquired when CONFIG_SPI_FLASH_SHARE_SPI1_BUS issue 2023-07-24 15:28:18 +08:00
Rahul Tank
5fb0d557a4 Merge branch 'bugfix/handle_conn_type_and_array_reset_v5.0' into 'release/v5.0'
fix(nimble): Update connection type in reattempt connection code (v5.0)

See merge request espressif/esp-idf!24916
2023-07-24 12:21:45 +08:00
Rahul Tank
6211d5a461 Merge branch 'doc/update_kconfig_example_ext_adv_usage_v5.0' into 'release/v5.0'
doc(nimble): Update Kconfig help section for Example Ext Adv (v5.0)

See merge request espressif/esp-idf!24914
2023-07-24 12:08:32 +08:00
gaoxiaojie
805f3bc557 fix(cache): add lock to protect cache sync operation 2023-07-24 10:51:23 +08:00
Jiang Jiang Jian
d8f9786beb Merge branch 'bugfix/fix_ftm_dist_est_v5.0' into 'release/v5.0'
Enable FTM for ESP32C2, fix other FTM issues (Backport v5.0)

See merge request espressif/esp-idf!24921
2023-07-24 10:37:31 +08:00
Harshit Malpani
88a815c84e fix(ci): update HTTP client example tests runner assignment
HTTP client example tests now connect with locally hosted httpbin service
for more stable results across multiple runs
2023-07-21 17:15:35 +05:30
Nachiket Kukade
0148546df3 fix(esp_wifi): Enable FTM for ESP32C2, fix other FTM issues
Enable FTM for ESP32C2 and update wifi libs with below fixes -

1. Bugfixes in Initiator and Responder mode
2. Fix wrong RTT value in first FTM procedure without connection
3. Update FTM calibration values for ESP32S2, S3, C3 and C2
4. Update distance estimation logic
5. Add some useful command parameters in FTM example
6. Fix bug when number of FTM measurement frames received is more
   than (number_of_brusts * FTMs per brust).

Co-authored-by: Sarvesh Bodakhe <sarvesh.bodakhe@espressif.com>
2023-07-21 16:30:47 +05:30
Jiang Jiang Jian
264c807f3a Merge branch 'bugfix/fix_some_wifi_bugs_230720_v5.0' into 'release/v5.0'
fix(wifi): fix some wifi bugs 230720 (backport v5.0)

See merge request espressif/esp-idf!24912
2023-07-21 18:59:42 +08:00
Harshit Malpani
8c6dcfa376 CI: fix esp_http_client example failures in CI. Timeout was observed in the logs while performing HTTP requests. Changing the endpoint when testing in CI 2023-07-21 15:24:22 +05:30
gaoxiaojie
4a2f38930b fix(esp32s3): patch Cache_WriteBack_Addr api
Need to ensure that the cacheline being written back will not be
accessed during the write back process.
2023-07-21 11:46:45 +08:00
Mahavir Jain
bb2e88b27f Merge branch 'ci/fix_build_examples_v5.0' into 'release/v5.0'
ci(esp_prov): remove import future usage

See merge request espressif/esp-idf!24924
2023-07-20 23:23:31 +08:00
Frantisek Hrbata
6f8c62b205 fix(debug_ext): CTRL+C handling while waiting on gdb process
idf.py spawns gdb process within a thread and uses Thread.join() to wait
for the gdb process to finish. As CTRL+C(SIGINT) is used by gdb to interrupt the
running program, we catch the SIGINT while waiting on the gdb to finish,
and try Thread.join() again.

With cpython's commit

	commit a22be4943c119fecf5433d999227ff78fc2e5741
	Author: Victor Stinner <vstinner@python.org>
	Date:   Mon Sep 27 14:20:31 2021 +0200

	    bpo-45274: Fix Thread._wait_for_tstate_lock() race condition (GH-28532)

this logic doesn't work anymore, because cpython internally marks the
thread as stopped when join() is interrupted with an exception. IMHO
this is broken in cpython and there is a bug report about this
https://github.com/python/cpython/issues/90882. Problem is that
waiting on a thread to finish is based on acquiring a lock. Meaning
join() is waiting on _tstate_lock. If this wait is interrupted, the
above referenced commit adds a logic that checks if the lock is help,
meaning the thread is done and marks the thread as stopped. But there is
no way to tell if the lock was acquired by us running join() or if it's
held by someone else e.g. still by the thread bootstrap code. Meaning
the thread is still running.

I may be missing something, but I don't see any reason why to spawn gdb
process within a thread. This change removes the thread and spawns gdb
directly. Instead waiting on a thread, we wait on the process to finish,
replacing join() with wait() and avoiding this problem.

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

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-07-20 17:12:32 +02:00
Chen Yudong
d1da86465b ci(esp_prov): remove import future usage 2023-07-20 16:00:21 +08:00
David Cermak
cc5d5c8d79 esp_netif: Fix regression from 12d09e0b when PPP enabled 2023-07-20 07:18:13 +02:00
Rahul Tank
4d301ef3a2 fix(nimble): Update connection type in reattempt connection code
Added change to set connection type correctly and clear array when it is
    full in reattempt connection flow
2023-07-20 09:37:34 +05:30
Rahul Tank
8e06eb490b docs(nimble): Update Kconfig help section for Example Ext Adv 2023-07-20 09:31:51 +05:30
zhangyanjiao
368dca0d84 fix(wifi): Add bugfixes and improvements
1. Update wifi security mode
2. Fix association refused temporarily comeback time set to zero issue
3. Vnd ie callback can be set to null
2023-07-20 11:39:41 +08:00
Li Shuai
0b42747d0a Wi-Fi/power save: fix the some mac issues of wifi power save
Some APs are configured to hide the SSID, the length field of the SSID element
in the Beacon frame is set to 0. This can cause incorrect parsing of the Beacon
by the Wi-Fi MAC hardware.

Some APs send two beacon frames with different BSSID in a TBTT cycle. After
correctly parsing the beacon of the associated AP, it continue to receive the
other beacon frame, which will cause the MAC to remain in a wait RX/TXING
state, blocking the Wi-Fi go to sleep.
2023-07-20 11:39:41 +08:00
Rotzbua
881f3fc54d doc: remove WEP as security mode
Signed-off-by: zhangyanjiao <zhangyanjiao@espressif.com>

Closes https://github.com/espressif/esp-idf/pull/10015
2023-07-20 11:22:23 +08:00
david zuhn
b2134caf0d spelling correction in documentation
Signed-off-by: zhangyanjiao <zhangyanjiao@espressif.com>

Closes https://github.com/espressif/esp-idf/pull/9721
2023-07-20 11:22:09 +08:00
zhangyanjiao
7dddb468f4 feat(wifi): Add API to get RSSI info after station connects to AP
- Add esp_wifi_sta_get_rssi() function to retrieve RSSI info after station connects to AP
2023-07-20 11:21:38 +08:00
morris
acec0ef0ce Merge branch 'contrib/github_pr_11878_v5.0' into 'release/v5.0'
feat(mcpwm): Allow for pull up/down to be configurable on generators (GitHub PR) (v5.0)

See merge request espressif/esp-idf!24894
2023-07-20 11:19:30 +08:00
Roland Dobai
3838862709 ci(pre-commit): Use the newest copyright checker 2023-07-19 15:04:02 +02:00
Song Ruo Jing
1da5dbf899 fix(gpio): fix potential crash when processing gpio isr
If CONFIG_SPIRAM_USE_MALLOC is enabled, and cache is disabled when GPIO ISR is triggered,
it would lead to Guru Meditation Error due to "Cache disabled but cached memory region accessed".

Closes https://github.com/espressif/esp-idf/issues/11876
2023-07-19 20:01:18 +08:00
Jiang Jiang Jian
55976a5bd7 Merge branch 'bugfix/fix_some_bluedroid_bugs_v5.0' into 'release/v5.0'
Fixed some bluedroid bugs (backport v5.0)

See merge request espressif/esp-idf!24861
2023-07-19 17:07:33 +08:00
morris
a87a04992e feat(mcpwm): support open drain output for generator IO
Closes https://github.com/espressif/esp-idf/issues/11877
2023-07-19 16:13:12 +08:00
Anne Brondijk
bf5c09aacd feat(mcpwm): Allow for pull up/down to be configurable on generators 2023-07-19 16:13:11 +08:00
Rahul Tank
baecf8d44f Merge branch 'feature/services_health_therm_v5.0' into 'release/v5.0'
NimBLE: Added health thermometer profile (v5.0)

See merge request espressif/esp-idf!24834
2023-07-19 15:13:20 +08:00
Ivan Grokhotkov
70faa798e7 ci: add build test for CONFIG_ESP_CONSOLE_USB_CDC_SUPPORT_ETS_PRINTF 2023-07-18 18:15:37 +02:00
Ivan Grokhotkov
3fca37dbcf examples: re-enable system/console/advanced_usb_cdc for ESP32-S3
Closes https://github.com/espressif/esp-idf/issues/9364
2023-07-18 18:15:37 +02:00
Ivan Grokhotkov
28e6b3565f esp_system: usb_console support for ESP32-S3
Closes https://github.com/espressif/esp-idf/issues/8879
Closes https://github.com/espressif/esp-idf/issues/8738
2023-07-18 18:15:37 +02:00
Ivan Grokhotkov
ce8f2dc894 esp_rom: convert USB related headers to SPDX, update COPYRIGHTS.rst 2023-07-18 18:15:37 +02:00
Ivan Grokhotkov
568e5537b0 esp_rom: implement usb deinit functions added in S3 ROM for S2
This cleans up usb_console.c and prepares it for S3 support.
2023-07-18 18:15:37 +02:00
Ivan Grokhotkov
82e8d78b3b esp_rom: add USB_OTG "port" number for S2 and S3 2023-07-18 18:15:37 +02:00
Ivan Grokhotkov
36bc9ab30c esp_rom: sync changes for ESP32-S3 USB related files, minor fix for S2
Used esp-rom tag esp32s3-20210327 and did manual cleanup.
Rename s_usb_osglue to rom_usb_osglue like it was done for esp32s2.
Some comments in esp32s2 headers are synced from esp32s3.
2023-07-18 18:15:03 +02:00
Ivan Grokhotkov
6f14f5218d console: minor fixes
- wrong comment
- duplicated setvbuf
2023-07-18 18:15:03 +02:00
Jiang Jiang Jian
f2973dc4c6 Merge branch 'bugfix/offchan_action_frame_tx_v50' into 'release/v5.0'
Add check to ensure memory allocation for action frame.

See merge request espressif/esp-idf!24611
2023-07-18 21:12:31 +08:00
chenjianhua
902c6973f1 fix(bt/bluedroid): Fix memory leak of gattc cache upon disconnection 2023-07-18 11:44:43 +08:00
chenjianhua
7ca9ca6f90 bluedroid: fixed compile warning when optimize for performance 2023-07-18 11:41:44 +08:00
Jiang Jiang Jian
621589aeb6 Merge branch 'docs/update_bluetooth_power_save_readme_v5.0' into 'release/v5.0'
Docs: update bluetooth power save readme(v5.0)

See merge request espressif/esp-idf!24845
2023-07-18 11:01:22 +08:00
Jiang Jiang Jian
1853b46a37 Merge branch 'backport_v5.0' into 'release/v5.0'
fix(bt): Fix the issue of not printing the Bluetooth MAC address for ESP32(backport v5.0)

See merge request espressif/esp-idf!24779
2023-07-18 10:52:39 +08:00
Mahavir Jain
f1d060a511 Merge branch 'bugfix/mbedtls_sha_test_fail_when_run_twice_v5.0' into 'release/v5.0'
fix(mbedtls): sha test will fail when run twice (backport v5.0)

See merge request espressif/esp-idf!24828
2023-07-17 20:07:34 +08:00
xiongweichao
09854f0e89 docs(bt/example): Updated bluetooth power save readme 2023-07-17 17:06:00 +08:00
xiongweichao
b013faa84b docs(sleep_modes): Updated Wi-Fi/Bluetooth and Sleep Modes in docs 2023-07-17 17:04:53 +08:00
Mahavir Jain
1315845d75 Merge branch 'fix/mbedtls_internal_shaX_process_api_port_v5.0' into 'release/v5.0'
fix(mbedtls): Fix the port for mbedtls_internal_shaX_process api (v5.0)

See merge request espressif/esp-idf!24810
2023-07-17 17:00:44 +08:00
isha.pardikar@espressif.com
642aba7c03 feat (Nimble): Added Health Thermometer as a service 2023-07-17 14:20:05 +05:30
isha.pardikar@espressif.com
71f5dc4973 NimBLE: Added health thermometer profile 2023-07-17 11:24:04 +05:30
jgujarathi
5037c2ec02 fix(action_tx) : Add check to ensure memory allocation for action frame.
Add check to ensure memory allocation in tx buffers for off channel action frame.
Prints error message in case of allocation failure in esp_wifi_action_tx_req().
2023-07-17 10:57:03 +05:30
Mahavir Jain
3fc6eb9000 Merge branch 'fix/esp_aes_return_values_v5.0' into 'release/v5.0'
fix(mbedtls): fix return values of esp-aes APIs (v5.0)

See merge request espressif/esp-idf!24805
2023-07-17 12:35:24 +08:00
Mahavir Jain
befe69d152 Merge branch 'fix/esp_ptr_check_sign_compare_v5.0' into 'release/v5.0'
fix(esp_hw_support): Fix different signed comparison in `esp_ptr_in_drom` (v5.0)

See merge request espressif/esp-idf!24799
2023-07-17 12:34:22 +08:00
Jiang Jiang Jian
7f2c879d71 Merge branch 'bugfix/split_scan_tx_v50' into 'release/v5.0'
fix(esp_wifi) : Fix collection of issues in sta roam and scan.

See merge request espressif/esp-idf!24576
2023-07-17 11:17:57 +08:00
Jiang Guang Ming
f418a998a9 fix(mbedtls): sha test will fail when run twice 2023-07-17 10:54:32 +08:00
Jiang Jiang Jian
05d05f3c51 Merge branch 'bugfix/btm_scan_done_crash_v5.0' into 'release/v5.0'
wpa_supplicant : Fix race condition during BTM Request.

See merge request espressif/esp-idf!24398
2023-07-17 10:35:32 +08:00
Jiang Jiang Jian
bb89a5769b Merge branch 'bugfix/multiple_btm_rrm_task_v50' into 'release/v5.0'
Fix race conditions in btm task deletion(v5.0)

See merge request espressif/esp-idf!24766
2023-07-17 10:30:15 +08:00
Jiang Jiang Jian
3d015a44d2 Merge branch 'bugfix/sae_crypto_optimization_esp32_v5.0' into 'release/v5.0'
esp_wifi: Optimize sae crypto operations for esp32 (v5.0)

See merge request espressif/esp-idf!24761
2023-07-17 10:29:49 +08:00
Jiang Jiang Jian
086412cb56 Merge branch 'backport/eth-start-spi-initialize-failure-v5.0' into 'release/v5.0'
Fix eth_start initializes spi bus with SPI_DMA_CH_AUTO (backport v5.0)

See merge request espressif/esp-idf!23816
2023-07-17 10:29:27 +08:00
Jiang Jiang Jian
87f2e7e415 Merge branch 'bugfix/concurrency_while_eloop_register_v5.0' into 'release/v5.0'
esp_wifi: Bugfix concurrency observed while doing eloop register (v5.0)

See merge request espressif/esp-idf!24571
2023-07-17 10:28:36 +08:00
Jiang Jiang Jian
b0b3e0dc70 Merge branch 'bugfix/esp_netif_recieve_returns_v5.0' into 'release/v5.0'
esp_netif: Report error if esp_netif_receive() fails (v5.0)

See merge request espressif/esp-idf!24656
2023-07-17 10:28:06 +08:00
Jiang Jiang Jian
4c7e65238f Merge branch 'bugfix/lwip_dhcps_hook_types_v5.0' into 'release/v5.0'
lwip: Fix incorrect invocation of the hook `LWIP_HOOK_DHCPS_POST_APPEND_OPTS` (v5.0)

See merge request espressif/esp-idf!24659
2023-07-17 10:27:06 +08:00
Marius Vikhammer
cf83b324d3 Merge branch 'bugfix/ringbuf_static_object_size_v5.0' into 'release/v5.0'
Ringbuf: Fix ordering of StaticRingbuffer_t (v5.0)

See merge request espressif/esp-idf!24594
2023-07-17 10:12:02 +08:00
harshal.patil
f1ee3e41aa refactor(mbedtls): refactored the return values check in some esp-aes APIs 2023-07-14 21:00:16 +05:30
Roland Dobai
8df440175a Merge branch 'pkg_res_deprecation_5.0' into 'release/v5.0'
fix(tools/python_dep_check): replace deprecated pkg_resources with importlib (backport v5.0)

See merge request espressif/esp-idf!24819
2023-07-14 23:13:52 +08:00
Rahul Tank
c68e7eab06 Merge branch 'bugfix/fix_config_option_v5.0' into 'release/v5.0'
Nimble: Fixed setting macro values based on selected configuration (v5.0)

See merge request espressif/esp-idf!24138
2023-07-14 21:23:51 +08:00
Peter Dragun
0055426b3f fix(tools/python_dep_check): replace deprecated pkg_resources with importlib
Closes https://github.com/espressif/esp-idf/issues/11712
2023-07-14 14:56:30 +02:00
Island
168f2adc28 Merge branch 'update/ble_mesh_debug_log_level_update_v5.0' into 'release/v5.0'
update(ble_mesh: stack): Update provisioning bearer check debug log to INFO level (v5.0)

See merge request espressif/esp-idf!24770
2023-07-14 16:56:11 +08:00
harshal.patil
3a73b1bf9b fix(mbedtls): Fix the port for the mbedtls_internal_shaX_process API
- Also added the fix to update intermediate SHA state in the mbedtls_shaX_update API
2023-07-14 14:18:10 +05:30
harshal.patil
400e220f06 fix(mbedtls): Fixed the transmission of return values of the esp-aes APIs
- Earlier, some intermediate return values were not stored and returned,
thus incorrect return values used to get transmitted to the upper layer of APIs.

- Also, zeroised the output buffer in case of error condition.
2023-07-14 13:41:13 +05:30
Rahul Tank
bc2772819d fix (nimble): Fixed setting macro values based on selected configuration 2023-07-14 11:51:14 +05:30
Rahul Tank
b541a23499 Merge branch 'bugfix/fix_pcl_enh_rsp_v5.0' into 'release/v5.0'
Nimble: Removed the extra status field in the enh read transmit power level (v5.0)

See merge request espressif/esp-idf!23884
2023-07-14 13:34:36 +08:00
Laukik Hase
38c0475616 fix(esp_hw_support): Fix different signed comparison in esp_ptr_in_drom
- Closes https://github.com/espressif/esp-idf/issues/11653
- Closes https://github.com/espressif/esp-idf/issues/11865
2023-07-14 10:52:32 +05:30
Aditya Patwardhan
18df8caaa9 Merge branch 'fix/mpi_incorrect_assert_v5.0' into 'release/v5.0'
fix(mbedtls): Fix incorrect assert for H/W MPI operations (v5.0)

See merge request espressif/esp-idf!24785
2023-07-14 12:43:10 +08:00
Marius Vikhammer
d503e1740f Merge branch 'contrib/github_pr_11652_v5.0' into 'release/v5.0'
Fix ULP FSM register macros with addr[9:0] > 0xFF (GitHub PR) (v5.0)

See merge request espressif/esp-idf!24269
2023-07-14 10:06:30 +08:00
morris
9f2fe912e4 Merge branch 'bugfix/fix_s3_adc1_wrong_clk_div_v5.0' into 'release/v5.0'
adc: fix adc oneshot mode clk div issue on esp32, esp32s2 and esp32s3 (v5.0)

See merge request espressif/esp-idf!24744
2023-07-13 21:41:16 +08:00
Laukik Hase
4da3e20855 fix(mbedtls): Fix incorrect assert for H/W MPI operations
- Closes https://github.com/espressif/esp-idf/issues/11850
2023-07-13 16:24:57 +05:30
Krzysztof Budzynski
0fbddcb991 Merge branch 'docs/add_provisioning_CN_trans_backport_v5.0' into 'release/v5.0'
Docs: add CN translation for api-reference/provisioning/provisioning.rst (backport v5.0)

See merge request espressif/esp-idf!24485
2023-07-13 18:33:38 +08:00
Cai Xin Ying
0e986431bc Docs: add CN translation for api-reference/provisioning/provisioning.rst (backport v5.0) 2023-07-13 18:33:38 +08:00
KonstantinKondrashov
031af815da esp_hw_support: Fix invalid system time if s_esp_rtc_time_us & s_rtc_last_ticks were moved around
The commit fixes the case:
If variables in RTC RAM have been moved around by the linker,
they will be filled with garbage data. Any reset other than OTA would work fine
because the variables would still be initialized from the initial bootup.

So now system time will be valid even after OTA.

Closes https://github.com/espressif/esp-idf/issues/9448
2023-07-13 18:30:26 +08:00
zhanghaipeng
e8810e86fc fix(bt): Fix the issue of not printing the Bluetooth MAC address for ESP32
- Add a log statement to print the Bluetooth MAC address
2023-07-13 16:42:48 +08:00
zhanghaipeng
cddca1adf4 fix(bt): Fix ble advertising data length 0 error
- Fixed an issue where the BLE advertisement length of 0 was causing an error
2023-07-13 16:42:48 +08:00
Liu Linyan
c6d190e568 update(ble_mesh: stack): Update provisioning bearer check debug log to INFO level 2023-07-13 14:39:01 +08:00
Rahul Tank
aa4635e52f Nimble: Removed the extra status field in the enh read transmit power level 2023-07-13 10:48:31 +05:30
Rahul Tank
e71bab242e Merge branch 'bugfix/handle_correct_return_value_v5.0' into 'release/v5.0'
Nimble: Corrected conditional check during connection to handle failure case (v5.0)

See merge request espressif/esp-idf!24645
2023-07-13 13:12:04 +08:00
Rahul Tank
ff9b9583ab Merge branch 'bugfix/fix_exception_in_wifi_prov_v5.0' into 'release/v5.0'
Nimble: Increase the number of semaphore count for allocation (v5.0)

See merge request espressif/esp-idf!24470
2023-07-13 13:00:35 +08:00
Kapil Gupta
d2f2b952bc Fix(esp_wifi): Fix race conditions in btm task deletion 2023-07-13 10:27:25 +05:30
Rahul Tank
35b6a541de Merge branch 'docs/walkthrough_for_multi_adv_examples_v5.0' into 'release/v5.0'
Nimble: Added Example Walkthrough tutorial for Multi Adv example (v5.0)

See merge request espressif/esp-idf!24510
2023-07-13 12:51:13 +08:00
Rahul Tank
f833ea4c2e Merge branch 'feature/walkthrough_for_htp_examples_v5.0' into 'release/v5.0'
Nimble: Added Example Walkthrough tutorial for HTP example in nimble (v5.0)

See merge request espressif/esp-idf!24535
2023-07-13 12:50:48 +08:00
Kapil Gupta
4ff52a94f9 esp_wifi: Optimize sae crypto operations for esp32 2023-07-13 09:47:22 +05:30
Marius Vikhammer
03a4137fd4 Merge branch 'ci/fix_efuse_tests' into 'release/v5.0'
efuse: Do not load real efuses before some test (some chips have burned efuse blocks)

See merge request espressif/esp-idf!24149
2023-07-13 10:11:32 +08:00
Jiang Jiang Jian
7c149c9fcc Merge branch 'feature/update_avrcp_v1.5_v5.0' into 'release/v5.0'
change(bt/Bluedroid): Update AVRCP version to 1.5(v5.0)

See merge request espressif/esp-idf!24583
2023-07-13 09:48:16 +08:00
Jiang Jiang Jian
1a0dc04ae1 Merge branch 'bugfix/wps_deauth_sent_before_eap_failure_v5.0' into 'release/v5.0'
Fix for sending deauth before Eap-Failure in WPS (v5.0)

See merge request espressif/esp-idf!24367
2023-07-13 07:54:24 +08:00
Jiang Jiang Jian
9b82d9731a Merge branch 'bugfix/systick_loop_v5.0' into 'release/v5.0'
freertos: Fix Systick stuck when systimer was not reset (v5.0)

See merge request espressif/esp-idf!24323
2023-07-13 07:53:16 +08:00
Jiang Jiang Jian
a08413f3a8 Merge branch 'bugfix/btm_scan_done_crash_v50' into 'release/v5.0'
wpa_supplicant : Fix occasional crash during btm roam.

See merge request espressif/esp-idf!24732
2023-07-13 07:52:31 +08:00
Jiang Jiang Jian
d3031ddddc Merge branch 'bugfix/fix_some_bt_controller_bug_v5.0' into 'release/v5.0'
component_bt:Fixed some bluetooth bugs(v5.0)

See merge request espressif/esp-idf!24711
2023-07-13 07:52:21 +08:00
Rahul Tank
ae1de35817 Nimble: Corrected conditional check during connection to handle failure case 2023-07-12 19:04:34 +05:30
Rahul Tank
fdfe75a1fd Nimble: Increase the number of semaphore count to allow more semaphore
allocation

       Also updated the return value check for sem / mutex init to catch
allocation failure
2023-07-12 15:30:21 +05:30
Armando
abd0fca51a fix(adc): fixed esp32, esp32s2,esp32s3 adc oneshot mode clk div issue 2023-07-12 17:19:00 +08:00
Zim Kalinowski
ba6e04dff6 Merge branch 'bugfix/fix-esp-even-compile-error-v5.0' into 'release/v5.0'
esp_event: fix build error related to format (v5.0)

See merge request espressif/esp-idf!24667
2023-07-12 16:48:16 +08:00
Zim Kalinowski
ed93de6efa Merge branch 'bugfix/saving-esp-idf-env-as-utf8-v5.0' into 'release/v5.0'
build system: fix init.bat crash in windows when folder contains unicode characters (v5.0)

See merge request espressif/esp-idf!24669
2023-07-12 16:47:27 +08:00
xieqinan
575b540b8b comm_components: eth_start initializes spi bus with SPI_DMA_CH_AUTO
Close https://github.com/espressif/esp-idf/issues/11083
2023-07-12 14:26:25 +08:00
aditi_lonkar
16d7ce0843 Fix for sending deauth before Eap-Failure in WPS 2023-07-12 05:34:46 +00:00
jgujarathi
57b365377f fix(wpa_supplicant) : Fix occasional crash during btm roam.
Fix crash due to premature deallocation of neighbour report elements
by scan_done. Post event to btm_rrm_t task to handle scan_done serially
rather than when btm_rrm_t task is processing btm request rx frame.
2023-07-12 10:37:42 +05:30
Marius Vikhammer
1f1b10aa26 Merge branch 'bugfix/esp_event_err_docs_v5.0' into 'release/v5.0'
fix(core-system/esp event): Fixed missing error return  documentation for... (v5.0)

See merge request espressif/esp-idf!24574
2023-07-12 11:21:22 +08:00
Jiang Jiang Jian
2173ff9cc0 Merge branch 'bugfix/resume_ext_scan_pti_in_time_v5.0' into 'release/v5.0'
bt: fix the issue that BLE scan uses high priority incorrectly and causes Wi-Fi unable to work normally on ESP32-C3 and ESP32-S3(backport v5.0)

See merge request espressif/esp-idf!24404
2023-07-12 10:51:54 +08:00
morris
f7b97b53c6 Merge branch 'bugfix/fix_i2s_ll_cpp_compilation_failure_v5.0' into 'release/v5.0'
i2s: fixed i2s_ll compiling failure under C++ environment (v5.0)

See merge request espressif/esp-idf!24402
2023-07-12 10:08:23 +08:00
morris
9ea1265987 Merge branch 'doc/updata_adc_migration_guide_v5.0' into 'release/v5.0'
migration_guide: update adc calibration api part (v5.0)

See merge request espressif/esp-idf!24258
2023-07-12 10:08:04 +08:00
morris
1f919ca454 Merge branch 'docs/add_a_note_about_RMT_preipheral_in_the_programming_guide_v5.0' into 'release/v5.0'
docs(rmt): add a note about binding channels to the same GPIO (v5.0)

See merge request espressif/esp-idf!24717
2023-07-12 09:59:59 +08:00
Rahul Tank
82ce7dc165 Merge branch 'feature/expose_addr_resolv_out_stack_v5.0' into 'release/v5.0'
Nimble:Added change to expose addr resolution API outside stack_v5.0

See merge request espressif/esp-idf!23247
2023-07-12 04:21:32 +08:00
Roland Dobai
7296cc6451 Merge branch 'asyncio_error_v5.0' into 'release/v5.0'
fix(tools/hints): add guide to fix error with unsupported asyncio (v5.0)

See merge request espressif/esp-idf!24702
2023-07-12 01:09:06 +08:00
Chen Jichang
d2dcef277c docs(rmt): add a note about binding channels to the same GPIO
Added a note about RX Channel and TX Channel initialization order when
bound RX and TX to the same gpio.

Closes https://github.com/espressif/esp-idf/issues/11768
2023-07-11 22:17:17 +08:00
wangmengyang
9b96d5bd96 bt-coexist: fix the issue for BLE scan in using whitelist that scan PTI keeps high and not resumes after reception of ADV_EXT_IND but no AUX_ADV_IND followed on ESP32-C3 and ESP32-S3, which causes Wi-Fi unable to work normally 2023-07-11 22:11:04 +08:00
morris
8b1efb68fd Merge branch 'bugfix/add_len_check_per_spi_master_transaction_v5.0' into 'release/v5.0'
spi master: added transaction length check to refuse longer than hardware supported length (v5.0)

See merge request espressif/esp-idf!23748
2023-07-11 22:09:14 +08:00
Island
10c1004629 Merge branch 'feature/update_ble_libs_5.0' into 'release/v5.0'
ble: Updated the libbt for ESP32-C2

See merge request espressif/esp-idf!24652
2023-07-11 21:40:05 +08:00
xiongweichao
d666536a21 change(bt/Bluedroid): Update AVRCP version to 1.5 2023-07-11 11:43:59 +00:00
xiongweichao
1c5619b738 bt: Fixed some bluetooth bugs
1. Fixed LC_AFH_UPDATE_IND  has not benn processed causing memory exhaustion
2. Fixed no free elt in prog push
3. Fixed disconnect due to sniff with error Dsniff
4. Fixed the problem that the host continued to send ACL data to the controller after disconnection, which caused the connection to fail again
2023-07-11 19:37:21 +08:00
chenjianhua
5d7b60ec5c Update bt-lib for esp32
- Fixed memory leak when setting adv data
2023-07-11 19:37:17 +08:00
xiongweichao
2cf7834db5 components/bt: Fix crash due to NULL point 2023-07-11 19:37:12 +08:00
morris
73551a70cc Merge branch 'bugfix/fix_mmap_reserved_irom_drom_size_5.0' into 'release/v5.0'
fix(mm): correct mmap reserved irom and drom size (v5.0)

See merge request espressif/esp-idf!24603
2023-07-11 18:11:00 +08:00
morris
a6d8a331d9 Merge branch 'bugfix/vfs_uart_outof_bounds_read_v5.0' into 'release/v5.0'
vfs_uart: fix out-of-bounds read (v5.0)

See merge request espressif/esp-idf!24313
2023-07-11 18:02:57 +08:00
morris
43fa7e2e4a Merge branch 'bugfix/mcpwm_legacy_typo_v5.0' into 'release/v5.0'
mcpwm: fix typo in backward compatible macro name (v5.0)

See merge request espressif/esp-idf!24228
2023-07-11 18:02:33 +08:00
morris
74e032eb49 Merge branch 'bugfix/rgb_pixel_copy_bpp8_v5.0' into 'release/v5.0'
rgb_lcd: Support LCD rotation for LCD whose pixel size is one byte (v5.0)

See merge request espressif/esp-idf!24209
2023-07-11 18:02:13 +08:00
Zim Kalinowski
36de1ba9c8 Merge branch 'bugfix/improve-git-describe-handling-v5.0' into 'release/v5.0'
build system: more accurate error information for git_describe (v5.0)

See merge request espressif/esp-idf!24668
2023-07-11 17:06:44 +08:00
Peter Dragun
002efdf88b fix(tools/hints): add guide to fix error with unsupported asyncio
Closes https://github.com/espressif/esp-idf/issues/11732
2023-07-11 10:55:06 +02:00
Roland Dobai
8fa72ec3b7 Merge branch 'monitor_multibyte_decode' into 'release/v5.0'
Tools(monitor): decode multibyte characters on Windows (backport v5.0)

See merge request espressif/esp-idf!24373
2023-07-11 16:40:40 +08:00
Roland Dobai
bd824a04d6 Merge branch 'fix/pyparsing_3.1.0_compatibility_v5.0' into 'release/v5.0'
fix: Compatibility with pyparsing>=3.1.0 (backport v5.0)

See merge request espressif/esp-idf!24370
2023-07-11 16:40:15 +08:00
Roland Dobai
7bd6e8f707 Merge branch 'bugfix/bump_check_copyright_v5.0' into 'release/v5.0'
tools: bump check-copyright in .pre-commit-config.yaml (v5.0)

See merge request espressif/esp-idf!24342
2023-07-11 16:39:46 +08:00
Roland Dobai
8b01e23558 Merge branch 'fix/ci_coredump_test' into 'release/v5.0'
Tools: remove failing IDF Monitor host tests with coredump and fix print filter without ELF file specified

See merge request espressif/esp-idf!24272
2023-07-11 16:39:06 +08:00
Roland Dobai
f0f859f964 Merge branch 'feature/submodules_sbom_v5.0' into 'release/v5.0'
tools: add sbom information for submodules (v5.0)

See merge request espressif/esp-idf!24241
2023-07-11 16:38:18 +08:00
Roland Dobai
b04c2f6f9b Merge branch 'docs/add_Chinese_translation_for_api-guides/tools/idf-py_backport_v5.0' into 'release/v5.0'
docs: add CN translation for api-guides/tools/idf-py.rst (backport v5.0)

See merge request espressif/esp-idf!24187
2023-07-11 16:36:38 +08:00
Cai Xin Ying
6fa3982408 docs: add CN translation for api-guides/tools/idf-py.rst (backport v5.0) 2023-07-11 16:36:36 +08:00
morris
c227759a4d Merge branch 'docs/add_Chinese_translation_for_api-reference/peripherals/rmt.rst_backport_v5.0' into 'release/v5.0'
docs: provide CN translation for api-reference/peripherals/rmt.rst (backport v5.0)

See merge request espressif/esp-idf!24539
2023-07-11 16:15:15 +08:00
Krzysztof Budzynski
3a7e3fbbf6 Merge branch 'contrib/github_pr_11743_v5.0' into 'release/v5.0'
docs(jtag): Update chip revisions to follow ESP32-C3 errata (GitHub PR) (v5.0)

See merge request espressif/esp-idf!24590
2023-07-11 16:10:33 +08:00
IhorNehrutsa
fb81668aab fix(ledc): fix frequency calculation
ledc.c: Fix frequency calculation.
Round int instead of truncate.

Merges https://github.com/espressif/esp-idf/pull/11810
2023-07-11 15:28:19 +08:00
Mahavir Jain
c5f2db8b11 Merge branch 'docs/trans_wifi_provisioning_backport_v5.0' into 'release/v5.0'
Docs: add CN translation for api-reference/provisioning/wifi_provisioning.rst (backport v5.0)

See merge request espressif/esp-idf!24478
2023-07-11 15:25:45 +08:00
Cai Xin Ying
a71a6e4a30 Docs: add CN translation for api-reference/provisioning/wifi_provisioning.rst (backport v5.0) 2023-07-11 15:25:45 +08:00
Krzysztof Budzynski
9f0be63126 Merge branch 'docs/add_Chinese_translation_for_linux-host-requirements.rst_and_external-ram-esp32-notes.rst_backport_v5.0' into 'release/v5.0'
docs: provide CN translation for linux-host-requirements.rst and external-ram-esp32-notes.rst (backport v5.0)

See merge request espressif/esp-idf!24490
2023-07-11 15:21:33 +08:00
Cai Xin Ying
80db9fb3c6 docs: provide CN translation for linux-host-requirements.rst and external-ram-esp32-notes.rst (backport v5.0) 2023-07-11 15:21:33 +08:00
Marius Vikhammer
2ea42539a6 Merge branch 'docs/update_code_how_to_configure_multiple_antennas_of_wifi_v5.0' into 'release/v5.0'
docs: update code of how to configure multiple antennas of wifi (v5.0)

See merge request espressif/esp-idf!24457
2023-07-11 15:08:06 +08:00
Marius Vikhammer
c9129ba2d5 Merge branch 'docs/update_installation_prerequisites_for_ubuntu_debian_v5.0' into 'release/v5.0'
docs: update installation prerequisites for Ubuntu and Debian system (v5.0)

See merge request espressif/esp-idf!24452
2023-07-11 15:07:20 +08:00
Marius Vikhammer
1655084c90 Merge branch 'docs/fix_typo_in_api-reference_system_ota_v5.0' into 'release/v5.0'
fix a typo in api-reference/system/ota (v5.0)

See merge request espressif/esp-idf!24445
2023-07-11 15:07:07 +08:00
Marius Vikhammer
378f493851 Merge branch 'docs/fix_typo_in_api_guides_usb_otg_console_v5.0' into 'release/v5.0'
docs: fix a typo in api-guides/usb-otg-console (v5.0)

See merge request espressif/esp-idf!24454
2023-07-11 15:06:56 +08:00
Cao Sen Miao
e2925cde68 brownout: Disable the hardware BOD when BOD interrupt is enabled 2023-07-11 14:46:30 +08:00
Rahul Tank
a3722b4cc4 Nimble: Added Example Walkthrough tutorial for Multi Adv example 2023-07-11 11:49:06 +05:30
Rahul Tank
ab7df868cb Nimble: Added Example Walkthrough tutorial for HTP example in nimble 2023-07-11 11:47:18 +05:30
Rahul Tank
55559c3b5b Nimble:Added change to expose addr resolution API outside stack 2023-07-11 11:36:06 +05:30
David Cermak
12d09e0b3b esp_netif: Make esp_netif_receive() return value configurable 2023-07-11 06:51:49 +02:00
Rahul Tank
67f6b668bd Merge branch 'bufix/fix_assert_while_stack_deinit_v5.0' into 'release/v5.0'
fix(nimble): Fix assert due to controller event while stack deinit (v5.0)

See merge request espressif/esp-idf!24621
2023-07-11 12:50:48 +08:00
Jiang Jiang Jian
08c6c90ed9 Merge branch 'doc/add_timing_diagram_for_bt_l2cap_server_and_client_v5.0' into 'release/v5.0'
docs(examples/bluetooth): Add the sequence diagram for L2CAP connection and the discription for the diagram (backport v5.0)

See merge request espressif/esp-idf!24662
2023-07-11 12:25:14 +08:00
Jiang Jiang Jian
7a126fa266 Merge branch 'bugfix/fix_deepsleep_wakestub_example_ci_failure_v5.0' into 'release/v5.0'
ci: fix deepsleep wakestub example ci failure (backort v5.0)

See merge request espressif/esp-idf!24464
2023-07-11 12:24:45 +08:00
Rahul Tank
007ae93913 Merge branch 'bugfix/expose_clear_all_wl_api_v5.0' into 'release/v5.0'
fix(Nimble): Expose API to clear all addresses in whitelist out of stack (v5.0)

See merge request espressif/esp-idf!24308
2023-07-11 12:24:35 +08:00
Jiang Jiang Jian
afe026f318 Merge branch 'bugfix/increase_pm_dump_time_field_length_v5.0' into 'release/v5.0'
Power Management: increase pm_dump time field width (backport v5.0)

See merge request espressif/esp-idf!24449
2023-07-11 12:24:23 +08:00
Jiang Jiang Jian
095bb9f015 Merge branch 'bugfix/sdp_32_and_128_bit_UUID_v5.0' into 'release/v5.0'
bt:Fixed SDP not being able to configure 32-bit and 128-bit UUID(v5.0)

See merge request espressif/esp-idf!24443
2023-07-11 12:24:07 +08:00
Jiang Jiang Jian
12d9bafc37 Merge branch 'docs/update_esp_hid_host_v5.0' into 'release/v5.0'
[docs] fix documents for Bluetooth HID Host API reference (backport v5.0)

See merge request espressif/esp-idf!24390
2023-07-11 12:23:54 +08:00
Jiang Jiang Jian
5cb2736de6 Merge branch 'bugfix/alarm_not_free_when_a2dp_deinit_v5.0' into 'release/v5.0'
bugfix/Fixed the issue of alarm leak (v5.0)

See merge request espressif/esp-idf!24352
2023-07-11 12:23:33 +08:00
Jiang Jiang Jian
10ee73839f Merge branch 'bugfix/hfp_packet_type_err_v5.0' into 'release/v5.0'
Revised (e)SCO configuration parameter sets (v5.0)

See merge request espressif/esp-idf!24347
2023-07-11 12:23:16 +08:00
Jiang Jiang Jian
e99b7835fa Merge branch 'bugfix/update_esp_rom_layout_v5.0' into 'release/v5.0'
esp_rom: fix rom layout issues (backport v5.0)

See merge request espressif/esp-idf!24640
2023-07-11 12:22:40 +08:00
Jiang Jiang Jian
40aac8601b Merge branch 'bugfix/fix_some_ble_bugs_v5.0' into 'release/v5.0'
Fixed some BLE bugs (backport v5.0)

See merge request espressif/esp-idf!24276
2023-07-11 12:21:07 +08:00
Jiang Jiang Jian
44cdf1d6e7 Merge branch 'bugfix/fix_Cache_Count_Flash_bug_v5.0' into 'release/v5.0'
cache: patch some rom cache api, rename those apis in ld (backport v5.0)

See merge request espressif/esp-idf!24292
2023-07-11 12:20:04 +08:00
Jiang Jiang Jian
c10505f939 Merge branch 'bugfix/fix_esp32s3_psram_access_failed_in_dfs_v5.0' into 'release/v5.0'
esp_pm: fix esp32s3 psram access failed when dfs is enabled (backport v5.0)

See merge request espressif/esp-idf!24199
2023-07-11 12:19:43 +08:00
Mahavir Jain
f0de10e43c Merge branch 'support/esp_coredump_logs_config_v5.0' into 'release/v5.0'
Optionally disable logs in espcoredump component (v5.0)

See merge request espressif/esp-idf!24483
2023-07-11 12:08:12 +08:00
Mahavir Jain
1c0887b363 Merge branch 'fix/mbedtls_ecdsa_veriy_restartable_v5.0' into 'release/v5.0'
mbedtls: update submodule (v5.0)

See merge request espressif/esp-idf!24637
2023-07-11 12:07:41 +08:00
Mahavir Jain
8f7d8fb3f5 Merge branch 'protobuf-c/update_submodule_to_v5.0' into 'release/v5.0'
protobuf-c: Update submodule to v1.4.1 (v5.0)

See merge request espressif/esp-idf!24421
2023-07-11 12:06:57 +08:00
Shen Weilong
9e0bd6f7aa ble: Update the libbt for ESP32-C2 2023-07-11 11:41:48 +08:00
Island
0f44414ce0 Merge branch 'bugfix/added_chip_based_cca_config_v5.0' into 'release/v5.0'
ble: fix cca for esp32c2

See merge request espressif/esp-idf!24256
2023-07-11 11:36:03 +08:00
Marius Vikhammer
29b1115485 fix(core-system/esp event): Fixed missing error return documentation for esp_event_loop_create_default
ESP_ERR_INVALID_STATE was not listed as a possible return error code.

Closes https://github.com/espressif/esp-idf/issues/11745
2023-07-11 03:17:05 +00:00
caixinying-git
dfd7102212 docs: provide CN translation for api-reference/peripherals/rmt.rst 2023-07-11 11:13:20 +08:00
Jiang Jiang Jian
a0f14a8f14 Merge branch 'update/version_5_0_3' into 'release/v5.0'
Update version to 5.0.3

See merge request espressif/esp-idf!24677
2023-07-11 08:17:54 +08:00
Marius Vikhammer
e004907bd5 versions: Update version to 5.0.3 2023-07-10 17:23:26 +08:00
Armando
a3ed59744b spi: added an API to get max transaction length and use in spi lcd driver 2023-07-10 07:17:00 +00:00
Armando
2bc999db7b spi: added transaction length check to refuse longer than hardware supported length 2023-07-10 07:17:00 +00:00
Jin Cheng
f0a53601e0 Fixed the issue of alarm leak in hf-ag 2023-07-10 06:08:22 +00:00
Jin Cheng
3061770e7b Fixed the issue of alarm leak in A2DP 2023-07-10 06:08:22 +00:00
Jin Cheng
1b7e47d3d3 Revised (e)SCO configuration parameter sets 2023-07-10 06:07:55 +00:00
Zim Kalinowski
e1b37bfa66 esp_event: fix build error related to format
Closes https://github.com/espressif/esp-idf/issues/11428

See merge request !23833
2023-07-10 11:39:17 +08:00
Zim Kalinowski
56994aeb0b build system: more accurate error information for git_describe
Closes https://github.com/espressif/esp-idf/issues/9071

See merge request espressif/esp-idf!23891
2023-07-10 11:36:04 +08:00
Zim Kalinowski
a205213cc8 build system: fix init.bat crash in windows when folder contains unicode characters 2023-07-10 11:34:56 +08:00
gongyantao
b4a62fb339 docs(examples/bluetooth): Add the sequence diagram of L2CAP connection and the discription for the sequence diagram
1: add the sequence diagram for the bluetooth example projects,bt_l2cap_server and bt_l2cap_client, which implenment the L2CAP connection.
2: add the discription for the sequence diagram.
2023-07-08 12:39:35 +08:00
wuyuanyi135
5689db1ddf Fix incorrect invocation of the hook LWIP_HOOK_DHCPS_POST_APPEND_OPTS
Fix https://github.com/espressif/esp-idf/issues/11373
2023-07-07 14:14:15 +02:00
David Cermak
8ce037e99f esp_netif: Report error if esp_netif_receive() fails
Closes https://github.com/espressif/esp-idf/issues/10770
2023-07-07 13:56:25 +02:00
Armando
757f58c3ba fix(mm): correct mmap reserved irom and drom size
Prior to this commit, we don't consider the offset of the irom vaddr
start.

If the offset + size is bigger than the MMU page size, for example:
MMU page size: 0x10000
irom vaddr: 0x4200_0800, so offset = 0x800
irom size: 0xF900
offset + size = 0x10100

Under this condition, the 0x4200_0000 ~ 0x4202_0000, two MMU pages are
used.

With this commit, when reserving the irom and drom, we take the offset
into consideration as well.

Closes https://github.com/espressif/esp-idf/issues/2561
2023-07-07 10:45:26 +00:00
Jiang Jiang Jian
a7ab77663a Merge branch 'bugfix/fix_ulp_adc_regression_v5.0' into 'release/v5.0'
adc_oneshot: move power acquire back to adc_oneshot_new_unit (v5.0)

See merge request espressif/esp-idf!24625
2023-07-07 18:25:06 +08:00
Jiang Guang Ming
ce1042a267 esp_rom: fix rom layout issues 2023-07-07 01:25:17 -07:00
harshal.patil
e858c2c1e0 mbedtls: update submodule to include:
fix: mbedtls_ecdsa_can_do was not being defined when ECDSA_SIGN_ALT is defined but ECDSA_VERIFY_ALT is not defined causing mbedtls_ecdsa_verify_restartable to always fail.
feature: initial version of the sbom.yml file
2023-07-07 10:30:33 +05:30
Armando
bf5e10dd23 fix(adc): fix s_adc_tsen_enabled not set issue 2023-07-06 16:48:59 +08:00
laokaiyao
bd70b44144 adc_oneshot: move power acquire back to adc_oneshot_new_unit
Revert and fix of d197c59eaa in !23575
2023-07-06 16:46:24 +08:00
Roshan Bangar
b4c8d92d94 fix(nimble): Fix assert due to controller event while stack deinit 2023-07-06 11:49:09 +05:30
Darian Leung
52589aca08 ringbuf: Fix ordering of StaticRingbuffer_t
When building on linux/host compilers (e.g., GCC), the compiler may add padding
depending on the size and order of the member types.

This commit fixes the ordering or the StaticRingbuffer_t such that it matches
the internal Ringbuffer_t. The "_Static_assert" is always enabled for all
compilers.

Note: Removed all usage configSUPPORT_STATIC_ALLOCATION preprocessor conditions
as the macro is always set to 1.

Closes https://github.com/espressif/esp-idf/issues/11726
2023-07-04 21:42:12 +01:00
Krzysztof
7114092451 docs(jtag): Update CN translation of 'api-guides/jtag-debugging/index.rst' 2023-07-04 19:29:52 +08:00
Xabi Crespo
bfddc02963 docs(jtag): Update chip revisions to follow ESP32-C3 errata (GitHub PR) 2023-07-04 19:29:52 +08:00
jgujarathi
181666c4a7 fix(esp_wifi) : Fix collection of issues in sta roam and scan.
1) Fix issue during split scan to allow for data tx.
2) Fix issue when parsing wpa_ie to set correct authmode when AP
   supports both WPA_EAP and WPA_EAP_SHA256 authmode.
   Closes https://github.com/espressif/esp-idf/issues/11202
3) Fix an occasional crash during sta roam.
4) Add home_channel_dwell_time to wifi_scan_config_t. This allows
   configuration of the time spent between scanning consecutive
   channels for tx.
5) Adds a obss scan timer disarm when a sta disconnects from an AP
2023-07-04 11:59:26 +05:30
Shreyas Sheth
5714d6d324 esp_wifi: Bugfix concurrency observed while doing eloop register 2023-07-04 09:42:39 +05:30
Alexey Gerenkov
c076c24a11 gcov: Fix not linked gcov rtio functions 2023-07-03 13:10:01 +03:00
Jiang Jiang Jian
4c775e3eb8 Merge branch 'bugfix/fix_bleqabr23_338_v5.0' into 'release/v5.0'
bluedroid: fixed gatt tcb free when disconnecting (backport v5.0)

See merge request espressif/esp-idf!24499
2023-06-30 11:05:49 +08:00
Jiang Jiang Jian
2558d4c46d Merge branch 'bugfix/fix_esp32s3_tsens_v5.0' into 'release/v5.0'
fix(esp_wifi): Fix crash caused by tx_pwctrl_background call in ESP32S3(v5.0)

See merge request espressif/esp-idf!24477
2023-06-30 10:18:02 +08:00
chenjianhua
64a2778d5f bluedroid: fixed gatt tcb free when disconnecting 2023-06-29 20:55:37 +08:00
cjin
75bd131a54 ble: fix cca for esp32c2 2023-06-29 20:02:34 +08:00
Jiang Jiang Jian
ad5a8be6ab Merge branch 'bugfix/decouple_softap_c2_v5.0' into 'release/v5.0'
Bugfix/decouple softap c2 (v5.0)

See merge request espressif/esp-idf!24471
2023-06-29 18:22:24 +08:00
chenjianxing
af44033b5a esp_wifi: fix timer callback crash after wifi deinit on esp32c2. 2023-06-29 15:09:07 +08:00
chenjianxing
ef3fe14b5f esp_wifi: decouple softap for esp32c2. 2023-06-29 15:09:07 +08:00
Jiang Jiang Jian
b1e79dbcf5 Merge branch 'bugfix/temperature_weak_link_phy_xpd_v5.0' into 'release/v5.0'
temperature_sensor: only link phy_xpd_tsens function in phy_lib ( backport v5.0)

See merge request espressif/esp-idf!24473
2023-06-29 15:07:06 +08:00
Jiang Jiang Jian
3a8e28d862 Merge branch 'bugfix/fix_deepsleep_saradc_leakage_by_sar' into 'release/v5.0'
bugfix: fix adc current leakage by sar_adc on v5.0

See merge request espressif/esp-idf!24344
2023-06-29 14:23:38 +08:00
Vikram
8390818e7e Added description to disable coredump logs to ram_usage.rst
Signed-off-by: Vikram <vikram.dattu@espressif.com>
2023-06-29 11:51:03 +05:30
Vikram
7c766af407 Optionally disable logs in espcoredump component
Early log strings used by this component are placed in DRAM.
Disabling these logs saves ~5KB of internal memory

Signed-off-by: Vikram <vikram.dattu@espressif.com>
2023-06-29 11:51:03 +05:30
chenjianxing
0f91ea5369 fix(esp_wifi): Fix crash caused by tx_pwctrl_background call in ESP32S3. 2023-06-29 11:08:09 +08:00
Cao Sen Miao
045467e439 temperature_sensor: only link phy_xpd_tsens function in phy_lib 2023-06-29 10:27:38 +08:00
wuzhenghui
e0370d89c3 ci: increase timeout threshold to solve deepsleep wakestub example ci failure 2023-06-28 18:12:33 +08:00
Linda
1dbca70b62 docs: update code of how to configure multiple antennas of wifi 2023-06-28 14:43:45 +08:00
Linda
a42b4da02d docs: fix a typo in api-guides/usb-otg-console 2023-06-28 14:40:53 +08:00
Linda
94294610e9 docs: update installation prerequisites for Ubuntu and Debian system 2023-06-28 14:38:50 +08:00
wuzhenghui
3eae74e966 bugfix: increase pm_dump time field width
Closes https://github.com/espressif/esp-idf/issues/11704
2023-06-28 14:35:20 +08:00
Linda
684e15f729 fix a typo in api-reference/system/ota 2023-06-28 14:28:32 +08:00
Ilia Lutchenko
837a46b5a7 btc_sdp: add_raw_sdp: fix 32 and 128-bit uuid configuration
Added proper conversion of 4 and 16-byte UUIDs values to binary streams.
UUIDs now set with SDP_AddAttribute() instead of
SDP_AddServiceClassIdList().
2023-06-28 14:18:20 +08:00
Frantisek Hrbata
b947cab073 tools: add sbom information for submodules
This adds SBOM information for submodules, which are not managed
by Espressif. Meaning there is no fork for them in the espressif
namespace. Other submodules should add sbom.yml manifest file to
the root of their git repository.

The SBOM information for submodules is stored in the .gitmodules file.
Each SBOM related variable has the "sbom-" prefix and the following
variables may be used:

sbom-version:
   submodule version

sbom-cpe:
   CPE record if available in NVD. This will be used by the SBOM
   tool to check for possible submodule vulnerabilities. The
   version in the CPE can be replaced with the "{}" placeholder,
   which will be replaced by the "sbom-version" value from above.

sbom-supplier:
   Person or organization who is providing the submodule.
   It has to start with "Person:" or "Organization:" prefix
   as required by the SPDX-2.2 standard.

sbom-url:
   URL to the project if exists, e.g. github.

sbom-description:
   Project description.

sbom-hash:
   Submodule SHA as recorded in the git-tree. This field is used by
   CI to check that the submodule checkout hash and info in .gitmodules
   are in sync. IOW if submodule is updated and it has SBOM info in
   .gitmodules, the .gitmodules has to be updated too. The test is
   part of this commit. The checkout has of the submodule can be found
   by using "git submodule status".

Example for micro-ecc submodule
---8<---
[submodule "components/bootloader/subproject/components/micro-ecc/micro-ecc"]
	path = components/bootloader/subproject/components/micro-ecc/micro-ecc
	url = ../../kmackay/micro-ecc.git
	sbom-version = 1.0
	sbom-cpe = cpe:2.3:a:micro-ecc_project:micro-ecc:{}:*:*:*:*:*:*:*
	sbom-supplier = Person: Ken MacKay
	sbom-url = https://github.com/kmackay/micro-ecc
	sbom-description = A small and fast ECDH and ECDSA implementation for 8-bit, 32-bit, and 64-bit processors
	sbom-hash = d037ec89546fad14b5c4d5456c2e23a71e554966
---8<---

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-06-27 10:05:29 +02:00
harshal.patil
ff28efe5be protobuf-c: Update submodule to v1.4.1 2023-06-27 11:17:43 +05:30
laokaiyao
a2cf3ae4df i2s: fixed i2s_ll compiling failure under C++ evironment
Closes: https://github.com/espressif/esp-idf/issues/11625
2023-06-27 10:39:43 +08:00
morris
e43622d1df touch_element: fix unintended integer division 2023-06-26 07:08:04 +00:00
morris
92ca847730 usbh: fix invalid assert on desc_status 2023-06-26 07:08:04 +00:00
morris
93ce0714fd vfs_uart: fix out-of-bounds read
when open uart device "/2" on chips only have 2 UART peripherals
2023-06-26 07:08:04 +00:00
jgujarathi
6c14120c7f wpa_supplicant : Fix occasional crash during btm roam.
Fix crash due to premature deallocation of neighbour report elements
by scan_done. Post event to btm_rrm_t task to handle scan_done serially
rather than when btm_rrm_t task is processing btm request rx frame.
2023-06-26 10:34:33 +05:30
wangmengyang
49bb1e85b7 component/docs: enable generation of API-reference documents for Bluetooth HID host 2023-06-25 15:37:54 +08:00
gongyantao
df68489f15 resolve the conflicts 2023-06-25 15:37:54 +08:00
Darian Leung
02ee20ff3a pytest: Expect "Calling app_main()" to indicate start of application
This commit updates variousf pytest scripts to expect
"main_task: Calling app_main()" instead of "cpu_start: Starting scheduler" as
indicator of the start of an application.
2023-06-23 10:35:56 +02:00
Peter Dragun
57e188c2e3 fix(monitor/ansi_converter): decode multibyte characters 2023-06-23 09:32:13 +02:00
Darian Leung
9c3a13515c freertos(IDF): Update IDF FreeRTOS linker fragment file
This commit updates the linker fragment file for IDF FreeRTOS.

- Linker fragment file's formatting was updated
- Placement rules of functions is now clearly specified inside the linker
  fragment file.
- Some extra functions are now placed in flash in accordance to the new
  placement rules.
2023-06-23 09:20:18 +02:00
Darian Leung
4ac68a97d9 freertos(SMP): Update SMP FreeRTOS linker fragment file
This commit updates the linker fragment file for Amazon SMP FreeRTOS.

- Linker fragment file's formatting was updated
- Placement rules of functions is now clearly specified inside the linker
  fragment file.
- Some extra functions are now placed in flash in accordance to the new
  placement rules.
2023-06-23 07:16:58 +02:00
Darian Leung
55644575db freertos: Add linker fragments for common functions
This commit adds a separate linker fragment file "linker_common.lf" for the
functions in "port_common.c". The placement rules are now clearly specified
inside the linker fragment file.
2023-06-22 17:20:48 +02:00
Darian Leung
68646e23ae freertos: Refactor port common functions
This commit refactors port_common.c so that it only contains implementation of
FreeRTOS port functions that are common to all FreeRTOS ports (i.e., on all
architectures and on all FreeRTOS implementations).
2023-06-22 17:20:35 +02:00
Darian Leung
feee3a3059 freertos: Refactor OS startup functions
This commit refactors the OS startup functions as follows:

- Moved the OS/app startup functions listed below to "app_startup.c". Their
    implementations are now common to all ports (RISC-V and Xtensa) of all
    FreeRTOS implementations (IDF and Amazon SMP).
    - esp_startup_start_app()
    - esp_startup_start_app_other_cores()
- Removed esp_startup_start_app_common() as app startup functions are now
    already common to all ports.
- Added extra logs to "main_task" to help with user debugging

Note: Increased startup delay on "unity_task". The "unity_run_menu()" is non
blocking, thus if the main task or other startup tasks have not been freed
by the time "unity_run_menu()" is run, those tasks will be freed the next time
"unity_task" blocks. This could cause some tests to have a memory leak, thus
the "unity_task" startup delay has increased.
2023-06-22 17:17:18 +02:00
radim.karnis
7b98762ff5 fix: Compatibility with pyparsing>=3.1.0 2023-06-22 11:29:14 +02:00
KonstantinKondrashov
2bdbcf12a9 freertos: Fix Systick stuck when systimer was not reset
Relates to OTA update for S3/C3 chips from IDF version 4.3 to v5.0 and above
2023-06-21 14:42:34 +00:00
Rahul Tank
da223dd790 Nimble: Expose API to clear all addresses in whitelist out of stack 2023-06-21 15:55:58 +05:30
wuzhenghui
f030c92d05 bugfix: fix adc current leakage by sar_adc on v5.0 2023-06-21 17:43:53 +08:00
Roland Dobai
96119acc8b Merge branch 'ci/ignore_pkg_resources_deprecation_warning_v5.0' into 'release/v5.0'
ci: ignore pkg_resources deprecation warning (v5.0)

See merge request espressif/esp-idf!24340
2023-06-21 15:36:20 +08:00
Frantisek Hrbata
4068c1d7b4 tools: bump check-copyright in .pre-commit-config.yaml
Newer check-copyright version 1.0.2 contains fixes for copyrights
with single year and also the proposed date update is applied only
if number of changed lines is greater or equal to a limit. The default
limit is 5 and can be changed with the --lines-changed option if needed.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-06-21 07:06:15 +02:00
Fu Hanxi
4ff607e9a8 ci: ignore pkg_resources deprecation warning 2023-06-21 07:30:25 +08:00
Roland Dobai
169d7dc3c9 tools: Fix IDF Monitor print filter when no ELF file is supplemented
A different serial handler class is used when there was no ELF file
passed do esp-idf-monitor. This fix will ensure that print filter check
is respected in this case as well.
2023-06-19 16:56:20 +02:00
Roland Dobai
6212ce9d94 tools: Remove ELF-file-based IDF Monitor tests 2023-06-19 16:56:20 +02:00
wanglei
861e6a4ef8 cache: patch some rom cache api, rename those apis in ld
1. Cache_Count_Flash_Pages, fix this api return enexpected + 1
2. Cache_Suspend_I/DCache, add wait cache idle after suspend cache
3. Cache_Freeze_I/DCache_Enable, add wait cache idle after freeze
2023-06-19 15:15:32 +08:00
chenjianhua
da7cbbfb7f Update bt-lib for esp32
1 Fixed disconnection delay on peripheral when slave latency is not zero
2 Fixed LLCP info init for central and peripheral
3 Fixed sent cmd status evt twice when process disconnect cmd
2023-06-16 11:41:24 +08:00
chenjianhua
2be8e6e086 Update bt lib for ESP32-C3 and ESP32-S3
- Fixed crash when controller initialization fails due to insufficient memory
2023-06-16 11:41:19 +08:00
chenjianhua
2dea457d9a bluedroid: fixed default extended connection params 2023-06-16 11:41:06 +08:00
chenjianhua
21cc277c3d esp_hid: fixed ble hid battery level setting 2023-06-16 11:40:59 +08:00
boarchuz
8600761adf fix ULP FSM reg ops with addr > 0xFF 2023-06-15 14:00:57 +02:00
wuzhenghui
d202fc5993 ci: sync master flash_psram test and add access psram with DFS unity test 2023-06-15 14:14:25 +08:00
wuzhenghui
3ee8a59d59 bugfix: use avaliable gpio for esp32s3 pm_trace 2023-06-15 14:14:25 +08:00
wuzhenghui
65e8cb55eb bugfix: fix esp32s3 psram access failed when dfs is enabled 2023-06-15 14:14:21 +08:00
laokaiyao
f5c5c539a6 migration_guide: update adc calibration api part 2023-06-15 11:46:40 +08:00
morris
9795444f6c mcpwm: fix typo in backward compatible macro name 2023-06-15 10:58:50 +08:00
Jiang Jiang Jian
24b9d38a24 Merge branch 'bugfix/fix_esp32s2_tsenor_v5.0' into 'release/v5.0'
esp_phy: fix esp32s2 tsensor issue(v5.0)

See merge request espressif/esp-idf!24226
2023-06-15 01:22:02 +08:00
Jiang Jiang Jian
bd90408cc1 Merge branch 'feature/esp_ipc_isr_fix_v5.0' into 'release/v5.0'
esp_system: Fix a race-condition in esp_ipc_isr (in QEMU env) (v5.0)

See merge request espressif/esp-idf!23992
2023-06-15 00:56:24 +08:00
alanmaxwell
d6017a32bd esp_phy: fix esp32s2 tsensor issue 2023-06-14 21:42:07 +08:00
Jiang Jiang Jian
2798527b0b Merge branch 'bugfix/fix_some_wifi_bugs_230612_v5.0' into 'release/v5.0'
Fixed some wifi bugs 230612 v5.0 (Backport v5.0)

See merge request espressif/esp-idf!24172
2023-06-14 01:10:29 +08:00
Jiang Jiang Jian
7684bd5cdb Merge branch 'bugfix/memory_cleanup_optimization_v5.0' into 'release/v5.0'
Nimble: Fixes for memory leak / optimization (v5.0)

See merge request espressif/esp-idf!24140
2023-06-13 23:43:08 +08:00
Jiang Jiang Jian
fa17fc83cb Merge branch 'bugfix/fix_adc_continuous_driver_conv_frame_issue_v5.0' into 'release/v5.0'
adc: fix adc continuous driver conv_frame_size not bigger than 4092 issue / pr 11500, use circular dma descriptors in adc continuous mode (v5.0)

See merge request espressif/esp-idf!24189
2023-06-13 20:20:25 +08:00
Jiang Jiang Jian
d20884cecb Merge branch 'bugfix/fix_multicast_example_map_wrong_address_issue_5.0' into 'release/v5.0'
Lwip:Backport some lwip bugs to 5.0

See merge request espressif/esp-idf!24193
2023-06-13 20:18:43 +08:00
Jiang Jiang Jian
69b3835cee Merge branch 'feature/s2_ulp_riscv_adc_v5.0' into 'release/v5.0'
ulp-riscv: enable ULP-RISCV ADC example for esp32s2 (v5.0)

See merge request espressif/esp-idf!23372
2023-06-13 20:18:13 +08:00
Jiang Jiang Jian
d994b97c92 Merge branch 'bugfix/init_wpsreg_in_APSTA_mode_v5.0' into 'release/v5.0'
esp_wifi:Enable wpsreg to initialize in APSTA mode

See merge request espressif/esp-idf!24198
2023-06-13 20:13:47 +08:00
Roland Dobai
3a188d309d Merge branch 'feature/tools_add_ulp_linux_i686_toolchain_v5.0' into 'release/v5.0'
tools: add ULP toolchain for linux-i686 platform (v5.0)

See merge request espressif/esp-idf!24195
2023-06-13 18:38:08 +08:00
morris
8704ff0b55 rgb_lcd: support pixel copy for 8bpp
Closes https://github.com/espressif/esp-idf/issues/11581
2023-06-13 18:21:32 +08:00
Jiang Jiang Jian
da24d50bb9 Merge branch 'bugfix/fix_bleqabr23_222_v5.0' into 'release/v5.0'
Revert "bluedroid: report disconnect event after BLE link closed" (backport 5.0)

See merge request espressif/esp-idf!24191
2023-06-13 18:00:19 +08:00
Michael (XIAO Xufeng)
1b04acf68f Merge branch 'bugfix/fix_chip_broken_bug_in_monitor_mode_c2c3s2s3_to_v5.0' into 'release/v5.0'
ESP32S2/C3/C2: fixed S2 dangerous power parameters in sleep modes and support S2/C3/C2 different sleep mode(v5.0)

See merge request espressif/esp-idf!23754
2023-06-13 17:50:21 +08:00
Marius Vikhammer
3ab8ae336c Merge branch 'bugfix/fix_psram_size_doc_s3_v5.0' into 'release/v5.0'
doc: update s3 psram vaddr max range size (v5.0)

See merge request espressif/esp-idf!24188
2023-06-13 17:31:08 +08:00
muhaidong
0f09901e30 esp_wifi: fix some wifi bugs
1. mesh: layer2 node will scan all channels when root leave in fixed root network
2. show warning infomation when setting softAP's max connection number
3. update pairwise cipher in softAP
4. overwrite pairwise cipher when softAP auth mode is WPA2 WPA2_WPA3 WAP3
5. fix sta receive csa issue
2023-06-13 16:47:07 +08:00
Shreyas Sheth
cb963c5cb5 esp_wifi:Enable wpsreg to initialize in APSTA mode 2023-06-13 12:22:50 +05:30
Anton Maklakov
70998e211a tools: add ULP toolchain for linux-i686 platform
Closes https://github.com/espressif/esp-idf/issues/11561
2023-06-13 12:50:21 +07:00
xueyunfei
b85dad9e68 esp_phy:update comments in esp_phy_init.h 2023-06-13 11:57:07 +08:00
xueyunfei
64911ed444 Lwip:Backport some lwip bugs to 5.0
* Update submodule: git log --oneline d5e56d06658ae11292be1baea56204f7120b6fa7..57c29648ff40e2a19a51683717928aaf766a0495

Detailed description of the changes:
- ip6: add a hook for ip6 source address selection(esp-lwip@57c29648)
- netdb:fixed bug for getaddrinfo returns null when IPV4 mapped address (esp-lwip@dafc8225)
2023-06-13 11:55:49 +08:00
muhaidong
153f34cf74 esp_supplicant: When the softAP authentication mode is set to WPA2_PSK, WPA2_WPA3_PSK, or WPA3_PSK, the pairwise cipher will be overwritten with WIFI_CIPHER_TYPE_CCMP 2023-06-13 11:54:26 +08:00
Rahul Tank
13f62f9d4b Nimble: Fixes for memory leak / optimization 2023-06-13 09:20:28 +05:30
muhaidong
5caf842f72 esp_supplicant: wpa pmf should be disabled 2023-06-13 11:43:11 +08:00
Jiang Jiang Jian
1c07880c34 Merge branch 'bugfix/add_event_cb_for_pcl_v5.0' into 'release/v5.0'
Nimble: Add support to send power control event in registered callback(v5.0)

See merge request espressif/esp-idf!23584
2023-06-13 11:20:34 +08:00
Jiang Jiang Jian
9f99495cb2 Merge branch 'feature/add_log_when_mspi_timing_tuning_is_enabled_v5.0' into 'release/v5.0'
mspi: added timing tuning start, and success log (v5.0)

See merge request espressif/esp-idf!24054
2023-06-13 10:51:49 +08:00
Jiang Jiang Jian
a591730d29 Merge branch 'bugfix/tempsensor_wifi_conflict_v5.0' into 'release/v5.0'
temperature_sensor: Fix issue that have conflict with phy / Fix phy pwdet and tsens power cannot be set twice issue (v5.0)

See merge request espressif/esp-idf!24066
2023-06-13 10:47:32 +08:00
chenjianhua
187d77d702 Revert "bluedroid: report disconnect event after BLE link closed"
This reverts commit 0cb5a90663.
2023-06-13 10:33:17 +08:00
Armando
9bec4233a4 adc: port gh pr to current adc continuous mode driver
DMA EOF may happens per multiple dma descriptors, instead of only one.

Closes https://github.com/espressif/esp-idf/pull/11500
2023-06-13 10:28:46 +08:00
Niklas Gürtler
82c055bac9 Fix #10804 by running continuous ADC DMA in endless loop instead of restarting after each run (descriptor chain) to avoid losing samples. Use descriptor error callback for GDMA to check for DMA buffer overrun.
Signed-off-by: Armando <douyiwen@espressif.com>
2023-06-13 10:28:46 +08:00
Armando
ac3f74ecb6 adc: fix adc continuous driver conv_frame_size not bigger than 4092 issue
Closes https://github.com/espressif/esp-idf/issues/11385
2023-06-13 10:28:46 +08:00
Jiang Jiang Jian
c82d9ca887 Merge branch 'bugfix/bod_glitch_reset_c6_v5.0' into 'release/v5.0'
bootloader: fix BOD and glitch reset on C6 and H2 (v5.0)

See merge request espressif/esp-idf!23407
2023-06-13 10:25:47 +08:00
hongshuqing
d82af7f54a fix chip broken bug in monitor mode for c2 c3 s2 s3 to v5.0 2023-06-13 10:22:40 +08:00
Jiang Jiang Jian
c0f55d9a53 Merge branch 'feat/improve_wifi_rx_in_high_interference_v5.0' into 'release/v5.0'
esp_phy: update esp32c2 phy lib to fix some issues(v5.0)

See merge request espressif/esp-idf!24162
2023-06-13 10:20:36 +08:00
Jiang Jiang Jian
899925e66b Merge branch 'feature/usb_host_interface_claim_debug_info_v5.0' into 'release/v5.0'
USB Host: better debugging information during usb_host_interface_claim() (backport v5.0)

See merge request espressif/esp-idf!23446
2023-06-13 10:15:42 +08:00
Armando
156da3a22c doc: update s3 psram vaddr max range size 2023-06-13 10:13:57 +08:00
Jiang Jiang Jian
faf54ca1d6 Merge branch 'bugfix/aes_dma_align_issue_v5.0' into 'release/v5.0'
aes: fix DMA descriptor calculation for the alignment case (v5.0)

See merge request espressif/esp-idf!24094
2023-06-13 10:09:16 +08:00
morris
e37618cda7 Merge branch 'bugfix/adc_outof_bound_read_v5.0' into 'release/v5.0'
adc: fix out of bound read

See merge request espressif/esp-idf!24170
2023-06-13 10:05:39 +08:00
Roland Dobai
17a455dfa6 Merge branch 'bugfix/removed_working_directory_error_v5.0' into 'release/v5.0'
Tools bugfix: Removed working directory when using idf.py (v5.0)

See merge request espressif/esp-idf!24151
2023-06-12 23:18:58 +08:00
Armando
6602cfa760 phy: fix phy pwdet and tsens power cannot be set twice issue
Closes https://github.com/espressif/esp-idf/issues/11627
2023-06-12 19:42:05 +08:00
Jiang Jiang Jian
6012986e2a Merge branch 'bugfix/delete_node_during_list_traverse_5.0' into 'release/v5.0'
bugfix: Fixed the crash of LoadProhibited caused by invalid operation on list node in handling hci_hardware_error event (v5.0)

See merge request espressif/esp-idf!23117
2023-06-12 18:16:25 +08:00
Jiang Jiang Jian
a40fc4035d Merge branch 'bugfix/a2dp_source_crash_connect_to_Bose_speaker_v5.0' into 'release/v5.0'
Bugfix/a2dp source crash connect to bose speaker (v5.0)

See merge request espressif/esp-idf!23349
2023-06-12 18:16:12 +08:00
Jiang Jiang Jian
c098c0b6fa Merge branch 'bugfix/dpp_retry_start_listening_issue_v5.0' into 'release/v5.0'
esp_dpp: Fix retry with esp_supp_dpp_start_listen after failure (v5.0)

See merge request espressif/esp-idf!23595
2023-06-12 18:15:55 +08:00
Armando
75bd7008a5 mspi: added timing tuning start, and success log 2023-06-12 16:14:13 +08:00
muhaidong
25b40c9d5e esp_wifi: fix some wifi bugs
1.pm: mesh sleep support phy ref
2.pm: send wake null after scan if txq isn't idle
3.fix esp32 wifi schm interrupted by ble act
4.fix the bug that ble scan start impacts wifi in some coex scenarios
5.fix softAP qos null issue
6.fix the tx data error when change phymode from LR to 11N
7.fix the heap corrupt issue in MTXON task
8.add new api for supplicant to get softAP's max connection
9.owe: reject pmf incapable ciphers for owe connections
10.fix nvs store softap pmk not match ssid&password
11.install keys after successful transmission of eapol 4/4 message
12.add apis to get assoc id and negotiated phymode
13.softAP pmf: handle SA Query bug in AP-STA concurrent mode when both connections are pmf enabled
14.softAP pmf: merge softAP and station SA Query handlers
15.add wpa_sta_connected callback
16.softAP: validate softAP interface when sending beacon
17.ftm: send ftm frames immediately
18.fix ftm procedure with peer failed status 4 issue
19.fix set inactive time crash issue
2023-06-12 15:40:19 +08:00
muhaidong
811e5e06d2 docs: update ftm docs 2023-06-12 15:24:40 +08:00
muhaidong
0d2271e539 docs: add some details for wifi scan description 2023-06-12 15:24:20 +08:00
Sarvesh Bodakhe
b678fa1290 esp_wifi: Combine bugfixes for softAP PMF, beacon tx process and add wpa_sta_connected callback
1. Handle SA-Query bug in AP-STA concurrent mode when both connections are PMF enabled
2. Add wpa_sta_connected callback
3. Validate softAP interface when sending beacon frame
2023-06-12 15:24:07 +08:00
aditi_lonkar
ded3169aa5 esp_wifi: Add APIs to get Assoc id and negotiated phymode. 2023-06-12 15:23:55 +08:00
Shreyas Sheth
70e3d8f511 esp_wifi: Install keys after successful transmission of EAPOL 4/4 Message 2023-06-12 15:23:40 +08:00
zhangyanjiao
273f36829a wpa_supplicant: Fix max sta num error for softAP 2023-06-12 15:23:26 +08:00
zhangyanjiao
e70f45acd1 Update the ESP-NOW frame length in docs 2023-06-12 15:23:15 +08:00
xueyunfei
a21312a5a1 Fixed bug for stop dhcps before set dns
Closes https://github.com/espressif/esp-idf/issues/10762
2023-06-12 15:23:04 +08:00
morris
6849be6397 adc: fix out of bound read
when SOC_ADC_PERIPH_NUM==1, the adc_unit should only be assigned with 0
2023-06-12 15:21:19 +08:00
Chen Jian Xing
f0b1869ceb Merge branch 'bugfix/fix_some_txop_issues_v5.0' into 'release/v5.0'
esp_wifi: fix some txop issues(Backport v5.0)

See merge request espressif/esp-idf!24160
2023-06-12 15:04:24 +08:00
Krzysztof Budzynski
40b93eaf36 Merge branch 'docs/fix_error_in_esp32-s2-devkitc-1_pin_layout_diagram_v5.0' into 'release/v5.0'
Docs/Fix error in esp32-s2-devkitc-1 pin layout diagram (v5.0)

See merge request espressif/esp-idf!24117
2023-06-12 11:56:35 +08:00
chenjianxing
cdb11885f5 esp_phy: update esp32c2 phy lib to fix some issues
1. improve Wi-Fi rx 11b pkts for AC-DC power supply modules.
2. fix Wi-Fi disconnect in low temperature.
3. fix RTC_SW_CPU_RST occur in Wi-Fi start and stop process.
2023-06-12 11:54:11 +08:00
jasta
9325029d87 esp_dpp: Fix retry with esp_supp_dpp_start_listen after failure
This fixes a subtle bug in which ESP_ERR_DPP_TX_FAILURE errors would
call esp_supp_dpp_stop_listen which sets the s_dpp_stop_listening flag
to true.  Subsequent attempts to restart listening with
esp_supp_dpp_start_listen then only attempt to listen once more for
500ms before reading the s_dpp_stop_listening flag again and giving up.

This contributes greatly to #10615, but the fix here is still largely
a work-around as it sometimes requires manually retrying a couple times
before it works.  Without this fix, any number of retries by
deinit/init again will seemingly not work as the retries for currently
unknown reasons.

Signed-off-by: Shreyas Sheth <shreyas.sheth@espressif.com>

Closes https://github.com/espressif/esp-idf/pull/10865
2023-06-12 03:26:10 +00:00
Jin Cheng
7e810cd65c fix a2dp source crash when connect to Bose speaker 2023-06-12 03:24:15 +00:00
Jin Cheng
95b363aa91 fixed the crash of LoadProhibited caused by taht
the nodes are deleted during the traversal of the linked list
2023-06-12 03:23:18 +00:00
Jiang Jiang Jian
e6ad0a4fa2 Merge branch 'bugfix/fix_wps_with_sae_enabled_ap_v5.0' into 'release/v5.0'
esp_wifi: Fix WPS issue for WPA3+WPA2 mode(v5.0)

See merge request espressif/esp-idf!24154
2023-06-12 11:20:51 +08:00
Jiang Jiang Jian
838850abab Merge branch 'feature/example_deep_sleep_wake_stub_backport_v5.0' into 'release/v5.0'
example: add deepsleep_wake stub example (backport v5.0)

See merge request espressif/esp-idf!23414
2023-06-12 11:07:59 +08:00
Jiang Jiang Jian
86ed0c53d5 Merge branch 'feature/update_nimble_examples_readme_v5.0' into 'release/v5.0'
Nimble:Updated nimble examples README to include chip information (v5.0)

See merge request espressif/esp-idf!22981
2023-06-12 11:06:09 +08:00
Jiang Jiang Jian
a658d37e68 Merge branch 'bugfix/sntp_docs_time_t_64bit_v5.0' into 'release/v5.0'
docs: remove outdated section on custom toolchain for 64-bit time_t (v5.0)

See merge request espressif/esp-idf!23329
2023-06-12 11:02:51 +08:00
Jiang Jiang Jian
34d6805465 Merge branch 'bugfix/mbo_ie_absent_prob_req_v50' into 'release/v5.0'
wpa_supplicant : Add MBO ie in probe request(backport v5.0)

See merge request espressif/esp-idf!24098
2023-06-12 11:02:14 +08:00
muhaidong
398403e251 esp_wifi: fix some txop issues 2023-06-09 23:24:02 +08:00
Kapil Gupta
a66d93a75f esp_wifi: Fix WPS issue for WPA3+WPA2 mode 2023-06-09 17:58:34 +05:30
Marek Fiala
5a7eae4743 Tools bugfix: Removed working directory when using idf.py
Added check for existence of current working directory when using idf.py

Closes https://github.com/espressif/esp-idf/issues/11476
2023-06-09 14:28:11 +02:00
KonstantinKondrashov
4ceae4654b efuse: Do not load real efuses before some test (some chips have burned efuse blocks) 2023-06-09 19:10:47 +08:00
Roland Dobai
7493b907ef Merge branch 'feature/extend_proj_desc_json_v5.0' into 'release/v5.0'
extend information in project_description.json (v5.0)

See merge request espressif/esp-idf!24126
2023-06-09 00:52:47 +08:00
Frantisek Hrbata
9156bbb55c tools: extend information in project_description.json
This extends information provided in the project_description.json file.
Newly added information can be used in the SBOM generating tool and
also to improve hints regarding the the component dependency issues.

Added fields

version:
   This adds versioning to the project_description.json file,
   so it's easy to identify if it contains the required information.

project_version:
   Can be used as a version for the resulting binary e.g. `hello_world.bin`.

idf_path:
   This one is probably not necessary, but it allows tools to run even without
   esp-idf environment exported(e.g. export.sh).

c_compiler:
   The `CMAKE_C_COMPILER` value with full path to the compiler binary. This can
   be used to get information about toolchain, which was used to build the project.

common_component_reqs:
   List of common components as presented in cmake's __COMPONENT_REQUIRES_COMMON
   and set in tools/cmake/build.cmake:__build_init().

build_component_info:
   Detailed information about components used during build. It's a
   dictionary with the component name as a key and each component has
   a dictionary with detailed information. Following is an example for
   the efuse component.

   "efuse": {
       "alias": "idf::efuse",
       "target": "___idf_efuse",
       "prefix": "idf",
       "dir": "/home/fhrbata/work/esp-idf/components/efuse",
       "type": "LIBRARY",
       "lib": "__idf_efuse",
       "reqs": [],
       "priv_reqs": [ "bootloader_support", "soc", "spi_flash" ],
       "managed_reqs": [],
       "managed_priv_reqs": [],
       "file": "/home/fhrbata/work/blink/build/esp-idf/efuse/libefuse.a",
       "sources": [ "/home/fhrbata/work/esp-idf/components/efuse/esp32s3/esp_efuse_table.c", ... ],
       "include_dirs": [ "include", "esp32s3/include" ]
   }

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-06-08 14:30:07 +02:00
Frantisek Hrbata
30735b33ef tools: fix make_json_list to return empty json list for empty cmake list
Currently make_json_list() returns '[ "" ]' for empty cmake list. Fix this
so empty json list is returned instead.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-06-08 14:30:07 +02:00
Wang Ning
48bd249d7b fix_error_in_esp32-s2-devkitc-1_pin_layout_diagram 2023-06-08 16:16:00 +08:00
morris
96c4ec8df2 Merge branch 'bugfix/coverity_scan_fix_driver_v5.0' into 'release/v5.0'
ADC: Fixed potential multiply overflow in the calibration code (v5.0)

See merge request espressif/esp-idf!24092
2023-06-08 10:22:45 +08:00
jgujarathi
cecd0250fe wpa_supplicant : Fix scan results for GCMP and GCMP-256 cipher.
Add support for recognising GCMP and GCMP-256 ciphers if used by AP.
Update the scan example to show the correct cipher.
2023-06-07 10:08:26 +05:30
jgujarathi
e84542909c wpa_supplicant : Add MBO ie in probe request.
Adds the MBO information element in the probe request frame by resetting
scan_ie after set_config is done.
2023-06-07 10:08:04 +05:30
Mahavir Jain
94e139e639 aes: fix DMA descriptor calculation for the alignment case
The number of the DMA descriptors allocated for certain length (e.g.,
8176) were not sufficient (off by 1 error). This used to result in the
dynamic memory corruption as the region was modified beyond the
allocated range.

This change fixes the DMA descriptor calculation part and allocates
sufficient DMA descriptors based on the data length alignment considerations.

Test has also been added to cover the specific scenario in the CI.

Closes https://github.com/espressif/esp-idf/issues/11310
2023-06-07 09:26:30 +05:30
morris
839d1a831d drivers: fix issue reported by coverity 2023-06-07 11:43:17 +08:00
morris
4a05274dc4 adc: fixed the issue that multiply overflow before type expand 2023-06-07 11:42:29 +08:00
Cao Sen Miao
8a66cab04c temperature_sensor: Apply new-shared interface in temperature sensor driver 2023-06-06 01:30:51 +08:00
Cao Sen Miao
ca41902ccf temperature_sensor: Add new interface and reference counts so that phy and driver can use together 2023-06-06 01:30:51 +08:00
Ivan Grokhotkov
a6a962d5f8 Merge branch 'bugfix/usb_serial_jtag_select_poll_crash_v5.0' into 'release/v5.0'
vfs: select sanity NULL check (v5.0)

See merge request espressif/esp-idf!23947
2023-06-05 22:26:12 +08:00
Jiang Jiang Jian
9fb999e99a Merge branch 'bugfix/fix_blufi_conn_handle' into 'release/v5.0'
Blufi: use blufi_env.conn_id instead of local variable (v5.0)

See merge request espressif/esp-idf!24012
2023-06-05 21:16:34 +08:00
Jiang Jiang Jian
ca8bf608df Merge branch 'bugfix/fix_sta_auth_fail_but_softap_shows_it_connected_issue_v5.0' into 'release/v5.0'
esp_wifi: fix sta auth failed but softap shows it connected issue(Backport v5.0)

See merge request espressif/esp-idf!23474
2023-06-01 22:06:28 +08:00
Jiang Jiang Jian
66495de446 Merge branch 'feature/add_menuconfig_of_calibration_mode_v5.0' into 'release/v5.0'
Feature/add menuconfig of calibration mode v5.0(Backport v5.0)

See merge request espressif/esp-idf!23263
2023-06-01 19:59:47 +08:00
Jiang Jiang Jian
f9ad773288 Merge branch 'bugfix/hfp_ag_idx_invalid_v5.0' into 'release/v5.0'
bt: Fixed out of bounds access due to variable length array(v5.0)

See merge request espressif/esp-idf!23666
2023-06-01 19:59:22 +08:00
Jiang Jiang Jian
80ffe63209 Merge branch 'bugfix/close_phy_tsens_before_sleep_v5.0' into 'release/v5.0'
sleep: fix deepsleep current leakage caused by phy_tsens (backport v5.0)

See merge request espressif/esp-idf!23910
2023-06-01 19:55:13 +08:00
Jiang Jiang Jian
f859d573d2 Merge branch 'contrib/github_pr_11215_v5.0' into 'release/v5.0'
improve thread safety in esp_timer (GitHub PR) (v5.0)

See merge request espressif/esp-idf!23540
2023-06-01 19:54:45 +08:00
Jiang Jiang Jian
0872feb2a0 Merge branch 'bugfix/eth_lan8720_ci_v5.0' into 'release/v5.0'
esp_eth: start/stop and L2 test stability improvements (v5.0)

See merge request espressif/esp-idf!22317
2023-06-01 19:54:17 +08:00
Jiang Jiang Jian
982f327827 Merge branch 'bugfix/esp32c2_slave_report_address_error_v5.0' into 'release/v5.0'
Bugfix/esp32c2 slave report address error v5.0

See merge request espressif/esp-idf!23924
2023-06-01 19:51:32 +08:00
Jiang Jiang Jian
2f482e1760 Merge branch 'bugfix/fix_wakeup_failed_if_powerdown_flash_in_lightsleep_v5.0' into 'release/v5.0'
Power Management: fixed flash funcs called in sleep wakeup process (backport v5.0)

See merge request espressif/esp-idf!24008
2023-06-01 19:51:09 +08:00
morris
ad09ee968d Merge branch 'bugfix/spi_master_assert_failure_v5.0' into 'release/v5.0'
spi_master: fix the assertion on a NULL desired_dev (v5.0)

See merge request espressif/esp-idf!24005
2023-06-01 11:43:59 +08:00
Marius Vikhammer
e77e6eb963 Merge branch 'bugfix/use_safe_noreturn_attr_v5.0' into 'release/v5.0'
compiler: replaced noreturn by __noreturn__ in header files (v5.0)

See merge request espressif/esp-idf!23812
2023-06-01 10:17:58 +08:00
Rahul Tank
4377ba639b Blufi: use blufi_env.conn_id instead of local variable 2023-05-31 20:10:19 +05:30
wuzhenghui
0ffee5cd2a bugfix: fix wakeup failed if powerdown flash in lightsleep 2023-05-31 19:44:40 +08:00
morris
06fb9f1eb6 spi_master: fix the assertion on a NULL desired_dev
Closes https://github.com/espressif/esp-idf/issues/11536
2023-05-31 17:48:02 +08:00
Wang Meng Yang
dd7e8b7955 Merge branch 'feature/add_bluetooth_nimble_lightsleep_example_v5.0' into 'release/v5.0'
bt: Added an example of Bluetooth using light sleep(v5.0)

See merge request espressif/esp-idf!23687
2023-05-31 11:06:10 +08:00
Paul Guyot
051cb8dc5f esp_system: Fix a race-condition in esp_ipc_isr (in QEMU env)
The race condition is very unlikely on real hardware but can be observed with
qemu under heavy load.
Also add missing `memw` instructions which are generated by the C compiler but
absent in the assembly code.

Signed-off-by: Paul Guyot <pguyot@kallisys.net>
Signed-off-by: KonstantinKondrashov <konstantin@espressif.com>

Merges https://github.com/espressif/esp-idf/pull/11447
Closes https://github.com/espressif/esp-idf/issues/11433
2023-05-30 23:04:14 +08:00
xiongweichao
871a7568b7 bt: Added an example of Bluetooth using light sleep 2023-05-30 20:25:45 +08:00
zwl
6f5d61ff49 esp_phy:Update phy lib for ESP32-C2 2023-05-30 15:45:54 +08:00
Jakob Hasse
fa099f23f3 compiler: replaced noreturn by __noreturn__ in header files
* noreturn may be replaced by third-party macros,
  rendering it ineffective

* Closes https://github.com/espressif/esp-idf/issues/11339
2023-05-30 13:21:17 +08:00
zwl
2153f59574 ble:fixed the issue that slave reports the wrong address for master when address resolution disable 2023-05-29 20:29:55 +08:00
David Čermák
29e93cb744 Merge branch 'bugfix/eth_driver_cleanup_v5.0' into 'release/v5.0'
Ethernet driver and documentation clean-up (v5.0)

See merge request espressif/esp-idf!23188
2023-05-29 19:58:29 +08:00
Ondrej
dcedccd704 esp_eth pytest: increased robustness of the L2 test
Added filtering frames based on MAC address
2023-05-29 10:49:31 +00:00
Ondrej Kosta
872ada14e2 esp_eth: improved L2 test stability and removed duplicate test cases 2023-05-29 10:49:31 +00:00
Ondrej Kosta
4dc8ce77e4 esp_eth: possible start/stop issue fixed
ESP32 EMAC could hang when stopped/started multiple times at 10Mbps speed mode
2023-05-29 10:49:31 +00:00
morris
dab382c95b Merge branch 'contrib/github_pr_10947_v5.0' into 'release/v5.0'
Update partitions_example.csv (GitHub PR) (v5.0)

See merge request espressif/esp-idf!23956
2023-05-29 17:23:12 +08:00
Roland Dobai
9054ff398f Merge branch 'fix/idf_tools_certificate_v5.0' into 'release/v5.0'
Tools: Update the certificate of idf_tools.py (v5.0)

See merge request espressif/esp-idf!23929
2023-05-29 14:25:12 +08:00
franz-ms-muc
7c5b06e237 Update partitions_example.csv
512K is too small, need to be 528K. see https://github.com/espressif/esp-idf/issues/9084
2023-05-29 14:20:29 +08:00
Mahavir Jain
e31712ee56 Merge branch 'bugfix/fix_memory_leak_in_ws_server_example_v5.0' into 'release/v5.0'
example: Fix memory leak in ws_echo_server when httpd_queue_work failed (backport v5.0)

See merge request espressif/esp-idf!23954
2023-05-29 13:21:58 +08:00
morris
8a9596d42e Merge branch 'bugfix/led_strip_potential_buffer_overwrite_v5.0' into 'release/v5.0'
example: fix led strip memory overwrite before trans done (v5.0)

See merge request espressif/esp-idf!23939
2023-05-29 11:30:04 +08:00
yuanjianmin
7b72adaa78 example: Fix memory leak in ws_echo_server when httpd_queue_work failed
Closes https://github.com/espressif/esp-idf/issues/11507
2023-05-26 20:06:45 +08:00
Adam Múdry
31b2eedc9f vfs: select sanity NULL check
https://github.com/espressif/esp-idf/issues/9964
2023-05-26 13:46:25 +02:00
Island
424d658cc9 Merge branch 'feature/esp32c2_enable_rf_temp_compensation_v5.0' into 'release/v5.0'
Feature/esp32c2 enable rf temp compensation v5.0

See merge request espressif/esp-idf!23729
2023-05-26 16:56:44 +08:00
morris
9d1caf81d3 example: fix led strip memory overwrite before trans done
Closes https://github.com/espressif/esp-idf/issues/11487
2023-05-26 13:28:40 +08:00
Roland Dobai
f0ddb37f06 Merge branch 'fix/hints-print-control-characters_v5.0' into 'release/v5.0'
tools: fix control characters print if hints enabled (v5.0)

See merge request espressif/esp-idf!23890
2023-05-25 23:44:10 +08:00
Roland Dobai
d3885faa43 Tools: Update the certificate of idf_tools.py 2023-05-25 16:30:08 +02:00
wuzhenghui
05714f207d bugfix: close phy_tsens before deepsleep 2023-05-25 13:14:52 +08:00
zwl
8ce59ffe14 ble:fixed build error when disable smp 2023-05-24 20:51:41 +08:00
zwl
bc96a1b6c7 ble:esp32c2 add rf temperature compensation 2023-05-24 20:51:41 +08:00
Krzysztof Budzynski
fbe0c85229 Merge branch 'docs/provide_CN_trans_for_22939_backport_v5.0' into 'release/v5.0'
docs: update CN translation for mdns.rst (backport_v5.0)

See merge request espressif/esp-idf!23632
2023-05-23 21:05:12 +08:00
Alexey Lapshin
e84e884d66 tools: fix control characters print if hints enabled
Closes https://github.com/espressif/esp-idf/issues/11351
2023-05-23 18:30:35 +08:00
Shang Zhou
78ba28f65f docs: update links in mdns.rst_backport_v5.0 2023-05-23 17:54:17 +08:00
Aditya Patwardhan
400549eeba Merge branch 'contrib/github_pr_11402_v5.0' into 'release/v5.0'
esp_ds: ignore releasing mutex if not called from same task (GitHub PR) (v5.0)

See merge request espressif/esp-idf!23841
2023-05-23 14:48:06 +08:00
Jiang Jiang Jian
de419dbe0b Merge branch 'bugfix/fix_some_ble_bug_v5.0' into 'release/v5.0'
Fixed some BLE bugs (backport v5.0)

See merge request espressif/esp-idf!23709
2023-05-22 11:09:26 +08:00
Wang Meng Yang
5a68c49656 Merge branch 'bugfix/fix_iphone_disconnects_immediately_after_connecting_when_BLE_wifi_coexist_v5.0' into 'release/v5.0'
Fix iPhone disconnects immediately after connecting when ble wifi coexist(backport v5.0)

See merge request espressif/esp-idf!23810
2023-05-19 23:03:23 +08:00
morris
441c89d938 Merge branch 'feature/reset_mcpwm_in_restart_v5.0' into 'release/v5.0'
mcpwm: reset peripheral in restart, panic and halt (v5.0)

See merge request espressif/esp-idf!23652
2023-05-19 17:49:05 +08:00
morris
f5b0dd48ce Merge branch 'bugfix/fix_i2c_c2_fifo_len' into 'release/v5.0'
i2c: fix fifo length on esp32c2(backport v5.0)

See merge request espressif/esp-idf!23787
2023-05-19 17:48:50 +08:00
Roland Dobai
128435993e Merge branch 'bug/interactive_hints_v5.0' into 'release/v5.0'
tools: fix hints processing in interactive mode (v5.0)

See merge request espressif/esp-idf!23804
2023-05-19 15:45:04 +08:00
Zim Kalinowski
7e6b69e1d6 Merge branch 'bugfix/sync-contribution-guide_v5.0' into 'release/v5.0'
docs: updated contribution agreement (v5.0)

See merge request espressif/esp-idf!23838
2023-05-19 13:30:24 +08:00
Christoph Baechler
ebf4abca14 esp_ds: ignore releasing mutex if not called from same task 2023-05-19 08:31:45 +05:30
Zim Kalinowski
29545fc030 docs: updated contribution agreement 2023-05-18 16:34:47 +02:00
Shang Zhou
7b113d2073 docs: update translation for esp_eth 2023-05-18 14:28:21 +00:00
Ondrej Kosta
47a3faa0ff Ethernet driver and documentation clean-up 2023-05-18 14:28:21 +00:00
David Čermák
ab3499ab82 Merge branch 'bugfix/dm9051_rcv_mcast_v5.0' into 'release/v5.0'
esp_eth: allowed DM9051 to receive multicast packets v5.0

See merge request espressif/esp-idf!22864
2023-05-18 18:31:42 +08:00
Rahul Tank
dc63356910 Nimble: Add support to send power control event in registered callback 2023-05-18 14:02:07 +05:30
morris
858199506d mcpwm: reset peripheral in restart, panic and halt
mcpwm is commonly used in power eletronic area, when restart happens,
make sure the mcpwm generator is not working.

closes https://github.com/espressif/esp-idf/issues/11324
2023-05-18 04:56:34 +00:00
Mahavir Jain
550c5b4195 Merge branch 'bugfix/update_test_dl_esp_cert_v5.0' into 'release/v5.0'
tests: update Root certificate for the test endpoints (v5.0)

See merge request espressif/esp-idf!23798
2023-05-18 12:39:36 +08:00
zhiweijian
20e83f24d2 Fix the bug that the iPhone disconnects immediately after connecting when BLE and wifi coexist 2023-05-18 12:08:07 +08:00
David Čermák
b1a3e6cd58 Merge branch 'docs/esp_protocols_docs_migration_v5.0' into 'release/v5.0'
docs: migrated documentation from github.io to docs.espressif.com (v5.0)

See merge request espressif/esp-idf!23318
2023-05-17 20:28:38 +08:00
Frantisek Hrbata
8e811c1bf2 tools: fix hints processing in interactive mode
Currently hints are processed only once the process is finished and
exits with non-error exit code. In interactive mode, e.g. for monitor,
we want to process ouput lines for hints right away.

This adds a simple buffer, which keeps the last line and once EOL is
reached, it is processed for hints.

Since the original hints processing was file based, a new helper
function was added to allow processing hints in string.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-05-17 13:27:13 +02:00
Frantisek Hrbata
8eda836de6 tools: don't print hints directly in print_hints
This is partial backport of following commit, which changes
print_hints to generate_hints.

	commit 92ef2a4c83
	Author: simon.chupin <simon.chupin@espressif.com>
	Date:   Tue Aug 9 15:39:23 2022 +0200

	    Tools: Add unit tests for idf.py hints

Only hunks for core_ext.py and tools.py are picked. It would be possible
to use the original print_hints approach, where the hints are directly
printed out and not returned, but it seems to make sense to keep it
closer to most recent version. It should make further backports easier
and it allows to cherry pick the iterative hints approach.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-05-17 13:26:46 +02:00
Roland Dobai
b08267f3b1 Merge branch 'monitor_win_color-v5.0' into 'release/v5.0'
bug(idf_monitor): fix color on windows with hints (v5.0)

See merge request espressif/esp-idf!23348
2023-05-17 18:39:32 +08:00
Mahavir Jain
de3fa9ae71 tests: update Root certificate for the test endpoints
Use Root certificate (`DigiCert Global Root G2`) for the
`dl.espressif.com` and `espressif.com` test endpoints.

This fixes the test failure introduced due to renewal of
the intermediate certificate.
2023-05-17 15:28:23 +05:30
Cao Sen Miao
0229619e16 i2c: fix fifo length on esp32c2,
Closes https://github.com/espressif/esp-idf/issues/11413
2023-05-17 11:31:21 +08:00
Roland Dobai
5b34c34fbc Merge branch 'feature/remove_coredump_tests_v5.0' into 'release/v5.0'
coredump: remove tests (moved to esp-coredump repo) (v5.0)

See merge request espressif/esp-idf!23768
2023-05-17 01:56:21 +08:00
Jiang Jiang Jian
fc4d4f0b8d Merge branch 'bugfix/espnow_config_channel_v5.0' into 'release/v5.0'
esp_wifi: fix espnow example add peer fail when config channel(v5.0)

See merge request espressif/esp-idf!23177
2023-05-16 13:46:40 +08:00
Alexey Lapshin
e092b58696 coredump: remove tests (moved to esp-coredump repo) 2023-05-16 12:49:13 +08:00
Marius Vikhammer
c47e33a1ff Merge branch 'bugfix/c2_wdt_reset_reason_v5.0' into 'release/v5.0'
wdt: fix IWDT reset reason for esp32c2 (v5.0)

See merge request espressif/esp-idf!23741
2023-05-16 10:36:05 +08:00
Marius Vikhammer
3852c15670 Merge branch 'docs/ulp_fsm_example' into 'release/v5.0'
ulp: update docs to reflect that ulp_fsm example only supports esp32 (v5.0)

See merge request espressif/esp-idf!23752
2023-05-16 09:22:17 +08:00
Marius Vikhammer
10a98e7e58 Merge branch 'contrib/github_pr_11388_v5.0' into 'release/v5.0'
Update esp_cpu.h to include esp_attr.h (GitHub PR) (v5.0)

See merge request espressif/esp-idf!23739
2023-05-16 09:21:45 +08:00
Marius Vikhammer
6ec490016c Merge branch 'fix/console-build-error_v5.0' into 'release/v5.0'
console: Fix building issue when serial JTAG is set (v5.0)

See merge request espressif/esp-idf!23736
2023-05-16 09:21:06 +08:00
Zim Kalinowski
d1280d92f5 Merge branch 'feature/efuse_settings_v5.0' into 'release/v5.0'
hal: Explicit setting of efuse time settings (v5.0)

See merge request espressif/esp-idf!23726
2023-05-15 18:48:45 +08:00
Zim Kalinowski
0b8800eaae Merge branch 'contrib/github_pr_10895_v5.0' into 'release/v5.0'
Fix possible conversion errors by using __builtin_ffsll (GitHub PR) (v5.0)

See merge request espressif/esp-idf!23691
2023-05-15 18:43:35 +08:00
Rahul Tank
c6e7bb3ecf Nimble:Updated nimble examples README to include chip information 2023-05-15 15:33:53 +05:30
Marius Vikhammer
ed1feea96f ulp: update docs to reflect that ulp_fsm example only supports esp32
Closes https://github.com/espressif/esp-idf/issues/11386
2023-05-15 14:17:15 +08:00
Jiang Jiang Jian
c21a4c9858 Merge branch 'bugfix/fix_esp32_bugs_230511' into 'release/v5.0'
Fixed some esp32 bugs(backport v5.0)

See merge request espressif/esp-idf!23704
2023-05-15 13:40:05 +08:00
Jiang Jiang Jian
4eb2cca03d Merge branch 'bugfix/esp_netif_loopback_v5.0' into 'release/v5.0'
esp-netif: Fix non-lwip build using esp_netif loopback (v5.0)

See merge request espressif/esp-idf!22925
2023-05-15 13:38:03 +08:00
Jiang Jiang Jian
cc37362ffb Merge branch 'bugfix/lwip_no_garp_for_any_addr_v5.0' into 'release/v5.0'
lwip: Send Periodic Gratuitous ARP only on valid IPv4 (v5.0)

See merge request espressif/esp-idf!22965
2023-05-15 13:35:46 +08:00
morris
378fa3b792 Merge branch 'doc/update_mcpwm_deadtime_v5.0' into 'release/v5.0'
MCPWM: don't allow to apply the same delay module to multiple generators (v5.0)

See merge request espressif/esp-idf!23664
2023-05-15 12:25:13 +08:00
morris
8645981de0 Merge branch 'bugfix/allow_no_specify_uart_clk_src_v5.0' into 'release/v5.0'
uart: Allow omitting source_clk parameter to uart_param_config (v5.0)

See merge request espressif/esp-idf!23452
2023-05-15 10:44:18 +08:00
morris
04d2cc841c Merge branch 'bugfix/himem_map_range_block_v5.0' into 'release/v5.0'
himem: fixed incorrect out_ptr when range_offset is given non-zero. (v5.0)

See merge request espressif/esp-idf!23081
2023-05-15 10:43:03 +08:00
morris
6439e0bd85 Merge branch 'feature/i80_lcd_allow_skip_command_phase_v5.0' into 'release/v5.0'
i80_lcd: allow skip command phase (v5.0)

See merge request espressif/esp-idf!23091
2023-05-15 10:41:35 +08:00
Marius Vikhammer
633b4cb38b Merge branch 'bugfix/i2c_timing_wrong_v5.0' into 'release/v5.0'
i2c: fix a bug in sda sample timing (backport v5.0)

See merge request espressif/esp-idf!23226
2023-05-15 10:40:01 +08:00
Marius Vikhammer
0e71903b18 Merge branch 'contrib/github_pr_11394_v5.0' into 'release/v5.0'
docs: Fix typo in Linux/macOS getting started docs (GitHub PR) (v5.0)

See merge request espressif/esp-idf!23733
2023-05-15 10:35:29 +08:00
Jakob Hasse
5946c6ad16 cxx/esp_hw_support: added build test, changed parameter types
Changed rv_utils_intr_edge_ack and esp_cpu_intr_edge_ack to
take uint32_t instead of int to avoid build errors.

The test is to test in particular that __builtin_ffsll, used in
xt_utils.h, which is included via esp_cpu.h, compiles fine
in C++20 with -Wsign-conversion enabled.

Closes https://github.com/espressif/esp-idf/pull/10895
2023-05-15 10:03:12 +08:00
morris
641221a10a Merge branch 'bugfix/rmt_one-wire_v5.0' into 'release/v5.0'
rmt_onewire: refactor example with component registry (v5.0)

See merge request espressif/esp-idf!23510
2023-05-15 10:00:15 +08:00
Marius Vikhammer
3720ea91c3 ci: re-enable reset reason tests for all targets except H2. 2023-05-15 09:58:16 +08:00
Marius Vikhammer
0722386585 esp-system: fixed int WDT reset reason being reported as task WDT on C2 2023-05-15 09:53:18 +08:00
Magnus Sörensen
5f27615587 Update esp_cpu.h
If esp_attr.h is not included then there are no definitions for the symbol 'FORCE_INLINE_ATTR'.
2023-05-15 09:51:25 +08:00
Guillaume Souchere
11653cdc9a console: Fix building issue when serial JTAG is set
Closes https://github.com/espressif/esp-idf/issues/10707
2023-05-15 09:49:10 +08:00
Nihal Gonsalves
297fbc9629 Fix typo in Linux/macOS getting started docs
`hello_word` -> `hello_world`
2023-05-15 09:34:57 +08:00
morris
cea9f80870 Merge branch 'bugfix/mcpwm_bldc_example_v5.0' into 'release/v5.0'
mcpwm: test generator force level with dead time module (v5.0)

See merge request espressif/esp-idf!23715
2023-05-14 14:13:02 +08:00
morris
829cf5aaf6 Merge branch 'bugfix/check_filter_range_v5.0' into 'release/v5.0'
rmt: check filter and idle threashold (v5.0)

See merge request espressif/esp-idf!23605
2023-05-14 14:12:47 +08:00
KonstantinKondrashov
bd4802104b hal: Explicit setting of efuse time settings
EFUSE_PWR_ON_NUM in C3 has default value = 0x2880, now = 0x3000
2023-05-12 21:48:05 +08:00
Marius Vikhammer
bfe07cbef9 Merge branch 'feature/unicore_bootloader_can_run_multicore_app_v5.0' into 'release/v5.0'
esp_system: Fix case when multicore app can not be run if bootloader is unicore (v5.0)

See merge request espressif/esp-idf!23027
2023-05-12 17:49:52 +08:00
Island
21cfccad3a Merge branch 'feature/add_interface_for_ble_QA_test_5.0' into 'release/v5.0'
BLE: Add interface for QA test

See merge request espressif/esp-idf!22980
2023-05-12 16:27:37 +08:00
morris
24a2a98707 Merge branch 'bugfix/rmt_encode_state_init_v5.0' into 'release/v5.0'
rmt: define RMT_ENCODING_RESET in rmt_encode_state_t (v5.0)

See merge request espressif/esp-idf!23240
2023-05-12 15:53:22 +08:00
Island
16b2071a4d Merge branch 'feature/esp32c2_add_hci_buf_get_checking' into 'release/v5.0'
Feature/esp32c2 add hci buf get checking

See merge request espressif/esp-idf!22692
2023-05-12 14:47:59 +08:00
muhaidong
32f629d8db esp_wifi: fix sta auth failed but softap shows it connected issue 2023-05-12 14:43:29 +08:00
morris
a69a6775c9 mcpwm: fix bldc example force output level inverted
set_force_level can only set the generator level before the deadtime module.
if the deadtime module enables the inverter, then the real output level is inverted accordingly
2023-05-12 14:40:19 +08:00
morris
2b483c98c4 Merge branch 'bugfix/fix_several_bugs_in_i2s_v5.0' into 'release/v5.0'
i2s: fix several bugs in std and tdm mode (v5.0)

See merge request espressif/esp-idf!23670
2023-05-12 11:03:37 +08:00
morris
36291f5468 Merge branch 'docs/add_cn_trans_i2s_v5.0' into 'release/v5.0'
Docs: add CN translation for i2s.rst (backport v5.0)

See merge request espressif/esp-idf!23636
2023-05-12 11:01:43 +08:00
Mo Fei Fei
ddf36db76a Docs: add CN translation for i2s.rst (backport v5.0) 2023-05-12 11:01:42 +08:00
Jiang Jiang Jian
6b2d631eac Merge branch 'bugfix/tx_desc_fragment_v5.0' into 'release/v5.0'
esp_wifi: fix potential issue when tx fragment pkt.(v5.0)

See merge request espressif/esp-idf!23043
2023-05-11 23:28:35 +08:00
Island
d2e094d29a Merge branch 'bugfix/ble_mesh_fix_heartbeat_set_v5.0' into 'release/v5.0'
ble_mesh: stack: Update the heartbeat filter entry add/remove handling (v5.0)

See merge request espressif/esp-idf!23165
2023-05-11 21:34:21 +08:00
chenjianhua
90f52cf0c7 bluedroid: fix ble ext adv rand addr setting for NRPA 2023-05-11 20:47:45 +08:00
chenjianhua
d7a927190b bluedroid: fix ble adv data construct for device name 2023-05-11 20:47:36 +08:00
chenjianhua
dcd8427529 bluedroid: fix ble smp key distribution setting 2023-05-11 20:47:27 +08:00
chenjianhua
0cb5a90663 bluedroid: report disconnect event after BLE link closed 2023-05-11 20:47:09 +08:00
zhiweijian
35170b7733 fix blufi doc error 2023-05-11 20:14:50 +08:00
zhiweijian
81f9fdb6e6 Fixed BLE disconnection failure on ESP32 2023-05-11 20:04:38 +08:00
zwj
6545c5aad5 Fixed disconnection due to consecutive CRC errors in first 6 intervals 2023-05-11 20:04:19 +08:00
zwj
21f694dc81 Fixed no error report when own address type is rpa_random and no random address setting 2023-05-11 20:03:39 +08:00
zhiweijian
8e5d95c953 Fixed battery profile wrong condition 2023-05-11 20:03:18 +08:00
zwl
5c0d18b6f5 Add hci uart pin reconfig API 2023-05-11 12:01:21 +00:00
zwl
15d347f8c0 ble: Add assertion checking for bluedroid hci on ESP32-C2 and ESP32-H2 2023-05-11 12:01:21 +00:00
Shen Weilong
6bfeac7b6c BLE: Add interface for QA test
Fix sleep crash issue
2023-05-11 20:01:13 +08:00
morris
19aa6bb56e Merge branch 'bugfix/fix_mspi_octal_psram_timing_tuning_point_fallback_id_v5.0' into 'release/v5.0'
mspi: modified mspi 80mhz octal psram timing tuning point fallback id on s3 (v5.0)

See merge request espressif/esp-idf!23692
2023-05-11 18:56:11 +08:00
Jiang Jiang Jian
e7d4c90277 Merge branch 'bugfix/fix_some_ble_bug_v5.0' into 'release/v5.0'
Fixed some BLE bugs (backport v5.0)

See merge request espressif/esp-idf!23299
2023-05-11 17:28:00 +08:00
muhaidong
3bb3ef8920 esp_phy: add menuconfig of phy calibration mode 2023-05-11 09:27:50 +00:00
muhaidong
b2383c57cc disable reduce PHY TX power when brownout reset 2023-05-11 09:27:50 +00:00
Jiang Jiang Jian
c323399520 Merge branch 'bugfix/fix_hw_ralunderrun_assert_v5.0' into 'release/v5.0'
Fixed BLE HW RAL_UNDERRUN assert and backport some bug fix 23-03-30 (back port v5.0)

See merge request espressif/esp-idf!22989
2023-05-11 17:27:32 +08:00
Jiang Jiang Jian
0117a6e7b1 Merge branch 'bugfix/hf_cind_ind_index_v5.0' into 'release/v5.0'
bt: Fixed the inconsistency between the indicator event received by the HF application layer and the actually received indicator(v5.0)

See merge request espressif/esp-idf!23560
2023-05-11 17:25:27 +08:00
Jiang Jiang Jian
3cad80e98f Merge branch 'bugfix/spp_notify_v5.0' into 'release/v5.0'
NimBLE: Removed indicate flag from gatt db and added subscription case in spp_server example (v5.0)

See merge request espressif/esp-idf!23459
2023-05-11 17:24:50 +08:00
Jiang Jiang Jian
bc2b5f52e2 Merge branch 'bugfix/bt_diable_enbale_crash_v5.0' into 'release/v5.0'
bt:Fixed esp32 controller bug (v5.0)

See merge request espressif/esp-idf!23154
2023-05-11 17:23:48 +08:00
Jiang Jiang Jian
26a5a98912 Merge branch 'bugfix/i2s_fix_intr_flag_for_pdm_rx_v5.0' into 'release/v5.0'
i2s: fix interrupt flag of pdm rx mode (v5.0)

See merge request espressif/esp-idf!23126
2023-05-11 17:23:30 +08:00
Jiang Jiang Jian
de6d31aa20 Merge branch 'bugfix/a2dp_source_app_state_error_v5.0' into 'release/v5.0'
bt: Fixed the issue that the a2dp source would not send the media start command due to the connection initiated by the peer device(v5.0)

See merge request espressif/esp-idf!23556
2023-05-11 17:22:29 +08:00
Jiang Jiang Jian
a6d818b85b Merge branch 'fix/sdio_sd_cards_not_detected_correctly_v5.0' into 'release/v5.0'
sdmmc: sdio combination cards correct setup (v5.0)

See merge request espressif/esp-idf!23479
2023-05-11 17:21:43 +08:00
Jiang Jiang Jian
65c71e9c12 Merge branch 'rebase/fix_conn_estab_tmo_issue' into 'release/v5.0'
ble:fix conn establishment timeout issue

See merge request espressif/esp-idf!23524
2023-05-11 17:21:17 +08:00
Jiang Jiang Jian
ed815995f3 Merge branch 'bugfix/wifi_prov_deinit_github_v5.0' into 'release/v5.0'
wifi_prov_mgr: Fixed memory leak after bluetooth stack was stopping. (v5.0)

See merge request espressif/esp-idf!23437
2023-05-11 17:20:14 +08:00
Jiang Jiang Jian
d3a57ff659 Merge branch 'feature/multi_adv_v5.0' into 'release/v5.0'
NimbLE: Added multi advertising example (v5.0)

See merge request espressif/esp-idf!22828
2023-05-11 17:19:17 +08:00
Jiang Jiang Jian
d84fc1ea4e Merge branch 'feature/write_blob_v5.0' into 'release/v5.0'
NimBLE: Added support for writing data more than BLE_ATT_ATTR_MAX_LEN (v5.0)

See merge request espressif/esp-idf!22993
2023-05-11 17:18:22 +08:00
Jiang Jiang Jian
f0426aed56 Merge branch 'bugfix/deinit_ble_v5.0' into 'release/v5.0'
bugfix: deinit ble for specifies ESP_BT_MODE_BTDM (backport v5.0)

See merge request espressif/esp-idf!23067
2023-05-11 17:17:10 +08:00
Jiang Jiang Jian
054f17c8f3 Merge branch 'bugfix/IDFGH-9552_v5.0' into 'release/v5.0'
NimBLE : Added configurable option for resolving peer address in bleprph example. (v5.0)

See merge request espressif/esp-idf!22991
2023-05-11 17:13:53 +08:00
Jiang Jiang Jian
60e68189c4 Merge branch 'bugfix/esp_nimble_config_v5.0' into 'release/v5.0'
NimBLE : Fixed config options in esp_nimble_cfg.h (v5.0)

See merge request espressif/esp-idf!23070
2023-05-11 17:13:19 +08:00
Jiang Jiang Jian
34f12c429d Merge branch 'bugfix/wps_phassphrase_v5.0' into 'release/v5.0'
wpa_supplicant: Get WPS credential in passphrase format(v5.0)

See merge request espressif/esp-idf!23076
2023-05-11 17:10:29 +08:00
Jiang Jiang Jian
aa92f108f0 Merge branch 'doc/update_doc_of_esp_bt_gap_set_cod_v5.0' into 'release/v5.0'
bt: Optimized the document for GAP API: esp_bt_gap_set_cod (v5.0)

See merge request espressif/esp-idf!22994
2023-05-11 17:09:31 +08:00
Jiang Jiang Jian
e7ebd81eb0 Merge branch 'bugfix/fix_sc_send_failure_and_exit_issue_v5.0' into 'release/v5.0'
smartconfig: fix the issue of sending failure and exit (Backport v5.0)

See merge request espressif/esp-idf!23026
2023-05-11 17:04:17 +08:00
Jiang Jiang Jian
7c0d6d4b41 Merge branch 'bugfix/improve_tx_robust_v5.0' into 'release/v5.0'
esp_wifi: improve tx robust for c2/c3/s3(v5.0)

See merge request espressif/esp-idf!23008
2023-05-11 17:03:34 +08:00
Jiang Jiang Jian
d841134da0 Merge branch 'bugfix/update_wps_api_documentation_v5.0' into 'release/v5.0'
wpa_supplicant: Update WPS API documentation (v5.0)

See merge request espressif/esp-idf!23013
2023-05-11 17:03:12 +08:00
Mahavir Jain
3ac5d6a2dd Merge branch 'fix/esp32s3_ununsed_dcache_as_dram_v5.0' into 'release/v5.0'
esp_hw_support: Update the memory ptr location/property checks to include the unused DCACHE added to DRAM (v5.0)

See merge request espressif/esp-idf!23268
2023-05-11 16:48:32 +08:00
morris
e8500751a8 Merge branch 'bugfix/spi_lcd_max_trans_size_v5.0' into 'release/v5.0'
spi_lcd: maximum transfer size should respect bus configuration (v5.0)

See merge request espressif/esp-idf!23230
2023-05-11 16:14:28 +08:00
Marius Vikhammer
86aead4f80 Merge branch 'docs/readme_i2s_datasheet_v5.0' into 'release/v5.0'
docs: remove link to NS4150 datasheet (v5.0)

See merge request espressif/esp-idf!23107
2023-05-11 14:44:54 +08:00
xiongweichao
22eeaf2f70 bt: Deleted some redundant variables in HFP_AG 2023-05-11 06:12:38 +00:00
xiongweichao
d19ecff036 bt: Fixed the problem of out-of-bounds access caused by the variable-length array introduced in 3268075231
Closes https://github.com/espressif/esp-idf/issues/11264
2023-05-11 06:12:38 +00:00
xiongweichao
ff3377ddd1 bt: Fixed codec mode error in ESP_HF_WBS_RESPONSE_EVT 2023-05-11 06:12:38 +00:00
KonstantinKondrashov
0b697ee9cd test_apps: Test multicore app can be run by unicore bootloader 2023-05-11 05:55:32 +00:00
KonstantinKondrashov
861a5fb863 esp_system: Do not rely on bootloader cache settings, do cache settings unconditionally at startup app
It makes multicore app runnable by unicore bootloader

Closes https://github.com/espressif/esp-idf/issues/10714
2023-05-11 05:55:32 +00:00
Mahavir Jain
daeb413adc Merge branch 'contrib/github_pr_10967_v5.0' into 'release/v5.0'
[esp-tls] Add addr_family option to esp_tls_cfg_t (GitHub PR) and related coverity fixes (v5.0)

See merge request espressif/esp-idf!23169
2023-05-11 12:08:36 +08:00
Mahavir Jain
3d36df31cf Merge branch 'bugfix/block9_can_not_be_used_for_fe_v5.0' into 'release/v5.0'
efuse: Prevent burning XTS_AES and ECDSA keys into BLOCK9 (BLOCK_KEY5) (v5.0)

See merge request espressif/esp-idf!23290
2023-05-11 12:07:39 +08:00
Mahavir Jain
a1dd8403d6 Merge branch 'feature/update_mbedtls_v5.0' into 'release/v5.0'
mbedtls: Update to release/v3.4.0 (v5.0)

See merge request espressif/esp-idf!23400
2023-05-11 12:06:23 +08:00
term_est
e670b60126 Fix possible conversion errors by using __builtin_ffsll instead of __builtin_ffs
Signed-off-by: term_est <62337595+term-est@users.noreply.github.com>
2023-05-11 11:16:53 +08:00
Armando
23cbe3c008 mspi: modified mspi 80mhz octal psram timing tuning point fallback id on s3 2023-05-11 11:16:33 +08:00
morris
889787c7ca Merge branch 'refactor/improve_adc_power_maintanance_v5.0' into 'release/v5.0'
adc: improve adc power maintanance (v5.0)

See merge request espressif/esp-idf!23273
2023-05-11 11:09:31 +08:00
chenjianhua
c48debf246 Update bt lib for ESP32-C3 and ESP32-S3
- Fixed remote mic error during encryption procedure
2023-05-11 10:58:43 +08:00
chenjianhua
8c17ef00b1 Update bt lib for ESP32-C3 and ESP32-S3
- Fixed ble hopping selection for connection when disabled 5.0 feature
2023-05-11 10:57:30 +08:00
zhiweijian
70c30cad3d Disable controller 5.0 feature bits if host 5.0 feature is not enabled 2023-05-11 02:45:56 +00:00
zwj
4c506a9eea improve scan performance when scan and sync coexist on ESP32-C3 and ESP32-S3 2023-05-11 02:45:56 +00:00
chenjianhua
2279603842 Update bt lib for ESP32-C3 and ESP32-S3
- Fixed non-connectable and non-scannable directed adv can't be scanned
2023-05-11 02:45:56 +00:00
zwj
d8e4bdc69e Fixed BLE HW RAL_UNDERRUN assert on ESP32C3 and ESP32S3 2023-05-11 02:45:56 +00:00
zwj
45a72222d6 If it is not esp32 chips, hide the configuration item: BT_BLE_RPA_SUPPORTED 2023-05-11 02:45:56 +00:00
zhiweijian
f0c6c5962a set BT_CTRL_BLE_MAX_ACT default value to 6 2023-05-11 02:45:56 +00:00
zhiweijian
b9e9a60c4f Fixed ATT Ignore wrong response error 2023-05-11 02:45:56 +00:00
zwj
0e5c6144b7 - Support ESP32C3 and ESP32S3 new BLE lib
- Disable controller 5.0 feature bits if host 5.0 feature is not enabled
- Fixed extend ADV parameters check for ADV_DIRECT_HI
2023-05-11 02:45:56 +00:00
zwj
c6942be321 Merge ESP32C3 and ESP32S3 BLE bt.c files to one 2023-05-11 02:45:56 +00:00
Marius Vikhammer
b7ad0e0ad1 Merge branch 'bugfix/make_clean_files_v5.0' into 'release/v5.0'
build-system: replace ADDITIONAL_MAKE_CLEAN_FILES with ADDITIONAL_CLEAN_FILES (v5.0)

See merge request espressif/esp-idf!23662
2023-05-11 10:39:58 +08:00
Marius Vikhammer
7d24b991f8 Merge branch 'bugfix/gdma_log_nano_v5.0' into 'release/v5.0'
gdma: fixed crash from logging when using newlib nano (v5.0)

See merge request espressif/esp-idf!23586
2023-05-11 10:38:05 +08:00
morris
98d26d3c5e Merge branch 'refactor/lcd_i2c_panel_reduce_link_size_v5.0' into 'release/v5.0'
lcd_i2c: reduce recommended link size (v5.0)

See merge request espressif/esp-idf!23035
2023-05-11 10:32:09 +08:00
morris
0e3b746aeb Merge branch 'bugfix/fix_esp32_psram_2t_mode_build_fail_v5.0' into 'release/v5.0'
esp_psram: fix compile error for SPI PSRAM 2T mode (v5.0)

See merge request espressif/esp-idf!22964
2023-05-11 10:31:44 +08:00
morris
4a6c52708d Merge branch 'bugfix/fixed_sdmmc_high_speed_ddr_timing_issue_on_esp32s3_v5.0' into 'release/v5.0'
sdmmc: fixed incorrect clock phase settings on esp32s3 (v5.0)

See merge request espressif/esp-idf!23259
2023-05-11 10:31:16 +08:00
morris
c465097d9f Merge branch 'contrib/github_pr_11113_v5.0' into 'release/v5.0'
Fix usb enumeration stage error for some device (GitHub PR) (v5.0)

See merge request espressif/esp-idf!23333
2023-05-11 10:30:04 +08:00
morris
9716101e7d rmt: check filter and idle threashold
Closes https://github.com/espressif/esp-idf/issues/11262
2023-05-11 02:29:26 +00:00
morris
9d26757763 rmt_onewire: refactor example with component manager
Closes https://github.com/espressif/esp-idf/issues/10790
2023-05-11 02:28:54 +00:00
morris
0542983ed8 rmt: define RMT_ENCODING_RESET in rmt_encode_state_t
Closes https://github.com/espressif/esp-idf/issues/11200
2023-05-11 02:28:31 +00:00
morris
54733abf56 i80_lcd: support skip command phase
Closes https://github.com/espressif/esp-idf/issues/10794
2023-05-11 02:27:49 +00:00
morris
8d0df0a19f Merge branch 'bugfix/rmt_calarify_mem_block_symbols_v5.0' into 'release/v5.0'
Bugfix/rmt calarify mem block symbols (v5.0)

See merge request espressif/esp-idf!23000
2023-05-11 10:27:13 +08:00
morris
754274c41b Merge branch 'bugfix/lcd_spi_acquire_bus_v5.0' into 'release/v5.0'
spi_lcd: don't release bus if acquire failed (v5.0)

See merge request espressif/esp-idf!23037
2023-05-11 10:26:02 +08:00
Marius Vikhammer
1ef71b472c Merge branch 'contrib/github_pr_11163_v5.0' into 'release/v5.0'
Make custom bootloader message match actual output (GitHub PR) (v5.0)

See merge request espressif/esp-idf!23139
2023-05-11 10:25:46 +08:00
Marius Vikhammer
b0e5fc994d Merge branch 'bugfix/esp32_pico_v3_2_chip_info_v5.0' into 'release/v5.0'
system: fix esp32 chip info not listing esp32 pico v3-02 as having embedded spiram (v5.0)

See merge request espressif/esp-idf!23394
2023-05-11 10:24:59 +08:00
Marius Vikhammer
d20a9c1a93 Merge branch 'bugfix/static_ram_size_v5.0' into 'release/v5.0'
system: fixed USE_FIXED_STATIC_RAM_SIZE option (v5.0)

See merge request espressif/esp-idf!23108
2023-05-11 10:18:49 +08:00
Marius Vikhammer
e11829e550 Merge branch 'contrib/github_pr_11326_v5.0' into 'release/v5.0'
correct typo in reference to ESP-IDF repo (GitHub PR) (v5.0)

See merge request espressif/esp-idf!23552
2023-05-11 10:16:24 +08:00
Zim Kalinowski
afe2a2e9cd Merge branch 'bugfix/adds_iram_attr_for_some_esp_timer_apis_v5.0' into 'release/v5.0'
esp_timer: Adds IRAM_ATTR for esp_timer_restart and esp_timer_is_active (v5.0)

See merge request espressif/esp-idf!23306
2023-05-11 02:52:47 +08:00
Zim Kalinowski
525da26363 Merge branch 'feature/esp_ringbuf_place_functions_in_flash_v5.0' into 'release/v5.0'
esp_ringbuf: Added functions to linker.lf file which can be placed in Flash (v5.0)

See merge request espressif/esp-idf!23101
2023-05-11 02:51:59 +08:00
Zim Kalinowski
815c54c922 Merge branch 'contrib/github_pr_11028_v5.0' into 'release/v5.0'
Bugfix: Fix compile error for ESP32 FSM ULP GPIO Example (GitHub PR) (v5.0)

See merge request espressif/esp-idf!22988
2023-05-11 02:51:14 +08:00
Zim Kalinowski
9206cd4fc0 Merge branch 'feature/fix_load_efuses_from_flash_when_real_fe_is_on_v5.0' into 'release/v5.0'
efuse(virtual mode): Fix load_efuses_from_flash when FE is on (v5.0)

See merge request espressif/esp-idf!22968
2023-05-11 02:50:42 +08:00
Roland Dobai
eeed8c0b8c Merge branch 'contrib/github_pr_11296_v5.0' into 'release/v5.0'
Fix references to IDF_ADD_PATHS_EXTRAS before being assigned (GitHub PR) (v5.0)

See merge request espressif/esp-idf!23600
2023-05-11 00:38:00 +08:00
Roland Dobai
cd56601138 Merge branch 'esptool_extrav5.0' into 'release/v5.0'
feat(esptool): allow to set force for write_flash (v5.0)

See merge request espressif/esp-idf!23256
2023-05-11 00:37:14 +08:00
Roland Dobai
9c3a44b76e Merge branch 'monitor/new_kernel-5.0' into 'release/v5.0'
bug(monitor/console_reader): replace TIOCSTI with busy wait to suppport kernel > 6.2 (5.0)

See merge request espressif/esp-idf!23351
2023-05-11 00:36:55 +08:00
Roland Dobai
930539ef25 Merge branch 'bugfix/asyncio_progress_term_width_v5.0' into 'release/v5.0'
tools: fix progress output in asyncio.run with zero terminal width (v5.0)

See merge request espressif/esp-idf!23219
2023-05-11 00:35:38 +08:00
Roland Dobai
85a3cca773 Merge branch 'feature/hfp_ag_hints_v5.0' into 'release/v5.0'
tools: Update idf-py hints with Bluedroid HFP AG info[backport 5.0]

See merge request espressif/esp-idf!23153
2023-05-11 00:35:21 +08:00
Roland Dobai
86eff35977 Merge branch 'feature/update-OpenOCD-to-v0.12.0-esp32-20230419_v5.0' into 'release/v5.0'
tools: update OpenOCD version to v0.12.0-esp32-20230419 (v5.0)

See merge request espressif/esp-idf!23678
2023-05-11 00:33:25 +08:00
Mahavir Jain
37b3ed9ba2 Merge branch 'update/version_5_0_2' into 'release/v5.0'
Update version to 5.0.2

See merge request espressif/esp-idf!23674
2023-05-10 23:25:08 +08:00
Alexey Gerenkov
98fd372e91 tools: update OpenOCD version to v0.12.0-esp32-20230419 2023-05-10 13:18:56 +03:00
laokaiyao
95d32520b1 i2s_doc: fixed the data of stereo left/right state 2023-05-10 12:30:20 +08:00
laokaiyao
4dd5909b13 i2s_tdm: fixed half sample bit calculation and add check for slot mask 2023-05-10 12:28:52 +08:00
laokaiyao
f0c13fc7a8 i2s_std: fixed mclk check for 24-bit data and enable left alignment as default 2023-05-10 12:25:35 +08:00
morris
49c83f112d mcpwm: can't apply the same delay module to multiple generators
This is a hardware limitation, one delay module can only be used by one generator at one time.

Closes https://github.com/espressif/esp-idf/issues/11327
2023-05-10 10:10:16 +08:00
Marius Vikhammer
124a43e9ec build-system: replace ADDITIONAL_MAKE_CLEAN_FILES with ADDITIONAL_CLEAN_FILES
ADDITIONAL_MAKE_CLEAN_FILES is deprecated and only worked with make.
Replaced with the new ADDITIONAL_CLEAN_FILES (CMake 3.15) which also works with ninja.
2023-05-10 09:56:15 +08:00
Song Ruo Jing
f9f0dfa134 uart: Allow the users to not specify the source_clk in uart_config_t when calling uart_param_config 2023-05-09 12:09:18 +00:00
Omar Chebib
ed70f1c66b i2c: fix a bug in sda sample timing
* Closes https://github.com/espressif/esp-idf/issues/9777

This bug prevented SCL line to work properly after a NACK was received in master mode.
2023-05-06 08:05:32 +00:00
Marius Vikhammer
798dac6225 gdma: fixed crash from logging when using newlib nano
Newlib nano printf formatting do not support %z, and will crash if such an identifier
is followed by a %s indentifier.

Closes https://github.com/espressif/esp-idf/issues/9631
2023-05-06 13:48:48 +08:00
Justin Ong
e33ec673ed Fix references to IDF_ADD_PATHS_EXTRAS before being declared 2023-05-05 11:17:39 +02:00
wuzhenghui
1f39f07bca doc: update deep_sleep_wake_stub readme 2023-05-04 16:46:15 +08:00
wuzhenghui
4c3b8c13df feature: add wake up time cost info to deep_sleep_wake_stub example 2023-05-04 16:46:15 +08:00
jiangguangming
554400dbc5 docs: add wake stub example link to deep-sleep-stub.rst 2023-05-04 16:46:15 +08:00
jiangguangming
af7223727d ld: fix rtc.data rtc.bss section issues
1. rtc.data section: should include sbss srodata in rtc_wake_stub*.*
2. rtc.bss section: move rtc .bss .bss.* from rtc.data to rtc.bss
2023-05-04 16:46:15 +08:00
jiangguangming
72676d230a use LL function to get wakeup cause 2023-05-04 16:46:15 +08:00
jiangguangming
4261fd0940 rtc_time.c: simplify the rtc_time_get with LL function 2023-05-04 16:46:15 +08:00
jiangguangming
c8aa155086 deep sleep example: typo corrected in readme 2023-05-04 16:46:15 +08:00
jiangguangming
4f5f235208 add pytest for example deep sleep wake stub 2023-05-04 16:46:15 +08:00
jiangguangming
24a38e3153 feature: add example deep sleep wake stub
Closes https://github.com/espressif/esp-idf/issues/8208
2023-05-04 16:46:15 +08:00
jiangguangming
f6aafd3539 hal: add rtc_cntl LL function for wake stub 2023-05-04 16:46:15 +08:00
zwj
cd1b88c97e Fixed duplicate scan refresh cycle is not accurate after restarting scan on ESP32 2023-05-04 06:37:19 +00:00
wangmengyang
239e97ff7e bt: added coex adapter operation to get version of coexist module to ESP32 Bluetooth Controller 2023-05-04 06:37:19 +00:00
xiongweichao
a83b16f18d bt:Fixed esp32 controller bug
1. Fixed crash after controller disable and re-enable
2. Fixed the crash caused by processing the HCI_Read_Remote_Extented_Features command in the non-connected state
3. Fixed disconnection due to not handling lmp_unsniff_req in LC_WAIT_SNIFF_SUB_RSP state
4. Fixed crash caused by supervision timeout greater than sniff interval

Closes https://github.com/espressif/esp-idf/issues/11164
Closes https://github.com/espressif/esp-idf/issues/10835
2023-05-04 06:37:19 +00:00
xiongweichao
0624049a60 bt: Fixed the inconsistency between the indicator event received by the HF application layer and the actually received indicator.
Closes https://github.com/espressif/esp-idf/issues/6486
2023-05-04 14:12:56 +08:00
Laukik Hase
841e033de8 soc/esp32s3: Fix the SOC_MEM_INTERNAL_HIGH value
- As per the memory block diagram for ESP32-S3, the
  internal memory address ranges as follows:
  DRAM: 0x3FC88000 (== SOC_MEM_INTERNAL_LOW) <-> 0x3FCF0000
  IRAM: 0x40378000 <-> 0x403E0000 (== SOC_MEM_INTERNAL_HIGH)
2023-05-04 10:54:35 +05:30
Laukik Hase
e0bedd19ab esp_hw_support: Update memory ptr location/property checks
- to acknowledge the unused DCACHE added to DRAM for ESP32-S3

- For ESP32-S3, when the DCACHE size is set to 16 kB, the unused 48 kB is added to
  the heap in 2 blocks of 32 kB (from 0x3FCF0000) and 16 kB (from 0x3C000000).
- But, if we try allocating memory from the 16 kB block and run an `esp_ptr_internal`
  check on that memory pointer, it fails as the address block from 0x3C000000
  corresponds to the external memory symbols SOC_DROM_LOW and SOC_EXTRAM_DATA_LOW.
  (E.g. freertos - If the IDLE task stack buffer gets allocated from this region,
  the firmware will abort due to this failure).
- Thus, the checks `esp_ptr_internal`, `esp_ptr_in_drom` and `esp_ptr_byte_accessible`
  have been updated to acknowledge this memory as a part of the DRAM.

Co-authored-by: Mahavir Jain <mahavir@espressif.com>
2023-05-04 10:54:34 +05:30
Marius Vikhammer
a4bfa33109 docs: fix wrong link to esp-adf github issues in migration guide 2023-05-04 12:57:24 +08:00
laokaiyao
18d7ecc470 i2s: fix interrupt flag of pdm rx mode
Forgot to update in PR https://github.com/espressif/esp-idf/pull/10997
2023-05-04 04:23:30 +00:00
xiongweichao
b631852cb1 Fixed the issue that the a2dp source would not send the media start command due to the connection initiated by the peer device
Closes https://github.com/espressif/esp-idf/issues/11170
2023-05-04 12:10:33 +08:00
Myk Melez
7c67245da5 correct typo in reference to ESP-IDF repo
There's a reference to the ESP-ADF repo that looks like it was intended to be a reference to the ESP-IDF repo. This branch fixes the reference.
2023-05-04 11:43:17 +08:00
Jens Gutermuth
a2de1f0c67 improve thread safety in esp_timer
Inadequate locking in the esp_timer component allowed corruption
of the s_timers linked list:

1. timer_armed(timer) returns false
2. another task arms the timer and adds it to s_timers
3. the list is locked
4. the timer is inserted into s_timers again

The last step results in a loop in the s_timers list, which causes
an infinite loop when iterated. This change always locks the
list before checking if the timer is already armed avoiding
the data race.
2023-05-02 20:22:38 +02:00
isha.pardikar@espressif.com
3654dd0d6f NimBLE: Removed indicate flag from gatt db, added subscription case and corrected indentation
in spp_server example.
2023-05-02 05:58:00 +00:00
KonstantinKondrashov
11e71cd3eb fixup! efuse: Prevent burning XTS_AES and ECDSA keys into BLOCK9 (BLOCK_KEY5) 2023-05-01 06:23:23 +00:00
Mahavir Jain
da96a8a104 docs: add a note regarding EFuse Block9 key purpose quirk for some chips 2023-05-01 06:23:23 +00:00
KonstantinKondrashov
94ae902d78 efuse: Prevent burning XTS_AES and ECDSA keys into BLOCK9 (BLOCK_KEY5)
eFuse module has a hardware bug.
It is related to ESP32-C3, C6, S3, H2 chips:
    - BLOCK9 (BLOCK_KEY5) can not be used by XTS_AES keys.
For H2 chips, the BLOCK9 (BLOCK_KEY5) can not be used by ECDSA keys.
S2 does not have such a hardware bug.
2023-05-01 06:23:23 +00:00
Jin Chen
0f9ba10f4e ble:fix connection establishemnt timeout issue 2023-04-28 17:47:29 +08:00
Armando
08c77a7eaf sar: init sar periph power state 2023-04-27 10:52:38 +08:00
Adam Múdry
6bb750901d sdmmc: sdio combination cards correct setup
Co-authored-by: Mau Abata <mauabata@gmail.com>
Closes https://github.com/espressif/esp-idf/issues/9822
Closes https://github.com/espressif/esp-idf/issues/10280
2023-04-26 13:28:09 +02:00
Roman Leonov
424b5c32d1 usb_host: better debugging information during hcd_pipe_alloc() when usb_host_interface_claim() is being fulfiled. 2023-04-25 17:05:17 +02:00
isha.pardikar@espressif.com
8aff96d382 wifi_prov_mgr: Fixed memory leak after bluetooth stack was stopping. 2023-04-25 15:48:18 +05:30
Peter Dragun
1b03bfb3ea feat(monitor): flush terminal detection seq 2023-04-24 11:25:47 +02:00
Peter Dragun
f0dea7d9ff bug(monitor/ansi_converter): fix output decode detection 2023-04-24 11:25:47 +02:00
Peter Dragun
d47c309d7f fix(monitor/ansi_converter): do not catch status and cursor escape sequences 2023-04-24 11:25:47 +02:00
Peter Dragun
5746495450 bug(idf_monitor): fix color on windows with hints
Closes https://github.com/espressif/esp-idf/issues/9610
2023-04-24 11:25:32 +02:00
harshal.patil
35d466b814 mbedtls: fix ci failures for update v3.4.0
- While updating to mbedtls release/v3.4.0, building mbedtls/library/psa_crypto.c,
clang produced an unreachable-code warning, so added `-Wno-unreachable-code` compile option for clang.
- In `mbedtls/v3.4.0`, the ECDSA restartable sign and verify functions (`ecdsa.c`) were made public.
- But the `mbedtls_ecdsa_sign_det_restartable` function prototype was declared in the file `ecdsa.h`,
only when `MBEDTLS_ECDSA_SIGN_ALT` was not defined.
- added a patch in mbedtls library to fix it.
2023-04-24 12:07:10 +05:30
harshal.patil
c293708409 mbedtls: replace low-level sha apis with md apis in esp_ssl_tls 2023-04-24 12:03:55 +05:30
harshal.patil
8017e23611 mbedtls: Update config options as per release/v3.4.0
- Added a Kconfig option for the newly added mbedtls option MBEDTLS_PKCS7_C
2023-04-24 12:03:55 +05:30
harshal.patil
911c12b7f0 mbedtls: Update to release/v3.4.0
- Release Notes: https://github.com/Mbed-TLS/mbedtls/releases/tag/v3.4.0
2023-04-24 12:03:55 +05:30
Marius Vikhammer
b2c883f0c0 system: fix esp32 chip info not listing esp32 pico v3-02 as having embedded spiram
Closes https://github.com/espressif/esp-idf/issues/11233
2023-04-24 13:53:34 +08:00
Xiao Xufeng
8227ca97bd bootloader: enable super WDT and BOD reset on C2 2023-04-24 11:44:53 +08:00
Xiao Xufeng
6ce4fd9eab bootloader: cleanup ana reset config code 2023-04-24 11:44:53 +08:00
Xiao Xufeng
d43934f32d bootloader: fixed super watchdog not enabled issue on C3, S3, H4 2023-04-24 11:44:52 +08:00
Xiao Xufeng
1392cce5e1 bootloader: removed unavailable rtc features 2023-04-24 11:44:52 +08:00
Marius Vikhammer
07471019ef ulp-riscv: enable ULP-RISCV ADC example for esp32s2
ADC can now be used from the ULP-RISCV on S2 after the RTC power parameters were
fixed in a624d8d061

Closes https://github.com/espressif/esp-idf/issues/11052
Closes https://github.com/espressif/esp-idf/issues/11040
2023-04-24 10:12:09 +08:00
Peter Dragun
c8e800ce8a bug(console_reader): replace TIOCSTI with busy wait to suppport kernel > 6.2
Closes https://github.com/espressif/esp-idf/issues/11027
2023-04-21 15:35:36 +02:00
Darian Leung
b79cdd7e54 usb_host: Update docs and comments regarding first configuration enumeration
This commit updates some comments and documentation regarding changes made in
PR https://github.com/espressif/esp-idf/pull/11113.
2023-04-21 12:50:00 +08:00
Jason
62e1e5b765 Fix usb enumeration stage error for some device 2023-04-21 12:50:00 +08:00
Wang Zi Yan
72d9b9d94f docs: remove outdated section on custom toolchain for 64-bit time_t
Co-authored-by: Ivan Grokhotkov <ivan@espressif.com>
2023-04-20 17:42:32 +02:00
Suren Gabrielyan
58a3498305 docs: migrated documentetation from github.io to docs.espressif.com 2023-04-20 13:33:52 +04:00
KonstantinKondrashov
b1315b27c5 esp_timer: Adds IRAM_ATTR for esp_timer_restart and esp_timer_is_active
Closes https://github.com/espressif/esp-idf/issues/10522
Closes https://github.com/espressif/esp-idf/issues/10859
2023-04-20 14:49:12 +08:00
wuzhenghui
46a1253022 bugfix: fix deepsleep saradc leakage 2023-04-20 11:45:58 +08:00
Li Shuai
d84cdace52 sleep: fix sleep current issue caused by sar adc 2023-04-20 11:45:58 +08:00
chenjianhua
cceb2b4db6 bluedroid: support get bluetooth device name 2023-04-20 10:54:16 +08:00
chenjianhua
3eb5185b7b bluedroid: report status after clearing the BLE white list 2023-04-20 10:38:23 +08:00
chenjianhua
11147b0473 bluedroid: fix GATTC cache address save 2023-04-20 10:37:13 +08:00
chenjianhua
fa051d8dc4 bluedroid: fix adv and scan state conflict 2023-04-20 10:36:14 +08:00
Fu Hanxi
2a3ee80fba ci: add missing sdkconfig files 2023-04-20 10:35:16 +08:00
Armando
85980884d7 adc: improve adc power logic 2023-04-20 10:34:37 +08:00
Armando
1ebeea7763 sdmmc: I/O phase adjustments
1. Fix incorrect meaning of SDMMC.clock bits, synchronize the names
   with the TRM.
2. Choose input and output phases to satisfy typical timing
   requirements.
3. Move use_hold_reg setting into the host driver, since it is related
   to timing.

Closes https://github.com/espressif/esp-idf/issues/8521
Related to https://github.com/espressif/esp-idf/issues/8257
2023-04-19 15:38:57 +08:00
Fu Hanxi
15a76983a8 ci: add missing sdkconfig files 2023-04-19 15:38:53 +08:00
Peter Dragun
9c4282ac5f feat(esptool): allow to set force for write_flash 2023-04-18 13:47:09 +02:00
morris
2b9ca66752 spi_lcd: test spi lcd io can transfer color data to a fixed window region
also test the io tx_param and tx_color can skip the command phase
2023-04-18 10:46:52 +08:00
morris
f4d27b0f92 spi_lcd: maximum transfer size should respect bus configuration
Also this commit added the SPI_TRANS_CS_KEEP_ACTIVE flag for io_tx_color
2023-04-18 10:46:52 +08:00
Sudeep Mohanty
dc53189e46 esp_ringbuf: Added functions to linker.lf file which can be placed in Flash
This commit adds symbols from the ringbuf.c file which can be placed in
Flash in order to free up IRAM space.
2023-04-17 16:11:23 +02:00
Frantisek Hrbata
8be7a05487 tools: fix progress output in asyncio.run with zero terminal width
Currently the forced progress in RunTool is trying to fit the output
line into a terminal width, but it doesn't take into an account a
situation when the terminal width is reported as zero. This manifests
when running in docker image with redirected output and can be seen
in the github workflow output for esp-idf-ci-action.

docker run --rm -t my_ubuntu_esp python3 -c 'import os,sys; print(os.get_terminal_size(), sys.stdout.isatty())'
os.terminal_size(columns=238, lines=59) True

vs

docker run --rm -t my_ubuntu_esp python3 -c 'import os,sys; print(os.get_terminal_size(), sys.stdout.isatty())' | tee
os.terminal_size(columns=0, lines=0) True

Since the output is reported as tty and the terminal width as 0, the
fit_text_in_terminal() function returns empty string. I also verified this
by running idf.py build inside a testing docker image.

This fix adjusts the fit_text_in_terminal() function to return original
line if the terminal width is zero.

Also simplify the progress print and use same approach as ninja
https://github.com/ninja-build/ninja/blob/master/src/line_printer.cc#L66

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-04-15 12:22:37 +02:00
chenjianxing
62d4adb482 esp_wifi: fix espnow example add peer fail when config channel
Closes https://github.com/espressif/esp-idf/issues/9592
2023-04-13 10:55:53 +08:00
Mahavir Jain
1a389f4ebb Fix coverity warning in esp-tls component
The regressions was introduced in the commit: 0abd1cb51f
2023-04-12 17:23:47 +05:30
Mark H. Spatz
ee403a1bb6 [esp-tls] Add addr_family option to esp_tls_cfg_t 2023-04-12 16:02:18 +05:30
wangjialiang
b9f7049bc5 ble_mesh: stack: Update the heartbeat filter entry add/remove handling 2023-04-12 16:11:24 +08:00
liqigan
93c8e1ff5a tools: Update idf-py hints with Bluedroid HFP AG info 2023-04-11 20:38:57 +08:00
hasheddan
5cdc107a90 Make custom bootloader message match actual output
Fixes the custom bootloader README.md so that the example output matches
what will actually be output by default in the custom bootloader.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2023-04-11 13:41:30 +08:00
Marius Vikhammer
0ec457bcbb docs: remove link to NS4150 datasheet 2023-04-07 12:00:14 +08:00
Xiao Xufeng
80e4b67fd1 himem: Fixed incorrect out_ptr when calling esp_himem_map range_offset non-zero
Closes: https://github.com/espressif/esp-idf/issues/5639
2023-04-06 01:46:20 +08:00
Kapil Gupta
c4941e2e75 wpa_supplicant: Get WPS credential in passphrase format
Closes https://github.com/espressif/esp-idf/issues/10339
2023-04-05 16:05:44 +05:30
Tomas Rezucha
842e8a9889 usb: Update host CDC examples 2023-04-05 07:54:29 +02:00
isha.pardikar@espressif.com
dbeeaf6a21 NimBLE : Fixed config options in esp_nimble_cfg.h 2023-04-04 17:39:18 +05:30
Yuan Mingfu
3cc5ad7ac4 bugfix: deinit ble for specifies ESP_BT_MODE_BTDM 2023-04-04 18:04:12 +08:00
chenjianxing
3f4e4cf964 esp_wifi: fix potential issue when tx fragment pkt. 2023-04-03 17:50:02 +08:00
morris
3afa39b408 spi_lcd: don't release bus if acquire failed
Closes https://github.com/espressif/esp-idf/issues/10952
2023-04-03 13:15:28 +08:00
laokaiyao
3c4c1fe010 lcd_i2c: reduce recommended link size
Closes: https://github.com/espressif/esp-idf/issues/11015
2023-04-03 09:41:18 +08:00
muhaidong
3537da8d85 smartconfig: fix the issue of sending failure and exit 2023-03-31 17:23:31 +08:00
morris
5d11967f2e rmt: calarify the meaning of mem_block_symbols in DMA and non-DMA mode 2023-03-31 09:59:32 +08:00
Kapil Gupta
f44ce0960a wpa_supplicant: Update WPS API documentation 2023-03-30 20:04:53 +05:30
chenjianxing
97225286ca esp_wifi: improve tx robust for c2/c3/s3 2023-03-30 21:46:07 +08:00
isha.pardikar@espressif.com
be4fca4fb4 NimbLE: Added multi advertising example. 2023-03-30 17:56:52 +05:30
morris
e06bea0445 rmt: use gpio_num_t to define gpio number 2023-03-30 15:52:08 +08:00
Jin Cheng
02bfc34aa0 Optimized the document for GAP API:
`esp_bt_gap_set_cod`
2023-03-30 14:16:02 +08:00
isha.pardikar@espressif.com
a5b20d3d52 NimBLE: Added support for writing data more than BLE_ATT_ATTR_MAX_LEN 2023-03-30 11:26:52 +05:30
isha.pardikar@espressif.com
9dc5b6b02d NimBLE: Added configurable option for resolving peer address in bleprph example
Closes IDFGH-9552
2023-03-30 11:00:35 +05:30
Jakob Hasse
d0b8fcb371 bugfix: made C code C++ compatible 2023-03-30 11:28:23 +08:00
Kampi
e66a1755df bugfix: Change namespace variable to nvs_namespace (C++ compatibility)
Closes https://github.com/espressif/esp-idf/pull/11028
2023-03-30 11:28:23 +08:00
David Cermak
a3ca732e5d esp-netif: Fix non-lwip build using esp_netif loopback
This partially backports 8142a6f9fc633c5f3ef461af41528eb5a6794755.
allowing esp_netif build with loopback only

Closes https://github.com/espressif/esp-idf/issues/10587
2023-03-29 11:35:22 +00:00
KonstantinKondrashov
76291d0095 efuse: Fix load_efuses_from_flash when FE is on
esp_efuse_utility_load_efuses_from_flash() read emul_efuse
as an encrypted partition, but that is not correct,
this partition was never encrypted.
Need to read it as not encrypted partition.

Fxed the case: If FE is already on then EFUSE VIRT mode can work with it.

Closes https://github.com/espressif/esp-idf/issues/10929
2023-03-29 14:58:50 +08:00
David Cermak
98777343bd lwip:esp_netif: Send Periodic Gratuitous ARP only on valid IPv4
It was possible that the device would send a Gratuitous ARP before
acquiring a valid address, advertising it has 0.0.0.0 address.
2023-03-29 07:25:31 +02:00
yn386
6cfc016dc5 esp_psram: fix compile error for SPI PSRAM 2T mode 2023-03-29 11:42:51 +08:00
Ondrej Kosta
f241f61c48 esp_eth: DM9051 stop/start issue fixed 2023-03-28 17:41:39 +02:00
Marius Vikhammer
f1070229f8 system: fixed USE_FIXED_STATIC_RAM_SIZE option
The USE_FIXED_STATIC_RAM_SIZE was not actually causing the heap to start
at a fixed address.

Closes https://github.com/espressif/esp-idf/issues/10270
Closes https://github.com/espressif/esp-idf/issues/10271
2023-03-24 12:33:14 +08:00
Ondrej
9d7132c330 esp_eth: allowed DM9051 to receive multicast packets
Removed extra PHY status link checks from DM9051 MAC layer
2023-03-21 16:20:24 +00:00
2690 changed files with 273922 additions and 321982 deletions

View File

@@ -13,7 +13,7 @@ stages:
workflow:
rules:
# Disable those non-protected push triggered pipelines
- if: '$CI_COMMIT_REF_NAME != "master" && $CI_COMMIT_BRANCH !~ /^release\/v/ && $CI_COMMIT_TAG !~ /^v\d+\.\d+(\.\d+)?($|-)/ && $CI_PIPELINE_SOURCE == "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"'
when: never
# when running merged result pipelines, it would create a temp commit id. use $CI_MERGE_REQUEST_SOURCE_BRANCH_SHA instead of $CI_COMMIT_SHA.
# Please use PIPELINE_COMMIT_SHA at all places that require a commit sha
@@ -54,10 +54,6 @@ variables:
BATCH_BUILD: "1"
V: "0"
CHECKOUT_REF_SCRIPT: "$CI_PROJECT_DIR/tools/ci/checkout_project_ref.py"
PYTHON_VER: 3.7.10
CLANG_TIDY_RUNNER_PROJ: 2107 # idf/clang-tidy-runner
IDF_BUILD_APPS_PROJ: 2818 # espressif/idf-build-apps
# Docker images
BOT_DOCKER_IMAGE_TAG: ":latest"
@@ -73,9 +69,6 @@ variables:
PRE_COMMIT_IMAGE: "$CI_DOCKER_REGISTRY/esp-idf-pre-commit:1"
# target test config file, used by assign test job
CI_TARGET_TEST_CONFIG_FILE: "$CI_PROJECT_DIR/.gitlab/ci/target-test.yml"
# target test repo parameters
TEST_ENV_CONFIG_REPO: "https://gitlab-ci-token:${BOT_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/qa/ci-test-runner-configs.git"
@@ -99,6 +92,9 @@ variables:
# This is used only if CI_PYTHON_TOOL_REPO is not empty.
CI_PYTHON_TOOL_BRANCH: ""
# Set this variable to specify the file name for the known failure cases.
KNOWN_FAILURE_CASES_FILE_NAME: "5.0.txt"
IDF_CI_BUILD: 1
cache:
@@ -132,8 +128,8 @@ cache:
export PYTHONPATH="$IDF_PATH/tools:$IDF_PATH/tools/esp_app_trace:$IDF_PATH/components/partition_table:$IDF_PATH/tools/ci/python_packages:$PYTHONPATH"
.setup_tools_and_idf_python_venv: &setup_tools_and_idf_python_venv |
# must use after setup_tools_except_target_test
# otherwise the export.sh won't work properly
# Since the version 3.21 CMake passes source files and include dirs to ninja using absolute paths.
$IDF_PATH/tools/idf_tools.py --non-interactive install cmake
# download constraint file for dev
if [[ -n "$CI_PYTHON_CONSTRAINT_BRANCH" ]]; then
@@ -194,6 +190,10 @@ before_script:
.before_script_macos:
before_script:
# macos is running shell executor, which means it would use
# the system installed /usr/local/bin/python3 by default.
# Ensure pyenv and PYENV_VERSION installed
- eval "$(pyenv init -)"
- *common-before_scripts
# On macOS, these tools need to be installed
- export IDF_TOOLS_PATH="${HOME}/.espressif_runner_${CI_RUNNER_ID}_${CI_CONCURRENT_ID}"
@@ -228,6 +228,7 @@ include:
- '.gitlab/ci/pre_check.yml'
- '.gitlab/ci/build.yml'
- '.gitlab/ci/assign-test.yml'
- '.gitlab/ci/integration_test.yml'
- '.gitlab/ci/host-test.yml'
- '.gitlab/ci/target-test.yml'
- '.gitlab/ci/deploy.yml'

View File

@@ -21,11 +21,6 @@
- [Shell Script Related](#shell-script-related)
- [Manifest File to Control the Build/Test apps](#manifest-file-to-control-the-buildtest-apps)
- [Grammar](#grammar)
- [Operands](#operands)
- [Operators](#operators)
- [Limitation:](#limitation)
- [How does it work?](#how-does-it-work)
- [Example](#example)
## General Workflow
@@ -56,7 +51,7 @@
- `example_test[_esp32/esp32s2/...]`
- `fuzzer_test`
- `host_test`
- `integration_test[_wifi/ble]`
- `integration_test`
- `iperf_stress_test`
- `macos`
- `macos_test`
@@ -144,10 +139,11 @@ check if there's a suitable `.if-<if-anchor-you-need>` anchor
1. if there is, create a rule following [`rules` Template Naming Rules](#rules-template-naming-rules).For detail information, please refer to [GitLab Documentation `rules-if`](https://docs.gitlab.com/ee/ci/yaml/README.html#rulesif). Here's an example.
```yaml
.rules:dev:
.rules:patterns:python-files:
rules:
- <<: *if-trigger
- <<: *if-protected
- <<: *if-dev-push
changes: *patterns-python-files
```
2. if there isn't

View File

@@ -5,6 +5,7 @@
- assign_test
variables:
SUBMODULES_TO_FETCH: "none"
CI_TARGET_TEST_CONFIG_FILE: "$CI_PROJECT_DIR/.gitlab/ci/target-test.yml"
artifacts:
paths:
- ${TEST_DIR}/test_configs/
@@ -80,34 +81,3 @@ assign_unit_test:
variables:
TEST_TYPE: unit_test
TEST_DIR: components/idf_test/unit_test
assign_integration_test:
extends:
- .assign_test_template
- .rules:test:integration_test
- .before_script_minimal
image: ${CI_INTEGRATION_TEST_ENV_IMAGE}
needs:
- build_ssc_esp32
- build_ssc_esp32c3
- build_ssc_esp32c2
artifacts:
paths:
- $TEST_DIR/test_configs
expire_in: 1 week
variables:
TEST_DIR: ${CI_PROJECT_DIR}/tools/ci/integration_test
BUILD_DIR: ${CI_PROJECT_DIR}/SSC/ssc_bin
INTEGRATION_TEST_CASE_PATH: "${CI_PROJECT_DIR}/auto_test_script/TestCaseFiles"
ASSIGN_TEST_CASE_SCRIPT: "${CI_PROJECT_DIR}/auto_test_script/bin/CIAssignTestCases.py"
PYTHONPATH: ${CI_PROJECT_DIR}/auto_test_script/packages
GIT_LFS_SKIP_SMUDGE: 1
script:
- add_gitlab_ssh_keys
# clone test script to assign tests
- retry_failed git clone ${CI_AUTO_TEST_SCRIPT_REPO_URL} auto_test_script
- python $CHECKOUT_REF_SCRIPT auto_test_script auto_test_script
- cd auto_test_script
- ./tools/ci/setup_idfci.sh
# assign integration test cases
- python ${ASSIGN_TEST_CASE_SCRIPT} -t ${INTEGRATION_TEST_CASE_PATH} -c $CI_TARGET_TEST_CONFIG_FILE -b ${BUILD_DIR} -o $TEST_DIR/test_configs

View File

@@ -99,6 +99,7 @@
- "**/build*/bootloader/*.bin"
- "**/build*/bootloader/*.elf"
- "**/build*/partition_table/*.bin"
- "**/build*/project_description.json"
- list_job_*.json
- size_info.txt
when: always
@@ -314,50 +315,6 @@ fast_template_app:
BUILD_COMMAND_ARGS: "-p"
#------------------------------------------------------------------------------
.build_ssc_template:
extends:
- .build_template
- .rules:build:integration_test
artifacts:
paths:
- SSC/ssc_bin
expire_in: 1 week
script:
- retry_failed git clone $SSC_REPOSITORY
- python $CHECKOUT_REF_SCRIPT SSC SSC
- cd SSC
- MAKEFLAGS= ./ci_build_ssc.sh $TARGET_NAME
build_ssc_esp32:
extends: .build_ssc_template
parallel: 3
variables:
TARGET_NAME: "ESP32"
build_ssc_esp32s2:
extends: .build_ssc_template
parallel: 2
variables:
TARGET_NAME: "ESP32S2"
build_ssc_esp32c2:
extends: .build_ssc_template
parallel: 2
variables:
TARGET_NAME: "ESP32C2"
build_ssc_esp32c3:
extends: .build_ssc_template
parallel: 3
variables:
TARGET_NAME: "ESP32C3"
build_ssc_esp32s3:
extends: .build_ssc_template
parallel: 3
variables:
TARGET_NAME: "ESP32S3"
.build_esp_idf_tests_cmake_template:
extends:
- .build_cmake_template
@@ -477,14 +434,6 @@ build_examples_cmake_esp32c3:
IDF_TARGET: esp32c3
TEST_DIR: examples
build_examples_cmake_esp32h2:
extends:
- .build_cmake_template
- .rules:build:example_test-esp32h2
variables:
IDF_TARGET: esp32h2
TEST_DIR: examples
build_test_apps_esp32:
extends:
- .build_cmake_template
@@ -537,6 +486,7 @@ build_test_apps_esp32c2:
needs:
- job: fast_template_app
artifacts: false
optional: true
script:
- ${IDF_PATH}/tools/ci/test_configure_ci_environment.sh
- rm -rf test_build_system
@@ -558,6 +508,19 @@ test_build_system_cmake_macos:
- macos_shell
variables:
SHELL_TEST_SCRIPT: test_build_system_cmake.sh
PYENV_VERSION: "3.7"
script:
- ${IDF_PATH}/tools/ci/test_configure_ci_environment.sh
- rm -rf test_build_system
- mkdir test_build_system
- cd test_build_system
# copy-paste the script from .test_build_system_template
# since `ESP_IDF_TEMPLATE_GIT` is a group variable and has higher precedence than job variable
# export here to override the group variable
#
# Clone the template app from github for macos runners
- export ESP_IDF_TEMPLATE_GIT="https://github.com/espressif/esp-idf-template.git"
- ${IDF_PATH}/tools/ci/${SHELL_TEST_SCRIPT}
test_build_system_spaces:
extends: .test_build_system_template

View File

@@ -68,16 +68,6 @@
- "build:{0}"
- build:target_test
build:integration_test:
labels:
- build
patterns:
- build_components
- build_system
included_in:
- build:target_test
####################
# Target Test Jobs #
####################
@@ -156,23 +146,6 @@ build:integration_test:
- "build:example_test"
- build:target_test
"test:integration_test_{0}":
matrix:
- - wifi
- ble
labels:
- integration_test_{0}
- integration_test
- target_test
patterns:
- integration_test-{0}
- target_test-{0}
# - maybe others
included_in:
- test:integration_test
- build:integration_test
- build:target_test
"test:host_test":
labels:
- host_test

View File

@@ -32,50 +32,11 @@ push_to_github:
extends:
- .deploy_job_template
- .before_script_minimal
- .rules:protected-no_label
dependencies: []
- .rules:push_to_github
needs:
- check_submodule_sync
script:
- add_github_ssh_keys
- git remote remove github &>/dev/null || true
- git remote add github git@github.com:espressif/esp-idf.git
- tools/ci/push_to_github.sh
deploy_test_result:
extends:
- .deploy_job_template
- .before_script_minimal
- .rules:ref:master-always
image: $CI_DOCKER_REGISTRY/bot-env:1
dependencies: []
tags:
- deploy_test
artifacts:
when: always
paths:
- ${CI_PROJECT_DIR}/test-management/*.log
expire_in: 1 week
variables:
BOT_ACCOUNT_CONFIG_FILE: "${CI_PROJECT_DIR}/test-management/Config/Account.local.yml"
TEST_RESULTS_PATH: "${CI_PROJECT_DIR}/TEST_RESULTS"
script:
- add_gitlab_ssh_keys
- export GIT_SHA=$(echo ${CI_COMMIT_SHA} | cut -c 1-8)
- export REV_COUNT=$(git rev-list --count ${GIT_SHA} --)
- export SUMMARY="IDF CI test result for $GIT_SHA (r${REV_COUNT})"
# Download test result
- export PYTHONPATH="$IDF_PATH/tools:$IDF_PATH/tools/ci/python_packages:$PYTHONPATH"
- python3 ${IDF_PATH}/tools/ci/get_all_test_results.py --path ${TEST_RESULTS_PATH} --include_retried
- if [[ -z $(find ${TEST_RESULTS_PATH} -name "*.xml") ]]; then exit 0; fi
# Clone test-management repo
- retry_failed git clone $TEST_MANAGEMENT_REPO
- python3 $CHECKOUT_REF_SCRIPT test-management test-management
- cd test-management
- echo $BOT_JIRA_ACCOUNT > ${BOT_ACCOUNT_CONFIG_FILE}
# Make sure all requirements are installed
- pip3 install -r requirements.txt
# Update test cases
- python3 ImportTestCase.py $JIRA_TEST_MANAGEMENT_PROJECT from_xml -d ${TEST_RESULTS_PATH} -r $GIT_SHA -l IDFCI
# update test results
- python3 ImportTestResult.py -r "$GIT_SHA (r${REV_COUNT})" -j $JIRA_TEST_MANAGEMENT_PROJECT -s "$SUMMARY" -l IDFCI -p ${TEST_RESULTS_PATH} --pipeline_url ${CI_PIPELINE_URL}
# May need a long time to upload all test results.
timeout: 4 hours

View File

@@ -17,6 +17,9 @@
.if-protected-no_label: &if-protected-no_label
if: '($CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_BRANCH =~ /^release\/v/ || $CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/) && $BOT_TRIGGER_WITH_LABEL == null'
.if-qa-test-tag: &if-qa-test-tag
if: '$CI_COMMIT_TAG =~ /^qa-test/'
.if-label-build_docs: &if-label-build_docs
if: '$BOT_LABEL_BUILD_DOCS || $CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*build_docs(?:,[^,\n\r]+)*$/i'
@@ -27,10 +30,12 @@
if: '$BOT_LABEL_DOCS_FAST || $CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*docs_fast(?:,[^,\n\r]+)*$/i'
.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_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event")'
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")'
.doc-rules:build:docs:
rules:
- <<: *if-qa-test-tag
when: never
- <<: *if-protected
- <<: *if-label-build_docs
- <<: *if-label-docs

View File

@@ -265,25 +265,6 @@ test_efuse_table_on_host_esp32h2:
variables:
IDF_TARGET: esp32h2
test_espcoredump:
extends: .host_test_template
artifacts:
when: always
paths:
- components/espcoredump/test/**/.coverage
- components/espcoredump/test/**/output
expire_in: 1 week
variables:
IDF_COREDUMP_ELF_REPO: "https://gitlab-ci-token:${BOT_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/idf/idf-coredump-elf.git"
IDF_COREDUMP_ELF_TAG: idf-20220928
# install CMake version specified in tools.json
SETUP_TOOLS_LIST: "all"
script:
- eval $($IDF_PATH/tools/idf_tools.py export)
- retry_failed git clone ${IDF_COREDUMP_ELF_REPO} -b $IDF_COREDUMP_ELF_TAG
- cd ${IDF_PATH}/components/espcoredump/test/
- ./test_espcoredump.sh ${CI_PROJECT_DIR}/idf-coredump-elf
test_logtrace_proc:
extends: .host_test_template
artifacts:

View File

@@ -0,0 +1,69 @@
# generate dynamic integration pipeline by `idf-integration-ci` project
.patterns-integration_test: &patterns-integration_test
# add all possible patterns to make sure `gen_integration_pipeline` can be triggered.
# fine-grained control will be done while generating the pipeline
# find `patterns` in `idf-integration-ci` project
- "components/**/*"
- "tools/**/*"
- ".gitlab-ci.yml"
- ".gitlab/ci/common.yml"
- ".gitlab/ci/integration_test.yml"
- ".gitmodules"
- "CMakeLists.txt"
- "install.sh"
- "export.sh"
- "Kconfig"
- "sdkconfig.rename"
# Simplify the rules
.integration_test_rules:
rules:
- if: '$CI_PIPELINE_SOURCE != "merge_request_event"'
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
changes: *patterns-integration_test
# support trigger by ci labels
- if: '$CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*target_test(?:,[^,\n\r]+)*$/i'
- if: '$CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*integration_test(?:,[^,\n\r]+)*$/i'
- if: '$CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*build(?:,[^,\n\r]+)*$/i'
gen_integration_pipeline:
extends:
- .before_script_minimal
- .integration_test_rules
image: ${CI_INTEGRATION_ASSIGN_ENV}
stage: assign_test
cache: []
tags:
- assign_test
variables:
SUBMODULES_TO_FETCH: "none"
GIT_LFS_SKIP_SMUDGE: 1
needs:
- job: fast_template_app
artifacts: false
optional: true
artifacts:
paths:
- idf-integration-ci/child_pipeline/
expire_in: 2 weeks
script:
- add_gitlab_ssh_keys
- retry_failed git clone ${CI_GEN_INTEGRATION_PIPELINE_REPO} idf-integration-ci
- python $CHECKOUT_REF_SCRIPT idf-integration-ci idf-integration-ci
- cd idf-integration-ci
- python tools/generate_child_pipeline.py -o child_pipeline/
child_integration_test_pipeline:
extends:
- .integration_test_rules
stage: assign_test
needs:
- gen_integration_pipeline
trigger:
include:
- artifact: idf-integration-ci/child_pipeline/pipeline.yml
job: gen_integration_pipeline
forward:
yaml_variables: false
strategy: depend

View File

@@ -17,13 +17,15 @@ check_pre_commit_master_release:
- .rules:protected
script:
- git diff-tree --no-commit-id --name-only -r $PIPELINE_COMMIT_SHA | xargs pre-commit run --files
- pre-commit run --hook-stage post-commit validate-sbom-manifest
check_pre_commit_MR:
extends:
- .check_pre_commit_template
- .rules:dev
- .rules:mr
script:
- python ${CI_PROJECT_DIR}/tools/ci/ci_get_mr_info.py files ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME} | xargs pre-commit run --files
- pre-commit run --hook-stage post-commit validate-sbom-manifest
check_version:
# Don't run this for feature/bugfix branches, so that it is possible to modify
@@ -68,6 +70,7 @@ check_blobs:
- IDF_TARGET=esp32s2 $IDF_PATH/components/esp_wifi/test_md5/test_md5.sh
- IDF_TARGET=esp32s3 $IDF_PATH/components/esp_wifi/test_md5/test_md5.sh
- IDF_TARGET=esp32c3 $IDF_PATH/components/esp_wifi/test_md5/test_md5.sh
- IDF_TARGET=esp32c2 $IDF_PATH/components/esp_wifi/test_md5/test_md5.sh
# Check if Wi-Fi, PHY, BT blobs contain references to specific symbols
- bash $IDF_PATH/tools/ci/check_blobs.sh

View File

@@ -51,8 +51,6 @@
- "tools/ci/ci_build_apps.py"
.patterns-custom_test: &patterns-custom_test
- "components/espcoredump/**/*"
- "tools/ci/python_packages/gitlab_api.py"
- "tools/ci/python_packages/tiny_test_fw/**/*"
- "tools/ci/python_packages/ttfw_idf/**/*"
@@ -85,19 +83,6 @@
- "components/esp_phy/**/*"
- "components/wpa_supplicant/**/*"
.patterns-integration_test-ble: &patterns-integration_test-ble
- "tools/ci/python_packages/gitlab_api.py"
- "tools/ci/integration_test/**/*"
- "components/bt/controller/lib_esp32"
- "components/bt/controller/lib_esp32c3_family"
- "components/bt/controller/lib_esp32h2/esp32h2-bt-lib"
- "components/bt/host/nimble/nimble"
- "components/esp_phy/lib"
.patterns-integration_test-wifi: &patterns-integration_test-wifi
- "tools/ci/python_packages/gitlab_api.py"
- "tools/ci/integration_test/**/*"
.patterns-host_test: &patterns-host_test
- ".gitlab/ci/host-test.yml"
@@ -153,6 +138,8 @@
- "tools/split_paths_by_spaces.py"
- "tools/check_python_dependencies.py"
.patterns-windows: &patterns-windows
- "tools/windows/**/*"
@@ -258,13 +245,19 @@
if: '$CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/'
.if-protected: &if-protected
if: '($CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_BRANCH =~ /^release\/v/ || $CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/)'
if: '($CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_BRANCH =~ /^release\/v/ || $CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/) || $CI_COMMIT_TAG =~ /^qa-test/'
.if-protected-no_label: &if-protected-no_label
if: '($CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_BRANCH =~ /^release\/v/ || $CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/) && $BOT_TRIGGER_WITH_LABEL == null'
.if-qa-test-tag: &if-qa-test-tag
if: '$CI_COMMIT_TAG =~ /^qa-test/'
.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_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event")'
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-merge_request: &if-merge_request
if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
.if-schedule: &if-schedule
if: '$CI_PIPELINE_SOURCE == "schedule"'
@@ -294,10 +287,17 @@
rules:
- <<: *if-protected
.rules:protected-no_label:
.rules:push_to_github:
rules:
- <<: *if-qa-test-tag
when: never
- <<: *if-protected-no_label
.rules:mr:
rules:
- <<: *if-merge_request
### Patterns ###
.rules:patterns:python-cache:
rules:
- <<: *if-dev-push
@@ -339,15 +339,6 @@
- <<: *if-dev-push
changes: *patterns-python-files
.rules:patterns:static-code-analysis-preview:
rules:
- <<: *if-dev-push
changes: *patterns-c-files
- <<: *if-dev-push
changes: *patterns-python-files
- <<: *if-dev-push
changes: *patterns-sonarqube-files
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# DO NOT place comments or maintain any code from this line
#
@@ -435,15 +426,6 @@
.if-label-host_test: &if-label-host_test
if: '$BOT_LABEL_HOST_TEST || $CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*host_test(?:,[^,\n\r]+)*$/i'
.if-label-integration_test: &if-label-integration_test
if: '$BOT_LABEL_INTEGRATION_TEST || $CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*integration_test(?:,[^,\n\r]+)*$/i'
.if-label-integration_test_ble: &if-label-integration_test_ble
if: '$BOT_LABEL_INTEGRATION_TEST_BLE || $CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*integration_test_ble(?:,[^,\n\r]+)*$/i'
.if-label-integration_test_wifi: &if-label-integration_test_wifi
if: '$BOT_LABEL_INTEGRATION_TEST_WIFI || $CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*integration_test_wifi(?:,[^,\n\r]+)*$/i'
.if-label-iperf_stress_test: &if-label-iperf_stress_test
if: '$BOT_LABEL_IPERF_STRESS_TEST || $CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*iperf_stress_test(?:,[^,\n\r]+)*$/i'
@@ -1060,27 +1042,6 @@
- <<: *if-dev-push
changes: *patterns-target_test-wifi
.rules:build:integration_test:
rules:
- <<: *if-revert-branch
when: never
- <<: *if-protected
- <<: *if-label-build
- <<: *if-label-integration_test
- <<: *if-label-integration_test_ble
- <<: *if-label-integration_test_wifi
- <<: *if-label-target_test
- <<: *if-dev-push
changes: *patterns-build_components
- <<: *if-dev-push
changes: *patterns-build_system
- <<: *if-dev-push
changes: *patterns-integration_test-ble
- <<: *if-dev-push
changes: *patterns-integration_test-wifi
- <<: *if-dev-push
changes: *patterns-target_test-wifi
.rules:build:macos:
rules:
- <<: *if-revert-branch
@@ -1120,9 +1081,6 @@
- <<: *if-label-example_test_esp32h2
- <<: *if-label-example_test_esp32s2
- <<: *if-label-example_test_esp32s3
- <<: *if-label-integration_test
- <<: *if-label-integration_test_ble
- <<: *if-label-integration_test_wifi
- <<: *if-label-iperf_stress_test
- <<: *if-label-lan8720
- <<: *if-label-target_test
@@ -1156,10 +1114,6 @@
changes: *patterns-example_test-usb
- <<: *if-dev-push
changes: *patterns-example_test-wifi
- <<: *if-dev-push
changes: *patterns-integration_test-ble
- <<: *if-dev-push
changes: *patterns-integration_test-wifi
- <<: *if-dev-push
changes: *patterns-target_test-adc
- <<: *if-dev-push
@@ -2981,52 +2935,6 @@
- <<: *if-dev-push
changes: *patterns-host_test
.rules:test:integration_test:
rules:
- <<: *if-revert-branch
when: never
- <<: *if-protected
- <<: *if-label-build-only
when: never
- <<: *if-label-integration_test
- <<: *if-label-integration_test_ble
- <<: *if-label-integration_test_wifi
- <<: *if-label-target_test
- <<: *if-dev-push
changes: *patterns-integration_test-ble
- <<: *if-dev-push
changes: *patterns-integration_test-wifi
- <<: *if-dev-push
changes: *patterns-target_test-wifi
.rules:test:integration_test_ble:
rules:
- <<: *if-revert-branch
when: never
- <<: *if-protected
- <<: *if-label-build-only
when: never
- <<: *if-label-integration_test
- <<: *if-label-integration_test_ble
- <<: *if-label-target_test
- <<: *if-dev-push
changes: *patterns-integration_test-ble
.rules:test:integration_test_wifi:
rules:
- <<: *if-revert-branch
when: never
- <<: *if-protected
- <<: *if-label-build-only
when: never
- <<: *if-label-integration_test
- <<: *if-label-integration_test_wifi
- <<: *if-label-target_test
- <<: *if-dev-push
changes: *patterns-integration_test-wifi
- <<: *if-dev-push
changes: *patterns-target_test-wifi
.rules:test:submodule:
rules:
- <<: *if-revert-branch

View File

@@ -6,20 +6,15 @@ clang_tidy_check:
image: ${CLANG_STATIC_ANALYSIS_IMAGE}
artifacts:
paths:
- $OUTPUT_DIR
- clang_tidy_reports/
when: always
expire_in: 1 day
variables:
CLANG_TIDY_DIRS_TXT: ${CI_PROJECT_DIR}/tools/ci/clang_tidy_dirs.txt
RULES_FILE: ${CI_PROJECT_DIR}/tools/ci/static-analysis-rules.yml
OUTPUT_DIR: ${CI_PROJECT_DIR}/clang_tidy_reports
IDF_TOOLCHAIN: clang
script:
- internal_pip_install $CLANG_TIDY_RUNNER_PROJ pyclang
- export PATH=$PATH:$(python -c "import sys; print(sys.executable.rsplit('/', 1)[0])")
- dirs=$(cat ${CLANG_TIDY_DIRS_TXT} | while read line; do echo ${CI_PROJECT_DIR}/${line}; done | xargs)
- run_cmd idf_clang ${dirs}
--output-path ${OUTPUT_DIR}
--limit-file ${RULES_FILE}
- run_cmd idf_clang_tidy $(cat tools/ci/clang_tidy_dirs.txt | xargs)
--output-path clang_tidy_reports
--limit-file tools/ci/static-analysis-rules.yml
--xtensa-include-dir
--run-clang-tidy-py ${RUN_CLANG_TIDY_PY}
@@ -43,87 +38,3 @@ check_pylint:
export files=$(find . -iname "*.py" -print);
fi
- pylint --rcfile=.pylintrc $files -r n --output-format=parseable > pylint-report.txt || exit 0
# build stage
# Sonarqube related jobs put here for this reason:
# Here we have two jobs. code_quality_check and code_quality_report.
#
# code_quality_check will analyze the code changes between your MR and
# code repo stored in sonarqube server. The analysis result is only shown in
# the comments under this MR and won't be transferred to the server.
#
# code_quality_report will analyze and transfer both of the newly added code
# and the analysis result to the server.
#
# Put in the front to ensure that the newly merged code can be stored in
# sonarqube server ASAP, in order to avoid reporting unrelated code issues
.sonar_scan_template:
stage: build
image:
name: $SONARQUBE_SCANNER_IMAGE
before_script:
- source tools/ci/utils.sh
- export PYTHONPATH="$CI_PROJECT_DIR/tools:$CI_PROJECT_DIR/tools/ci/python_packages:$PYTHONPATH"
- fetch_submodules
# Exclude the submodules, all paths ends with /**
- submodules=$(get_all_submodules)
# get all exclude paths specified in tools/ci/sonar_exclude_list.txt | ignore lines start with # | xargs | replace all <space> to <comma>
- custom_excludes=$(cat $CI_PROJECT_DIR/tools/ci/sonar_exclude_list.txt | grep -v '^#' | xargs | sed -e 's/ /,/g')
# Exclude the report dir as well
- export EXCLUSIONS="$custom_excludes,$submodules"
- export SONAR_SCANNER_OPTS="-Xmx2048m"
variables:
GIT_DEPTH: 0
REPORT_PATTERN: clang_tidy_reports/*.txt
artifacts:
when: always
paths:
- $REPORT_PATTERN
expire_in: 1 week
tags:
- host_test
dependencies: # Here is not a hard dependency relationship, could be skipped when only python files changed. so we do not use "needs" here.
- clang_tidy_check
- check_pylint
code_quality_check:
extends:
- .sonar_scan_template
- .rules:patterns:static-code-analysis-preview
allow_failure: true # since now it's using exit code to indicate the code analysis result,
# we don't want to block ci when critical issues founded
script:
- export CI_MERGE_REQUEST_COMMITS=$(python ${CI_PROJECT_DIR}/tools/ci/ci_get_mr_info.py commits ${CI_COMMIT_REF_NAME} | tr '\n' ',')
# test if this branch have merge request, if not, exit 0
- test -n "$CI_MERGE_REQUEST_IID" || exit 0
- test -n "$CI_MERGE_REQUEST_COMMITS" || exit 0
- sonar-scanner
-Dsonar.analysis.mode=preview
-Dsonar.branch.name=$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
-Dsonar.cxx.clangtidy.reportPath=$REPORT_PATTERN
-Dsonar.exclusions=$EXCLUSIONS
-Dsonar.gitlab.ci_merge_request_iid=$CI_MERGE_REQUEST_IID
-Dsonar.gitlab.commit_sha=$CI_MERGE_REQUEST_COMMITS
-Dsonar.gitlab.merge_request_discussion=true
-Dsonar.gitlab.ref_name=$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
-Dsonar.host.url=$SONAR_HOST_URL
-Dsonar.login=$SONAR_LOGIN
-Dsonar.python.pylint.reportPath=pylint-report.txt
code_quality_report:
extends:
- .sonar_scan_template
- .rules:protected
allow_failure: true # since now it's using exit code to indicate the code analysis result,
# we don't want to block ci when critical issues founded
script:
- sonar-scanner
-Dsonar.branch.name=$CI_COMMIT_REF_NAME
-Dsonar.cxx.clangtidy.reportPath=$REPORT_PATTERN
-Dsonar.exclusions=$EXCLUSIONS
-Dsonar.gitlab.commit_sha=$PIPELINE_COMMIT_SHA
-Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME
-Dsonar.host.url=$SONAR_HOST_URL
-Dsonar.login=$SONAR_LOGIN
-Dsonar.python.pylint.reportPath=pylint-report.txt

View File

@@ -24,7 +24,7 @@
junit: XUNIT_RESULT.xml
expire_in: 1 week
script:
- retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cases
- python tools/ci/get_known_failure_cases_file.py
# get runner env config file
- retry_failed git clone $TEST_ENV_CONFIG_REPO
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
@@ -32,7 +32,7 @@
# Runner tags are comma separated, replace the comma with " and " for markers
- job_tags=$(python tools/ci/python_packages/gitlab_api.py get_job_tags $CI_PROJECT_ID --job_id $CI_JOB_ID)
- markers=$(echo $job_tags | sed -e "s/,/ and /g")
- run_cmd pytest $TEST_DIR -m \"${markers}\" --junitxml=XUNIT_RESULT.xml --known-failure-cases-file known_failure_cases/known_failure_cases.txt
- run_cmd pytest $TEST_DIR -m \"${markers}\" --junitxml=XUNIT_RESULT.xml --known-failure-cases-file ${KNOWN_FAILURE_CASES_FILE_NAME}
.pytest_examples_dir_template:
extends: .pytest_template
@@ -135,6 +135,14 @@ example_test_pytest_esp32_ethernet:
- build_pytest_examples_esp32
tags: [ esp32, ethernet]
pytest_examples_esp32_ethernet_httpbin:
extends:
- .pytest_examples_dir_template
- .rules:test:example_test-esp32-ethernet
needs:
- build_pytest_examples_esp32
tags: [ esp32, httpbin]
example_test_pytest_esp32_8mb_flash:
extends:
- .pytest_examples_dir_template
@@ -173,7 +181,7 @@ example_test_pytest_esp32_ethernet_ip101:
- .rules:test:example_test-esp32
needs:
- build_pytest_examples_esp32
tags: [ esp32, ip101 ]
tags: [ esp32, eth_ip101 ]
example_test_pytest_esp32_flash_encryption:
extends:
@@ -191,6 +199,22 @@ example_test_pytest_esp32_wifi_two_dut:
- build_pytest_examples_esp32
tags: [ esp32, wifi_two_dut ]
example_test_pytest_esp32c3eco7_wifi_two_dut:
extends:
- .pytest_examples_dir_template
- .rules:test:example_test-esp32c3-wifi
needs:
- build_pytest_examples_esp32c3
tags: [ esp32c3eco7, wifi_two_dut ]
example_test_pytest_esp32c2eco4_wifi_two_dut:
extends:
- .pytest_examples_dir_template
- .rules:test:example_test-esp32c2-wifi
needs:
- build_pytest_examples_esp32c2
tags: [ esp32c2eco4, wifi_two_dut, xtal_26mhz]
example_test_pytest_esp32c3_flash_encryption:
extends:
- .pytest_examples_dir_template
@@ -306,7 +330,7 @@ component_ut_pytest_esp32_ip101:
- .rules:test:component_ut-esp32
needs:
- build_pytest_components_esp32
tags: [ esp32, ip101 ]
tags: [ esp32, eth_ip101 ]
component_ut_pytest_esp32_lan8720:
extends:
@@ -314,7 +338,7 @@ component_ut_pytest_esp32_lan8720:
- .rules:labels-protected:lan8720 # FIXME: IDFCI-1176
needs:
- build_pytest_components_esp32
tags: [ esp32, lan8720 ]
tags: [ esp32, eth_lan8720 ]
component_ut_pytest_esp32_flash_encryption:
extends:
@@ -542,10 +566,10 @@ test_app_test_pytest_esp32s3_mspi_f4r4:
- retry_failed git clone $TEST_ENV_CONFIG_REPO
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
# git clone the known failure cases repo, run test
- retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cases
- python tools/ci/get_known_failure_cases_file.py
# run test
- cd tools/ci/python_packages/tiny_test_fw/bin
- run_cmd python Runner.py $TEST_CASE_PATH -c $CONFIG_FILE -e $ENV_FILE --known_failure_cases_file $CI_PROJECT_DIR/known_failure_cases/known_failure_cases.txt
- run_cmd python Runner.py $TEST_CASE_PATH -c $CONFIG_FILE -e $ENV_FILE --known_failure_cases_file $CI_PROJECT_DIR/${KNOWN_FAILURE_CASES_FILE_NAME}
.example_test_template:
extends: .target_test_job_template
@@ -882,12 +906,6 @@ UT_014:
- UT_T2_RS485
- psram
UT_017:
extends: .unit_test_esp32_template
tags:
- ESP32_IDF
- EMMC
UT_018:
extends: .unit_test_esp32_template
parallel: 2
@@ -1010,7 +1028,7 @@ UT_S2_SDSPI:
UT_C2:
extends: .unit_test_esp32c2_template
parallel: 23
parallel: 24
tags:
- ESP32C2_IDF
- UT_T1_1
@@ -1088,301 +1106,3 @@ UT_S3_FLASH:
tags:
- ESP32S3_IDF
- UT_T1_ESP_FLASH
.integration_test_template:
extends:
- .target_test_job_template
- .rules:test:integration_test
- .before_script_minimal
image: ${CI_INTEGRATION_TEST_ENV_IMAGE}
cache: []
needs: # the assign already needs all the build jobs
- assign_integration_test
variables:
LOCAL_ENV_CONFIG_PATH: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/ESP32_IDF"
LOG_PATH: "${CI_PROJECT_DIR}/TEST_LOGS"
TEST_CASE_FILE_PATH: "$CI_PROJECT_DIR/auto_test_script/TestCaseFiles"
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/tools/ci/integration_test/test_configs"
KNOWN_ISSUE_FILE: "${CI_PROJECT_DIR}/tools/ci/integration_test/KnownIssues"
CI_RUNNER_SCRIPT: "${CI_PROJECT_DIR}/auto_test_script/bin/CIRunner.py"
PREPARE_TEST_BIN_SCRIPT: "${CI_PROJECT_DIR}/auto_test_script/tools/ci/idf_prepare_test_bins.py"
PYTHONPATH: "${CI_PROJECT_DIR}/auto_test_script/packages:${CI_PROJECT_DIR}/tools/ci/python_packages:${PYTHONPATH}"
INITIAL_CONDITION_RETRY_COUNT: "1"
GIT_LFS_SKIP_SMUDGE: 1
script:
- *define_config_file_name
# first test if config file exists, if not exist, exit 0
- test -e $CONFIG_FILE || exit 0
# clone local test env configs
- add_gitlab_ssh_keys
- retry_failed git clone $TEST_ENV_CONFIG_REPO
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
# clone test bench
- retry_failed git clone ${CI_AUTO_TEST_SCRIPT_REPO_URL} auto_test_script
- python $CHECKOUT_REF_SCRIPT auto_test_script auto_test_script
- cd auto_test_script
- ./tools/ci/setup_idfci.sh
# Merge known issues
- cat ${KNOWN_ISSUE_FILE} >> ${TEST_CASE_FILE_PATH}/KnownIssues
# run test
- python ${PREPARE_TEST_BIN_SCRIPT} $CONFIG_FILE
- python ${CI_RUNNER_SCRIPT} -l "$LOG_PATH/$JOB_FULL_NAME" -c $CONFIG_FILE -e $LOCAL_ENV_CONFIG_PATH -t $TEST_CASE_FILE_PATH
.integration_test_esp32c3_template:
extends:
- .integration_test_template
variables:
LOCAL_ENV_CONFIG_PATH: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/ESP32C3_IDF"
.integration_test_esp32c2_template:
extends:
- .integration_test_template
variables:
LOCAL_ENV_CONFIG_PATH: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/ESP32C2_IDF"
nvs_compatible_test:
extends:
- .integration_test_template
- .rules:test:integration_test
artifacts:
when: always
paths:
- $LOG_PATH
- nvs_wifi.bin
expire_in: 1 mos
tags:
- ESP32_IDF
- NVS_Compatible
script:
- *define_config_file_name
# first test if config file exists, if not exist, exit 0
- test -e $CONFIG_FILE || exit 0
# clone local test env configs
- add_gitlab_ssh_keys
- retry_failed git clone $TEST_ENV_CONFIG_REPO
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
# clone test bench
- retry_failed git clone ${CI_AUTO_TEST_SCRIPT_REPO_URL} auto_test_script
- python $CHECKOUT_REF_SCRIPT auto_test_script auto_test_script
- cd auto_test_script
- ./tools/ci/setup_idfci.sh
# prepare nvs bins
- ./tools/prepare_nvs_bin.sh
# run test
- python ${PREPARE_TEST_BIN_SCRIPT} $CONFIG_FILE
- python ${CI_RUNNER_SCRIPT} -l "$LOG_PATH/$JOB_FULL_NAME" -c $CONFIG_FILE -e $LOCAL_ENV_CONFIG_PATH -t $TEST_CASE_FILE_PATH
IT_T1_Simple:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
parallel: 2
tags:
- ESP32_IDF
- SSC_T1_Simple
IT_T1_WAP:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
tags:
- ESP32_IDF
- SSC_T1_WAP
IT_T2_Simple:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
parallel: 9
tags:
- ESP32_IDF
- SSC_T2_Simple
IT_T5_BT_Simple:
extends:
- .integration_test_template
- .rules:test:integration_test_ble
parallel: 3
tags:
- ESP32_IDF
- SSC_T5_BT_Simple
IT_T2_BT_Simple:
extends:
- .integration_test_template
- .rules:test:integration_test_ble
parallel: 6
tags:
- ESP32_IDF
- SSC_T2_BT_Simple
IT_T1_BT_Dongle:
extends:
- .integration_test_template
- .rules:test:integration_test_ble
parallel: 2
tags:
- ESP32_IDF
- SSC_T1_BT_Dongle
IT_T1_AP:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
tags:
- ESP32_IDF
- SSC_T1_AP
IT_T1_AP_E:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
parallel: 5
tags:
- ESP32_IDF
- SSC_T1_AP_E
IT_T1_WNIC_AP:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
tags:
- ESP32_IDF
- SSC_T1_WNIC_AP
IT_T1_WNIC_AP_E:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
tags:
- ESP32_IDF
- SSC_T1_WNIC_AP_E
IT_T1_MESH1:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
tags:
- ESP32_IDF
- SSC_T1_MESH1
IT_T2_MESH1:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
parallel: 2
tags:
- ESP32_IDF
- SSC_T2_MESH1
IT_T3_MESH1:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
tags:
- ESP32_IDF
- SSC_T3_MESH1
IT_T6_MESH1:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
tags:
- ESP32_IDF
- SSC_T6_MESH1
IT_T12_MESH1:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
tags:
- ESP32_IDF
- SSC_T12_MESH1
IT_T50_MESH1:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
allow_failure: true
tags:
- ESP32_IDF
- SSC_T50_MESH1
IT_T1_MESH2:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
tags:
- ESP32_IDF
- SSC_T1_MESH2
IT_T2_WNIC:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
tags:
- ESP32_IDF
- SSC_T2_WNIC
IT_T2_AP:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
tags:
- ESP32_IDF
- SSC_T2_AP
IT_T3_Simple:
extends:
- .integration_test_template
- .rules:test:integration_test_wifi
tags:
- ESP32_IDF
- SSC_T3_Simple
IT_C3_T2_BT_Simple:
extends:
- .integration_test_esp32c3_template
- .rules:test:integration_test_ble
parallel: 11
tags:
- ESP32C3_IDF
- SSC_T2_BT_Simple
IT_C3_T5_BT_Simple:
extends:
- .integration_test_esp32c3_template
- .rules:test:integration_test_ble
parallel: 5
tags:
- ESP32C3_IDF
- SSC_T5_BT_Simple
IT_C3_T1_BT_Dongle:
extends:
- .integration_test_esp32c3_template
- .rules:test:integration_test_ble
image: gitlab.espressif.cn:5050/qa/dockerfiles/integration-test-env-dbg:1
parallel: 2
tags:
- ESP32C3_IDF
- SSC_T1_BT_Dongle
IT_C2_T2_BT_Simple:
extends:
- .integration_test_esp32c2_template
- .rules:test:integration_test_ble
parallel: 9
tags:
- ESP32C2_IDF
- SSC_T2_BT_Simple
IT_C2_T1_BT_Dongle:
extends:
- .integration_test_esp32c2_template
- .rules:test:integration_test_ble
image: gitlab.espressif.cn:5050/qa/dockerfiles/integration-test-env-dbg:1
parallel: 2
tags:
- ESP32C2_IDF
- SSC_T1_BT_Dongle

54
.gitmodules vendored
View File

@@ -2,6 +2,26 @@
# All the relative URL paths are intended to be GitHub ones
# For Espressif's public projects please use '../../espressif/proj', not a '../proj'
#
# Submodules SBOM information
# ---------------------------
# Submodules, which are used directly and not forked into espressif namespace should
# contain SBOM information here. Other submodules should have the SBOM manifest file
# included in the root of their project's repository.
#
# The sbom-hash entry records the submodule's checkout SHA as presented in git-tree
# commit object. For example spiffs submodule
#
# $ git ls-tree HEAD components/spiffs/spiffs
# 160000 commit 0dbb3f71c5f6fae3747a9d935372773762baf852 components/spiffs/spiffs
#
# The hash can be also obtained with git submodule command
#
# $ git submodule status components/spiffs/spiffs
# 0dbb3f71c5f6fae3747a9d935372773762baf852 components/spiffs/spiffs (0.2-255-g0dbb3f71c5f6)
#
# The submodule SHA recorded here has to match with SHA, which is presented in git-tree.
# This is checked by CI. Also please don't forget to update the submodule version
# if you are changing the sbom-hash. This is important for SBOM generation.
[submodule "components/bt/controller/lib_esp32"]
path = components/bt/controller/lib_esp32
@@ -10,14 +30,32 @@
[submodule "components/bootloader/subproject/components/micro-ecc/micro-ecc"]
path = components/bootloader/subproject/components/micro-ecc/micro-ecc
url = ../../kmackay/micro-ecc.git
sbom-version = 1.1
sbom-cpe = cpe:2.3:a:micro-ecc_project:micro-ecc:{}:*:*:*:*:*:*:*
sbom-supplier = Person: Ken MacKay
sbom-url = https://github.com/kmackay/micro-ecc
sbom-description = A small and fast ECDH and ECDSA implementation for 8-bit, 32-bit, and 64-bit processors
sbom-hash = 24c60e243580c7868f4334a1ba3123481fe1aa48
[submodule "components/spiffs/spiffs"]
path = components/spiffs/spiffs
url = ../../pellepl/spiffs.git
sbom-version = 0.2-255-g0dbb3f71c5f6
sbom-supplier = Person: Peter Andersson
sbom-url = https://github.com/pellepl/spiffs
sbom-description = Wear-leveled SPI flash file system for embedded devices
sbom-hash = 0dbb3f71c5f6fae3747a9d935372773762baf852
[submodule "components/json/cJSON"]
path = components/json/cJSON
url = ../../DaveGamble/cJSON.git
sbom-version = 1.7.18
sbom-cpe = cpe:2.3:a:cjson_project:cjson:{}:*:*:*:*:*:*:*
sbom-supplier = Person: Dave Gamble
sbom-url = https://github.com/DaveGamble/cJSON
sbom-description = Ultralightweight JSON parser in ANSI C
sbom-hash = acc76239bee01d8e9c858ae2cab296704e52d916
sbom-cve-exclude-list = CVE-2024-31755 Resolved in v1.7.18
[submodule "components/mbedtls/mbedtls"]
path = components/mbedtls/mbedtls
@@ -34,10 +72,21 @@
[submodule "components/protobuf-c/protobuf-c"]
path = components/protobuf-c/protobuf-c
url = ../../protobuf-c/protobuf-c.git
sbom-version = 1.4.1
sbom-cpe = cpe:2.3:a:protobuf-c_project:protobuf-c:{}:*:*:*:*:*:*:*
sbom-supplier = Organization: protobuf-c community <https://groups.google.com/g/protobuf-c>
sbom-url = https://github.com/protobuf-c/protobuf-c
sbom-description = Protocol Buffers implementation in C
sbom-hash = abc67a11c6db271bedbb9f58be85d6f4e2ea8389
[submodule "components/unity/unity"]
path = components/unity/unity
url = ../../ThrowTheSwitch/Unity.git
sbom-version = v2.4.3-51-g7d2bf62b7e6a
sbom-supplier = Organization: ThrowTheSwitch community <http://www.throwtheswitch.org>
sbom-url = https://github.com/ThrowTheSwitch/Unity
sbom-description = Simple Unit Testing for C
sbom-hash = 7d2bf62b7e6afaf38153041a9d53c21aeeca9a25
[submodule "components/bt/host/nimble/nimble"]
path = components/bt/host/nimble/nimble
@@ -50,6 +99,11 @@
[submodule "components/cmock/CMock"]
path = components/cmock/CMock
url = ../../ThrowTheSwitch/CMock.git
sbom-version = v2.5.2-2-geeecc49ce8af
sbom-supplier = Organization: ThrowTheSwitch community <http://www.throwtheswitch.org>
sbom-url = https://github.com/ThrowTheSwitch/CMock
sbom-description = CMock - Mock/stub generator for C
sbom-hash = eeecc49ce8af123cf8ad40efdb9673e37b56230f
[submodule "components/openthread/openthread"]
path = components/openthread/openthread

View File

@@ -1,9 +1,11 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.5.0
hooks:
- id: trailing-whitespace
# note: whitespace exclusions use multiline regex, see https://pre-commit.com/#regular-expressions
@@ -35,11 +37,12 @@ repos:
hooks:
- id: flake8
args: ['--config=.flake8', '--tee', '--benchmark']
- repo: https://github.com/pycqa/isort
rev: 5.11.5 # python 3.7 compatible
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
hooks:
- id: isort
name: isort (python)
- id: reorder-python-imports
name: Reorder Python imports
args: [--py37-plus]
exclude: >
(?x)^(
.*_pb2.py
@@ -141,9 +144,10 @@ repos:
name: Check if all apps readme files match given .build-test-rules.yml files. Modify the supported target tables
entry: tools/ci/check_build_test_rules.py check-readmes
language: python
require_serial: true
files: 'tools/test_apps/.+|examples/.+|components/.+'
additional_dependencies:
- idf_build_apps
- idf_build_apps~=1.0
- id: sort-build-test-rules-ymls
name: sort .build-test-rules.yml files
entry: tools/ci/check_build_test_rules.py sort-yaml
@@ -157,7 +161,12 @@ repos:
- id: file-contents-sorter
files: 'tools\/ci\/(executable-list\.txt|mypy_ignore_list\.txt|check_copyright_ignore\.txt)'
- repo: https://github.com/espressif/check-copyright/
rev: v1.0.1
rev: v1.0.3
hooks:
- id: check-copyright
args: ['--ignore', 'tools/ci/check_copyright_ignore.txt', '--config', 'tools/ci/check_copyright_config.yaml']
- repo: https://github.com/espressif/esp-idf-sbom.git
rev: v0.13.0
hooks:
- id: validate-sbom-manifest
stages: [post-commit]

View File

@@ -183,8 +183,35 @@ endif()
list(APPEND link_options "-fno-lto")
if(CONFIG_IDF_TARGET_LINUX AND CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
# Not all versions of the MacOS linker support the -warn_commons flag.
# ld version 1053.12 (and above) have been tested to support it.
# Hence, we extract the version string from the linker output
# before including the flag.
# Get the ld version, capturing both stdout and stderr
execute_process(
COMMAND ${CMAKE_LINKER} -v
OUTPUT_VARIABLE LD_VERSION_OUTPUT
ERROR_VARIABLE LD_VERSION_ERROR
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_STRIP_TRAILING_WHITESPACE
)
# Combine stdout and stderr
set(LD_VERSION_OUTPUT "${LD_VERSION_OUTPUT}\n${LD_VERSION_ERROR}")
# Extract the version string
string(REGEX MATCH "PROJECT:(ld|dyld)-([0-9]+)\\.([0-9]+)" LD_VERSION_MATCH "${LD_VERSION_OUTPUT}")
set(LD_VERSION_MAJOR_MINOR "${CMAKE_MATCH_2}.${CMAKE_MATCH_3}")
message(STATUS "Linker Version: ${LD_VERSION_MAJOR_MINOR}")
# Compare the version with 1053.12
if(LD_VERSION_MAJOR_MINOR VERSION_GREATER_EQUAL "1053.12")
list(APPEND link_options "-Wl,-warn_commons")
endif()
list(APPEND link_options "-Wl,-dead_strip")
list(APPEND link_options "-Wl,-warn_commons")
else()
list(APPEND link_options "-Wl,--gc-sections")
list(APPEND link_options "-Wl,--warn-common")

View File

@@ -54,13 +54,15 @@ idf_component_register(SRCS "${srcs}"
REQUIRES esp_timer
LDFRAGMENTS linker.lf)
# disable --coverage for this component, as it is used as transport
# for gcov
target_compile_options(${COMPONENT_LIB} PRIVATE "-fno-profile-arcs" "-fno-test-coverage")
# Force app_trace to also appear later than gcov in link line
idf_component_get_property(app_trace app_trace COMPONENT_LIB)
target_link_libraries(${COMPONENT_LIB} INTERFACE $<TARGET_FILE:${app_trace}> gcov $<TARGET_FILE:${app_trace}> c)
if(CONFIG_APPTRACE_GCOV_ENABLE)
# disable --coverage for this component, as it is used as transport
# for gcov
target_compile_options(${COMPONENT_LIB} PRIVATE "-fno-profile-arcs" "-fno-test-coverage")
# Force app_trace to also appear later than gcov in link line
idf_component_get_property(app_trace app_trace COMPONENT_LIB)
target_link_libraries(${COMPONENT_LIB} INTERFACE
"-Wl,--undefined=gcov_rtio_atexit" $<TARGET_FILE:${app_trace}> gcov $<TARGET_FILE:${app_trace}> c)
endif()
# This function adds a dependency on the given component if the component is included into the build.
function(maybe_add_component component_name)

View File

@@ -389,4 +389,11 @@ menu "Application Level Tracing"
help
Enables support for GCOV data transfer to host.
config APPTRACE_GCOV_DUMP_TASK_STACK_SIZE
int "Gcov dump task stack size"
depends on APPTRACE_GCOV_ENABLE
default 2048
help
Configures stack size of Gcov dump task
endmenu

View File

@@ -15,7 +15,8 @@
#include "esp_app_trace.h"
#include "esp_freertos_hooks.h"
#include "esp_private/dbg_stubs.h"
#include "esp_ipc.h"
#include "esp_private/esp_ipc.h"
#include "esp_attr.h"
#include "hal/wdt_hal.h"
#if CONFIG_IDF_TARGET_ESP32
#include "esp32/rom/libc_stubs.h"
@@ -76,14 +77,15 @@ gcov_exit:
void gcov_create_task(void *arg)
{
ESP_EARLY_LOGV(TAG, "%s", __FUNCTION__);
xTaskCreatePinnedToCore(&gcov_dump_task, "gcov_dump_task", 2048, (void *)&s_gcov_task_running, configMAX_PRIORITIES - 1, NULL, 0);
xTaskCreatePinnedToCore(&gcov_dump_task, "gcov_dump_task", CONFIG_APPTRACE_GCOV_DUMP_TASK_STACK_SIZE,
(void *)&s_gcov_task_running, configMAX_PRIORITIES - 1, NULL, 0);
}
static IRAM_ATTR
void gcov_create_task_tick_hook(void)
{
extern esp_err_t esp_ipc_start_gcov_from_isr(uint32_t cpu_id, esp_ipc_func_t func, void* arg);
if (s_create_gcov_task) {
if (esp_ipc_start_gcov_from_isr(xPortGetCoreID(), &gcov_create_task, NULL) == ESP_OK) {
if (esp_ipc_call_nonblocking(xPortGetCoreID(), &gcov_create_task, NULL) == ESP_OK) {
s_create_gcov_task = false;
}
}

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-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -193,13 +193,18 @@ esp_err_t esp_ota_write(esp_ota_handle_t handle, const void *data, size_t size)
return ESP_ERR_INVALID_ARG;
}
if (size == 0) {
ESP_LOGD(TAG, "write data size is 0");
return ESP_OK;
}
// find ota handle in linked list
for (it = LIST_FIRST(&s_ota_ops_entries_head); it != NULL; it = LIST_NEXT(it, entries)) {
if (it->handle == handle) {
if (it->need_erase) {
// must erase the partition before writing to it
uint32_t first_sector = it->wrote_size / SPI_FLASH_SEC_SIZE;
uint32_t last_sector = (it->wrote_size + size) / SPI_FLASH_SEC_SIZE;
uint32_t first_sector = it->wrote_size / SPI_FLASH_SEC_SIZE; // first affected sector
uint32_t last_sector = (it->wrote_size + size - 1) / SPI_FLASH_SEC_SIZE; // last affected sector
ret = ESP_OK;
if ((it->wrote_size % SPI_FLASH_SEC_SIZE) == 0) {
@@ -894,9 +899,27 @@ esp_err_t esp_ota_erase_last_boot_app_partition(void)
return ESP_OK;
}
#if SOC_EFUSE_SECURE_BOOT_KEY_DIGESTS > 1 && CONFIG_SECURE_BOOT_V2_ENABLED
esp_err_t esp_ota_revoke_secure_boot_public_key(esp_ota_secure_boot_public_key_index_t index) {
#if SOC_SUPPORT_SECURE_BOOT_REVOKE_KEY && CONFIG_SECURE_BOOT_V2_ENABLED
// Validates the image at "app_pos" with the secure boot digests other than "revoked_key_index"
static bool validate_img(esp_ota_secure_boot_public_key_index_t revoked_key_index, esp_partition_pos_t *app_pos)
{
bool verified = false;
for (int i = 0; i < SOC_EFUSE_SECURE_BOOT_KEY_DIGESTS; i++) {
if (i == revoked_key_index) {
continue;
}
if (esp_secure_boot_verify_with_efuse_digest_index(i, app_pos) == ESP_OK) {
verified = true;
ESP_LOGI(TAG, "Application successfully verified with public key digest %d", i);
break;
}
}
return verified;
}
esp_err_t esp_ota_revoke_secure_boot_public_key(esp_ota_secure_boot_public_key_index_t index)
{
if (!esp_secure_boot_enabled()) {
ESP_LOGE(TAG, "Secure boot v2 has not been enabled.");
return ESP_FAIL;
@@ -909,14 +932,21 @@ esp_err_t esp_ota_revoke_secure_boot_public_key(esp_ota_secure_boot_public_key_i
return ESP_ERR_INVALID_ARG;
}
esp_image_sig_public_key_digests_t app_digests = { 0 };
esp_err_t err = esp_secure_boot_get_signature_blocks_for_running_app(true, &app_digests);
if (err != ESP_OK || app_digests.num_digests == 0) {
ESP_LOGE(TAG, "This app is not signed, but check signature on update is enabled in config. It won't be possible to verify any update.");
const esp_partition_t *running_app_part = esp_ota_get_running_partition();
esp_err_t ret = ESP_FAIL;
#ifdef CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE
esp_ota_img_states_t running_app_state;
ret = esp_ota_get_state_partition(running_app_part, &running_app_state);
if (ret != ESP_OK) {
ESP_LOGE(TAG, "esp_ota_get_state_partition returned: %s", esp_err_to_name(ret));
return ESP_FAIL;
}
if (running_app_state != ESP_OTA_IMG_VALID) {
ESP_LOGE(TAG, "The current running application is not marked as a valid image. Aborting..");
return ESP_FAIL;
}
#endif
esp_err_t ret;
esp_secure_boot_key_digests_t trusted_keys;
ret = esp_secure_boot_read_key_digests(&trusted_keys);
if (ret != ESP_OK) {
@@ -925,55 +955,38 @@ esp_err_t esp_ota_revoke_secure_boot_public_key(esp_ota_secure_boot_public_key_i
}
if (trusted_keys.key_digests[index] == NULL) {
ESP_LOGI(TAG, "Trusted Key block(%d) already revoked.", index);
ESP_LOGI(TAG, "Given public key digest(%d) is already revoked.", index);
return ESP_OK;
}
esp_image_sig_public_key_digests_t trusted_digests = { 0 };
for (unsigned i = 0; i < SECURE_BOOT_NUM_BLOCKS; i++) {
if (i == index) {
continue; // omitting - to find if there is a valid key after revoking this digest
}
/* Check if the application can be verified with a key other than the one being revoked */
esp_partition_pos_t running_app_pos = {
.offset = running_app_part->address,
.size = running_app_part->size,
};
if (trusted_keys.key_digests[i] != NULL) {
bool all_zeroes = true;
for (unsigned j = 0; j < ESP_SECURE_BOOT_DIGEST_LEN; j++) {
all_zeroes = all_zeroes && (*(uint8_t *)(trusted_keys.key_digests[i] + j) == 0);
}
if (!all_zeroes) {
memcpy(trusted_digests.key_digests[trusted_digests.num_digests++], (uint8_t *)trusted_keys.key_digests[i], ESP_SECURE_BOOT_DIGEST_LEN);
} else {
ESP_LOGD(TAG, "Empty trusted key block (%d).", i);
}
}
}
bool match = false;
for (unsigned i = 0; i < trusted_digests.num_digests; i++) {
if (match == true) {
break;
}
for (unsigned j = 0; j < app_digests.num_digests; j++) {
if (memcmp(trusted_digests.key_digests[i], app_digests.key_digests[j], ESP_SECURE_BOOT_DIGEST_LEN) == 0) {
ESP_LOGI(TAG, "App key block(%d) matches Trusted key block(%d)[%d -> Next active trusted key block].", j, i, i);
esp_err_t err = esp_efuse_set_digest_revoke(index);
if (err != ESP_OK) {
ESP_LOGE(TAG, "Failed to revoke digest (0x%x).", err);
return ESP_FAIL;
}
ESP_LOGI(TAG, "Revoked signature block %d.", index);
match = true;
break;
}
}
}
if (match == false) {
ESP_LOGE(TAG, "Running app doesn't have another valid secure boot key. Cannot revoke current key(%d).", index);
if (!validate_img(index, &running_app_pos)) {
ESP_LOGE(TAG, "Application cannot be verified with any key other than the one being revoked");
return ESP_FAIL;
}
/* Check if bootloder can be verified with any key other than the one being revoked */
esp_partition_pos_t bootloader_pos = {
.offset = ESP_BOOTLOADER_OFFSET,
.size = (ESP_PARTITION_TABLE_OFFSET - ESP_BOOTLOADER_OFFSET),
};
if (!validate_img(index, &bootloader_pos)) {
ESP_LOGE(TAG, "Bootloader cannot be verified with any key other than the one being revoked");
return ESP_FAIL;
}
esp_err_t err = esp_efuse_set_digest_revoke(index);
if (err != ESP_OK) {
ESP_LOGE(TAG, "Failed to revoke digest (0x%x).", err);
return ESP_FAIL;
}
ESP_LOGI(TAG, "Revoked signature block %d.", index);
return ESP_OK;
}
#endif

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -110,7 +110,7 @@ esp_err_t esp_ota_begin(const esp_partition_t* partition, size_t image_size, esp
* @param size Size of data buffer in bytes.
*
* @return
* - ESP_OK: Data was written to flash successfully.
* - ESP_OK: Data was written to flash successfully, or size = 0
* - ESP_ERR_INVALID_ARG: handle is invalid.
* - ESP_ERR_OTA_VALIDATE_FAILED: First byte of image contains invalid app image magic byte.
* - ESP_ERR_FLASH_OP_TIMEOUT or ESP_ERR_FLASH_OP_FAIL: Flash write failed.
@@ -332,10 +332,10 @@ typedef enum {
} esp_ota_secure_boot_public_key_index_t;
/**
* @brief Revokes the old signature digest. To be called in the application after the rollback logic.
* @brief Revokes the signature digest denoted by the given index. This should be called in the application only after the rollback logic otherwise the device may end up in unrecoverable state.
*
* Relevant for Secure boot v2 on ESP32-S2, ESP32-S3, ESP32-C3, ESP32-H2 where upto 3 key digests can be stored (Key \#N-1, Key \#N, Key \#N+1).
* When key \#N-1 used to sign an app is invalidated, an OTA update is to be sent with an app signed with key \#N-1 & Key \#N.
* Relevant for Secure boot v2 on ESP32-S2, ESP32-S3, ESP32-C3, ESP32-C6, ESP32-H2 where up to 3 key digests can be stored (Key \#N-1, Key \#N, Key \#N+1).
* When a key used to sign an app is invalidated, an OTA update is to be sent with an app signed with at least one of the other two keys which has not been revoked already.
* After successfully booting the OTA app should call this function to revoke Key \#N-1.
*
* @param index - The index of the signature block to be revoked

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

@@ -62,34 +62,66 @@ menu "Bootloader config"
default 4 if BOOTLOADER_LOG_LEVEL_DEBUG
default 5 if BOOTLOADER_LOG_LEVEL_VERBOSE
config BOOTLOADER_SPI_CUSTOM_WP_PIN
bool "Use custom SPI Flash WP Pin when flash pins set in eFuse (read help)"
depends on IDF_TARGET_ESP32 && (ESPTOOLPY_FLASHMODE_QIO || ESPTOOLPY_FLASHMODE_QOUT)
default y if BOOTLOADER_SPI_WP_PIN != 7 # backwards compatibility, can remove in IDF 5
default n
help
This setting is only used if the SPI flash pins have been overridden by setting the eFuses
SPI_PAD_CONFIG_xxx, and the SPI flash mode is QIO or QOUT.
menu "Serial Flash Configurations"
config BOOTLOADER_SPI_CUSTOM_WP_PIN
bool "Use custom SPI Flash WP Pin when flash pins set in eFuse (read help)"
depends on IDF_TARGET_ESP32 && (ESPTOOLPY_FLASHMODE_QIO || ESPTOOLPY_FLASHMODE_QOUT)
default y if BOOTLOADER_SPI_WP_PIN != 7 # backwards compatibility, can remove in IDF 5
default n
help
This setting is only used if the SPI flash pins have been overridden by setting the eFuses
SPI_PAD_CONFIG_xxx, and the SPI flash mode is QIO or QOUT.
When this is the case, the eFuse config only defines 3 of the 4 Quad I/O data pins. The WP pin (aka
ESP32 pin "SD_DATA_3" or SPI flash pin "IO2") is not specified in eFuse. The same pin is also used
for external SPIRAM if it is enabled.
When this is the case, the eFuse config only defines 3 of the 4 Quad I/O data pins. The WP pin (aka
ESP32 pin "SD_DATA_3" or SPI flash pin "IO2") is not specified in eFuse. The same pin is also used
for external SPIRAM if it is enabled.
If this config item is set to N (default), the correct WP pin will be automatically used for any
Espressif chip or module with integrated flash. If a custom setting is needed, set this config item to
Y and specify the GPIO number connected to the WP.
If this config item is set to N (default), the correct WP pin will be automatically used for any
Espressif chip or module with integrated flash. If a custom setting is needed, set this config item to
Y and specify the GPIO number connected to the WP.
config BOOTLOADER_SPI_WP_PIN
int "Custom SPI Flash WP Pin"
range 0 33
default 7
depends on IDF_TARGET_ESP32 && (ESPTOOLPY_FLASHMODE_QIO || ESPTOOLPY_FLASHMODE_QOUT)
#depends on BOOTLOADER_SPI_CUSTOM_WP_PIN # backwards compatibility, can uncomment in IDF 5
help
The option "Use custom SPI Flash WP Pin" must be set or this value is ignored
config BOOTLOADER_SPI_WP_PIN
int "Custom SPI Flash WP Pin"
range 0 33
default 7
depends on IDF_TARGET_ESP32 && (ESPTOOLPY_FLASHMODE_QIO || ESPTOOLPY_FLASHMODE_QOUT)
#depends on BOOTLOADER_SPI_CUSTOM_WP_PIN # backwards compatibility, can uncomment in IDF 5
help
The option "Use custom SPI Flash WP Pin" must be set or this value is ignored
If burning a customized set of SPI flash pins in eFuse and using QIO or QOUT mode for flash, set this
value to the GPIO number of the SPI flash WP pin.
If burning a customized set of SPI flash pins in eFuse and using QIO or QOUT mode for flash, set this
value to the GPIO number of the SPI flash WP pin.
config BOOTLOADER_FLASH_DC_AWARE
bool "Allow app adjust Dummy Cycle bits in SPI Flash for higher frequency (READ HELP FIRST)"
help
This will force 2nd bootloader to be loaded by DOUT mode, and will restore Dummy Cycle setting by
resetting the Flash
config BOOTLOADER_FLASH_XMC_SUPPORT
bool "Enable the support for flash chips of XMC (READ DOCS FIRST)"
default y
help
Perform the startup flow recommended by XMC. Please consult XMC for the details of this flow.
XMC chips will be forbidden to be used, when this option is disabled.
DON'T DISABLE THIS UNLESS YOU KNOW WHAT YOU ARE DOING.
comment "Features below require specific hardware (READ DOCS FIRST!)"
config BOOTLOADER_FLASH_32BIT_ADDR
bool
default y if ESPTOOLPY_FLASHSIZE_32MB || ESPTOOLPY_FLASHSIZE_64MB || ESPTOOLPY_FLASHSIZE_128MB
default n
help
This is a helper config for 32bits address flash. Invisible for users.
config BOOTLOADER_CACHE_32BIT_ADDR_OCTAL_FLASH
bool
default y if ESPTOOLPY_OCT_FLASH && BOOTLOADER_FLASH_32BIT_ADDR
default n
endmenu
choice BOOTLOADER_VDDSDIO_BOOST
bool "VDDSDIO LDO voltage"
@@ -401,6 +433,21 @@ menu "Bootloader config"
(The application and bootoloader must be compiled with the same option).
The RTC FAST memory has access only through PRO_CPU.
config BOOTLOADER_CUSTOM_RESERVE_RTC_IN_CRC
bool "Include custom memory in the CRC calculation"
depends on BOOTLOADER_CUSTOM_RESERVE_RTC
default n
help
This option allows the customer to use the legacy bootloader behavior when the
RTC FAST memory CRC calculation takes place. When this option is enabled, the
allocated user custom data will be taken into account in the CRC calculcation.
This means that any change to the custom data would need a CRC update to prevent
the bootloader from marking this data as corrupted.
If this option is disabled, the custom data will not be taken into account when
calculating the RTC FAST memory CRC. The user custom data can be changed freely,
without the need to update the CRC.
THIS OPTION MUST BE THE SAME FOR BOTH THE BOOTLOADER AND THE APPLICATION BUILDS.
config BOOTLOADER_CUSTOM_RESERVE_RTC_SIZE
hex "Size in bytes for custom purposes"
default 0
@@ -411,14 +458,6 @@ menu "Bootloader config"
in this area of memory, you can increase it. It must be a multiple of 4 bytes.
This area (rtc_retain_mem_t) is reserved and has access from the bootloader and an application.
config BOOTLOADER_FLASH_XMC_SUPPORT
bool "Enable the support for flash chips of XMC (READ HELP FIRST)"
default y
help
Perform the startup flow recommended by XMC. Please consult XMC for the details of this flow.
XMC chips will be forbidden to be used, when this option is disabled.
DON'T DISABLE THIS UNLESS YOU KNOW WHAT YOU ARE DOING.
endmenu # Bootloader
@@ -691,14 +730,12 @@ menu "Security features"
config SECURE_BOOT_VERIFICATION_KEY
string "Secure boot public signature verification key"
depends on SECURE_SIGNED_APPS && !SECURE_BOOT_BUILD_SIGNED_BINARIES && !SECURE_SIGNED_APPS_RSA_SCHEME
depends on SECURE_SIGNED_APPS && SECURE_SIGNED_APPS_ECDSA_SCHEME && !SECURE_BOOT_BUILD_SIGNED_BINARIES
default "signature_verification_key.bin"
help
Path to a public key file used to verify signed images.
Secure Boot V1: This ECDSA public key is compiled into the bootloader and/or
app, to verify app images.
Secure Boot V2: This RSA public key is compiled into the signature block at
the end of the bootloader/app.
Key file is in raw binary format, and can be extracted from a
PEM formatted private key using the espsecure.py
@@ -950,6 +987,22 @@ menu "Security features"
endmenu # Potentially Insecure
config SECURE_FLASH_ENCRYPT_ONLY_IMAGE_LEN_IN_APP_PART
bool "Encrypt only the app image that is present in the partition of type app"
depends on SECURE_FLASH_ENC_ENABLED && !SECURE_FLASH_REQUIRE_ALREADY_ENABLED
default n
help
If set, optimise encryption time for the partition of type APP,
by only encrypting the app image that is present in the partition,
instead of the whole partition.
The image length used for encryption is derived from the image metadata, which
includes the size of the app image, checksum, hash and also the signature sector
when secure boot is enabled.
If not set (default), the whole partition of type APP would be encrypted,
which increases the encryption time but might be useful if there
is any custom data appended to the firmware image.
config SECURE_FLASH_CHECK_ENC_EN_IN_APP
bool "Check Flash Encryption enabled on app startup"
depends on SECURE_FLASH_ENC_ENABLED

View File

@@ -148,5 +148,5 @@ endif()
#
# So for now we just have the top-level build remove the final build products...
set_property(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" APPEND PROPERTY
ADDITIONAL_MAKE_CLEAN_FILES
ADDITIONAL_CLEAN_FILES
${bootloader_binary_files})

View File

@@ -23,3 +23,5 @@ CONFIG_FLASH_ENCRYPTION_UART_BOOTLOADER_ALLOW_CACHE CONFIG_SECURE_FLASH_
# Secure Boot Scheme
CONFIG_SECURE_BOOT_ENABLED CONFIG_SECURE_BOOT_V1_ENABLED
CONFIG_SPI_FLASH_OCTAL_32BIT_ADDR_ENABLE CONFIG_BOOTLOADER_CACHE_32BIT_ADDR_OCTAL_FLASH

View File

@@ -150,7 +150,7 @@ if(CONFIG_SECURE_SIGNED_APPS AND (CONFIG_SECURE_BOOT_V1_ENABLED OR CONFIG_SECURE
target_add_binary_data(${COMPONENT_LIB} "${secure_boot_verification_key}" "BINARY"
RENAME_TO signature_verification_key_bin)
set_property(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES
APPEND PROPERTY ADDITIONAL_CLEAN_FILES
"${secure_boot_verification_key}")
endif()

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2020-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -57,6 +57,13 @@ esp_err_t __attribute__((weak)) bootloader_flash_unlock(void);
*/
esp_err_t bootloader_flash_reset_chip(void);
/**
* @brief Get the spi flash working mode.
*
* @return The mode of flash working mode, see `esp_rom_spiflash_read_mode_t`
*/
esp_rom_spiflash_read_mode_t bootloader_flash_get_spi_mode(void);
#ifdef __cplusplus
}
#endif

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2020-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -109,6 +109,17 @@ extern const bootloader_qio_info_t __attribute__((weak)) bootloader_flash_qe_sup
*/
esp_err_t __attribute__((weak)) bootloader_flash_unlock(void);
#if CONFIG_BOOTLOADER_CACHE_32BIT_ADDR_OCTAL_FLASH
/**
* @brief Enable 32bits address flash(larger than 16MB) can map to cache.
*
* @param flash_mode SPI flash working mode.
*
* @note This can be overridden because it's attribute weak.
*/
void __attribute__((weak)) bootloader_flash_32bits_address_map_enable(esp_rom_spiflash_read_mode_t flash_mode);
#endif
#ifdef __cplusplus
}
#endif

View File

@@ -53,6 +53,8 @@ extern "C" {
#define CMD_RESUME 0x7A /* Resume command to clear flash suspend bit */
#define CMD_RESETEN 0x66
#define CMD_RESET 0x99
#define CMD_FASTRD_4B 0x0C
#define CMD_SLOWRD_4B 0x13
/* Provide a Flash API for bootloader_support code,

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
*/
@@ -10,6 +10,7 @@
#include <esp_flash_encrypt.h>
#include "sdkconfig.h"
#include "soc/soc_caps.h"
#include "hal/efuse_hal.h"
#if CONFIG_IDF_TARGET_ESP32
# include "soc/spi_struct.h"
@@ -29,7 +30,7 @@
#include "esp_rom_spiflash.h"
#ifdef CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH
#define ENCRYPTION_IS_VIRTUAL 1
#define ENCRYPTION_IS_VIRTUAL (!efuse_hal_flash_encryption_enabled())
#else
#define ENCRYPTION_IS_VIRTUAL 0
#endif
@@ -121,6 +122,9 @@ esp_err_t bootloader_flash_erase_range(uint32_t start_addr, uint32_t size)
#include "hal/mmu_hal.h"
#include "hal/mmu_ll.h"
#include "hal/cache_hal.h"
#if CONFIG_IDF_TARGET_ESP32S3
#include "esp32s3/rom/opi_flash.h"
#endif
static const char *TAG = "bootloader_flash";
#if CONFIG_IDF_TARGET_ESP32
@@ -411,6 +415,33 @@ esp_err_t bootloader_flash_erase_range(uint32_t start_addr, uint32_t size)
return spi_to_esp_err(rc);
}
#if CONFIG_BOOTLOADER_CACHE_32BIT_ADDR_OCTAL_FLASH
void bootloader_flash_32bits_address_map_enable(esp_rom_spiflash_read_mode_t flash_mode)
{
esp_rom_opiflash_spi0rd_t cache_rd = {};
switch (flash_mode) {
case ESP_ROM_SPIFLASH_FASTRD_MODE:
cache_rd.addr_bit_len = 32;
cache_rd.dummy_bit_len = 8;
cache_rd.cmd = CMD_FASTRD_4B;
cache_rd.cmd_bit_len = 8;
break;
case ESP_ROM_SPIFLASH_SLOWRD_MODE:
cache_rd.addr_bit_len = 32;
cache_rd.dummy_bit_len = 0;
cache_rd.cmd = CMD_SLOWRD_4B;
cache_rd.cmd_bit_len = 8;
break;
default:
assert(false);
break;
}
cache_hal_disable(CACHE_TYPE_ALL);
esp_rom_opiflash_cache_mode_config(flash_mode, &cache_rd);
cache_hal_enable(CACHE_TYPE_ALL);
}
#endif
#endif // BOOTLOADER_BUILD
@@ -646,7 +677,7 @@ esp_err_t bootloader_flash_wrap_set(spi_flash_wrap_mode_t mode)
******************************************************************************/
#define XMC_SUPPORT CONFIG_BOOTLOADER_FLASH_XMC_SUPPORT
#define XMC_VENDOR_ID 0x20
#define XMC_VENDOR_ID_1 0x20
#if BOOTLOADER_BUILD
#define BOOTLOADER_FLASH_LOG(level, ...) ESP_LOG##level(TAG, ##__VA_ARGS__)
@@ -663,7 +694,7 @@ static IRAM_ATTR bool is_xmc_chip_strict(uint32_t rdid)
uint32_t mfid = BYTESHIFT(rdid, 1);
uint32_t cpid = BYTESHIFT(rdid, 0);
if (vendor_id != XMC_VENDOR_ID) {
if (vendor_id != XMC_VENDOR_ID_1) {
return false;
}
@@ -696,7 +727,7 @@ esp_err_t IRAM_ATTR bootloader_flash_xmc_startup(void)
// Check the Manufacturer ID in SFDP registers (JEDEC standard). If not XMC chip, no need to run the flow
const int sfdp_mfid_addr = 0x10;
uint8_t mf_id = (bootloader_flash_read_sfdp(sfdp_mfid_addr, 1) & 0xff);
if (mf_id != XMC_VENDOR_ID) {
if (mf_id != XMC_VENDOR_ID_1) {
BOOTLOADER_FLASH_LOG(D, "non-XMC chip detected by SFDP Read (%02X), skip.", mf_id);
return ESP_OK;
}
@@ -728,7 +759,7 @@ esp_err_t IRAM_ATTR bootloader_flash_xmc_startup(void)
static IRAM_ATTR bool is_xmc_chip(uint32_t rdid)
{
uint32_t vendor_id = (rdid >> 16) & 0xFF;
return (vendor_id == XMC_VENDOR_ID);
return (vendor_id == XMC_VENDOR_ID_1);
}
esp_err_t IRAM_ATTR bootloader_flash_xmc_startup(void)
@@ -782,3 +813,40 @@ esp_err_t IRAM_ATTR bootloader_flash_reset_chip(void)
return ESP_OK;
}
esp_rom_spiflash_read_mode_t bootloader_flash_get_spi_mode(void)
{
esp_rom_spiflash_read_mode_t spi_mode = ESP_ROM_SPIFLASH_FASTRD_MODE;
#if CONFIG_IDF_TARGET_ESP32
uint32_t spi_ctrl = REG_READ(SPI_CTRL_REG(0));
if (spi_ctrl & SPI_FREAD_QIO) {
spi_mode = ESP_ROM_SPIFLASH_QIO_MODE;
} else if (spi_ctrl & SPI_FREAD_QUAD) {
spi_mode = ESP_ROM_SPIFLASH_QOUT_MODE;
} else if (spi_ctrl & SPI_FREAD_DIO) {
spi_mode = ESP_ROM_SPIFLASH_DIO_MODE;
} else if (spi_ctrl & SPI_FREAD_DUAL) {
spi_mode = ESP_ROM_SPIFLASH_DOUT_MODE;
} else if (spi_ctrl & SPI_FASTRD_MODE) {
spi_mode = ESP_ROM_SPIFLASH_FASTRD_MODE;
} else {
spi_mode = ESP_ROM_SPIFLASH_SLOWRD_MODE;
}
#else
uint32_t spi_ctrl = REG_READ(SPI_MEM_CTRL_REG(0));
if (spi_ctrl & SPI_MEM_FREAD_QIO) {
spi_mode = ESP_ROM_SPIFLASH_QIO_MODE;
} else if (spi_ctrl & SPI_MEM_FREAD_QUAD) {
spi_mode = ESP_ROM_SPIFLASH_QOUT_MODE;
} else if (spi_ctrl & SPI_MEM_FREAD_DIO) {
spi_mode = ESP_ROM_SPIFLASH_DIO_MODE;
} else if (spi_ctrl & SPI_MEM_FREAD_DUAL) {
spi_mode = ESP_ROM_SPIFLASH_DOUT_MODE;
} else if (spi_ctrl & SPI_MEM_FASTRD_MODE) {
spi_mode = ESP_ROM_SPIFLASH_FASTRD_MODE;
} else {
spi_mode = ESP_ROM_SPIFLASH_SLOWRD_MODE;
}
#endif
return spi_mode;
}

View File

@@ -33,6 +33,7 @@ typedef struct {
uint32_t segment_data[ESP_IMAGE_MAX_SEGMENTS]; /* Data offsets for each segment */
uint32_t image_len; /* Length of image on flash, in bytes */
uint8_t image_digest[32]; /* appended SHA-256 digest */
uint32_t secure_version; /* secure version for anti-rollback, it is covered by sha256 (set if CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK=y) */
} esp_image_metadata_t;
typedef enum {

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -282,6 +282,23 @@ esp_err_t esp_secure_boot_enable_secure_features(void);
*/
bool esp_secure_boot_cfg_verify_release_mode(void);
#if !defined(BOOTLOADER_BUILD) && SOC_SUPPORT_SECURE_BOOT_REVOKE_KEY && CONFIG_SECURE_BOOT_V2_ENABLED
/** @brief Returns the verification status of the image pointed by the part_pos argument against the public key digest present at index `efuse_digest_index`
*
* @param index[in] Index of public key digest present in efuse against which the image is to be verified
* @param part_pos[in] It is a pointer to the bootloader/app partition.
*
* @return
* - ESP_OK - if the image can be verified by the key at efuse_index.
* - ESP_FAIL - if the image cannot be verified by the key at efuse_index.
* - ESP_ERR_INVALID_ARG: Error in the passed arguments.
*/
esp_err_t esp_secure_boot_verify_with_efuse_digest_index(int efuse_digest_index, esp_partition_pos_t *part_pos);
#endif // !defined(BOOTLOADER_BUILD) && SOC_SUPPORT_SECURE_BOOT_REVOKE_KEY && CONFIG_SECURE_BOOT_V2_ENABLED
#ifdef __cplusplus
}
#endif

View File

@@ -45,7 +45,7 @@ int bootloader_utility_get_selected_boot_partition(const bootloader_state_t *bs)
* @param[in] bs Bootloader state structure.
* @param[in] start_index The index from which the search for images begins.
*/
__attribute__((noreturn)) void bootloader_utility_load_boot_image(const bootloader_state_t *bs, int start_index);
__attribute__((__noreturn__)) void bootloader_utility_load_boot_image(const bootloader_state_t *bs, int start_index);
#ifdef CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP
/**
@@ -65,7 +65,7 @@ void bootloader_utility_load_boot_image_from_deep_sleep(void);
*
* It is not recommended to call this function from an app (if called, the app will abort).
*/
__attribute__((noreturn)) void bootloader_reset(void);
__attribute__((__noreturn__)) void bootloader_reset(void);
/**
* @brief Do any cleanup before exiting the bootloader, before starting the app or resetting

View File

@@ -121,40 +121,26 @@ int bootloader_common_select_otadata(const esp_ota_select_entry_t *two_otadata,
#if defined( CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP ) || defined( CONFIG_BOOTLOADER_CUSTOM_RESERVE_RTC )
#define RTC_RETAIN_MEM_ADDR (SOC_RTC_DRAM_HIGH - sizeof(rtc_retain_mem_t))
_Static_assert(RTC_RETAIN_MEM_ADDR >= SOC_RTC_DRAM_LOW, "rtc_retain_mem_t structure size is bigger than the RTC memory size. Consider reducing RTC reserved memory size.");
rtc_retain_mem_t *const rtc_retain_mem = (rtc_retain_mem_t *)RTC_RETAIN_MEM_ADDR;
#ifndef BOOTLOADER_BUILD
#include "heap_memory_layout.h"
/* The app needs to be told this memory is reserved, important if configured to use RTC memory as heap.
Note that keeping this macro here only works when other symbols in this file are referenced by the app, as
this feature is otherwise 100% part of the bootloader. However this seems to happen in all apps.
*/
SOC_RESERVE_MEMORY_REGION(RTC_RETAIN_MEM_ADDR, RTC_RETAIN_MEM_ADDR + sizeof(rtc_retain_mem_t), rtc_retain_mem);
#endif
static uint32_t rtc_retain_mem_size(void) {
#ifdef CONFIG_BOOTLOADER_CUSTOM_RESERVE_RTC
#if CONFIG_BOOTLOADER_CUSTOM_RESERVE_RTC && !CONFIG_BOOTLOADER_CUSTOM_RESERVE_RTC_IN_CRC
/* A custom memory has been reserved by the user, do not consider this memory into CRC calculation as it may change without
* the have the user updating the CRC. Return the offset of the custom field, which is equivalent to size of the structure
* minus the size of everything after (including) `custom` */
return offsetof(rtc_retain_mem_t, custom);
#else
return sizeof(rtc_retain_mem_t) - sizeof(rtc_retain_mem->crc);
return sizeof(rtc_retain_mem_t) - sizeof(bootloader_common_get_rtc_retain_mem()->crc);
#endif
}
static bool check_rtc_retain_mem(void)
{
rtc_retain_mem_t* rtc_retain_mem = bootloader_common_get_rtc_retain_mem();
return esp_rom_crc32_le(UINT32_MAX, (uint8_t*)rtc_retain_mem, rtc_retain_mem_size()) == rtc_retain_mem->crc && rtc_retain_mem->crc != UINT32_MAX;
}
static void update_rtc_retain_mem_crc(void)
{
rtc_retain_mem_t* rtc_retain_mem = bootloader_common_get_rtc_retain_mem();
rtc_retain_mem->crc = esp_rom_crc32_le(UINT32_MAX, (uint8_t*)rtc_retain_mem, rtc_retain_mem_size());
}
@@ -163,14 +149,14 @@ NOINLINE_ATTR void bootloader_common_reset_rtc_retain_mem(void)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#pragma GCC diagnostic ignored "-Warray-bounds"
memset(rtc_retain_mem, 0, sizeof(rtc_retain_mem_t));
memset(bootloader_common_get_rtc_retain_mem(), 0, sizeof(rtc_retain_mem_t));
#pragma GCC diagnostic pop
}
uint16_t bootloader_common_get_rtc_retain_mem_reboot_counter(void)
{
if (check_rtc_retain_mem()) {
return rtc_retain_mem->reboot_counter;
return bootloader_common_get_rtc_retain_mem()->reboot_counter;
}
return 0;
}
@@ -178,13 +164,14 @@ uint16_t bootloader_common_get_rtc_retain_mem_reboot_counter(void)
esp_partition_pos_t* bootloader_common_get_rtc_retain_mem_partition(void)
{
if (check_rtc_retain_mem()) {
return &rtc_retain_mem->partition;
return &bootloader_common_get_rtc_retain_mem()->partition;
}
return NULL;
}
void bootloader_common_update_rtc_retain_mem(esp_partition_pos_t* partition, bool reboot_counter)
{
rtc_retain_mem_t* rtc_retain_mem = bootloader_common_get_rtc_retain_mem();
if (reboot_counter) {
if (!check_rtc_retain_mem()) {
bootloader_common_reset_rtc_retain_mem();
@@ -206,6 +193,13 @@ void bootloader_common_update_rtc_retain_mem(esp_partition_pos_t* partition, boo
rtc_retain_mem_t* bootloader_common_get_rtc_retain_mem(void)
{
return rtc_retain_mem;
#ifdef BOOTLOADER_BUILD
#define RTC_RETAIN_MEM_ADDR (SOC_RTC_DRAM_HIGH - sizeof(rtc_retain_mem_t))
static rtc_retain_mem_t *const s_bootloader_retain_mem = (rtc_retain_mem_t *)RTC_RETAIN_MEM_ADDR;
return s_bootloader_retain_mem;
#else
static __attribute__((section(".bootloader_data_rtc_mem"))) rtc_retain_mem_t s_bootloader_retain_mem;
return &s_bootloader_retain_mem;
#endif // !BOOTLOADER_BUILD
}
#endif // defined( CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP ) || defined( CONFIG_BOOTLOADER_CUSTOM_RESERVE_RTC )

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2020-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -29,6 +29,9 @@
#include "esp32c2/rom/ets_sys.h"
#include "esp32c2/rom/uart.h"
#endif
#if SOC_USB_SERIAL_JTAG_SUPPORTED
#include "hal/usb_phy_ll.h"
#endif
#include "esp_rom_gpio.h"
#include "esp_rom_uart.h"
#include "esp_rom_sys.h"
@@ -105,8 +108,12 @@ void bootloader_console_init(void)
#endif
esp_rom_uart_usb_acm_init(s_usb_cdc_buf, sizeof(s_usb_cdc_buf));
esp_rom_uart_set_as_console(ESP_ROM_UART_USB);
esp_rom_uart_set_as_console(ESP_ROM_USB_OTG_NUM);
esp_rom_install_channel_putc(1, bootloader_console_write_char_usb);
#if SOC_USB_SERIAL_JTAG_SUPPORTED
usb_phy_ll_usb_wrap_pad_enable(&USB_WRAP, true);
usb_phy_ll_int_otg_enable(&USB_WRAP);
#endif
}
#endif //CONFIG_ESP_CONSOLE_USB_CDC

View File

@@ -96,4 +96,12 @@ void bootloader_print_banner(void)
#ifndef CONFIG_APP_REPRODUCIBLE_BUILD
ESP_LOGI(TAG, "compile time " __TIME__);
#endif
#if CONFIG_FREERTOS_UNICORE
#if (SOC_CPU_CORES_NUM > 1)
ESP_EARLY_LOGW(TAG, "Unicore bootloader");
#endif
#else
ESP_EARLY_LOGI(TAG, "Multicore bootloader");
#endif
}

View File

@@ -26,9 +26,11 @@ void abort(void)
#if !CONFIG_ESP_SYSTEM_PANIC_SILENT_REBOOT
esp_rom_printf("abort() was called at PC 0x%08x\r\n", (intptr_t)__builtin_return_address(0) - 3);
#endif
#if CONFIG_ESP_DEBUG_OCDAWARE
if (esp_cpu_dbgr_is_attached()) {
esp_cpu_dbgr_break();
}
#endif
while (1) {
}
}

View File

@@ -129,7 +129,7 @@ static esp_err_t bootloader_check_rated_cpu_clock(void)
{
int rated_freq = bootloader_clock_get_rated_freq_mhz();
if (rated_freq < CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ) {
ESP_LOGE(TAG, "Chip CPU frequency rated for %dMHz, configured for %dMHz. Modify CPU frequency in menuconfig",
ESP_LOGE(TAG, "Chip CPU freq rated for %dMHz, configured for %dMHz. Modify CPU freq in menuconfig",
rated_freq, CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ);
return ESP_FAIL;
}

View File

@@ -3,18 +3,10 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdbool.h>
void bootloader_ana_super_wdt_reset_config(bool enable)
{
(void)enable;
}
void bootloader_ana_bod_reset_config(bool enable)
{
(void)enable;
}
//Not supported but common bootloader calls the function. Do nothing
void bootloader_ana_clock_glitch_reset_config(bool enable)
{
(void)enable;

View File

@@ -34,6 +34,7 @@
#include "bootloader_mem.h"
#include "bootloader_console.h"
#include "bootloader_flash_priv.h"
#include "bootloader_soc.h"
#include "esp_efuse.h"
#include "hal/mmu_hal.h"
#include "hal/cache_hal.h"
@@ -240,10 +241,19 @@ static void bootloader_super_wdt_auto_feed(void)
REG_WRITE(RTC_CNTL_SWD_WPROTECT_REG, 0);
}
static inline void bootloader_ana_reset_config(void)
{
//Enable super WDT reset.
bootloader_ana_super_wdt_reset_config(true);
//Enable BOD reset
bootloader_ana_bod_reset_config(true);
}
esp_err_t bootloader_init(void)
{
esp_err_t ret = ESP_OK;
bootloader_ana_reset_config();
bootloader_super_wdt_auto_feed();
// protect memory region
bootloader_init_mem();

View File

@@ -3,19 +3,34 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdbool.h>
#include "soc/rtc_cntl_reg.h"
void bootloader_ana_super_wdt_reset_config(bool enable)
{
(void)enable; // ESP32-C2 has none of these features.
REG_CLR_BIT(RTC_CNTL_FIB_SEL_REG, RTC_CNTL_FIB_SUPER_WDT_RST);
if (enable) {
REG_CLR_BIT(RTC_CNTL_SWD_CONF_REG, RTC_CNTL_SWD_BYPASS_RST);
} else {
REG_SET_BIT(RTC_CNTL_SWD_CONF_REG, RTC_CNTL_SWD_BYPASS_RST);
}
}
void bootloader_ana_bod_reset_config(bool enable)
{
(void)enable; // ESP32-C2 has none of these features.
REG_CLR_BIT(RTC_CNTL_FIB_SEL_REG, RTC_CNTL_FIB_BOD_RST);
if (enable) {
REG_SET_BIT(RTC_CNTL_BROWN_OUT_REG, RTC_CNTL_BROWN_OUT_ANA_RST_EN);
} else {
REG_CLR_BIT(RTC_CNTL_BROWN_OUT_REG, RTC_CNTL_BROWN_OUT_ANA_RST_EN);
}
}
//Not supported but common bootloader calls the function. Do nothing
void bootloader_ana_clock_glitch_reset_config(bool enable)
{
(void)enable; // ESP32-C2 has none of these features.
(void)enable;
}

View File

@@ -261,29 +261,29 @@ static inline void bootloader_hardware_init(void)
static inline void bootloader_ana_reset_config(void)
{
//Enable super WDT reset.
bootloader_ana_super_wdt_reset_config(true);
/*
For origin chip & ECO1: only support swt reset;
For ECO2: fix brownout reset bug, support swt & brownout reset;
For ECO3: fix clock glitch reset bug, support all reset, include: swt & brownout & clock glitch reset.
For origin chip & ECO1: brownout & clock glitch reset not available
For ECO2: fix brownout reset bug
For ECO3: fix clock glitch reset bug
*/
switch (efuse_hal_chip_revision()) {
case 0:
case 1:
//Enable WDT reset. Disable BOR and GLITCH reset
bootloader_ana_super_wdt_reset_config(true);
//Disable BOD and GLITCH reset
bootloader_ana_bod_reset_config(false);
bootloader_ana_clock_glitch_reset_config(false);
break;
case 2:
//Enable WDT and BOR reset. Disable GLITCH reset
bootloader_ana_super_wdt_reset_config(true);
//Enable BOD reset. Disable GLITCH reset
bootloader_ana_bod_reset_config(true);
bootloader_ana_clock_glitch_reset_config(false);
break;
case 3:
default:
//Enable WDT, BOR, and GLITCH reset
bootloader_ana_super_wdt_reset_config(true);
//Enable BOD, and GLITCH reset
bootloader_ana_bod_reset_config(true);
bootloader_ana_clock_glitch_reset_config(true);
break;

View File

@@ -12,15 +12,15 @@ void bootloader_ana_super_wdt_reset_config(bool enable)
REG_CLR_BIT(RTC_CNTL_FIB_SEL_REG, RTC_CNTL_FIB_SUPER_WDT_RST);
if (enable) {
REG_SET_BIT(RTC_CNTL_SWD_CONF_REG, RTC_CNTL_SWD_BYPASS_RST);
} else {
REG_CLR_BIT(RTC_CNTL_SWD_CONF_REG, RTC_CNTL_SWD_BYPASS_RST);
} else {
REG_SET_BIT(RTC_CNTL_SWD_CONF_REG, RTC_CNTL_SWD_BYPASS_RST);
}
}
void bootloader_ana_bod_reset_config(bool enable)
{
REG_CLR_BIT(RTC_CNTL_FIB_SEL_REG, RTC_CNTL_FIB_BOR_RST);
REG_CLR_BIT(RTC_CNTL_FIB_SEL_REG, RTC_CNTL_FIB_BOD_RST);
if (enable) {
REG_SET_BIT(RTC_CNTL_BROWN_OUT_REG, RTC_CNTL_BROWN_OUT_ANA_RST_EN);

View File

@@ -3,18 +3,10 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdbool.h>
void bootloader_ana_super_wdt_reset_config(bool enable)
{
(void)enable;
}
void bootloader_ana_bod_reset_config(bool enable)
{
(void)enable;
}
//Not supported but common bootloader calls the function. Do nothing
void bootloader_ana_clock_glitch_reset_config(bool enable)
{
(void)enable;

View File

@@ -210,7 +210,7 @@ static esp_err_t bootloader_init_spi_flash(void)
}
#endif
#if CONFIG_SPI_FLASH_HPM_ENABLE
#if CONFIG_BOOTLOADER_FLASH_DC_AWARE
// Reset flash, clear volatile bits DC[0:1]. Make it work under default mode to boot.
bootloader_spi_flash_reset();
#endif
@@ -220,7 +220,9 @@ static esp_err_t bootloader_init_spi_flash(void)
#if CONFIG_ESPTOOLPY_FLASHMODE_QIO || CONFIG_ESPTOOLPY_FLASHMODE_QOUT
bootloader_enable_qio_mode();
#endif
#if CONFIG_BOOTLOADER_CACHE_32BIT_ADDR_OCTAL_FLASH
bootloader_flash_32bits_address_map_enable(bootloader_flash_get_spi_mode());
#endif
print_flash_info(&bootloader_image_hdr);
update_flash_config(&bootloader_image_hdr);
//ensure the flash is write-protected
@@ -314,7 +316,7 @@ static void bootloader_super_wdt_auto_feed(void)
static inline void bootloader_ana_reset_config(void)
{
//Enable WDT, BOR, and GLITCH reset
//Enable WDT, BOD, and GLITCH reset
bootloader_ana_super_wdt_reset_config(true);
bootloader_ana_bod_reset_config(true);
bootloader_ana_clock_glitch_reset_config(true);

View File

@@ -12,15 +12,15 @@ void bootloader_ana_super_wdt_reset_config(bool enable)
REG_CLR_BIT(RTC_CNTL_FIB_SEL_REG, RTC_CNTL_FIB_SUPER_WDT_RST);
if (enable) {
REG_SET_BIT(RTC_CNTL_SWD_CONF_REG, RTC_CNTL_SWD_BYPASS_RST);
} else {
REG_CLR_BIT(RTC_CNTL_SWD_CONF_REG, RTC_CNTL_SWD_BYPASS_RST);
} else {
REG_SET_BIT(RTC_CNTL_SWD_CONF_REG, RTC_CNTL_SWD_BYPASS_RST);
}
}
void bootloader_ana_bod_reset_config(bool enable)
{
REG_CLR_BIT(RTC_CNTL_FIB_SEL_REG, RTC_CNTL_FIB_BOR_RST);
REG_CLR_BIT(RTC_CNTL_FIB_SEL_REG, RTC_CNTL_FIB_BOD_RST);
if (enable) {
REG_SET_BIT(RTC_CNTL_BROWN_OUT_REG, RTC_CNTL_BROWN_OUT_ANA_RST_EN);

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
*/
@@ -19,6 +19,8 @@
#include "bootloader_util.h"
#include "bootloader_common.h"
#include "esp_rom_sys.h"
#include "esp_efuse.h"
#include "esp_app_desc.h"
#include "bootloader_memory_utils.h"
#include "soc/soc_caps.h"
#if CONFIG_IDF_TARGET_ESP32
@@ -81,10 +83,10 @@ static bool should_map(uint32_t load_addr);
static esp_err_t process_segments(esp_image_metadata_t *data, bool silent, bool do_load, bootloader_sha256_handle_t sha_handle, uint32_t *checksum);
/* Load or verify a segment */
static esp_err_t process_segment(int index, uint32_t flash_addr, esp_image_segment_header_t *header, bool silent, bool do_load, bootloader_sha256_handle_t sha_handle, uint32_t *checksum);
static esp_err_t process_segment(int index, uint32_t flash_addr, esp_image_segment_header_t *header, bool silent, bool do_load, bootloader_sha256_handle_t sha_handle, uint32_t *checksum, esp_image_metadata_t *metadata);
/* split segment and verify if data_len is too long */
static esp_err_t process_segment_data(intptr_t load_addr, uint32_t data_addr, uint32_t data_len, bool do_load, bootloader_sha256_handle_t sha_handle, uint32_t *checksum);
static esp_err_t process_segment_data(int segment, intptr_t load_addr, uint32_t data_addr, uint32_t data_len, bool do_load, bootloader_sha256_handle_t sha_handle, uint32_t *checksum, esp_image_metadata_t *metadata);
/* Verify the main image header */
static esp_err_t verify_image_header(uint32_t src_addr, const esp_image_header_t *image, bool silent);
@@ -229,6 +231,21 @@ static esp_err_t image_load(esp_image_load_mode_t mode, const esp_partition_pos_
}
}
}
#if CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK
/* For anti-rollback case, reconfirm security version of the application to prevent FI attacks */
bool sec_ver = false;
if (do_load) {
sec_ver = esp_efuse_check_secure_version(data->secure_version);
if (!sec_ver) {
err = ESP_FAIL;
goto err;
}
}
/* Ensure that the security version check passes for image loading scenario */
ESP_FAULT_ASSERT(!do_load || sec_ver == true);
#endif // CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK
#endif // BOOTLOADER_BUILD
// Success!
@@ -504,8 +521,8 @@ static esp_err_t process_segments(esp_image_metadata_t *data, bool silent, bool
uint32_t next_addr = start_segments;
for (int i = 0; i < data->image.segment_count; i++) {
esp_image_segment_header_t *header = &data->segments[i];
ESP_LOGV(TAG, "loading segment header %d at offset 0x%x", i, next_addr);
CHECK_ERR(process_segment(i, next_addr, header, silent, do_load, sha_handle, checksum));
ESP_LOGV(TAG, "loading segment header %d at offset 0x%"PRIx32, i, next_addr);
CHECK_ERR(process_segment(i, next_addr, header, silent, do_load, sha_handle, checksum, data));
next_addr += sizeof(esp_image_segment_header_t);
data->segment_data[i] = next_addr;
next_addr += header->data_len;
@@ -526,7 +543,7 @@ err:
return err;
}
static esp_err_t process_segment(int index, uint32_t flash_addr, esp_image_segment_header_t *header, bool silent, bool do_load, bootloader_sha256_handle_t sha_handle, uint32_t *checksum)
static esp_err_t process_segment(int index, uint32_t flash_addr, esp_image_segment_header_t *header, bool silent, bool do_load, bootloader_sha256_handle_t sha_handle, uint32_t *checksum, esp_image_metadata_t *metadata)
{
esp_err_t err;
@@ -584,7 +601,7 @@ static esp_err_t process_segment(int index, uint32_t flash_addr, esp_image_segme
uint32_t offset_page = ((data_addr & MMAP_ALIGNED_MASK) != 0) ? 1 : 0;
/* Data we could map in case we are not aligned to PAGE boundary is one page size lesser. */
data_len = MIN(data_len_remain, ((free_page_count - offset_page) * SPI_FLASH_MMU_PAGE_SIZE));
CHECK_ERR(process_segment_data(load_addr, data_addr, data_len, do_load, sha_handle, checksum));
CHECK_ERR(process_segment_data(index, load_addr, data_addr, data_len, do_load, sha_handle, checksum, metadata));
data_addr += data_len;
data_len_remain -= data_len;
}
@@ -599,7 +616,42 @@ err:
return err;
}
static esp_err_t process_segment_data(intptr_t load_addr, uint32_t data_addr, uint32_t data_len, bool do_load, bootloader_sha256_handle_t sha_handle, uint32_t *checksum)
#if CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK
/* The __attribute__((optimize("O0"))) is used to disable optimizations for this function,
* preventing the compiler from potentially optimizing data_buffer and reading data directly from src.
* This is crucial as we want to read from Flash only once, ensuring the integrity of the data.
*/
__attribute__((optimize("O0")))
static size_t process_esp_app_desc_data(const uint32_t *src, bootloader_sha256_handle_t sha_handle, uint32_t *checksum, esp_image_metadata_t *metadata)
{
/* Using data_buffer here helps to securely read secure_version
* (for anti-rollback) from esp_app_desc_t, preventing FI attack.
* We read data from Flash into this buffer, which is covered by sha256.
* Therefore, if the flash is under attackers control and contents are modified
* the sha256 comparison will fail.
*
* The esp_app_desc_t structure is located in DROM and is always in segment #0.
*
* esp_app_desc_t is always at #0 segment (index==0).
* secure_version field of esp_app_desc_t is located at #2 word (w_i==1).
*/
uint32_t data_buffer[2];
memcpy(data_buffer, src, sizeof(data_buffer));
assert(data_buffer[0] == ESP_APP_DESC_MAGIC_WORD);
metadata->secure_version = data_buffer[1];
if (checksum != NULL) {
*checksum ^= data_buffer[0] ^ data_buffer[1];
}
if (sha_handle != NULL) {
bootloader_sha256_data(sha_handle, data_buffer, sizeof(data_buffer));
}
ESP_FAULT_ASSERT(memcmp(data_buffer, src, sizeof(data_buffer)) == 0);
ESP_FAULT_ASSERT(memcmp(&metadata->secure_version, &src[1], sizeof(uint32_t)) == 0);
return sizeof(data_buffer);
}
#endif // CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK
static esp_err_t process_segment_data(int segment, intptr_t load_addr, uint32_t data_addr, uint32_t data_len, bool do_load, bootloader_sha256_handle_t sha_handle, uint32_t *checksum, esp_image_metadata_t *metadata)
{
// If we are not loading, and the checksum is empty, skip processing this
// segment for data
@@ -632,10 +684,24 @@ static esp_err_t process_segment_data(intptr_t load_addr, uint32_t data_addr, ui
#endif
}
uint32_t *dest = (uint32_t *)load_addr;
#endif
#endif // BOOTLOADER_BUILD
const uint32_t *src = data;
#if CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK
// Case I: Bootloader verifying application
// Case II: Bootloader verifying bootloader
// Anti-rollback check should handle only Case I from above.
if (segment == 0 && metadata->start_addr != ESP_BOOTLOADER_OFFSET) {
ESP_LOGD(TAG, "additional anti-rollback check 0x%"PRIx32, data_addr);
// The esp_app_desc_t structure is located in DROM and is always in segment #0.
size_t len = process_esp_app_desc_data(src, sha_handle, checksum, metadata);
data_len -= len;
src += len / 4;
// In BOOTLOADER_BUILD, for DROM (segment #0) we do not load it into dest (only map it), do_load = false.
}
#endif // CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK
for (size_t i = 0; i < data_len; i += 4) {
int w_i = i / 4; // Word index
uint32_t w = src[w_i];
@@ -860,7 +926,7 @@ static esp_err_t verify_secure_boot_signature(bootloader_sha256_handle_t sha_han
bootloader_munmap(simple_hash);
}
#if CONFIG_SECURE_BOOT_V2_ENABLED
#if CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME || CONFIG_SECURE_SIGNED_APPS_ECDSA_V2_SCHEME
// End of the image needs to be padded all the way to a 4KB boundary, after the simple hash
// (for apps they are usually already padded due to --secure-pad-v2, only a problem if this option was not used.)
uint32_t padded_end = ALIGN_UP(end, FLASH_SECTOR_SIZE);
@@ -870,7 +936,7 @@ static esp_err_t verify_secure_boot_signature(bootloader_sha256_handle_t sha_han
bootloader_munmap(padding);
end = padded_end;
}
#endif
#endif // CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME || CONFIG_SECURE_SIGNED_APPS_ECDSA_V2_SCHEME
bootloader_sha256_finish(sha_handle, image_digest);
@@ -910,9 +976,13 @@ static esp_err_t verify_secure_boot_signature(bootloader_sha256_handle_t sha_han
return ESP_ERR_IMAGE_INVALID;
}
#if CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME || CONFIG_SECURE_SIGNED_APPS_ECDSA_V2_SCHEME
// Adjust image length result to include the appended signature
#if CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME || CONFIG_SECURE_SIGNED_APPS_ECDSA_V2_SCHEME
data->image_len = end - data->start_addr + sizeof(ets_secure_boot_signature_t);
#elif defined(CONFIG_SECURE_SIGNED_APPS_ECDSA_SCHEME)
if (data->start_addr != ESP_BOOTLOADER_OFFSET) {
data->image_len = end - data->start_addr + sizeof(esp_secure_boot_sig_block_t);
}
#endif
#endif // SECURE_BOOT_CHECK_SIGNATURE

View File

@@ -11,6 +11,7 @@
#include "esp_efuse_table.h"
#include "esp_flash_encrypt.h"
#include "esp_secure_boot.h"
#include "hal/efuse_hal.h"
#if CONFIG_IDF_TARGET_ESP32
#define CRYPT_CNT ESP_EFUSE_FLASH_CRYPT_CNT
@@ -81,15 +82,14 @@ void esp_flash_encryption_init_checks()
*/
bool IRAM_ATTR esp_flash_encryption_enabled(void)
{
uint32_t flash_crypt_cnt = 0;
#ifndef CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH
flash_crypt_cnt = efuse_ll_get_flash_crypt_cnt();
return efuse_hal_flash_encryption_enabled();
#else
uint32_t flash_crypt_cnt = 0;
#if CONFIG_IDF_TARGET_ESP32
esp_efuse_read_field_blob(ESP_EFUSE_FLASH_CRYPT_CNT, &flash_crypt_cnt, ESP_EFUSE_FLASH_CRYPT_CNT[0]->bit_count);
#else
esp_efuse_read_field_blob(ESP_EFUSE_SPI_BOOT_CRYPT_CNT, &flash_crypt_cnt, ESP_EFUSE_SPI_BOOT_CRYPT_CNT[0]->bit_count);
#endif
#endif
/* __builtin_parity is in flash, so we calculate parity inline */
bool enabled = false;
@@ -100,6 +100,7 @@ bool IRAM_ATTR esp_flash_encryption_enabled(void)
flash_crypt_cnt >>= 1;
}
return enabled;
#endif // CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH
}
void esp_flash_write_protect_crypt_cnt(void)

View File

@@ -389,14 +389,21 @@ static esp_err_t encrypt_partition(int index, const esp_partition_info_t *partit
{
esp_err_t err;
bool should_encrypt = (partition->flags & PART_FLAG_ENCRYPTED);
uint32_t size = partition->pos.size;
if (partition->type == PART_TYPE_APP) {
/* check if the partition holds a valid unencrypted app */
esp_image_metadata_t data_ignored;
esp_image_metadata_t image_data = {};
err = esp_image_verify(ESP_IMAGE_VERIFY,
&partition->pos,
&data_ignored);
&image_data);
should_encrypt = (err == ESP_OK);
#ifdef CONFIG_SECURE_FLASH_ENCRYPT_ONLY_IMAGE_LEN_IN_APP_PART
if (should_encrypt) {
// Encrypt only the app image instead of encrypting the whole partition
size = image_data.image_len;
}
#endif
} else if ((partition->type == PART_TYPE_DATA && partition->subtype == PART_SUBTYPE_DATA_OTA)
|| (partition->type == PART_TYPE_DATA && partition->subtype == PART_SUBTYPE_DATA_NVS_KEYS)) {
/* check if we have ota data partition and the partition should be encrypted unconditionally */
@@ -407,9 +414,9 @@ static esp_err_t encrypt_partition(int index, const esp_partition_info_t *partit
return ESP_OK;
} else {
/* should_encrypt */
ESP_LOGI(TAG, "Encrypting partition %d at offset 0x%x (length 0x%x)...", index, partition->pos.offset, partition->pos.size);
ESP_LOGI(TAG, "Encrypting partition %d at offset 0x%x (length 0x%x)...", index, partition->pos.offset, size);
err = esp_flash_encrypt_region(partition->pos.offset, partition->pos.size);
err = esp_flash_encrypt_region(partition->pos.offset, size);
ESP_LOGI(TAG, "Done encrypting");
if (err != ESP_OK) {
ESP_LOGE(TAG, "Failed to encrypt partition %d", index);

View File

@@ -144,9 +144,9 @@ static esp_err_t secure_boot_v2_check(bool *need_fix)
#endif
#endif // CONFIG_SECURE_BOOT
#if CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME && CONFIG_SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
#if (CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME || CONFIG_SECURE_SIGNED_APPS_ECDSA_V2_SCHEME) && CONFIG_SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
static void rsa_check_signature_on_update_check(void)
static void check_signature_on_update_check(void)
{
// We rely on the keys used to sign this app to verify the next app on OTA, so make sure there is at
// least one to avoid a stuck firmware
@@ -164,7 +164,7 @@ static void rsa_check_signature_on_update_check(void)
}
#endif
}
#endif // CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME && CONFIG_SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
#endif // (CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME || CONFIG_SECURE_SIGNED_APPS_ECDSA_V2_SCHEME) && CONFIG_SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
void esp_secure_boot_init_checks(void)
{
@@ -184,9 +184,9 @@ void esp_secure_boot_init_checks(void)
#endif // CONFIG_SECURE_BOOT
#if CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME && CONFIG_SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
rsa_check_signature_on_update_check();
#endif // CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME && CONFIG_SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
#if (CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME || CONFIG_SECURE_SIGNED_APPS_ECDSA_V2_SCHEME) && CONFIG_SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
check_signature_on_update_check();
#endif // (CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME || CONFIG_SECURE_SIGNED_APPS_ECDSA_V2_SCHEME) && CONFIG_SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
}

View File

@@ -22,6 +22,7 @@
#include "esp_secure_boot.h"
#include "esp_ota_ops.h"
#include "esp_efuse.h"
#include "esp_efuse_chip.h"
#include "secure_boot_signature_priv.h"
@@ -46,31 +47,32 @@ static esp_err_t validate_signature_block(const ets_secure_boot_sig_block_t *blo
return ESP_OK;
}
esp_err_t esp_secure_boot_get_signature_blocks_for_running_app(bool digest_public_keys, esp_image_sig_public_key_digests_t *public_key_digests)
static esp_err_t calculate_image_public_key_digests(bool verify_image_digest, bool digest_public_keys, esp_image_sig_public_key_digests_t *public_key_digests, esp_partition_pos_t *part_pos)
{
esp_image_metadata_t metadata;
const esp_partition_t* running_app_part = esp_ota_get_running_partition();
if (running_app_part == NULL) {
ESP_LOGE(TAG, "Cannot get running partition");
return ESP_FAIL;
}
const esp_partition_pos_t part_pos = {
.offset = running_app_part->address,
.size = running_app_part->size,
};
esp_err_t err = esp_image_get_metadata(&part_pos, &metadata);
if (err != ESP_OK) {
ESP_LOGE(TAG, "Error reading metadata from running app (err=0x%x)", err);
esp_image_metadata_t img_metadata = {0};
esp_err_t ret = esp_image_get_metadata(part_pos, &img_metadata);
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Error reading metadata from running app (err=0x%x)", ret);
return ESP_FAIL;
}
memset(public_key_digests, 0, sizeof(esp_image_sig_public_key_digests_t));
uint8_t image_digest[ESP_SECURE_BOOT_DIGEST_LEN] = {0};
uint8_t __attribute__((aligned(4))) key_digest[ESP_SECURE_BOOT_DIGEST_LEN] = {0};
size_t sig_block_addr = img_metadata.start_addr + ALIGN_UP(img_metadata.image_len, FLASH_SECTOR_SIZE);
// Generating the SHA of the public key components in the signature block
ESP_LOGD(TAG, "calculating public key digests for sig blocks of image offset 0x%"PRIu32" (sig block offset 0x%u)", img_metadata.start_addr, sig_block_addr);
// metadata.image_len doesn't include any padding to start of the signature sector, so pad it here
size_t sig_block_addr = metadata.start_addr + ALIGN_UP(metadata.image_len, FLASH_SECTOR_SIZE);
ESP_LOGD(TAG, "reading signatures for app address 0x%x sig block address 0x%x", part_pos.offset, sig_block_addr);
bzero(public_key_digests, sizeof(esp_image_sig_public_key_digests_t));
if (verify_image_digest) {
ret = bootloader_sha256_flash_contents(img_metadata.start_addr, sig_block_addr - img_metadata.start_addr, image_digest);
if (ret != ESP_OK) {
ESP_LOGE(TAG, "error generating image digest, %d", ret);
return ret;
}
}
ESP_LOGD(TAG, "reading signature(s)");
for (unsigned i = 0; i < SECURE_BOOT_NUM_BLOCKS; i++) {
ets_secure_boot_sig_block_t block;
size_t addr = sig_block_addr + sizeof(ets_secure_boot_sig_block_t) * i;
@@ -84,20 +86,59 @@ esp_err_t esp_secure_boot_get_signature_blocks_for_running_app(bool digest_publi
#elif CONFIG_SECURE_SIGNED_APPS_ECDSA_V2_SCHEME
bootloader_sha256_data(sig_block_sha, &block.ecdsa.key, sizeof(block.ecdsa.key));
#endif
bootloader_sha256_finish(sig_block_sha, public_key_digests->key_digests[i]);
bootloader_sha256_finish(sig_block_sha, key_digest);
if (verify_image_digest) {
// Check we can verify the image using this signature and this key
uint8_t temp_verified_digest[ESP_SECURE_BOOT_DIGEST_LEN];
#if CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME
bool verified = ets_rsa_pss_verify(&block.key, block.signature, image_digest, temp_verified_digest);
#elif CONFIG_SECURE_SIGNED_APPS_ECDSA_V2_SCHEME
bool verified = ets_ecdsa_verify(&block.ecdsa.key.point[0], block.ecdsa.signature, block.ecdsa.key.curve_id, image_digest, temp_verified_digest);
#endif
if (!verified) {
ESP_LOGE(TAG, "Secure boot key (%d) verification failed.", i);
continue;
}
ESP_LOGD(TAG, "Signature block (%d) is verified", i);
}
/* Copy the key digest to the buffer provided by the caller */
memcpy((void *)public_key_digests->key_digests[public_key_digests->num_digests], key_digest, ESP_SECURE_BOOT_DIGEST_LEN);
}
public_key_digests->num_digests++;
}
} else {
ESP_LOGE(TAG, "Secure boot sign blocks cannot be read from a running app (err=0x%x)", err);
ESP_LOGE(TAG, "Secure boot sign blocks cannot be read from image at %lx (err=0x%x)", part_pos->offset, err);
return ESP_FAIL;
}
}
if (public_key_digests->num_digests > 0) {
return ESP_OK;
if (ret == ESP_OK && public_key_digests->num_digests > 0) {
ESP_LOGD(TAG, "Digests successfully calculated, %d valid signatures (image offset 0x%"PRIu32")",
public_key_digests->num_digests, img_metadata.start_addr);
}
ESP_LOGE(TAG, "No signatures were found for the running app");
return ESP_ERR_NOT_FOUND;
if (public_key_digests->num_digests == 0) {
return ESP_ERR_NOT_FOUND;
}
return ret;
}
esp_err_t esp_secure_boot_get_signature_blocks_for_running_app(bool digest_public_keys, esp_image_sig_public_key_digests_t *public_key_digests)
{
esp_partition_pos_t part_pos;
const esp_partition_t* running_app_part = esp_ota_get_running_partition();
if (running_app_part == NULL) {
ESP_LOGE(TAG, "Cannot get running partition");
return ESP_FAIL;
}
part_pos.offset = running_app_part->address;
part_pos.size = running_app_part->size;
esp_err_t err = calculate_image_public_key_digests(false, digest_public_keys, public_key_digests, &part_pos);
if (public_key_digests->num_digests == 0) {
ESP_LOGE(TAG, "No signatures were found for the running app");
}
return err;
}
static esp_err_t get_secure_boot_key_digests(esp_image_sig_public_key_digests_t *public_key_digests)
@@ -236,3 +277,33 @@ esp_err_t esp_secure_boot_verify_rsa_signature_block(const ets_secure_boot_signa
#endif
#endif // CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME || CONFIG_SECURE_SIGNED_APPS_ECDSA_V2_SCHEME || CONFIG_SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
#if SOC_SUPPORT_SECURE_BOOT_REVOKE_KEY && CONFIG_SECURE_BOOT_V2_ENABLED
esp_err_t esp_secure_boot_verify_with_efuse_digest_index(int efuse_digest_index, esp_partition_pos_t *part_pos)
{
if (!part_pos || (efuse_digest_index < 0 || efuse_digest_index >= SOC_EFUSE_SECURE_BOOT_KEY_DIGESTS)) {
return ESP_ERR_INVALID_ARG;
}
esp_image_sig_public_key_digests_t img_key_digests = {0};
esp_err_t ret = calculate_image_public_key_digests(true, true, &img_key_digests, part_pos);
if (ret != ESP_OK) {
return ESP_FAIL;
}
if (esp_efuse_get_digest_revoke(efuse_digest_index)) {
return ESP_FAIL;
}
// Read key digests from efuse
esp_secure_boot_key_digests_t efuse_key_digests;
memset(&efuse_key_digests, 0, sizeof(esp_secure_boot_key_digests_t));
esp_secure_boot_read_key_digests(&efuse_key_digests);
for (int i = 0; i < img_key_digests.num_digests; i++) {
if (!memcmp(img_key_digests.key_digests[i], efuse_key_digests.key_digests[efuse_digest_index], ESP_SECURE_BOOT_KEY_DIGEST_LEN)) {
return ESP_OK;
}
}
return ESP_FAIL;
}
#endif // SOC_SUPPORT_SECURE_BOOT_REVOKE_KEY && CONFIG_SECURE_BOOT_V2_ENABLED

View File

@@ -2,28 +2,39 @@ if(CONFIG_BT_ENABLED)
set(srcs "")
set(include_dirs "")
set(ldscripts "linker_common.lf")
if(CONFIG_IDF_TARGET_ESP32)
list(APPEND srcs "controller/esp32/bt.c"
"controller/esp32/hli_api.c"
"controller/esp32/hli_vectors.S")
list(APPEND include_dirs include/esp32/include)
list(APPEND ldscripts "linker_rw_bt_controller.lf")
elseif(CONFIG_IDF_TARGET_ESP32C3)
list(APPEND srcs "controller/esp32c3/bt.c")
list(APPEND include_dirs include/esp32c3/include)
list(APPEND ldscripts "linker_rw_bt_controller.lf")
elseif(CONFIG_IDF_TARGET_ESP32S3)
list(APPEND srcs "controller/esp32s3/bt.c")
list(APPEND include_dirs include/esp32s3/include)
list(APPEND srcs "controller/esp32c3/bt.c")
list(APPEND include_dirs include/esp32c3/include)
list(APPEND ldscripts "linker_rw_bt_controller.lf")
elseif(CONFIG_IDF_TARGET_ESP32H2)
list(APPEND srcs "controller/esp32h2/bt.c")
list(APPEND include_dirs include/esp32h2/include)
list(APPEND ldscripts "linker_esp_ble_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")
list(APPEND include_dirs include/esp32c2/include)
set(ldscripts "linker_esp32c2.lf")
if(CONFIG_BT_CTRL_RUN_IN_FLASH_ONLY)
list(APPEND srcs "controller/esp32c2/dummy.c")
endif()
endif()
@@ -39,11 +50,14 @@ if(CONFIG_BT_ENABLED)
common/api/include/api
common/btc/profile/esp/blufi/include
common/btc/profile/esp/include
common/hci_log/include
common/ble_log/include
)
list(APPEND srcs "common/btc/core/btc_alarm.c"
"common/api/esp_blufi_api.c"
"common/hci_log/bt_hci_log.c"
"common/btc/core/btc_manage.c"
"common/btc/core/btc_task.c"
"common/btc/profile/esp/blufi/blufi_prf.c"
@@ -64,6 +78,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
@@ -321,6 +336,7 @@ if(CONFIG_BT_ENABLED)
"host/bluedroid/stack/gatt/gatt_db.c"
"host/bluedroid/stack/gatt/gatt_main.c"
"host/bluedroid/stack/gatt/gatt_sr.c"
"host/bluedroid/stack/gatt/gatt_sr_hash.c"
"host/bluedroid/stack/gatt/gatt_utils.c"
"host/bluedroid/stack/hcic/hciblecmds.c"
"host/bluedroid/stack/hcic/hcicmds.c"
@@ -473,19 +489,27 @@ if(CONFIG_BT_ENABLED)
if(CONFIG_BT_LE_CONTROLLER_NPL_OS_PORTING_SUPPORT)
list(APPEND srcs
"porting/npl/freertos/src/npl_os_freertos.c"
"porting/nimble/src/os_msys_init.c"
"porting/mem/os_msys_init.c"
"porting/transport/src/hci_transport.c"
)
list(APPEND include_dirs
porting/include
porting/nimble/include
porting/npl/freertos/include
porting/transport/include
)
if(CONFIG_BT_LE_HCI_INTERFACE_USE_UART)
if(CONFIG_BT_LE_HCI_INTERFACE_USE_RAM)
list(APPEND srcs
"porting/transport/uart/hci_uart.c"
"porting/transport/driver/vhci/hci_driver_standard.c"
)
elseif(CONFIG_BT_LE_HCI_INTERFACE_USE_UART)
list(APPEND srcs
"porting/transport/driver/common/hci_driver_util.c"
"porting/transport/driver/common/hci_driver_h4.c"
"porting/transport/driver/common/hci_driver_mem.c"
"porting/transport/driver/uart/hci_driver_uart_config.c"
"porting/transport/driver/uart/hci_driver_uart.c"
)
endif()
endif()
@@ -493,23 +517,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)
@@ -517,15 +543,19 @@ if(CONFIG_BT_ENABLED)
list(APPEND include_dirs
host/nimble/nimble/nimble/host/include
host/nimble/nimble/nimble/include
host/nimble/nimble/nimble/host/services/ans/include
host/nimble/nimble/nimble/host/services/bas/include
host/nimble/nimble/nimble/host/services/dis/include
host/nimble/nimble/nimble/host/services/gap/include
host/nimble/nimble/nimble/host/services/gatt/include
host/nimble/nimble/nimble/host/services/htp/include
host/nimble/nimble/nimble/host/services/ias/include
host/nimble/nimble/nimble/host/services/ipss/include
host/nimble/nimble/nimble/host/services/lls/include
host/nimble/nimble/nimble/host/services/tps/include
host/nimble/nimble/nimble/host/services/hid/include
host/nimble/nimble/nimble/host/services/sps/include
host/nimble/nimble/nimble/host/util/include
host/nimble/nimble/nimble/host/store/ram/include
host/nimble/nimble/nimble/host/store/config/include
@@ -537,10 +567,13 @@ if(CONFIG_BT_ENABLED)
"host/nimble/nimble/nimble/host/services/ias/src/ble_svc_ias.c"
"host/nimble/nimble/nimble/host/services/ipss/src/ble_svc_ipss.c"
"host/nimble/nimble/nimble/host/services/ans/src/ble_svc_ans.c"
"host/nimble/nimble/nimble/host/services/htp/src/ble_svc_htp.c"
"host/nimble/nimble/nimble/host/services/gap/src/ble_svc_gap.c"
"host/nimble/nimble/nimble/host/services/bas/src/ble_svc_bas.c"
"host/nimble/nimble/nimble/host/services/dis/src/ble_svc_dis.c"
"host/nimble/nimble/nimble/host/services/lls/src/ble_svc_lls.c"
"host/nimble/nimble/nimble/host/services/hid/src/ble_svc_hid.c"
"host/nimble/nimble/nimble/host/services/sps/src/ble_svc_sps.c"
"host/nimble/nimble/nimble/host/src/ble_hs_conn.c"
"host/nimble/nimble/nimble/host/src/ble_store_util.c"
"host/nimble/nimble/nimble/host/src/ble_sm.c"
@@ -559,6 +592,8 @@ if(CONFIG_BT_ENABLED)
"host/nimble/nimble/nimble/host/src/ble_hs_mqueue.c"
"host/nimble/nimble/nimble/host/src/ble_hs_periodic_sync.c"
"host/nimble/nimble/nimble/host/src/ble_att.c"
"host/nimble/nimble/nimble/host/src/ble_ead.c"
"host/nimble/nimble/nimble/host/src/ble_aes_ccm.c"
"host/nimble/nimble/nimble/host/src/ble_gattc.c"
"host/nimble/nimble/nimble/host/src/ble_store.c"
"host/nimble/nimble/nimble/host/src/ble_sm_lgcy.c"
@@ -588,14 +623,17 @@ if(CONFIG_BT_ENABLED)
"host/nimble/nimble/nimble/host/store/ram/src/ble_store_ram.c"
"host/nimble/nimble/nimble/host/store/config/src/ble_store_config.c"
"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"
)
list(APPEND srcs
"host/nimble/nimble/porting/nimble/src/nimble_port.c"
"host/nimble/nimble/porting/npl/freertos/src/nimble_port_freertos.c"
"host/nimble/port/src/nvs_port.c"
)
list(APPEND include_dirs
porting/include
host/nimble/nimble/porting/nimble/include
host/nimble/port/include
)
@@ -610,9 +648,8 @@ if(CONFIG_BT_ENABLED)
"host/nimble/nimble/porting/npl/freertos/src/npl_os_freertos.c"
)
list(APPEND include_dirs
porting/include
host/nimble/nimble/porting/npl/freertos/include
host/nimble/nimble/porting/nimble/include
host/nimble/nimble/nimble/include
)
endif()
@@ -676,13 +713,12 @@ if(CONFIG_BT_ENABLED)
endif()
# requirements can't depend on config
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 mbedtls driver vfs
LDFRAGMENTS "linker.lf")
LDFRAGMENTS "${ldscripts}")
if(CONFIG_BT_ENABLED)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-implicit-fallthrough -Wno-unused-const-variable)
@@ -694,20 +730,37 @@ if(CONFIG_BT_ENABLED)
elseif(CONFIG_IDF_TARGET_ESP32C3)
target_link_libraries(${COMPONENT_LIB} INTERFACE
"-L${CMAKE_CURRENT_LIST_DIR}/controller/lib_esp32c3_family/esp32c3")
if(CONFIG_BT_CTRL_RUN_IN_FLASH_ONLY)
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app_flash)
else()
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app)
endif()
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app)
elseif(CONFIG_IDF_TARGET_ESP32S3)
target_link_libraries(${COMPONENT_LIB} INTERFACE
"-L${CMAKE_CURRENT_LIST_DIR}/controller/lib_esp32c3_family/esp32s3")
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app)
elseif(CONFIG_IDF_TARGET_ESP32H2)
if(CONFIG_BT_CTRL_RUN_IN_FLASH_ONLY)
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app_flash)
else()
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app)
endif()
elseif(CONFIG_IDF_TARGET_ESP32H2 AND CONFIG_BT_CONTROLLER_ENABLED)
if(CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_1)
add_prebuilt_library(nimblelib "controller/lib_esp32h2/esp32h2-bt-lib/beta1/libble_app.a")
add_prebuilt_library(nimblelib "controller/lib_esp32h2/esp32h2-bt-lib/beta1/libble_app.a"
REQUIRES esp_phy)
elseif(CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_2)
add_prebuilt_library(nimblelib "controller/lib_esp32h2/esp32h2-bt-lib/beta2/libble_app.a")
add_prebuilt_library(nimblelib "controller/lib_esp32h2/esp32h2-bt-lib/beta2/libble_app.a"
REQUIRES esp_phy)
endif()
target_link_libraries(${COMPONENT_LIB} PRIVATE nimblelib)
elseif(CONFIG_IDF_TARGET_ESP32C2)
add_prebuilt_library(nimblelib "controller/lib_esp32c2/esp32c2-bt-lib/libble_app.a")
elseif(CONFIG_IDF_TARGET_ESP32C2 AND CONFIG_BT_CONTROLLER_ENABLED)
if(CONFIG_BT_CTRL_RUN_IN_FLASH_ONLY)
add_prebuilt_library(nimblelib "controller/lib_esp32c2/esp32c2-bt-lib/libble_app_flash.a"
REQUIRES esp_phy)
else()
add_prebuilt_library(nimblelib "controller/lib_esp32c2/esp32c2-bt-lib/libble_app.a"
REQUIRES esp_phy)
endif()
target_link_libraries(${COMPONENT_LIB} PRIVATE nimblelib)
endif()

View File

@@ -68,6 +68,48 @@ menu "Bluetooth"
source "$IDF_PATH/components/bt/controller/$IDF_TARGET/Kconfig.in"
endmenu
config BT_RELEASE_IRAM
depends on BT_ENABLED && BT_LE_RELEASE_IRAM_SUPPORTED
bool "Release Bluetooth text (READ DOCS FIRST)"
default n
help
This option release Bluetooth text section and merge Bluetooth data, bss & text into
a large free heap region when esp_bt_mem_release is called, total saving ~21kB or more of IRAM.
ESP32-C2 only 3 configurable PMP entries available, rest of them are hard-coded.
We cannot split the memory into 3 different regions (IRAM, BLE-IRAM, DRAM).
So this option will disable the PMP (ESP_SYSTEM_PMP_IDRAM_SPLIT)
config BT_HCI_LOG_DEBUG_EN
depends on BT_BLUEDROID_ENABLED || BT_NIMBLE_ENABLED
bool "Enable Bluetooth HCI debug mode"
default n
help
This option is used to enable bluetooth debug mode, which saves the hci layer data stream.
config BT_HCI_LOG_DATA_BUFFER_SIZE
depends on BT_HCI_LOG_DEBUG_EN
int "Size of the cache used for HCI data in Bluetooth HCI debug mode (N*1024 bytes)"
range 1 100
default 5
help
This option is to configure the buffer size of the hci data steam cache in hci debug mode.
This is a ring buffer, the new data will overwrite the oldest data if the buffer is full.
config BT_HCI_LOG_ADV_BUFFER_SIZE
depends on BT_HCI_LOG_DEBUG_EN
int "Size of the cache used for adv report in Bluetooth HCI debug mode (N*1024 bytes)"
range 1 100
default 8
help
This option is to configure the buffer size of the hci adv report cache in hci debug mode.
This is a ring buffer, the new data will overwrite the oldest data if the buffer is full.
menu "Common Options"
visible if (BT_BLUEDROID_ENABLED || BT_NIMBLE_ENABLED)
source "$IDF_PATH/components/bt/common/Kconfig.in"
endmenu
endmenu
menuconfig BLE_MESH

View File

@@ -0,0 +1,109 @@
config BT_ALARM_MAX_NUM
int "Maximum number of Bluetooth alarms"
default 50
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_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_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 upper 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 upper layer ISR 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_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

View File

@@ -0,0 +1,983 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "ble_log/ble_log_spi_out.h"
#if CONFIG_BT_BLE_LOG_SPI_OUT_ENABLED
// Private defines
#define BLE_LOG_TAG "BLE_LOG"
#define SPI_OUT_BUS SPI2_HOST
#define SPI_OUT_MAX_TRANSFER_SIZE 10240
#define SPI_OUT_FRAME_HEAD_LEN 4
#define SPI_OUT_FRAME_TAIL_LEN 4
#define SPI_OUT_FRAME_OVERHEAD (SPI_OUT_FRAME_HEAD_LEN + SPI_OUT_FRAME_TAIL_LEN)
#define SPI_OUT_RECYCLE_TIMEOUT_MS 10
#define SPI_OUT_TRANS_CB_FLAG_AVAILABLE 0
#define SPI_OUT_TRANS_CB_FLAG_NEED_QUEUE 1
#define SPI_OUT_TRANS_CB_FLAG_IN_QUEUE 2
#define SPI_OUT_FLUSHOUT_TIMEOUT (CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMEOUT * 1000)
#define SPI_OUT_PACKET_LOSS_UL 0
#define SPI_OUT_PACKET_LOSS_LL_TASK 1
#define SPI_OUT_PACKET_LOSS_LL_ISR 2
#define SPI_OUT_PACKET_LOSS_FRAME_SIZE 6
#define SPI_OUT_INTERFACE_FLAG_IN_ISR (1 << 3)
#define SPI_OUT_TRANS_ITVL_MIN_US 30
#define SPI_OUT_SPI_MASTER_QUEUE_SIZE 6
#if CONFIG_BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
#define SPI_OUT_TS_SYNC_TIMEOUT (1000 * 1000)
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
// Private typedefs
typedef struct {
// CRITICAL: 0 for available, 1 for need queue (ISR), 2 for in queue
// This flag is for multithreading, must be a word, do not modify
volatile uint32_t flag;
uint16_t buf_size;
uint16_t length;
spi_transaction_t trans;
} spi_out_trans_cb_t;
typedef struct {
spi_out_trans_cb_t *trans_cb[2];
uint8_t trans_cb_idx;
uint8_t frame_cnt;
uint32_t bytes_loss_cnt;
uint8_t trans_loss_cnt;
} spi_out_log_cb_t;
// Private variables
static bool spi_out_inited = false;
static spi_device_handle_t spi_handle = NULL;
static uint32_t last_tx_done_ts = 0;
static bool ul_log_inited = false;
static SemaphoreHandle_t ul_log_mutex = NULL;
static spi_out_log_cb_t *ul_log_cb = NULL;
#if CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
static esp_timer_handle_t ul_log_flushout_timer = NULL;
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
#if CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
static bool ll_log_inited = false;
static spi_out_log_cb_t *ll_task_log_cb = NULL;
static spi_out_log_cb_t *ll_isr_log_cb = NULL;
#if CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
static esp_timer_handle_t ll_log_flushout_timer = NULL;
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
#if CONFIG_BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
static bool ts_sync_inited = false;
static bool sync_io_level = false;
static esp_timer_handle_t ts_sync_timer = NULL;
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
// Extern function declarations
extern void esp_panic_handler_feed_wdts(void);
// Private function declarations
static int spi_out_init_trans(spi_out_trans_cb_t **trans_cb, uint16_t buf_size);
static void spi_out_deinit_trans(spi_out_trans_cb_t **trans_cb);
static void spi_out_tx_done_cb(spi_transaction_t *ret_trans);
static inline int spi_out_append_trans(spi_out_trans_cb_t *trans_cb);
static int spi_out_log_cb_init(spi_out_log_cb_t **log_cb, uint16_t buf_size);
static void spi_out_log_cb_deinit(spi_out_log_cb_t **log_cb);
static inline int spi_out_log_cb_check_trans(spi_out_log_cb_t *log_cb, uint16_t len);
static inline void spi_out_log_cb_append_trans(spi_out_log_cb_t *log_cb);
static inline void spi_out_log_cb_flush_trans(spi_out_log_cb_t *log_cb);
static void spi_out_log_cb_write(spi_out_log_cb_t *log_cb, const uint8_t *addr, uint16_t len, \
const uint8_t *addr_append, uint16_t len_append, uint8_t source);
static void spi_out_log_cb_write_packet_loss(spi_out_log_cb_t *log_cb, uint8_t flag);
static void spi_out_log_cb_dump(spi_out_log_cb_t *log_cb);
static int spi_out_ul_log_init(void);
static void spi_out_ul_log_deinit(void);
#if CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
static void esp_timer_cb_ul_log_flushout(void);
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
#if CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
static int spi_out_ll_log_init(void);
static void spi_out_ll_log_deinit(void);
static void spi_out_ll_log_ev_proc(void);
#if CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
static void esp_timer_cb_ll_log_flushout(void);
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
#if defined(CONFIG_IDF_TARGET_ESP32H2) || defined(CONFIG_IDF_TARGET_ESP32C6) || defined(CONFIG_IDF_TARGET_ESP32C5) ||\
defined(CONFIG_IDF_TARGET_ESP32C61) || defined(CONFIG_IDF_TARGET_ESP32H21)
extern void r_ble_log_simple_put_ev(void);
#define BLE_LOG_LL_PUT_EV r_ble_log_simple_put_ev()
#elif defined(CONFIG_IDF_TARGET_ESP32C2)
extern void ble_log_simple_put_ev(void);
#define BLE_LOG_LL_PUT_EV ble_log_simple_put_ev()
#else
#define BLE_LOG_LL_PUT_EV
#endif
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
#if CONFIG_BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
static int spi_out_ts_sync_init(void);
static void spi_out_ts_sync_deinit(void);
static void esp_timer_cb_ts_sync(void);
#if defined(CONFIG_IDF_TARGET_ESP32H2) || defined(CONFIG_IDF_TARGET_ESP32C6) || defined(CONFIG_IDF_TARGET_ESP32C5) ||\
defined(CONFIG_IDF_TARGET_ESP32C61) || defined(CONFIG_IDF_TARGET_ESP32H21)
extern uint32_t r_ble_lll_timer_current_tick_get(void);
#define SPI_OUT_GET_LC_TIME r_ble_lll_timer_current_tick_get()
#elif defined(CONFIG_IDF_TARGET_ESP32C2)
extern uint32_t r_os_cputime_get32(void);
#define SPI_OUT_GET_LC_TIME r_os_cputime_get32()
#else
#define SPI_OUT_GET_LC_TIME 0
#endif
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
// Private functions
static int spi_out_init_trans(spi_out_trans_cb_t **trans_cb, uint16_t buf_size)
{
// Memory allocations
*trans_cb = (spi_out_trans_cb_t *)malloc(sizeof(spi_out_trans_cb_t));
if (!(*trans_cb)) {
return -1;
}
memset(*trans_cb, 0, sizeof(spi_out_trans_cb_t));
uint8_t *buf = (uint8_t *)heap_caps_malloc(buf_size, MALLOC_CAP_DMA);
if (!buf) {
free(*trans_cb);
*trans_cb = NULL;
return -1;
}
// Initialization
(*trans_cb)->buf_size = buf_size;
(*trans_cb)->trans.tx_buffer = buf;
return 0;
}
static void spi_out_deinit_trans(spi_out_trans_cb_t **trans_cb)
{
if (!(*trans_cb)) {
return;
}
if ((*trans_cb)->trans.tx_buffer) {
free((uint8_t *)(*trans_cb)->trans.tx_buffer);
(*trans_cb)->trans.tx_buffer = NULL;
}
free(*trans_cb);
*trans_cb = NULL;
return;
}
IRAM_ATTR static void spi_out_tx_done_cb(spi_transaction_t *ret_trans)
{
last_tx_done_ts = esp_timer_get_time();
spi_out_trans_cb_t *trans_cb = __containerof(ret_trans, spi_out_trans_cb_t, trans);
trans_cb->length = 0;
trans_cb->flag = SPI_OUT_TRANS_CB_FLAG_AVAILABLE;
}
IRAM_ATTR static void spi_out_pre_tx_cb(spi_transaction_t *ret_trans)
{
// SPI slave continuous transaction workaround
while (esp_timer_get_time() - last_tx_done_ts < SPI_OUT_TRANS_ITVL_MIN_US) {}
}
IRAM_ATTR static inline int spi_out_append_trans(spi_out_trans_cb_t *trans_cb)
{
if (trans_cb->flag != SPI_OUT_TRANS_CB_FLAG_NEED_QUEUE || !trans_cb->length) {
return -1;
}
// CRITICAL: Length unit conversion from bytes to bits
trans_cb->trans.length = trans_cb->length * 8;
trans_cb->trans.rxlength = 0;
if (spi_device_queue_trans(spi_handle, &(trans_cb->trans), 0) == ESP_OK) {
trans_cb->flag = SPI_OUT_TRANS_CB_FLAG_IN_QUEUE;
return 0;
} else {
trans_cb->length = 0;
trans_cb->flag = SPI_OUT_TRANS_CB_FLAG_AVAILABLE;
return -1;
}
}
static int spi_out_log_cb_init(spi_out_log_cb_t **log_cb, uint16_t buf_size)
{
// Initialize log control block
*log_cb = (spi_out_log_cb_t *)malloc(sizeof(spi_out_log_cb_t));
if (!(*log_cb)) {
ESP_LOGE(BLE_LOG_TAG, "Failed to initialize log control block!");
return -1;
}
memset(*log_cb, 0, sizeof(spi_out_log_cb_t));
// Initialize transactions
int ret = 0;
for (uint8_t i = 0; i < 2; i++) {
ret |= spi_out_init_trans(&((*log_cb)->trans_cb[i]), buf_size);
}
if (ret != 0) {
ESP_LOGE(BLE_LOG_TAG, "Failed to initialize SPI transactions!");
spi_out_log_cb_deinit(log_cb);
return -1;
}
return 0;
}
static void spi_out_log_cb_deinit(spi_out_log_cb_t **log_cb)
{
if (!(*log_cb)) {
return;
}
for (uint8_t i = 0; i < 2; i++) {
if ((*log_cb)->trans_cb[i]) {
spi_out_deinit_trans(&((*log_cb)->trans_cb[i]));
}
}
free(*log_cb);
*log_cb = NULL;
return;
}
IRAM_ATTR static inline int spi_out_log_cb_check_trans(spi_out_log_cb_t *log_cb, uint16_t len)
{
spi_out_trans_cb_t *trans_cb;
uint16_t frame_len = len + SPI_OUT_FRAME_OVERHEAD;
for (uint8_t i = 0; i < 2; i++) {
trans_cb = log_cb->trans_cb[log_cb->trans_cb_idx];
if (frame_len > trans_cb->buf_size) {
goto failed;
}
if (trans_cb->flag == SPI_OUT_TRANS_CB_FLAG_AVAILABLE) {
if ((trans_cb->buf_size - trans_cb->length) >= (len + SPI_OUT_FRAME_OVERHEAD)) {
return 0;
} else {
trans_cb->flag = SPI_OUT_TRANS_CB_FLAG_NEED_QUEUE;
}
}
log_cb->trans_cb_idx = !(log_cb->trans_cb_idx);
}
failed:
log_cb->bytes_loss_cnt += len + SPI_OUT_FRAME_OVERHEAD;
log_cb->frame_cnt++;
return -1;
}
// CRITICAL: Shall not be called from ISR!
IRAM_ATTR static inline void spi_out_log_cb_append_trans(spi_out_log_cb_t *log_cb)
{
spi_out_trans_cb_t *trans_cb;
uint8_t idx = !log_cb->trans_cb_idx;
for (uint8_t i = 0; i < 2; i++) {
trans_cb = log_cb->trans_cb[idx];
if (trans_cb->flag == SPI_OUT_TRANS_CB_FLAG_NEED_QUEUE) {
if (spi_out_append_trans(trans_cb) != 0) {
log_cb->trans_loss_cnt++;
}
}
idx = !idx;
}
}
IRAM_ATTR static inline void spi_out_log_cb_flush_trans(spi_out_log_cb_t *log_cb)
{
spi_out_trans_cb_t *trans_cb = log_cb->trans_cb[log_cb->trans_cb_idx];
if (trans_cb->length && (trans_cb->flag == SPI_OUT_TRANS_CB_FLAG_AVAILABLE)) {
trans_cb->flag = SPI_OUT_TRANS_CB_FLAG_NEED_QUEUE;
}
}
IRAM_ATTR static void spi_out_log_cb_write(spi_out_log_cb_t *log_cb, const uint8_t *addr, uint16_t len, \
const uint8_t *addr_append, uint16_t len_append, uint8_t source)
{
spi_out_trans_cb_t *trans_cb = log_cb->trans_cb[log_cb->trans_cb_idx];
uint8_t *buf = (uint8_t *)trans_cb->trans.tx_buffer + trans_cb->length;
uint16_t total_length = len + len_append;
const uint8_t head[4] = {total_length & 0xFF, (total_length >> 8) & 0xFF, source, log_cb->frame_cnt};
uint32_t checksum = 0;
for (int i = 0; i < len; i++) {
checksum += addr[i];
}
for (int i = 0; i < len_append; i++) {
checksum += addr_append[i];
}
memcpy(buf, head, SPI_OUT_FRAME_HEAD_LEN);
memcpy(buf + SPI_OUT_FRAME_HEAD_LEN, addr, len);
if (len_append) {
memcpy(buf + SPI_OUT_FRAME_HEAD_LEN + len, addr_append, len_append);
}
memcpy(buf + SPI_OUT_FRAME_HEAD_LEN + total_length, &checksum, SPI_OUT_FRAME_TAIL_LEN);
trans_cb->length += total_length + SPI_OUT_FRAME_OVERHEAD;
log_cb->frame_cnt++;
if ((trans_cb->buf_size - trans_cb->length) <= SPI_OUT_FRAME_OVERHEAD) {
trans_cb->flag = SPI_OUT_TRANS_CB_FLAG_NEED_QUEUE;
}
return;
}
IRAM_ATTR static void spi_out_log_cb_write_packet_loss(spi_out_log_cb_t *log_cb, uint8_t flag)
{
if (!log_cb->bytes_loss_cnt && !log_cb->trans_loss_cnt) {
return;
}
if (spi_out_log_cb_check_trans(log_cb, SPI_OUT_PACKET_LOSS_FRAME_SIZE) == 0) {
uint8_t packet_loss_frame[SPI_OUT_PACKET_LOSS_FRAME_SIZE];
packet_loss_frame[0] = flag;
memcpy(packet_loss_frame + 1, (uint8_t *)&log_cb->bytes_loss_cnt, 4);
packet_loss_frame[5] = log_cb->trans_loss_cnt;
spi_out_log_cb_write(log_cb, packet_loss_frame, SPI_OUT_PACKET_LOSS_FRAME_SIZE, NULL, 0, BLE_LOG_SPI_OUT_SOURCE_LOSS);
log_cb->bytes_loss_cnt = 0;
log_cb->trans_loss_cnt = 0;
}
}
static void spi_out_log_cb_dump(spi_out_log_cb_t *log_cb)
{
spi_out_trans_cb_t *trans_cb;
uint8_t *buf;
for (uint8_t i = 0; i < 2; i++) {
// Dump the last transaction before dumping the current transaction
log_cb->trans_cb_idx = !(log_cb->trans_cb_idx);
trans_cb = log_cb->trans_cb[log_cb->trans_cb_idx];
buf = (uint8_t *)trans_cb->trans.tx_buffer;
for (uint16_t j = 0; j < trans_cb->buf_size; j++) {
esp_rom_printf("%02x ", buf[j]);
// Feed watchdogs periodically to avoid wdts timeout
if ((j % 100) == 0) {
esp_panic_handler_feed_wdts();
}
}
}
}
static int spi_out_ul_log_init(void)
{
if (ul_log_inited) {
return 0;
}
// Initialize mutex
ul_log_mutex = xSemaphoreCreateMutex();
if (!ul_log_mutex) {
ESP_LOGE(BLE_LOG_TAG, "Failed to create mutex for upper layer task log!");
goto mutex_init_failed;
}
#if CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
// Initialize flushout timer
esp_timer_create_args_t timer_args = {
.callback = (esp_timer_cb_t)esp_timer_cb_ul_log_flushout,
.dispatch_method = ESP_TIMER_TASK
};
if (esp_timer_create(&timer_args, &ul_log_flushout_timer) != ESP_OK) {
ESP_LOGE(BLE_LOG_TAG, "Failed to initialize flushout timer upper layer task log!");
goto timer_init_failed;
}
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
// Initialize log control block
if (spi_out_log_cb_init(&ul_log_cb, CONFIG_BT_BLE_LOG_SPI_OUT_UL_TASK_BUF_SIZE) != 0) {
ESP_LOGE(BLE_LOG_TAG, "Failed to initialize log control blocks for upper layer task log!");
goto log_cb_init_failed;
}
// Initialization done
ESP_LOGI(BLE_LOG_TAG, "Succeeded to initialize upper layer task log!");
ul_log_inited = true;
return 0;
log_cb_init_failed:
#if CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
esp_timer_delete(ul_log_flushout_timer);
timer_init_failed:
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
vSemaphoreDelete(ul_log_mutex);
mutex_init_failed:
return -1;
}
static void spi_out_ul_log_deinit(void)
{
if (!ul_log_inited) {
return;
}
#if CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
esp_timer_stop(ul_log_flushout_timer);
esp_timer_delete(ul_log_flushout_timer);
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
xSemaphoreTake(ul_log_mutex, portMAX_DELAY);
spi_out_log_cb_deinit(&ul_log_cb);
xSemaphoreGive(ul_log_mutex);
vSemaphoreDelete(ul_log_mutex);
ul_log_mutex = NULL;
ESP_LOGI(BLE_LOG_TAG, "Succeeded to deinitialize upper layer log!");
ul_log_inited = false;
return;
}
#if CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
IRAM_ATTR static void esp_timer_cb_ul_log_flushout(void)
{
xSemaphoreTake(ul_log_mutex, portMAX_DELAY);
spi_out_log_cb_flush_trans(ul_log_cb);
spi_out_log_cb_append_trans(ul_log_cb);
xSemaphoreGive(ul_log_mutex);
esp_timer_start_once(ul_log_flushout_timer, SPI_OUT_FLUSHOUT_TIMEOUT);
}
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
#if CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
static int spi_out_ll_log_init(void)
{
if (ll_log_inited) {
return 0;
}
#if CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
// Initialize flushout timer
esp_timer_create_args_t timer_args = {
.callback = (esp_timer_cb_t)esp_timer_cb_ll_log_flushout,
.dispatch_method = ESP_TIMER_TASK
};
if (esp_timer_create(&timer_args, &ll_log_flushout_timer) != ESP_OK) {
ESP_LOGE(BLE_LOG_TAG, "Failed to initialize flushout timer for controller log!");
goto timer_init_failed;
}
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
// Initialize log control blocks for controller task & ISR logs
if (spi_out_log_cb_init(&ll_task_log_cb, CONFIG_BT_BLE_LOG_SPI_OUT_LL_TASK_BUF_SIZE) != 0) {
ESP_LOGE(BLE_LOG_TAG, "Failed to initialize log control blocks for controller task!");
goto task_log_cb_init_failed;
}
if (spi_out_log_cb_init(&ll_isr_log_cb, CONFIG_BT_BLE_LOG_SPI_OUT_LL_ISR_BUF_SIZE) != 0) {
ESP_LOGE(BLE_LOG_TAG, "Failed to initialize log control blocks for controller ISR!");
goto isr_log_cb_init_failed;
}
// Initialization done
ESP_LOGI(BLE_LOG_TAG, "Succeeded to initialize log control blocks for controller task & ISR!");
ll_log_inited = true;
return 0;
isr_log_cb_init_failed:
spi_out_log_cb_deinit(&ll_task_log_cb);
task_log_cb_init_failed:
#if CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
esp_timer_delete(ll_log_flushout_timer);
timer_init_failed:
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
return -1;
}
static void spi_out_ll_log_deinit(void)
{
if (!ll_log_inited) {
return;
}
#if CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
esp_timer_stop(ll_log_flushout_timer);
esp_timer_delete(ll_log_flushout_timer);
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
spi_out_log_cb_deinit(&ll_isr_log_cb);
spi_out_log_cb_deinit(&ll_task_log_cb);
// Deinitialization done
ESP_LOGI(BLE_LOG_TAG, "Succeeded to deinitialize controller log!");
ll_log_inited = false;
return;
}
IRAM_ATTR static void spi_out_ll_log_ev_proc(void)
{
#if CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
// Request from flushout timer
spi_out_log_cb_flush_trans(ll_isr_log_cb);
spi_out_log_cb_append_trans(ll_isr_log_cb);
spi_out_log_cb_flush_trans(ll_task_log_cb);
spi_out_log_cb_append_trans(ll_task_log_cb);
esp_timer_start_once(ll_log_flushout_timer, SPI_OUT_FLUSHOUT_TIMEOUT);
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
return;
}
#if CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
IRAM_ATTR static void esp_timer_cb_ll_log_flushout(void)
{
BLE_LOG_LL_PUT_EV;
}
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
#if CONFIG_BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
static int spi_out_ts_sync_init(void)
{
if (ts_sync_inited) {
return 0;
}
// Initialize sync timer
esp_timer_create_args_t timer_args = {
.callback = (esp_timer_cb_t)esp_timer_cb_ts_sync,
.dispatch_method = ESP_TIMER_TASK
};
if (esp_timer_create(&timer_args, &ts_sync_timer) != ESP_OK) {
ESP_LOGE(BLE_LOG_TAG, "Failed to initialize timestamp synchronizer timer!");
goto timer_init_failed;
}
// Initialize sync IO
gpio_config_t io_conf = {
.intr_type = GPIO_INTR_DISABLE,
.mode = GPIO_MODE_OUTPUT,
.pin_bit_mask = (1UL << CONFIG_BT_BLE_LOG_SPI_OUT_SYNC_IO_NUM),
.pull_down_en = 0,
.pull_up_en = 0
};
if (gpio_config(&io_conf) != ESP_OK) {
ESP_LOGE(BLE_LOG_TAG, "Failed to initialize timestamp synchronizer IO!");
goto gpio_init_failed;
}
// Initialization done
ESP_LOGI(BLE_LOG_TAG, "Succeeded to initialize timestamp synchronizer!");
sync_io_level = false;
gpio_set_level(CONFIG_BT_BLE_LOG_SPI_OUT_SYNC_IO_NUM, sync_io_level);
ts_sync_inited = true;
return 0;
gpio_init_failed:
esp_timer_delete(ts_sync_timer);
timer_init_failed:
return -1;
}
static void spi_out_ts_sync_deinit(void)
{
if (!ts_sync_inited) {
return;
}
// Deinitialize timestamp synchronizer
esp_timer_stop(ts_sync_timer);
esp_timer_delete(ts_sync_timer);
// Deinitialize sync IO
sync_io_level = false;
gpio_set_level(CONFIG_BT_BLE_LOG_SPI_OUT_SYNC_IO_NUM, sync_io_level);
gpio_reset_pin(CONFIG_BT_BLE_LOG_SPI_OUT_SYNC_IO_NUM);
// Deinitialization done
ESP_LOGI(BLE_LOG_TAG, "Succeeded to deinitialize timestamp synchronizer!");
ts_sync_inited = false;
return;
}
// CRITICAL: This function is called in ESP Timer task
static void esp_timer_cb_ts_sync(void)
{
// Initialize variables
uint32_t lc_ts = 0;
uint32_t esp_ts = 0;
// Toggle sync IO
sync_io_level = !sync_io_level;
// Enter critical
portMUX_TYPE spinlock = portMUX_INITIALIZER_UNLOCKED;
portENTER_CRITICAL(&spinlock);
// Get LC timestamp
lc_ts = SPI_OUT_GET_LC_TIME;
// Set sync IO level
gpio_set_level(CONFIG_BT_BLE_LOG_SPI_OUT_SYNC_IO_NUM, (uint32_t)sync_io_level);
// Get ESP timestamp
esp_ts = esp_timer_get_time();
portEXIT_CRITICAL(&spinlock);
// Exit critical
// Write timestamp sync log
uint8_t sync_frame[9];
sync_frame[0] = ((uint8_t)sync_io_level & 0xFF);
memcpy(sync_frame + 1, &lc_ts, sizeof(lc_ts));
memcpy(sync_frame + 5, &esp_ts, sizeof(esp_ts));
ble_log_spi_out_write(BLE_LOG_SPI_OUT_SOURCE_SYNC, sync_frame, 9);
}
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
// Public functions
int ble_log_spi_out_init(void)
{
// Avoid double init
if (spi_out_inited) {
return 0;
}
// Initialize SPI
spi_bus_config_t bus_config = {
.miso_io_num = -1,
.mosi_io_num = CONFIG_BT_BLE_LOG_SPI_OUT_MOSI_IO_NUM,
.sclk_io_num = CONFIG_BT_BLE_LOG_SPI_OUT_SCLK_IO_NUM,
.quadwp_io_num = -1,
.quadhd_io_num = -1,
.max_transfer_sz = SPI_OUT_MAX_TRANSFER_SIZE,
#if CONFIG_SPI_MASTER_ISR_IN_IRAM
.intr_flags = ESP_INTR_FLAG_IRAM
#endif // CONFIG_SPI_MASTER_ISR_IN_IRAM
};
spi_device_interface_config_t dev_config = {
.clock_speed_hz = SPI_MASTER_FREQ_20M,
.mode = 0,
.spics_io_num = CONFIG_BT_BLE_LOG_SPI_OUT_CS_IO_NUM,
.queue_size = SPI_OUT_SPI_MASTER_QUEUE_SIZE,
.post_cb = spi_out_tx_done_cb,
.pre_cb = spi_out_pre_tx_cb
};
if (spi_bus_initialize(SPI_OUT_BUS, &bus_config, SPI_DMA_CH_AUTO) != ESP_OK) {
ESP_LOGE(BLE_LOG_TAG, "Failed to initialize SPI bus!");
goto spi_bus_init_failed;
}
if (spi_bus_add_device(SPI_OUT_BUS, &dev_config, &spi_handle) != ESP_OK) {
ESP_LOGE(BLE_LOG_TAG, "Failed to add device to SPI bus!");
goto spi_device_add_failed;
}
if (spi_out_ul_log_init() != 0) {
goto ul_log_init_failed;
}
#if CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
if (spi_out_ll_log_init() != 0) {
goto ll_log_init_failed;
}
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
#if CONFIG_BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
if (spi_out_ts_sync_init() != 0) {
goto ts_sync_init_failed;
}
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
// Initialization done
ESP_LOGI(BLE_LOG_TAG, "Succeeded to initialize BLE log SPI output interface!");
spi_out_inited = true;
#if CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
// Start flushout timer
esp_timer_start_once(ul_log_flushout_timer, SPI_OUT_FLUSHOUT_TIMEOUT);
#if CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
esp_timer_start_once(ll_log_flushout_timer, SPI_OUT_FLUSHOUT_TIMEOUT);
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_FLUSH_TIMER_ENABLED
return 0;
#if CONFIG_BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
ts_sync_init_failed:
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
#if CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
spi_out_ll_log_deinit();
ll_log_init_failed:
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
spi_out_ul_log_deinit();
ul_log_init_failed:
spi_bus_remove_device(spi_handle);
spi_handle = NULL;
spi_device_add_failed:
spi_bus_free(SPI_OUT_BUS);
spi_bus_init_failed:
return -1;
}
void ble_log_spi_out_deinit(void)
{
// Avoid double deinit
if (!spi_out_inited) {
return;
}
// Drain all queued transactions
assert(spi_device_acquire_bus(spi_handle, portMAX_DELAY) == ESP_OK);
spi_device_release_bus(spi_handle);
// Remove SPI master
spi_bus_remove_device(spi_handle);
spi_handle = NULL;
spi_bus_free(SPI_OUT_BUS);
#if CONFIG_BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
spi_out_ts_sync_deinit();
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
#if CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
spi_out_ll_log_deinit();
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
spi_out_ul_log_deinit();
// Reset init flag
spi_out_inited = false;
}
#if CONFIG_BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
void ble_log_spi_out_ts_sync_start(void)
{
// Check if SPI out is initialized
if (!spi_out_inited) {
return;
}
// Start timestamp sync timer
if (ts_sync_timer) {
if (!esp_timer_is_active(ts_sync_timer)) {
esp_timer_start_periodic(ts_sync_timer, SPI_OUT_TS_SYNC_TIMEOUT);
}
}
}
void ble_log_spi_out_ts_sync_stop(void)
{
// Check if SPI out is initialized
if (!spi_out_inited) {
return;
}
// Stop timestamp sync timer
if (ts_sync_timer) {
if (esp_timer_is_active(ts_sync_timer)) {
esp_timer_stop(ts_sync_timer);
}
// Set sync IO to low level
sync_io_level = 0;
gpio_set_level(CONFIG_BT_BLE_LOG_SPI_OUT_SYNC_IO_NUM, (uint32_t)sync_io_level);
}
}
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
#if CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
// Only LL task has access to this API
IRAM_ATTR 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)
{
if (!ll_log_inited) {
return;
}
bool in_isr = (bool)(flag & SPI_OUT_INTERFACE_FLAG_IN_ISR);
uint8_t source = in_isr ? BLE_LOG_SPI_OUT_SOURCE_ESP_ISR : BLE_LOG_SPI_OUT_SOURCE_ESP;
spi_out_log_cb_t *log_cb = in_isr ? ll_isr_log_cb : ll_task_log_cb;
uint16_t total_length = (uint16_t)(len + len_append);
if (spi_out_log_cb_check_trans(log_cb, total_length) == 0) {
spi_out_log_cb_write(log_cb, addr, (uint16_t)len, addr_append, (uint16_t)len_append, source);
if (in_isr) {
spi_out_log_cb_write_packet_loss(log_cb, SPI_OUT_PACKET_LOSS_LL_ISR);
} else {
spi_out_log_cb_append_trans(ll_isr_log_cb);
spi_out_log_cb_append_trans(ll_task_log_cb);
spi_out_log_cb_write_packet_loss(log_cb, SPI_OUT_PACKET_LOSS_LL_TASK);
}
}
return;
}
IRAM_ATTR void ble_log_spi_out_ll_log_ev_proc(void)
{
if (!ll_log_inited) {
return;
}
return spi_out_ll_log_ev_proc();
}
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
int ble_log_spi_out_write(uint8_t source, const uint8_t *addr, uint16_t len)
{
if (!ul_log_inited) {
return -1;
}
xSemaphoreTake(ul_log_mutex, portMAX_DELAY);
if (spi_out_log_cb_check_trans(ul_log_cb, len) == 0) {
spi_out_log_cb_write(ul_log_cb, addr, len, NULL, 0, source);
spi_out_log_cb_append_trans(ul_log_cb);
spi_out_log_cb_write_packet_loss(ul_log_cb, SPI_OUT_PACKET_LOSS_UL);
}
xSemaphoreGive(ul_log_mutex);
return 0;
}
int ble_log_spi_out_printf(uint8_t source, const char *format, ...)
{
if (!ul_log_inited) {
return -1;
}
// Get arguments
va_list args;
va_start(args, format);
// Get len as ref to allocate heap memory
va_list args_copy;
va_copy(args_copy, args);
int len = vsnprintf(NULL, 0, format, args_copy);
va_end(args_copy);
// Length validation
if ((len < 0) || (len > 0xFFFF)) {
va_end(args);
return -1;
}
// Allocate memory
uint8_t *buffer = malloc(len + 1);
if (!buffer) {
va_end(args);
return -1;
}
// Generate string
vsnprintf((char *)buffer, len + 1, format, args);
va_end(args);
uint32_t esp_ts = esp_timer_get_time();
xSemaphoreTake(ul_log_mutex, portMAX_DELAY);
if (spi_out_log_cb_check_trans(ul_log_cb, sizeof(uint32_t) + len) == 0) {
spi_out_log_cb_write(ul_log_cb, (const uint8_t *)&esp_ts, sizeof(uint32_t), (const uint8_t *)buffer, len, source);
spi_out_log_cb_append_trans(ul_log_cb);
spi_out_log_cb_write_packet_loss(ul_log_cb, SPI_OUT_PACKET_LOSS_UL);
}
xSemaphoreGive(ul_log_mutex);
// Release
free(buffer);
return 0;
}
int ble_log_spi_out_printf_enh(uint8_t source, uint8_t level, const char *tag, const char *format, ...)
{
if (!ul_log_inited) {
return -1;
}
// Create log prefix in the format: "[level][tag] "
char prefix[32];
int prefix_len = snprintf(prefix, sizeof(prefix), "[%d][%s] ", level, tag ? tag : "NULL");
// Compute the length of the formatted log message
va_list args;
va_start(args, format);
va_list args_copy;
va_copy(args_copy, args);
int log_len = vsnprintf(NULL, 0, format, args_copy);
va_end(args_copy);
// Validate length
if (log_len < 0 || log_len > 0xFFFF) {
va_end(args);
return -1;
}
// Compute total log length (prefix + formatted message)
int total_len = prefix_len + log_len;
// Allocate memory for the complete log message
uint8_t *buffer = malloc(total_len + 1);
if (!buffer) {
va_end(args);
return -1;
}
// Construct the final log message
memcpy(buffer, prefix, prefix_len); // Copy the prefix
vsnprintf((char *)(buffer + prefix_len), log_len + 1, format, args);
va_end(args);
uint32_t esp_ts = esp_timer_get_time();
xSemaphoreTake(ul_log_mutex, portMAX_DELAY);
if (spi_out_log_cb_check_trans(ul_log_cb, sizeof(uint32_t) + total_len) == 0) {
spi_out_log_cb_write(ul_log_cb, (const uint8_t *)&esp_ts, sizeof(uint32_t), (const uint8_t *)buffer, total_len, source);
spi_out_log_cb_append_trans(ul_log_cb);
spi_out_log_cb_write_packet_loss(ul_log_cb, SPI_OUT_PACKET_LOSS_UL);
}
xSemaphoreGive(ul_log_mutex);
free(buffer);
return 0;
}
int ble_log_spi_out_write_with_ts(uint8_t source, const uint8_t *addr, uint16_t len)
{
if (!ul_log_inited) {
return -1;
}
uint32_t esp_ts = esp_timer_get_time();
xSemaphoreTake(ul_log_mutex, portMAX_DELAY);
if (spi_out_log_cb_check_trans(ul_log_cb, sizeof(uint32_t) + len) == 0) {
spi_out_log_cb_write(ul_log_cb, (const uint8_t *)&esp_ts, sizeof(uint32_t), addr, len, source);
spi_out_log_cb_append_trans(ul_log_cb);
spi_out_log_cb_write_packet_loss(ul_log_cb, SPI_OUT_PACKET_LOSS_UL);
}
xSemaphoreGive(ul_log_mutex);
return 0;
}
void ble_log_spi_out_dump_all(void)
{
portMUX_TYPE spinlock = portMUX_INITIALIZER_UNLOCKED;
portENTER_CRITICAL_SAFE(&spinlock);
#if CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
if (ll_log_inited) {
// Dump lower layer log buffer
esp_rom_printf("[LL_ISR_LOG_DUMP_START:\n");
spi_out_log_cb_dump(ll_isr_log_cb);
esp_rom_printf("\n:LL_ISR_LOG_DUMP_END]\n\n");
esp_rom_printf("[LL_TASK_LOG_DUMP_START:\n");
spi_out_log_cb_dump(ll_task_log_cb);
esp_rom_printf("\n:LL_TASK_LOG_DUMP_END]\n\n");
}
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_LL_ENABLED
if (ul_log_inited) {
// Dump upper layer log buffer
esp_rom_printf("[UL_LOG_DUMP_START:\n");
spi_out_log_cb_dump(ul_log_cb);
esp_rom_printf("\n:UL_LOG_DUMP_END]\n\n");
}
portEXIT_CRITICAL_SAFE(&spinlock);
}
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_ENABLED

View File

@@ -0,0 +1,54 @@
/*
* 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 "esp_log.h"
#include "freertos/semphr.h"
// Public typedefs
#define BLE_LOG_SPI_OUT_SOURCE_ESP 0
#define BLE_LOG_SPI_OUT_SOURCE_ESP_LEGACY 1
#define BLE_LOG_SPI_OUT_SOURCE_BLUEDROID 2
#define BLE_LOG_SPI_OUT_SOURCE_NIMBLE 3
#define BLE_LOG_SPI_OUT_SOURCE_HCI_UPSTREAM 4
#define BLE_LOG_SPI_OUT_SOURCE_HCI_DOWNSTREAM 5
#define BLE_LOG_SPI_OUT_SOURCE_ESP_ISR 6
#define BLE_LOG_SPI_OUT_SOURCE_ESP_LEGACY_ISR 7
#define BLE_LOG_SPI_OUT_SOURCE_USER 0x10
#define BLE_LOG_SPI_OUT_SOURCE_SYNC 0xFE
#define BLE_LOG_SPI_OUT_SOURCE_LOSS 0xFF
// SPI Log Level Definitions
#define BLE_LOG_SPI_OUT_LEVEL_NONE 0 /*!< No log output */
#define BLE_LOG_SPI_OUT_LEVEL_ERROR 1 /*!< Critical errors that SPI driver cannot recover from */
#define BLE_LOG_SPI_OUT_LEVEL_WARN 2 /*!< Recoverable error conditions in SPI communication */
#define BLE_LOG_SPI_OUT_LEVEL_INFO 3 /*!< Informational messages about SPI transactions */
#define BLE_LOG_SPI_OUT_LEVEL_DEBUG 4 /*!< Detailed debug information, such as SPI register values */
#define BLE_LOG_SPI_OUT_LEVEL_VERBOSE 5 /*!< Very detailed debugging logs, potentially flooding output */
#define BLE_LOG_SPI_OUT_LEVEL_MAX 6 /*!< Number of SPI log levels supported */
// 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);
int ble_log_spi_out_printf(uint8_t source, const char *format, ...);
int ble_log_spi_out_printf_enh(uint8_t source, uint8_t level, const char *tag, const char *format, ...);
int ble_log_spi_out_write_with_ts(uint8_t source, const uint8_t *addr, uint16_t len);
void ble_log_spi_out_dump_all(void);
#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-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -225,8 +225,8 @@ static bt_status_t btc_task_post(btc_msg_t *msg, uint32_t timeout)
/**
* 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
@@ -272,7 +272,7 @@ bt_status_t btc_transfer_context(btc_msg_t *msg, void *arg, int arg_len, btc_arg
}
/**
* 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
@@ -310,7 +310,7 @@ static void btc_deinit_mem(void) {
btc_profile_cb_tab = NULL;
}
#if (BLE_INCLUDED == TRUE)
#if (BLE_42_FEATURE_SUPPORT == TRUE)
if (gl_bta_adv_data_ptr) {
osi_free(gl_bta_adv_data_ptr);
gl_bta_adv_data_ptr = NULL;
@@ -320,7 +320,7 @@ static void btc_deinit_mem(void) {
osi_free(gl_bta_scan_rsp_data_ptr);
gl_bta_scan_rsp_data_ptr = NULL;
}
#endif ///BLE_INCLUDED == TRUE
#endif // BLE_42_FEATURE_SUPPORT
#if GATTS_INCLUDED == TRUE && GATT_DYNAMIC_MEMORY == TRUE
if (btc_creat_tab_env_ptr) {
@@ -335,6 +335,13 @@ static void btc_deinit_mem(void) {
#endif
#endif
#if BTC_HF_INCLUDED == TRUE && HFP_DYNAMIC_MEMORY == TRUE
if (hf_local_param_ptr) {
osi_free(hf_local_param_ptr);
hf_local_param_ptr = NULL;
}
#endif
#if BTC_HF_CLIENT_INCLUDED == TRUE && HFP_DYNAMIC_MEMORY == TRUE
if (hf_client_local_param_ptr) {
osi_free(hf_client_local_param_ptr);
@@ -365,7 +372,8 @@ static bt_status_t btc_init_mem(void) {
}
memset((void *)btc_profile_cb_tab, 0, sizeof(void *) * BTC_PID_NUM);
#if (BLE_INCLUDED == TRUE)
#if BTC_DYNAMIC_MEMORY == TRUE
#if (BLE_42_FEATURE_SUPPORT == TRUE)
if ((gl_bta_adv_data_ptr = (tBTA_BLE_ADV_DATA *)osi_malloc(sizeof(tBTA_BLE_ADV_DATA))) == NULL) {
goto error_exit;
}
@@ -375,7 +383,8 @@ 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 ///BLE_INCLUDED == TRUE
#endif // (BLE_42_FEATURE_SUPPORT == TRUE)
#endif // BTC_DYNAMIC_MEMORY == TRUE
#if GATTS_INCLUDED == TRUE && GATT_DYNAMIC_MEMORY == TRUE
if ((btc_creat_tab_env_ptr = (esp_btc_creat_tab_t *)osi_malloc(sizeof(esp_btc_creat_tab_t))) == NULL) {
@@ -390,6 +399,13 @@ static bt_status_t btc_init_mem(void) {
#endif
#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) {
goto error_exit;
}
memset((void *)hf_local_param_ptr, 0, BTC_HF_NUM_CB * sizeof(hf_local_param_t));
#endif
#if BTC_HF_CLIENT_INCLUDED == TRUE && HFP_DYNAMIC_MEMORY == TRUE
if ((hf_client_local_param_ptr = (hf_client_local_param_t *)osi_malloc(sizeof(hf_client_local_param_t))) == NULL) {
goto error_exit;

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;
@@ -366,7 +388,7 @@ void btc_blufi_send_wifi_list(uint16_t apCount, esp_blufi_ap_record_t *list)
int data_len;
uint8_t *p;
// malloc size: (len + RSSI + ssid buffer) * apCount;
uint malloc_size = (1 + 1 + sizeof(list->ssid)) * apCount;
uint32_t malloc_size = (1 + 1 + sizeof(list->ssid)) * apCount;
p = data = osi_malloc(malloc_size);
if (data == NULL) {
BTC_TRACE_ERROR("malloc error\n");
@@ -375,7 +397,7 @@ void btc_blufi_send_wifi_list(uint16_t apCount, esp_blufi_ap_record_t *list)
type = BLUFI_BUILD_TYPE(BLUFI_TYPE_DATA, BLUFI_TYPE_DATA_SUBTYPE_WIFI_LIST);
for (int i = 0; i < apCount; ++i)
{
uint len = strlen((const char *)list[i].ssid);
uint32_t len = strlen((const char *)list[i].ssid);
data_len = (p - data);
//current_len + ssid + rssi + total_len_value
if((data_len + len + 1 + 1) > malloc_size) {

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
*/
@@ -9,6 +9,11 @@
#include "btc/btc_task.h"
#include "esp_blufi_api.h"
#ifdef __cplusplus
extern "C" {
#endif
#if (BLUFI_INCLUDED == TRUE)
#define BTC_BLUFI_GREAT_VER 0x01 //Version + Subversion
@@ -31,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 */
@@ -193,5 +200,10 @@ void btc_blufi_cb_deep_copy(btc_msg_t *msg, void *p_dest, void *p_src);
void btc_blufi_cb_deep_free(btc_msg_t *msg);
#endif /* __BLUFI_INT_H__ */
#endif ///BLUFI_INCLUDED == TRUE
#endif ///BLUFI_INCLUDED == TRUE
#ifdef __cplusplus
}
#endif
#endif /* __BLUFI_INT_H__ */

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
*/
@@ -20,6 +20,10 @@
#include "esp_gap_ble_api.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define BLUFI_APP_UUID 0xFFFF
#define BLUFI_DEVICE_NAME "BLUFI_DEVICE"
@@ -40,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
@@ -96,4 +101,7 @@ void esp_blufi_send_encap(void *arg);
int esp_blufi_handle_gap_events(struct ble_gap_event *event, void *arg);
#endif
#ifdef __cplusplus
}
#endif
#endif/* _ESP_BLUFI_ */

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -33,7 +33,6 @@
#if (BLUFI_INCLUDED == TRUE)
static uint8_t own_addr_type;
static uint16_t conn_handle;
struct gatt_value gatt_values[SERVER_MAX_VALUES];
const static char *TAG = "BLUFI_EXAMPLE";
@@ -125,7 +124,31 @@ static size_t write_value(uint16_t conn_handle, uint16_t attr_handle,
}
}
btc_blufi_recv_handler(&ctxt->om->om_data[0], ctxt->om->om_len);
/* Data may come in linked om. So retrieve all data */
if (SLIST_NEXT(ctxt->om, om_next) != NULL) {
uint8_t *fw_buf = (uint8_t *)malloc(517 * sizeof(uint8_t));
memset(fw_buf, 0x0, 517);
memcpy(fw_buf, &ctxt->om->om_data[0], ctxt->om->om_len);
struct os_mbuf *last;
last = ctxt->om;
uint32_t offset = ctxt->om->om_len;
while (SLIST_NEXT(last, om_next) != NULL) {
struct os_mbuf *temp = SLIST_NEXT(last, om_next);
memcpy(fw_buf + offset , &temp->om_data[0], temp->om_len);
offset += temp->om_len;
last = SLIST_NEXT(last, om_next);
temp = NULL;
}
btc_blufi_recv_handler(fw_buf, offset);
free(fw_buf);
}
else {
btc_blufi_recv_handler(&ctxt->om->om_data[0], ctxt->om->om_len);
}
rc = ble_hs_mbuf_to_flat(ctxt->om, value->buf->om_data,
value->buf->om_len, &len);
if (rc != 0) {
@@ -217,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;
@@ -237,6 +286,18 @@ int esp_blufi_gatt_svr_init(void)
return 0;
}
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;
}
static int
esp_blufi_gap_event(struct ble_gap_event *event, void *arg)
{
@@ -265,7 +326,7 @@ esp_blufi_gap_event(struct ble_gap_event *event, void *arg)
param.connect.conn_id = event->connect.conn_handle;
/* save connection handle */
conn_handle = event->connect.conn_handle;
blufi_env.conn_id = event->connect.conn_handle;
btc_transfer_context(&msg, &param, sizeof(esp_blufi_cb_param_t), NULL, NULL);
}
if (event->connect.status != 0) {
@@ -419,8 +480,10 @@ uint8_t esp_blufi_init(void)
void esp_blufi_deinit(void)
{
blufi_env.enabled = false;
btc_msg_t msg;
esp_blufi_cb_param_t param;
btc_msg_t msg;
memset (&msg, 0x0, sizeof (msg));
msg.sig = BTC_SIG_API_CB;
msg.pid = BTC_PID_BLUFI;
msg.act = ESP_BLUFI_EVENT_DEINIT_FINISH;
param.deinit_finish.state = ESP_BLUFI_DEINIT_OK;
@@ -445,7 +508,7 @@ void esp_blufi_send_notify(void *arg)
void esp_blufi_disconnect(void)
{
ble_gap_terminate(conn_handle, BLE_ERR_REM_USER_CONN_TERM);
ble_gap_terminate(blufi_env.conn_id, BLE_ERR_REM_USER_CONN_TERM);
}
void esp_blufi_adv_stop(void) {}

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
*/
@@ -21,6 +21,11 @@
#define ESP_BLUFI_SUCCESS 0x00
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define BT_BD_ADDR_STR "%02x:%02x:%02x:%02x:%02x:%02x"
#define BT_BD_ADDR_HEX(addr) addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]
@@ -100,4 +105,7 @@ void btc_blufi_call_deep_free(btc_msg_t *msg);
uint16_t btc_blufi_get_version(void);
#ifdef __cplusplus
}
#endif
#endif /* __BTC_BLUFI_PRF_H__ */

View File

@@ -0,0 +1,342 @@
/*
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "hci_log/bt_hci_log.h"
#include "bt_common.h"
#include "osi/mutex.h"
#include "esp_attr.h"
#if (BT_HCI_LOG_INCLUDED == TRUE)
#define BT_HCI_LOG_PRINT_TAG (1)
#define BT_HCI_LOG_DATA_BUF_SIZE (1024 * HCI_LOG_DATA_BUFFER_SIZE)
#define BT_HCI_LOG_ADV_BUF_SIZE (1024 * HCI_LOG_ADV_BUFFER_SIZE)
typedef struct {
osi_mutex_t mutex_lock;
uint64_t log_record_in;
uint64_t log_record_out;
uint64_t buf_size;
uint8_t *p_hci_log_buffer;
uint8_t index;
bool overflow;
} bt_hci_log_t;
static const char s_hex_to_char_mapping[16] = {
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
};
static bt_hci_log_t g_bt_hci_log_data_ctl = {0};
static bt_hci_log_t g_bt_hci_log_adv_ctl = {0};
esp_err_t bt_hci_log_init(void)
{
uint8_t *g_bt_hci_log_data_buffer = NULL;
uint8_t *g_bt_hci_log_adv_buffer = NULL;
g_bt_hci_log_data_buffer = malloc(BT_HCI_LOG_DATA_BUF_SIZE);
if (!g_bt_hci_log_data_buffer) {
return ESP_ERR_NO_MEM;
}
g_bt_hci_log_adv_buffer = malloc(BT_HCI_LOG_ADV_BUF_SIZE);
if (!g_bt_hci_log_adv_buffer) {
if (g_bt_hci_log_data_buffer) {
free(g_bt_hci_log_data_buffer);
g_bt_hci_log_data_buffer = NULL;
}
return ESP_ERR_NO_MEM;
}
memset(g_bt_hci_log_data_buffer, 0, BT_HCI_LOG_DATA_BUF_SIZE);
memset(g_bt_hci_log_adv_buffer, 0, BT_HCI_LOG_ADV_BUF_SIZE);
memset(&g_bt_hci_log_data_ctl, 0, sizeof(bt_hci_log_t));
g_bt_hci_log_data_ctl.buf_size = BT_HCI_LOG_DATA_BUF_SIZE;
g_bt_hci_log_data_ctl.p_hci_log_buffer = g_bt_hci_log_data_buffer;
memset(&g_bt_hci_log_adv_ctl, 0, sizeof(bt_hci_log_t));
g_bt_hci_log_adv_ctl.buf_size = BT_HCI_LOG_ADV_BUF_SIZE;
g_bt_hci_log_adv_ctl.p_hci_log_buffer = g_bt_hci_log_adv_buffer;
osi_mutex_new((osi_mutex_t *)&g_bt_hci_log_data_ctl.mutex_lock);
osi_mutex_new((osi_mutex_t *)&g_bt_hci_log_adv_ctl.mutex_lock);
return ESP_OK;
}
esp_err_t bt_hci_log_deinit(void)
{
if (g_bt_hci_log_data_ctl.p_hci_log_buffer) {
free(g_bt_hci_log_data_ctl.p_hci_log_buffer);
g_bt_hci_log_data_ctl.p_hci_log_buffer = NULL;
}
if (g_bt_hci_log_adv_ctl.p_hci_log_buffer) {
free(g_bt_hci_log_adv_ctl.p_hci_log_buffer);
g_bt_hci_log_adv_ctl.p_hci_log_buffer = NULL;
}
osi_mutex_free((osi_mutex_t *)&g_bt_hci_log_data_ctl.mutex_lock);
osi_mutex_free((osi_mutex_t *)&g_bt_hci_log_adv_ctl.mutex_lock);
memset(&g_bt_hci_log_data_ctl, 0, sizeof(bt_hci_log_t));
memset(&g_bt_hci_log_adv_ctl, 0, sizeof(bt_hci_log_t));
return ESP_OK;
}
#if (BT_HCI_LOG_PRINT_TAG)
static char IRAM_ATTR *bt_data_type_to_str(uint8_t data_type)
{
char *tag = NULL;
switch (data_type)
{
case HCI_LOG_DATA_TYPE_COMMAND:
// hci cmd data
tag = "C";
break;
case HCI_LOG_DATA_TYPE_H2C_ACL:
// host to controller hci acl data
tag = "H";
break;
case HCI_LOG_DATA_TYPE_SCO:
// hci sco data
tag = "S";
break;
case HCI_LOG_DATA_TYPE_EVENT:
// hci event
tag = "E";
break;
case HCI_LOG_DATA_TYPE_ADV:
// controller adv report data
tag = NULL;
break;
case HCI_LOG_DATA_TYPE_C2H_ACL:
// controller to host hci acl data
tag = "D";
break;
case HCI_LOG_DATA_TYPE_SELF_DEFINE:
// self-defining data
tag = "S";
break;
default:
// unknown data type
tag = "U";
break;
}
return tag;
}
#endif
void bt_hci_log_record_hex(bt_hci_log_t *p_hci_log_ctl, uint8_t *hex, uint8_t hex_len)
{
uint8_t hci_log_char;
uint8_t *g_hci_log_buffer;
g_hci_log_buffer = p_hci_log_ctl->p_hci_log_buffer;
while (hex_len--)
{
hci_log_char = ((*hex) >> 4);
g_hci_log_buffer[p_hci_log_ctl->log_record_in] = s_hex_to_char_mapping [hci_log_char];
if (++ p_hci_log_ctl->log_record_in >= p_hci_log_ctl->buf_size) {
p_hci_log_ctl->log_record_in = 0;
}
if (p_hci_log_ctl->log_record_in == p_hci_log_ctl->log_record_out) {
p_hci_log_ctl->overflow = true;
}
hci_log_char = ((*hex) & 0x0f);
g_hci_log_buffer[p_hci_log_ctl->log_record_in] = s_hex_to_char_mapping [hci_log_char];
if (++p_hci_log_ctl->log_record_in >= p_hci_log_ctl->buf_size) {
p_hci_log_ctl->log_record_in = 0;
}
if (p_hci_log_ctl->log_record_in == p_hci_log_ctl->log_record_out) {
p_hci_log_ctl->overflow = true;
}
g_hci_log_buffer[p_hci_log_ctl->log_record_in] = ' ';
if (++ p_hci_log_ctl->log_record_in >= p_hci_log_ctl->buf_size) {
p_hci_log_ctl->log_record_in = 0;
}
if (p_hci_log_ctl->log_record_in == p_hci_log_ctl->log_record_out) {
p_hci_log_ctl->overflow = true;
}
++ hex;
}
}
void bt_hci_log_record_string(bt_hci_log_t *p_hci_log_ctl, char *string)
{
uint8_t *g_hci_log_buffer;
g_hci_log_buffer = p_hci_log_ctl->p_hci_log_buffer;
while (*string != '\0') {
g_hci_log_buffer[p_hci_log_ctl->log_record_in] = *string;
++string;
if (++p_hci_log_ctl->log_record_in >= p_hci_log_ctl->buf_size) {
p_hci_log_ctl->log_record_in = 0;
}
if (p_hci_log_ctl->log_record_in == p_hci_log_ctl->log_record_out) {
p_hci_log_ctl->overflow = true;
}
}
}
esp_err_t IRAM_ATTR bt_hci_log_record_data(bt_hci_log_t *p_hci_log_ctl, char *str, uint8_t data_type, uint8_t *data, uint8_t data_len)
{
osi_mutex_t mutex_lock;
uint8_t *g_hci_log_buffer;
if (!p_hci_log_ctl->p_hci_log_buffer) {
return ESP_FAIL;
}
g_hci_log_buffer = p_hci_log_ctl->p_hci_log_buffer;
if (!g_hci_log_buffer) {
return ESP_FAIL;
}
mutex_lock = p_hci_log_ctl->mutex_lock;
osi_mutex_lock(&mutex_lock, OSI_MUTEX_MAX_TIMEOUT);
#if (1)
// Add hci data index
bt_hci_log_record_hex(p_hci_log_ctl, &p_hci_log_ctl->index, 1);
#endif
#if (BT_HCI_LOG_PRINT_TAG)
char *tag = NULL;
tag = bt_data_type_to_str(data_type);
if (tag) {
bt_hci_log_record_string(p_hci_log_ctl, tag);
g_hci_log_buffer[p_hci_log_ctl->log_record_in] = ':';
if (++p_hci_log_ctl->log_record_in >= p_hci_log_ctl->buf_size) {
p_hci_log_ctl->log_record_in = 0;
}
if (p_hci_log_ctl->log_record_in == p_hci_log_ctl->log_record_out) {
p_hci_log_ctl->overflow = true;
}
}
#endif
if (str) {
bt_hci_log_record_string(p_hci_log_ctl, str);
}
bt_hci_log_record_hex(p_hci_log_ctl, data, data_len);
g_hci_log_buffer[p_hci_log_ctl->log_record_in] = '\n';
if (++p_hci_log_ctl->log_record_in >= p_hci_log_ctl->buf_size) {
p_hci_log_ctl->log_record_in = 0;
}
if (p_hci_log_ctl->log_record_in == p_hci_log_ctl->log_record_out) {
p_hci_log_ctl->overflow = true;
}
p_hci_log_ctl->index ++;
osi_mutex_unlock(&mutex_lock);
return ESP_OK;
}
void bt_hci_log_data_show(bt_hci_log_t *p_hci_log_ctl)
{
volatile uint64_t log_record_in,log_record_out;
uint8_t *g_hci_log_buffer;
if (!p_hci_log_ctl->p_hci_log_buffer) {
return;
}
osi_mutex_t mutex_lock = p_hci_log_ctl->mutex_lock;
osi_mutex_lock(&mutex_lock, OSI_MUTEX_MAX_TIMEOUT);
log_record_in = p_hci_log_ctl->log_record_in;
log_record_out = p_hci_log_ctl->log_record_out;
g_hci_log_buffer = p_hci_log_ctl->p_hci_log_buffer;
if (p_hci_log_ctl->overflow) {
log_record_out = log_record_in;
printf("%c",g_hci_log_buffer[log_record_out]);
if (++log_record_out >= p_hci_log_ctl->buf_size) {
log_record_out = 0;
}
}
while (log_record_in != log_record_out)
{
printf("%c",g_hci_log_buffer[log_record_out]);
if (++log_record_out >= p_hci_log_ctl->buf_size) {
log_record_out = 0;
}
}
p_hci_log_ctl->log_record_out = log_record_out;
p_hci_log_ctl->overflow = false;
osi_mutex_unlock(&mutex_lock);
}
static bool enable_hci_log_flag = true;
void bt_hci_log_record_hci_enable(bool enable)
{
enable_hci_log_flag = enable;
}
esp_err_t IRAM_ATTR bt_hci_log_record_hci_data(uint8_t data_type, uint8_t *data, uint8_t data_len)
{
if (!enable_hci_log_flag) return ESP_OK;
return bt_hci_log_record_data(&g_bt_hci_log_data_ctl, NULL, data_type, data, data_len);
}
esp_err_t IRAM_ATTR bt_hci_log_record_custom_data(char *string, uint8_t *data, uint8_t data_len)
{
if (!enable_hci_log_flag) return ESP_OK;
return bt_hci_log_record_data(&g_bt_hci_log_data_ctl, string, HCI_LOG_DATA_TYPE_SELF_DEFINE, data, data_len);
}
esp_err_t IRAM_ATTR bt_hci_log_record_hci_adv(uint8_t data_type, uint8_t *data, uint8_t data_len)
{
if (!enable_hci_log_flag) return ESP_OK;
return bt_hci_log_record_data(&g_bt_hci_log_adv_ctl, NULL, data_type, data, data_len);
}
void bt_hci_log_hci_data_show(void)
{
bt_hci_log_data_show(&g_bt_hci_log_data_ctl);
}
void bt_hci_log_hci_adv_show(void)
{
bt_hci_log_data_show(&g_bt_hci_log_adv_ctl);
}
#endif // (BT_HCI_LOG_INCLUDED == TRUE)

View File

@@ -0,0 +1,108 @@
/*
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __ESP_BT_HCI_LOG_H__
#define __ESP_BT_HCI_LOG_H__
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
#define HCI_LOG_DATA_TYPE_COMMAND (1)
#define HCI_LOG_DATA_TYPE_H2C_ACL (2)
#define HCI_LOG_DATA_TYPE_SCO (3)
#define HCI_LOG_DATA_TYPE_EVENT (4)
#define HCI_LOG_DATA_TYPE_ADV (5)
#define HCI_LOG_DATA_TYPE_SELF_DEFINE (6)
#define HCI_LOG_DATA_TYPE_C2H_ACL (7)
/**
*
* @brief This function is called to record self-defining data
* @param string : data identification
* @param data : data
* @param data_len : the length of data
*
* @return ESP_OK - success, other - failed
*
*/
esp_err_t bt_hci_log_record_custom_data(char *string, uint8_t *data, uint8_t data_len);
/**
*
* @brief This function is called to print all hci data record
*
*
* @return None
*
*/
void bt_hci_log_hci_data_show(void);
/**
*
* @brief This function is called to print all adv report
*
*
* @return None
*
*/
void bt_hci_log_hci_adv_show(void);
/**
*
* @brief This function is called to init hci log env
*
*
* @return ESP_OK - success, other - failed
*
*/
esp_err_t bt_hci_log_init(void);
/**
*
* @brief This function is called to deinit hci debug mode,
* and can only be called internally by Bluetooth
*
*
* @return ESP_OK - success, other - failed
*
*/
esp_err_t bt_hci_log_deinit(void);
/**
*
* @brief This function is called to record hci data without adv report event,
* and can only be called internally by Bluetooth
*
* @param str : data type, define in bt_data_type_to_str()
* @param data : data
* @param data_len : the length of data
*
* @return ESP_OK - success, other - failed
*
*/
esp_err_t bt_hci_log_record_hci_data(uint8_t data_type, uint8_t *data, uint8_t data_len);
/**
*
* @brief This function is called to record hci adv report event only
* and can only be called internally by Bluetooth
*
* @param str : data type, define in bt_data_type_to_str()
* @param data : data
* @param data_len : the length of data
* @return ESP_OK - success, other - failed
*
*/
esp_err_t bt_hci_log_record_hci_adv(uint8_t data_type, uint8_t *data, uint8_t data_len);
#ifdef __cplusplus
}
#endif
#endif /* _ESP_BT_HCI_LOG_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
*/
@@ -46,6 +46,7 @@
#define OSI_INITIAL_TRACE_LEVEL UC_BT_LOG_OSI_TRACE_LEVEL
#define BLUFI_INITIAL_TRACE_LEVEL UC_BT_LOG_BLUFI_TRACE_LEVEL
// MEMORY
#if UC_BT_BLE_DYNAMIC_ENV_MEMORY
#define BT_BLE_DYNAMIC_ENV_MEMORY TRUE
#define BTC_DYNAMIC_MEMORY TRUE
@@ -64,6 +65,51 @@
#define BT_BLE_DYNAMIC_ENV_MEMORY FALSE
#endif
#if UC_HEAP_ALLOCATION_FROM_SPIRAM_FIRST
#define HEAP_ALLOCATION_FROM_SPIRAM_FIRST TRUE
#else
#define HEAP_ALLOCATION_FROM_SPIRAM_FIRST FALSE
#endif
#if UC_BT_ABORT_WHEN_ALLOCATION_FAILS
#define HEAP_ALLOCATION_FAILS_ABORT TRUE
#else
#define HEAP_ALLOCATION_FAILS_ABORT FALSE
#endif
// HCI LOG
#if UC_BT_HCI_LOG_DEBUG_EN
#define BT_HCI_LOG_INCLUDED UC_BT_HCI_LOG_DEBUG_EN
#else
#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
#define HCI_BUFFER_SIZE (5)
#endif
#if UC_BT_HCI_ADV_BUFFER_SIZE
#define HCI_LOG_ADV_BUFFER_SIZE UC_BT_HCI_LOG_ADV_BUFFER_SIZE
#else
#define HCI_LOG_ADV_BUFFER_SIZE (5)
#endif
/* OS Configuration from User config (eg: sdkconfig) */
#define TASK_PINNED_TO_CORE UC_TASK_PINNED_TO_CORE
#define BT_TASK_MAX_PRIORITIES configMAX_PRIORITIES

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
*/
@@ -44,6 +44,15 @@
#define UC_BTC_TASK_STACK_SIZE 4096
#endif
/**********************************************************
* Alarm reference
**********************************************************/
#ifdef CONFIG_BT_ALARM_MAX_NUM
#define UC_ALARM_MAX_NUM CONFIG_BT_ALARM_MAX_NUM
#else
#define UC_ALARM_MAX_NUM 50
#endif
/**********************************************************
* Trace reference
**********************************************************/
@@ -85,11 +94,56 @@
#define UC_BT_BLUFI_ENABLE FALSE
#endif
//MEMORY DEBUG
//MEMORY
#ifdef CONFIG_BT_BLUEDROID_MEM_DEBUG
#define UC_BT_BLUEDROID_MEM_DEBUG TRUE
#else
#define UC_BT_BLUEDROID_MEM_DEBUG FALSE
#endif
#ifdef CONFIG_BT_ALLOCATION_FROM_SPIRAM_FIRST
#define UC_HEAP_ALLOCATION_FROM_SPIRAM_FIRST CONFIG_BT_ALLOCATION_FROM_SPIRAM_FIRST
#else
#define UC_HEAP_ALLOCATION_FROM_SPIRAM_FIRST FALSE
#endif
#ifdef CONFIG_BT_ABORT_WHEN_ALLOCATION_FAILS
#define UC_BT_ABORT_WHEN_ALLOCATION_FAILS CONFIG_BT_ABORT_WHEN_ALLOCATION_FAILS
#else
#define UC_BT_ABORT_WHEN_ALLOCATION_FAILS FALSE
#endif
//HCI LOG
#ifdef CONFIG_BT_HCI_LOG_DEBUG_EN
#define UC_BT_HCI_LOG_DEBUG_EN TRUE
#else
#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
#define UC_BT_HCI_LOG_DATA_BUFFER_SIZE (5)
#endif
#ifdef CONFIG_BT_HCI_LOG_ADV_BUFFER_SIZE
#define UC_BT_HCI_LOG_ADV_BUFFER_SIZE CONFIG_BT_HCI_LOG_ADV_BUFFER_SIZE
#else
#define UC_BT_HCI_LOG_ADV_BUFFER_SIZE (5)
#endif
#endif /* __BT_USER_CONFIG_H__ */

View File

@@ -213,42 +213,30 @@ char *osi_strdup(const char *str)
void *osi_malloc_func(size_t size)
{
#if HEAP_MEMORY_DEBUG
void *p;
#if HEAP_ALLOCATION_FROM_SPIRAM_FIRST
p = heap_caps_malloc_prefer(size, 2, MALLOC_CAP_DEFAULT|MALLOC_CAP_SPIRAM, MALLOC_CAP_DEFAULT|MALLOC_CAP_INTERNAL);
#else
p = malloc(size);
#endif /* #if HEAP_ALLOCATION_FROM_SPIRAM_FIRST */
osi_mem_dbg_record(p, size, __func__, __LINE__);
void *p = osi_malloc_base(size);
if (size != 0 && p == NULL) {
OSI_TRACE_ERROR("malloc failed (caller=%p size=%u)\n", __builtin_return_address(0), size);
#if HEAP_ALLOCATION_FAILS_ABORT
assert(0);
#endif
}
return p;
#else
#if HEAP_ALLOCATION_FROM_SPIRAM_FIRST
return heap_caps_malloc_prefer(size, 2, MALLOC_CAP_DEFAULT|MALLOC_CAP_SPIRAM, MALLOC_CAP_DEFAULT|MALLOC_CAP_INTERNAL);
#else
return malloc(size);
#endif /* #if HEAP_ALLOCATION_FROM_SPIRAM_FIRST */
#endif /* #if HEAP_MEMORY_DEBUG */
}
void *osi_calloc_func(size_t size)
{
#if HEAP_MEMORY_DEBUG
void *p;
#if HEAP_ALLOCATION_FROM_SPIRAM_FIRST
p = heap_caps_calloc_prefer(1, size, 2, MALLOC_CAP_DEFAULT|MALLOC_CAP_SPIRAM, MALLOC_CAP_DEFAULT|MALLOC_CAP_INTERNAL);
#else
p = calloc(1, size);
#endif /* #if HEAP_ALLOCATION_FROM_SPIRAM_FIRST */
osi_mem_dbg_record(p, size, __func__, __LINE__);
void *p = osi_calloc_base(size);
if (size != 0 && p == NULL) {
OSI_TRACE_ERROR("calloc failed (caller=%p size=%u)\n", __builtin_return_address(0), size);
#if HEAP_ALLOCATION_FAILS_ABORT
assert(0);
#endif
}
return p;
#else
#if HEAP_ALLOCATION_FROM_SPIRAM_FIRST
return heap_caps_calloc_prefer(1, size, 2, MALLOC_CAP_DEFAULT|MALLOC_CAP_SPIRAM, MALLOC_CAP_DEFAULT|MALLOC_CAP_INTERNAL);
#else
return calloc(1, size);
#endif /* #if HEAP_ALLOCATION_FROM_SPIRAM_FIRST */
#endif /* #if HEAP_MEMORY_DEBUG */
}
void osi_free_func(void *ptr)

View File

@@ -254,6 +254,32 @@ bool config_remove_section(config_t *config, const char *section)
return list_remove(config->sections, sec);
}
bool config_update_newest_section(config_t *config, const char *section)
{
assert(config != NULL);
assert(section != NULL);
list_node_t *first_node = list_begin(config->sections);
if (first_node == NULL) {
return false;
}
section_t *first_sec = list_node(first_node);
if (strcmp(first_sec->name, section) == 0) {
return true;
}
for (const list_node_t *node = list_begin(config->sections); node != list_end(config->sections); node = list_next(node)) {
section_t *sec = list_node(node);
if (strcmp(sec->name, section) == 0) {
list_delete(config->sections, sec);
list_prepend(config->sections, sec);
return true;
}
}
return false;
}
bool config_remove_key(config_t *config, const char *section, const char *key)
{
assert(config != NULL);

View File

@@ -21,6 +21,7 @@
#include <stdint.h>
#include "esp_timer.h"
#include "bt_user_config.h"
typedef struct alarm_t osi_alarm_t;
typedef uint64_t period_ms_t;
@@ -33,7 +34,7 @@ typedef enum {
OSI_ALARM_ERR_INVALID_STATE = -3,
} osi_alarm_err_t;
#define ALARM_CBS_NUM 50
#define ALARM_CBS_NUM UC_ALARM_MAX_NUM
#define ALARM_ID_BASE 1000
int osi_alarm_create_mux(void);

View File

@@ -29,6 +29,15 @@ void *osi_malloc_func(size_t size);
void *osi_calloc_func(size_t size);
void osi_free_func(void *ptr);
// Memory alloc function without print and assertion
#if HEAP_ALLOCATION_FROM_SPIRAM_FIRST
#define osi_malloc_base(size) heap_caps_malloc_prefer(size, 2, MALLOC_CAP_DEFAULT|MALLOC_CAP_SPIRAM, MALLOC_CAP_DEFAULT|MALLOC_CAP_INTERNAL)
#define osi_calloc_base(size) heap_caps_calloc_prefer(1, size, 2, MALLOC_CAP_DEFAULT|MALLOC_CAP_SPIRAM, MALLOC_CAP_DEFAULT|MALLOC_CAP_INTERNAL)
#else
#define osi_malloc_base(size) malloc((size))
#define osi_calloc_base(size) calloc(1, (size))
#endif /* #if HEAP_ALLOCATION_FROM_SPIRAM_FIRST */
#if HEAP_MEMORY_DEBUG
void osi_mem_dbg_init(void);
@@ -41,13 +50,10 @@ void osi_men_dbg_set_section_start(uint8_t index);
void osi_men_dbg_set_section_end(uint8_t index);
uint32_t osi_mem_dbg_get_max_size_section(uint8_t index);
#if HEAP_ALLOCATION_FROM_SPIRAM_FIRST
#define osi_malloc(size) \
({ \
void *p; \
p = heap_caps_malloc_prefer(size, 2, \
MALLOC_CAP_DEFAULT|MALLOC_CAP_SPIRAM, \
MALLOC_CAP_DEFAULT|MALLOC_CAP_INTERNAL); \
p = osi_malloc_base(size); \
osi_mem_dbg_record(p, size, __func__, __LINE__); \
(void *)p; \
})
@@ -55,34 +61,11 @@ uint32_t osi_mem_dbg_get_max_size_section(uint8_t index);
#define osi_calloc(size) \
({ \
void *p; \
p = heap_caps_calloc_prefer(1, size, 2, \
MALLOC_CAP_DEFAULT|MALLOC_CAP_SPIRAM, \
MALLOC_CAP_DEFAULT|MALLOC_CAP_INTERNAL); \
p = osi_calloc_base(size); \
osi_mem_dbg_record(p, size, __func__, __LINE__); \
(void *)p; \
})
#else
#define osi_malloc(size) \
({ \
void *p; \
p = malloc((size)); \
osi_mem_dbg_record(p, size, __func__, __LINE__); \
(void *)p; \
})
#define osi_calloc(size) \
({ \
void *p; \
p = calloc(1, (size)); \
osi_mem_dbg_record(p, size, __func__, __LINE__); \
(void *)p; \
})
#endif /* #if HEAP_ALLOCATION_FROM_SPIRAM_FIRST */
#if 0
#define osi_malloc(size) \
do { \
@@ -122,13 +105,9 @@ do { \
#else
#if HEAP_ALLOCATION_FROM_SPIRAM_FIRST
#define osi_malloc(size) heap_caps_malloc_prefer(size, 2, MALLOC_CAP_DEFAULT|MALLOC_CAP_SPIRAM, MALLOC_CAP_DEFAULT|MALLOC_CAP_INTERNAL)
#define osi_calloc(size) heap_caps_calloc_prefer(1, size, 2, MALLOC_CAP_DEFAULT|MALLOC_CAP_SPIRAM, MALLOC_CAP_DEFAULT|MALLOC_CAP_INTERNAL)
#else
#define osi_malloc(size) malloc((size))
#define osi_calloc(size) calloc(1, (size))
#endif /* #if HEAP_ALLOCATION_FROM_SPIRAM_FIRST */
// Memory alloc function with print and assertion when fails
#define osi_malloc(size) osi_malloc_func((size))
#define osi_calloc(size) osi_calloc_func((size))
#define osi_free(p) free((p))
#endif /* HEAP_MEMORY_DEBUG */

View File

@@ -99,6 +99,11 @@ void config_set_string(config_t *config, const char *section, const char *key, c
// Neither |config| nor |section| may be NULL.
bool config_remove_section(config_t *config, const char *section);
// Updates |section| to be the first section in |config|. Return true if |section| is in
// |config| and updated successfully, false otherwise.
// Neither |config| nor |section| may be NULL.
bool config_update_newest_section(config_t *config, const char *section);
// Removes one specific |key| residing in |section| of the |config|. Returns true
// if the section and key were found and the key was removed, false otherwise.
// None of |config|, |section|, or |key| may be NULL.

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

@@ -271,10 +271,10 @@ _err:
}
for (int i = 0; i < thread->work_queue_num; i++) {
if (thread->work_queues[i]) {
if (thread->work_queues && thread->work_queues[i]) {
osi_work_queue_delete(thread->work_queues[i]);
thread->work_queues[i] = NULL;
}
thread->work_queues[i] = NULL;
}
if (thread->work_queues) {

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,70 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "esp_tinycrypt_port.h"
#if SOC_ECC_SUPPORTED
#include "esp_crypto_lock.h"
#include "esp_private/periph_ctrl.h"
#include "hal/ecc_hal.h"
#include "hal/ecc_ll.h"
static void esp_tinycrypt_acquire_ecc_hardware(void)
{
esp_crypto_ecc_lock_acquire();
periph_module_enable(PERIPH_ECC_MODULE);
}
static void esp_tinycrypt_release_ecc_hardware(void)
{
periph_module_disable(PERIPH_ECC_MODULE);
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);
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>

Some files were not shown because too many files have changed in this diff Show More