Compare commits

...

2813 Commits

Author SHA1 Message Date
Roland Dobai
7452b1cb1d change(version): Update version to 5.1.6 2025-02-17 10:08:52 +01:00
Jiang Jiang Jian
346d2367ef Merge branch 'bugfix/stack_corruption_btm_task_v5.1' into 'release/v5.1'
fix(esp_wifi): Fix stack curruption in btm task(v5.1)

See merge request espressif/esp-idf!36972
2025-02-14 19:00:19 +08:00
Kapil Gupta
dd740aa903 fix(esp_wifi): Fix stack curruption in btm task (v5.2) 2025-02-14 13:01:38 +05:30
Jiang Jiang Jian
f0f5b08cf3 Merge branch 'bugfix/skip_memory_reordering_wpa2_semaphr_v5.1' into 'release/v5.1'
fix(esp_wifi): fixed stack corruption in WiFi tasks (v5.1)

See merge request espressif/esp-idf!36939
2025-02-14 14:03:32 +08:00
Kapil Gupta
29e8dc697f fix(esp_wifi): Fix stack corruption in wpa3 task 2025-02-13 15:52:13 +05:30
Kapil Gupta
248e6316fe fix(esp_wifi): fixed Stack corruption in DPP task 2025-02-13 15:52:13 +05:30
Kapil Gupta
041fd30845 fix(esp_wifi): fixed Stack corruption in WPS processing 2025-02-13 15:52:13 +05:30
Kapil Gupta
0b619478ae fix(esp_wifi): Fixed memory corruption in wifi enterprise
Closes https://github.com/espressif/esp-idf/issues/15370
2025-02-13 15:52:00 +05:30
Jiang Jiang Jian
e79c1ea5be Merge branch 'bugfix/gpio_rom_patch_fix_v5.1' into 'release/v5.1'
fix(gpio): fix esp_rom_gpio_connect_out_signal for gpio num over 31 on esp32/s2 (v5.1)

See merge request espressif/esp-idf!36868
2025-02-13 10:37:19 +08:00
Jiang Jiang Jian
d57745bef7 Merge branch 'bugfix/fix_blufi_crash_opt_v5.1' into 'release/v5.1'
fix(blufi): Enhance security in BLUFI example (v5.1)

See merge request espressif/esp-idf!36858
2025-02-12 16:40:19 +08:00
Aditya Patwardhan
64d5c82b7d Merge branch 'fix/fix_force_ecc_constant_time_config_esp32h2' into 'release/v5.1'
fix(security): Fixed the force constant time ecc mode

See merge request espressif/esp-idf!36768
2025-02-12 16:28:12 +08:00
Song Ruo Jing
cfe8309c44 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 16:05:48 +08:00
Zhang Hai Peng
b1657d9dd4 fix(blufi): Enhance security in BLUFI example
(cherry picked from commit 3fc6c93936)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-02-11 15:13:29 +08:00
Aditya Patwardhan
17836ba0f3 fix(security): Fixed the force constant time ecc mode
A regression was added through !36587 in which
    the force constant time ecc mode was not added appropriately
    The option gave compile time errors when enabled.
2025-02-10 21:19:38 +05:30
Jiang Jiang Jian
39fe10677c Merge branch 'revert/use_wpa3_ent_authmode_naming_v5.1' into 'release/v5.1'
fix(wifi): Revert support for WPA3 Enterprise mode and add support for WIFI_EVENT_AP_WRONG_PASSWORD (v5.1)

See merge request espressif/esp-idf!36616
2025-02-10 16:24:54 +08:00
Sarvesh Bodakhe
2665028530 feat(wpa_supplicant): Add WIFI_EVENT_AP_WRONG_PASSWORD in SoftAP
This event is triggered when external station tries connecting to softAP
with wrong password.

Currently supported softAP AUTH modes: WPA-PSK, WPA2-PSK and WPA3-PSK (SAE-auth)
2025-02-03 16:19:16 +05:30
Sarvesh Bodakhe
dbae199c42 revert(wifi): Revert support to recongize different WPA3 Authentication modes"
This reverts commit 13055cbcec.
2025-02-03 16:19:13 +05:30
Jiang Jiang Jian
546a8c8884 Merge branch 'fix/stack_overuse_by_failure_retry_cnt_v5.1' into 'release/v5.1'
fix(wifi): Fix stack overflow when failure_retry_cnt is set in station configuration  (Backport v5.1)

See merge request espressif/esp-idf!36605
2025-01-24 20:15:41 +08:00
Sarvesh Bodakhe
cabc4eb16b 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-01-24 14:05:53 +05:30
Jiang Jiang Jian
b25bf99d4f Merge branch 'feat/spi_std_timing_and_bit_trans_v5.1' into 'release/v5.1'
feat(driver_spi): support adjust master rx to standard timing (v5.1)

See merge request espressif/esp-idf!36402
2025-01-24 15:11:09 +08:00
Jiang Jiang Jian
c64891d227 Merge branch 'feature/gcc-fanalyzer_v5.1' into 'release/v5.1'
feat(ci): add gnu static analyzer job (v5.1)

See merge request espressif/esp-idf!32984
2025-01-24 15:08:55 +08:00
Aditya Patwardhan
19ad7c72d3 Merge branch 'feature/esp32h2_eco5_ecc_v5.1' into 'release/v5.1'
feat(ecc): enable ECC constant time mode for ESP32-H2 ECO5 (v5.1)

See merge request espressif/esp-idf!36587
2025-01-24 14:11:29 +08:00
Jiang Jiang Jian
508df006cf Merge branch 'bugfix/fix_wep_shared_auth_connect_fail_issue_v5.1' into 'release/v5.1'
fix(wifi): fix wep shared auth connect fail issue(Backport v5.1)

See merge request espressif/esp-idf!36593
2025-01-24 13:50:59 +08:00
Aditya Patwardhan
390a6a0719 feat(docs): Update minimizing binary size
The ESP32-H2 software countermeasure may not be necessary
        for ESP32-H2 v1.2 and above, this commit updates
        the relevant documentation
2025-01-24 09:13:36 +05:30
laokaiyao
fdd16ba44f refactor(ecdsa): rely on efuse to get chip revision 2025-01-24 09:13:36 +05:30
Aditya Patwardhan
151b6e9be5 fix(soc): Fixed ECDSA register compatibility 2025-01-24 09:13:35 +05:30
Aditya Patwardhan
09ded7787f fix(hal): Make the ECDSA countermeasure dynamically applicable
This commit makes the ECDSA countermeasure dynamically applicable
    across different revisions of the ESP32H2 SoC.
2025-01-24 09:13:24 +05:30
Jiang Jiang Jian
1cb47016d8 Merge branch 'bugfix/postpone_cpu_pll_off_time_in_slp_v5.1' into 'release/v5.1'
fix(clk): postpone CPU PLL off time in sleep (v5.1)

See merge request espressif/esp-idf!36308
2025-01-24 11:33:43 +08:00
Alexey Lapshin
488a413cd2 fix(usb): fix warnings found by GNU static analyzer 2025-01-24 11:32:19 +08:00
Alexey Lapshin
7e7bd3f5a5 fix(wpa_supplicant): fix warnings found by GNU static analyzer 2025-01-24 11:32:19 +08:00
Alexey Lapshin
b10938e44b fix(vfs): fix warnings found by GNU static analyzer 2025-01-24 11:32:19 +08:00
Alexey Lapshin
f8d30bb95f fix(heap): fix warnings found by GNU static analyzer 2025-01-24 11:32:19 +08:00
Jiang Jiang Jian
2d6c938c98 Merge branch 'bugfix/fix_ble_conn_timeout_when_coex_v5.1' into 'release/v5.1'
Bugfix/fix ble conn timeout when coex v5.1

See merge request espressif/esp-idf!36584
2025-01-24 11:19:07 +08:00
Shu Chen
822764f8f8 Merge branch 'feat/add_callback_for_esp_ot_radio_spinel_init_v5.1' into 'release/v5.1'
feat(openthread): add an API to set rcp version string (v5.1)

See merge request espressif/esp-idf!36580
2025-01-24 10:05:08 +08:00
Xu Si Yu
39fb22dae0 feat(openthread): add an API to set rcp version string (v5.1) 2025-01-24 10:05:08 +08:00
Mahavir Jain
58e5f48368 feat(ecc): enable ECC constant time mode for ESP32-H2 ECO5 2025-01-23 22:10:21 +05:30
muhaidong
60778f2a8c fix(wifi): fix wep shared auth connect fail issue 2025-01-23 19:54:31 +08:00
Shu Chen
33472d3c6d Merge branch 'fix/ci_restart_avahi_daemon_v51' into 'release/v5.1'
fix(ci): restart avahi-daemon in otbr service discovery test case (v5.1)

See merge request espressif/esp-idf!36514
2025-01-23 19:02:57 +08:00
cjin
3b1ab8a46e fix(ble): fix conn supervision tmo when coex ESP32C6 2025-01-23 18:05:42 +08:00
cjin
8d2a6a08de fix(ble): fix conn supervision tmo when coex ESP32H2 2025-01-23 18:05:18 +08:00
Jiang Jiang Jian
c3611f701e Merge branch 'feat/support_aes_pseudo_round_func_in_esp32h2_eco5_v5.1' into 'release/v5.1'
Support AES and XTS-AES's pseudo round function in ESP32H2-ECO5 (v5.1)

See merge request espressif/esp-idf!36468
2025-01-23 17:37:28 +08:00
Jiang Jiang Jian
5fc64fbf0f Merge branch 'fix/fix_max_idle_priod_issue_v51' into 'release/v5.1'
fix(wifi): fix max idle period 1 issue

See merge request espressif/esp-idf!36564
2025-01-23 16:44:58 +08:00
Jiang Jiang Jian
a8c6894a16 Merge branch 'fix/esp_vfs_register_fd_range_warning_message_v5.1' into 'release/v5.1'
fix(storage/vfs): incorrect log level in esp_vfs_register_fd_range (v5.1)

See merge request espressif/esp-idf!36321
2025-01-23 15:40:25 +08:00
Jiang Jiang Jian
c48ebdd803 Merge branch 'fix/blufi_example_mem_access_v5.1' into 'release/v5.1'
fix(ble/blufi): Fixed blufi example security issue (v5.1)

See merge request espressif/esp-idf!36161
2025-01-23 15:33:10 +08:00
Jiang Jiang Jian
40fe9c1d28 Merge branch 'change/ble_update_lib_20250103_v5.1' into 'release/v5.1'
change(ble): [AUTO_MR] 20250103 - Update ESP BLE Controller Lib (v5.1)

See merge request espressif/esp-idf!36370
2025-01-23 15:29:26 +08:00
Jiang Jiang Jian
9a2af9981f Merge branch 'fix/fix_coex_macro_control_v5.1' into 'release/v5.1'
fix(openthread): use the correct macros to control code compilation (v5.1)

See merge request espressif/esp-idf!36458
2025-01-23 15:29:06 +08:00
Jiang Jiang Jian
a62e0e711d Merge branch 'bugfix/fix_blufi_crash_v5.1' into 'release/v5.1'
fix(blufi): Fixed crash issue during memcpy in example (v5.1)

See merge request espressif/esp-idf!36549
2025-01-23 15:28:38 +08:00
Jiang Jiang Jian
06efbeef3a Merge branch 'feat/thread_dns_ext_resolve_v5_1' into 'release/v5.1'
feat(openthread): Replace netconn external resolve hook with dns external hook(v5.1)

See merge request espressif/esp-idf!36296
2025-01-23 15:15:24 +08:00
Jiang Jiang Jian
026d8aee26 Merge branch 'feature/support_hw_reset_when_handling_rcp_failure_v5.1' into 'release/v5.1'
feat(openthread): support hardware reset RCP while processing RCP failure (v5.1)

See merge request espressif/esp-idf!36556
2025-01-23 15:14:47 +08:00
wangtao@espressif.com
b114ae2e47 fix(wifi): fix max idle period 1 issue 2025-01-23 11:23:56 +08:00
zwx
9521fbdfbb feat(openthread): support hardware reset RCP while processing RCP failure 2025-01-22 17:13:49 +08:00
Zhang Hai Peng
cb6929a2e6 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:25 +08:00
wanckl
caf0d04a31 feat(driver_spi): support using SPI_DEVICE_STD_TIMING to adjust master rx in standard timing 2025-01-22 11:14:23 +08:00
renpeiying
255bb8b1b8 docs: Update CN trans for security docs 2025-01-21 13:42:08 +05:30
harshal.patil
b285e2789f feat(bootloader_support): Permanently enable XTS-AES pseudo rounds when FE release mode is enabled 2025-01-21 13:42:01 +05:30
zwx
5056ec323e fix(ci): restart avahi-daemon in otbr service discovery test case 2025-01-21 11:22:42 +08:00
harshal.patil
a29dadbabc feat(hal/spi_flash_encrypted): Enable pseudo rounds function during XTS-AES operations 2025-01-17 14:20:05 +05:30
harshal.patil
b9fe639725 feat(hal/aes): Enable pseudo rounds function during AES operations 2025-01-17 14:01:43 +05:30
Jiang Jiang Jian
8034b50d33 Merge branch 'bugfix/sync_buf_crash_v5.1' into 'release/v5.1'
fix(bt/controller): fixed missing critical protections on linked-list structure of (e)SCO buffers (v5.1)

See merge request espressif/esp-idf!36343
2025-01-17 11:37:02 +08:00
Jiang Jiang Jian
d0e00fe89a Merge branch 'refactor/update_lpperi_regs_for_h2_eco5_v5.1' into 'release/v5.1'
refactor(lpperi): compatible refactor for H2 ECO5 (v5.1)

See merge request espressif/esp-idf!36339
2025-01-17 10:48:14 +08:00
Jiang Jiang Jian
0192db53df Merge branch 'fix/set_154_cca_duration_v5.1' into 'release/v5.1'
fix(15.4): set 15.4 energy scan duration before cca (v5.1)

See merge request espressif/esp-idf!36427
2025-01-17 10:47:54 +08:00
Jiang Jiang Jian
9052a0ea05 Merge branch 'bugfix/fix_the_wpa3_connect_error_in_mesh_v5.1' into 'release/v5.1'
fix(wifi/mesh): fixed the mesh connection failure in WPA3 mode after erasing flash (v5.1)

See merge request espressif/esp-idf!36325
2025-01-17 10:46:59 +08:00
Xu Si Yu
6b3f6ef71f fix(openthread): use the correct macros to control code compilation 2025-01-17 09:49:42 +08:00
zwl
7ac466957c feat(ble): support for putting ble code into flash on ESP32-C6 2025-01-16 18:11:16 +08:00
Michael (XIAO Xufeng)
4609ec4be5 Merge branch 'feat/add_h2_config_and_maxver_for_v5.1' into 'release/v5.1'
feat(soc): add Kconfig rev min option and increase max ver for H2 v1.2 (v5.1)

See merge request espressif/esp-idf!36419
2025-01-16 17:39:05 +08:00
Xu Si Yu
300c5c2b43 fix(15.4): set 15.4 energy scan duration before cca 2025-01-16 11:46:01 +08:00
Xiao Xufeng
eda2f3eb03 feat(soc): add Kconfig rev min option and increase max ver for H2 v1.2 2025-01-16 00:19:46 +08:00
laokaiyao
39279e589d refactor(lpperi): improve compatibility solution 2025-01-15 17:16:19 +08:00
Michael (XIAO Xufeng)
cb1cf073ae Merge branch 'backport/support_h2eco5' into 'release/v5.1'
feat(esp32h2): add development support option for v1.0 chips(v5.1)

See merge request espressif/esp-idf!36299
2025-01-15 15:34:27 +08:00
laokaiyao
dce7c47e72 refactor(lpperi): compatible refactor for H2 ECO5 2025-01-15 11:49:42 +08:00
Zhou Xiao
1a0f98b1ec fix(ble): fixed ld file for c2eco0 and c2eco4
(cherry picked from commit 937fe2a6e3)

Co-authored-by: zhouxiao <zhouxiao@espressif.com>
2025-01-14 17:42:21 +08:00
Zhou Xiao
fad3da3d4d fix(ble): fixed esp_ble_tx_power_set api issue on ESP32-H2
(cherry picked from commit d2b62f2130)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-01-14 14:53:46 +08:00
Zhou Xiao
3dd9f8bb1f fix(ble): fixed esp_ble_tx_power_set api issue on ESP32-C6
(cherry picked from commit 8d6ec12838)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-01-14 14:53:42 +08:00
Zhou Xiao
17d01a1818 fix(ble): fixed esp_ble_tx_power_set api issue on ESP32-C2
(cherry picked from commit 6a752eeb89)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-01-14 14:53:40 +08:00
Zhou Xiao
d5b968a77b feat(ble): support for putting ble code into flash on ESP32-H2
(cherry picked from commit 5a9acdc379)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-01-14 14:53:38 +08:00
Zhou Xiao
0802f1d21e change(ble): Update lib_esp32c2 to 2a00fb0b
(cherry picked from commit 7cd3fe6953)

Co-authored-by: zhouxiao <zhouxiao@espressif.com>
2025-01-14 14:53:36 +08:00
Zhou Xiao
47725bd117 change(ble): Update lib_esp32c6 to 3422b706
(cherry picked from commit 4fc95fa91f)

Co-authored-by: zhouxiao <zhouxiao@espressif.com>
2025-01-14 14:53:34 +08:00
Zhou Xiao
ba417d2d21 change(ble): Update lib_esp32h2 to 3422b706
(cherry picked from commit fe5a12e7e7)

Co-authored-by: zhouxiao <zhouxiao@espressif.com>
2025-01-14 14:53:31 +08:00
Jin Cheng
62f19d112e fix(bt/controller): fixed missing critical protections on linked-list structure of (e)SCO buffers 2025-01-13 14:59:44 +08:00
zhangyanjiao
884fd332a8 fix(wifi/mesh): fixed the mesh connection failure in WPA3 mode after erasing flash
Closes https://github.com/espressif/esp-idf/issues/14095
2025-01-13 10:52:34 +08:00
Tomáš Rohlínek
64c27eac67 fix(storage/vfs): incorrect log level in esp_vfs_register_fd_range
Closes https://github.com/espressif/esp-idf/issues/14327
2025-01-10 16:52:00 +01:00
Zhang Hai Peng
d658f5a8da docs(ble/bluedroid): Added BLE log when bond info was deleted
(cherry picked from commit c9cdf51b05)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-01-10 21:03:41 +08:00
Zhang Hai Peng
11639893c3 docs(ble/bluedroid): Optimize doc for registering BLE callback functions
(cherry picked from commit d84ccadf90)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-01-10 21:03:41 +08:00
Zhang Hai Peng
288b66e9f0 fix(ble/blufi): Fixed blufi example security issue
(cherry picked from commit 3cb2d9c3c6)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-01-10 21:03:41 +08:00
Song Ruo Jing
2611ec8716 fix(clk): postpone CPU PLL off time in sleep
For PMU supported chips, powering down CPU PLL in sleep will be done by PMU, not sleep code
2025-01-10 19:32:25 +08:00
Michael (XIAO Xufeng)
74557ba1c2 feat(esp32h2): add development support option for v1.0 chips 2025-01-10 16:36:37 +08:00
WanqQixiang
73c2b569a1 fix(openthread): Fix invalid host resolving for Thread end devices 2025-01-10 15:58:33 +08:00
WanqQixiang
b2f25ae9d6 fix(openthread): Add check for ip address in DNS external resolve hook 2025-01-10 15:58:33 +08:00
WanqQixiang
c4dad9381f feat(openthread): Replace netconn external resolve hook with dns external hook 2025-01-10 15:58:33 +08:00
Jiang Jiang Jian
a9424f8a35 Merge branch 'fix_not_rm_micro_definition_v5.1' into 'release/v5.1'
fix(wifi): remove micro definition

See merge request espressif/esp-idf!36265
2025-01-10 11:42:22 +08:00
Jiang Jiang Jian
26bfbfa74e Merge branch 'fix/esp_hiram_heap_v5.1' into 'release/v5.1'
fix(esp_psram): fix a bug in PSRAM heap registration (backport v5.1)

See merge request espressif/esp-idf!35702
2025-01-10 10:31:43 +08:00
Jiang Jiang Jian
5e0d0a83a7 Merge branch 'feat/lwip_dns_external_resolve_hook_5.1' into 'release/v5.1'
feat(lwip): Add DNS external hook (v5.1)

See merge request espressif/esp-idf!36272
2025-01-10 10:31:09 +08:00
Shu Chen
bd5e1c30fe Merge branch 'feat/update_thread_lib_v5.1' into 'release/v5.1'
fix(openthread): update SRP server to support zero subtype (v5.1)

See merge request espressif/esp-idf!36230
2025-01-09 22:11:13 +08:00
yinqingzhao
13c68bd1bd fix(wifi): remove micro definition 2025-01-09 19:06:11 +08:00
Martin Vychodil
d4eca53e84 Merge branch 'fix/ssdmmc_send_cmd_set_relative_addr_rca_v5.1' into 'release/v5.1'
fix(sdmmc): Retry to get another RCA if the previous response was 0 (v5.1)

See merge request espressif/esp-idf!34347
2025-01-09 18:43:09 +08:00
Jiang Jiang Jian
be5bf51f5b Merge branch 'fix/incorrect_console_open_and_close_behaviour_v5.1' into 'release/v5.1'
fix(storage/vfs_console): stop new console opens from overwriting existing fds (v5.1)

See merge request espressif/esp-idf!35270
2025-01-09 18:03:24 +08:00
Jiang Jiang Jian
5c6a4ba5c8 Merge branch 'fix/fix_tsens_power_after_modem_wakeup_v5.1' into 'release/v5.1'
fix(esp_hw_support): fix tsensor power enable failed after modem state wakeup (v5.1)

See merge request espressif/esp-idf!36225
2025-01-09 18:03:01 +08:00
WanqQixiang
f3ef31d335 feat(lwip): Add DNS external hook 2025-01-09 10:58:11 +01:00
Jiang Jiang Jian
90156259ce Merge branch 'bugfix/wpa3_enterprise_mode_detection_v5.1' into 'release/v5.1'
fix(wifi): Fix bug in authmode detection for wpa2/wpa3 enterprise (Backport v5.1)

See merge request espressif/esp-idf!36241
2025-01-09 17:48:18 +08:00
morris
5cd2c276d0 Merge branch 'bugfix/channel_resolution_calculation_v5.1' into 'release/v5.1'
fix(rmt): channel resolution divider rounding issue (v5.1)

See merge request espressif/esp-idf!36035
2025-01-09 17:15:10 +08:00
Tan Yan Quan
5c3b29aea2 fix(openthread): update SRP server to support zero subtype
* esp-openthread: 278d4fc29
* openthread: 005c5cefc
* esp-idf: 8c1e9489e
2025-01-09 15:50:52 +08:00
morris
cc72859948 fix(rmt): channel resolution divider rounding issue
Closes https://github.com/espressif/esp-idf/issues/15092
2025-01-09 11:30:36 +08:00
Adam Múdry
f1fff9c1c9 fix(sdmmc): Retry to get another RCA if the previous response was 0 2025-01-09 11:29:29 +08:00
Tomáš Rohlínek
f981c28a8d fix(storage/vfs_console): stop new console opens from overwriting existing fds 2025-01-09 11:28:02 +08:00
Omar Chebib
197f6e40da 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.
2025-01-09 11:21:35 +08:00
Jiang Jiang Jian
2f9661bcdd Merge branch 'lwip/dns_clear_cache_fix_v5.1' into 'release/v5.1'
fix(lwip): Fixed active DNS entries before clearing cache(v5.1)

See merge request espressif/esp-idf!36214
2025-01-09 11:12:36 +08:00
wuzhenghui
a6de0b8446 fix(esp_hw_support): fix modem power enable failed after modem state wakeup 2025-01-09 11:11:48 +08:00
Jiang Jiang Jian
ccaff0ac0b Merge branch 'fix/ws_transport_head_fragments_v5.1' into 'release/v5.1'
fix(ws_transport): Fix reading WS header in fragments (v5.1)

See merge request espressif/esp-idf!35091
2025-01-09 11:04:51 +08:00
Marius Vikhammer
8d6ae5f021 Merge branch 'feature/efuse_update_for_esp32h2_eco5_v5.1' into 'release/v5.1'
feat(efuse): Adds efuses for esp32h2 eco5 (v5.1)

See merge request espressif/esp-idf!36247
2025-01-09 11:01:26 +08:00
Sarvesh Bodakhe
b48f406a0d 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.1
2025-01-08 21:22:34 +05:30
Jiang Jiang Jian
b6399a373a Merge branch 'bugfix/fix_double_wifi_active_time_v5.1' into 'release/v5.1'
bugfix/fix double wifi active time v5.1

See merge request espressif/esp-idf!36232
2025-01-08 22:45:47 +08:00
Konstantin Kondrashov
ace6ef9786 feat(espefuse): Adds efuses for esp32h2 eco5
- Support efuses that are not present in the main efuse table
2025-01-08 12:21:45 +02:00
Richard Allen
a73616d018 fix(ws_transport): Fix reading WS header bytes
Correct split header bytes

When the underlying transport returns header,
length, or mask bytes early, again call the
underlying transport.

This solves the WS parser getting offset when
the server sends a burst of frames where the
last WS header is split across packet boundaries,
so fewer than the needed bytes may be available.

Merges https://github.com/espressif/esp-idf/pull/14706
2025-01-08 17:27:32 +08:00
Jiang Jiang Jian
e77ee138e1 Merge branch 'feat/add_config_for_ble_vs_qa_cmd_v5.1' into 'release/v5.1'
fixed interrupt WDT when shutdown bt controller on ESP32(ba6739f) (v5.1)

See merge request espressif/esp-idf!36173
2025-01-08 17:16:59 +08:00
Shu Chen
4a83e6bbe7 Merge branch 'feature/154_api_enhancement_for_mp_v5.1' into 'release/v5.1'
feat(802.15.4): support register isr callback (v5.1)

See merge request espressif/esp-idf!36201
2025-01-08 16:26:01 +08:00
liuning
3f6b44d3ef fix(wifi): fix double max active time, fix coex pwr period cant been updated by ps type set 2025-01-08 15:54:30 +08:00
liuning
0de1ce27a2 feat(coex): update coexist debug default event 2025-01-08 15:54:30 +08:00
Jiang Jiang Jian
8c1e9489e5 Merge branch 'backport/backport_some_changes_to_v5.1_20250106' into 'release/v5.1'
Backport/backport some changes to v5.1 20250106

See merge request espressif/esp-idf!36178
2025-01-08 12:16:54 +08:00
Jiang Jiang Jian
b33c50d2b5 Merge branch 'bugfix/fix_some_ble_bugs_241224_esp32c3_v5.1' into 'release/v5.1'
Fixed some BLE bugs 241224 on ESP32C3(fd62b31) (v5.1)

See merge request espressif/esp-idf!36193
2025-01-08 10:28:42 +08:00
yinqingzhao
26e77f9a38 feat(wifi): avoid compiling components related to wifi when wifi is not supported 2025-01-08 10:27:36 +08:00
yinqingzhao
57bee3ec96 feat(wifi): wifi support 80211tx using 11ax rate 2025-01-08 10:25:05 +08:00
morris
9ee99a1d9f Merge branch 'bugfix/modbus_examples_fix_mode_v51' into 'release/v5.1'
fix(modbus): Fix the mode setup in modbus slave (backport v5.1)

See merge request espressif/esp-idf!36115
2025-01-08 10:23:19 +08:00
Jiang Jiang Jian
9184285fe8 Merge branch 'bugfix/use_wpa3_ent_authmode_naming_v5.1' into 'release/v5.1'
fix(wifi): Add support to recongize different WPA3 Authentication modes from specifications (Backport v5.1)

See merge request espressif/esp-idf!36149
2025-01-07 23:03:01 +08:00
Abhik Roy
6c24046df3 fix(lwip): Fixed active DNS entries before clearing cache 2025-01-07 22:03:32 +11:00
Michael (XIAO Xufeng)
b5ca10d73e Merge branch 'feat/increase_c2_supported_ver_v5.1' into 'release/v5.1'
feat(soc): increase c2 max supported version (v5.1)

See merge request espressif/esp-idf!35975
2025-01-07 15:45:02 +08:00
zwx
6d28fb78cd feat(802.15.4): introduced a feature for registering 802.15.4 ISR callbacks 2025-01-07 15:26:43 +08:00
Michael (XIAO Xufeng)
fd3da18412 Merge branch 'bugfix/warn_rc32k_use_in_kconfig_v5.1' into 'release/v5.1'
fix(clk): add an inevitable kconfig option to be selected to use rc32k (v5.1)

See merge request espressif/esp-idf!35967
2025-01-07 15:19:10 +08:00
Chen Jian Hua
7dbfb06fc9 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:21 +08:00
Kapil Gupta
b9a77ef222 Merge branch 'bugfix/enable_eap_workarounds_v5.1' into 'release/v5.1'
fix(esp_wifi): Enable EAP workarounds by default (v5.1)

See merge request espressif/esp-idf!36155
2025-01-07 14:12:15 +08:00
Jiang Jiang Jian
2a815c8400 Merge branch 'fix/littlefs_image_creation_windows_v5.1' into 'release/v5.1'
fix(littlefs): Allow LittleFS image generation on Windows + version bump (v5.1)

See merge request espressif/esp-idf!34918
2025-01-07 13:56:30 +08:00
Jiang Jiang Jian
6e9e617159 Merge branch 'fix/fix_pm_trace_rtc_domain_keeping_v5.1' into 'release/v5.1'
fix(esp_pm): enable RTC_PERIPH domain once in esp_pm_trace_init (v5.1)

See merge request espressif/esp-idf!36000
2025-01-07 10:59:31 +08:00
Jiang Jiang Jian
2832e1fcd8 Merge branch 'fix/fix_flash_leakage_workaroud_config_dependcy_v5.1' into 'release/v5.1'
fix(esp_hw_support): fix FLASH leakage workaround kconfig dependcy (v5.1)

See merge request espressif/esp-idf!35993
2025-01-07 10:58:53 +08:00
Sarvesh Bodakhe
13055cbcec 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-07 10:23:36 +08:00
Shu Chen
a2d03a16e9 Merge branch 'feature/support_esp32h2eco5_phylib_v51' into 'release/v5.1'
feat(esp_phy): support esp32h2eco5 phylib(v5.1)

See merge request espressif/esp-idf!36170
2025-01-07 10:14:22 +08:00
Rahul Tank
7b4e90da66 Merge branch 'bugfix/fix_csfc_write_nvs_v5.1' into 'release/v5.1'
fix(nimble): Corrected storing method of csfc to nvs (v5.1)

See merge request espressif/esp-idf!36168
2025-01-07 08:45:36 +08:00
Xiao Xufeng
c6b1ba15dd feat(soc): increase c2 max supported version 2025-01-06 17:09:08 +08:00
Shu Chen
515b025d6e Merge branch 'feat/support_setting_event_for_154_txrx_5_1' into 'release/v5.1'
feat(15.4): support setting 15.4 txrx pti when coex is enabled (backport to 5.1)

See merge request espressif/esp-idf!36103
2025-01-06 16:36:56 +08:00
Chen Jian Hua
6c0819eec4 fix(bt): Update bt lib for ESP32(ba6739f)
- Fixed assert in lld_evt.c at line 2353
- Fixed interrupt WDT when shutdown bt controller
- Added config for BLE vendor HCI QA command
- Added config for BLE channel assessment and ping procedure


(cherry picked from commit ad3554fbed)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-01-06 15:20:01 +08:00
zhangwenxu
743a2bf189 feat(esp_phy): support esp32h2eco5 phylib 2025-01-06 14:31:16 +08:00
Rahul Tank
16bc457b90 fix(nimble): Corrected storing method of csfc to nvs 2025-01-06 10:21:39 +05:30
Xu Si Yu
35ed2beb21 fix(openthread): fix openthread radio spinel deinit 2025-01-06 10:25:53 +08:00
Xu Si Yu
d7491e8fa8 fix(openthread): fix a naming error of kconfig 2025-01-06 10:25:30 +08:00
Xu Si Yu
632a7e0a36 feat(15.4): support setting 15.4 txrx pti when coex is enabled 2025-01-06 10:25:30 +08:00
Shu Chen
79f444f877 Merge branch 'feat/example_connect_thread_v5_1' into 'release/v5.1'
feat(protocol_examples_common): Add Thread connect to support Thread for the protocol examples(v5.1)

See merge request espressif/esp-idf!36093
2025-01-05 10:58:08 +08:00
Jiang Jiang Jian
6ee30b3348 Merge branch 'feat/backport_some_feature_and_bugfix_v51' into 'release/v5.1'
Feat/backport some feature and bugfix v51

See merge request espressif/esp-idf!36139
2025-01-03 21:36:02 +08:00
Kapil Gupta
13cf93c5c4 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:43:46 +05:30
Jiang Jiang Jian
fa1004d6cc Merge branch 'bugfix/fix_sniffer_fail_on_ci_v5.1' into 'release/v5.1'
fix(ci): Enlarge the pcap memory size in sniffer example (v5.1)

See merge request espressif/esp-idf!35694
2025-01-03 19:58:12 +08:00
Shu Chen
d326f0282e Merge branch 'feature/ieee802154_txpower_table_v5.1' into 'release/v5.1'
Feature/ieee802154 txpower table (v5.1)

See merge request espressif/esp-idf!36135
2025-01-03 17:01:34 +08:00
wangtao@espressif.com
e2ed57d521 fix(wifi): backport some wifi feature and bugfixs 2025-01-03 14:38:47 +08:00
wangtao@espressif.com
a86be3e6fd fix(wifi): fix spiram ignore issue 2025-01-03 14:24:20 +08:00
wangtao@espressif.com
9e12a0ab11 feat(wifi): fix SPIRAM_IGNORE_NOTFOUND releated config 2025-01-03 14:23:54 +08:00
wangtao@espressif.com
5ef8709e33 change(wifi): change softap default dtim period to 1 2025-01-03 14:22:49 +08:00
wangtao@espressif.com
5d2338f201 fix(wifi): fix esp32c2eco4 sta_rx_csa ld 2025-01-03 14:22:40 +08:00
zwx
e0105658a1 fix(802.15.4): fix a typo for 15.4 Kconfig 2025-01-03 14:22:28 +08:00
zwx
afa07489bf feat(802.15.4): introduce a series of APIs related power table 2025-01-03 14:22:28 +08:00
zwx
ae0ced4ca2 feat(openthread): support preferred channel mask 2025-01-03 14:22:28 +08:00
morris
16b622b4f3 Merge branch 'bugfix/esp_rom_gpio_connect_out_signal_patch_v5.1' into 'release/v5.1'
fix(gpio): patched esp_rom_gpio_connect_out_signal for esp32 and esp32s2 (v5.1)

See merge request espressif/esp-idf!35942
2025-01-03 10:36:51 +08:00
morris
f54616a4e4 Merge branch 'bugfix/ledc_get_freq_calc_v5.1' into 'release/v5.1'
fix(ledc): fix ledc_get_freq calculation err due to overflow (v5.1)

See merge request espressif/esp-idf!36022
2025-01-03 10:36:24 +08:00
aleks
4f061fac5c fix(modbus): Fix the mode setup in modbus slave
https://github.com/espressif/esp-idf/pull/14878
2025-01-02 10:33:04 +01:00
Kabir Waraich
3f613ecee0 Update slave.c to fix the mode
There is an issue in the lines that I have changed. I think it was copied over from the enum by mistake.
2025-01-02 10:32:50 +01:00
Jiang Jiang Jian
a54a67b89a Merge branch 'ci/add_build_test_eco_versions_v5.1' into 'release/v5.1'
ci: add build test for eco versions (v5.1)

See merge request espressif/esp-idf!35821
2025-01-02 15:25:22 +08:00
morris
c5a786b435 Merge branch 'feat/xmc_32d_support_v5.1' into 'release/v5.1'
feat(spi_flash): support 120M on xmc25q32d flash (backport v5.1)

See merge request espressif/esp-idf!36081
2025-01-02 14:30:25 +08:00
morris
3d36bb8933 Merge branch 'fix/bod_esp32h2_v5.1' into 'release/v5.1'
fix(bod): Improve esp32h2 brownout handling (backport v5.1)

See merge request espressif/esp-idf!36051
2025-01-02 14:28:09 +08:00
Shu Chen
f032c5c86f Merge branch 'feat/set_get_ack_timeout_v5.1' into 'release/v5.1'
feat(802.15.4): add api for set/get ack timeout (v5.1)

See merge request espressif/esp-idf!36088
2025-01-02 11:32:56 +08:00
Zhuang Hang
cf32920507 feat(802.15.4): add api for set/get ack timeout (v5.1) 2025-01-02 11:32:56 +08:00
WanqQixiang
27bf56be02 fix(openthread): Fix CI failure of ot_trel example build 2024-12-31 15:24:47 +08:00
WanqQixiang
58205df935 feat(protocol_examples_common): Add Thread connect to support Thread for the protocol examples 2024-12-31 15:24:39 +08:00
Shu Chen
787382ec96 Merge branch 'feature/use_fixed_dut_in_ot_ci_cases_v5.1' into 'release/v5.1'
feat(openthread): use fixed port in ot ci cases (Backport v5.1)

See merge request espressif/esp-idf!35847
2024-12-31 11:59:49 +08:00
C.S.M
353eb80d55 feat(spi_flash): support 120M on xmc25q32d flash 2024-12-31 11:37:43 +08:00
Rahul Tank
1f9bf6d0ae Merge branch 'bugfix/fix_ext_reconn_compilation_v5.1' into 'release/v5.1'
fix(nimble): Fix compilation issue for combination of Ext Adv and Reattempt conn flag (v5.1)

See merge request espressif/esp-idf!35934
2024-12-30 20:04:13 +08:00
Rahul Tank
dc854ff1b4 fix(nimble): Fix compilation issue for combination of Ext Adv and Reattempt conn flag 2024-12-30 14:35:00 +05:30
Rahul Tank
bdb5033398 Merge branch 'bugfix/fix_compile_issue_v5.1' into 'release/v5.1'
fix(nimble): Fix compilation issues when BLE_MAX_STORE_BOND is set to 0 (v5.1)

See merge request espressif/esp-idf!34444
2024-12-30 16:58:28 +08:00
Rahul Tank
e80531afbd fix(nimble): Fix compilation issues when BLE_MAX_STORE_BOND is set to 0 2024-12-30 10:20:40 +05:30
C.S.M
7f6b2d3917 fix(bod): Improve esp32h2 brownout handling 2024-12-30 12:05:13 +08:00
yiwenxiu
80b11876da feat(openthread): use fixed port in ot ci cases 2024-12-30 10:29:55 +08:00
Rahul Tank
df8a0957e2 Merge branch 'bugfix/force_att_tx_q_cleanup_v5.1' into 'release/v5.1'
fix(nimble): Add ATT Tx queue cleanup during link disconnection (v5.1)

See merge request espressif/esp-idf!36015
2024-12-27 20:13:30 +08:00
Island
28a0c9ce1d Merge branch 'docs/refactor_ceva_bt_controller_api_v5.1' into 'release/v5.1'
docs(ble): Refactored the API reference for esp32/c3/s3 BT controller (v5.1)

See merge request espressif/esp-idf!35350
2024-12-27 18:45:23 +08:00
Wei Yu Han
f14d3cfc5b docs(ble): Refactored the API reference for esp32/c3/s3 BT controller (v5.1) 2024-12-27 18:45:23 +08:00
morris
e7fb729b28 Merge branch 'fix/twai_io_init_glitch_v5.1' into 'release/v5.1'
fix(driver_twai): fixed bus-off when twai_init due to wrong gpio config (v5.1)

See merge request espressif/esp-idf!34823
2024-12-27 13:47:52 +08:00
Shu Chen
cc58cf3e52 Merge branch 'fix/openthread_dns_hook_v5_1' into 'release/v5.1'
fix(openthread): Fix external DNS resolve hook for DNS64 client(v5.1)

See merge request espressif/esp-idf!35986
2024-12-27 10:20:48 +08:00
morris
8722c3d4e7 Merge branch 'bugfix/uart_8_16_bit_access_v5.1' into 'release/v5.1'
fix(uart): fix 8/16-bit uart register access (v5.1)

See merge request espressif/esp-idf!35964
2024-12-27 10:19:46 +08:00
Roland Dobai
e7303ce35d Merge branch 'fix/tools_pip_upgrade_v5.1' into 'release/v5.1'
fix(idf_tools.py): Upgrade pip and setuptools separately (v5.1)

See merge request espressif/esp-idf!35777
2024-12-27 00:12:53 +08:00
Song Ruo Jing
c262ef4067 fix(ledc): fix ledc_get_freq calculation err due to overflow
Closes https://github.com/espressif/esp-idf/pull/14882
2024-12-26 18:51:22 +08:00
Rahul Tank
b878fe1b87 fix(nimble): Add ATT Tx queue cleanup during link disconnection 2024-12-26 14:58:33 +05:30
Jiang Jiang Jian
306a58714a Merge branch 'feature/support_to_query_phy_rf_used_time_v5.1' into 'release/v5.1'
feat(phy): support to query phy used time

See merge request espressif/esp-idf!35875
2024-12-26 17:22:54 +08:00
morris
8b8f6d1509 Merge branch 'fix/fix_psram_mode_reg_wrong_timing_v5.1' into 'release/v5.1'
psram: fixed mode reg read bad timing on octal and hex psrams (v5.1)

See merge request espressif/esp-idf!35953
2024-12-26 16:17:31 +08:00
Island
c2fde4367c Merge branch 'refactor/optimize_ble_gatt_api_doc_v5.1' into 'release/v5.1'
refactor(bt/bluedroid): Optimize BLE GATT related APIs reference (v5.1)

See merge request espressif/esp-idf!35916
2024-12-26 14:24:55 +08:00
Island
58e0766349 Merge branch 'feat/add_get_started_example_on_bluedroid_v5.1' into 'release/v5.1'
feat(bt/bluedroid): Added BLE get started examples for Bluedroid (v5.1)

See merge request espressif/esp-idf!35650
2024-12-26 14:24:43 +08:00
wuzhenghui
0f976bcd36 fix(esp_pm): enable RTC_PERIPH domain once in esp_pm_trace_init 2024-12-26 14:11:38 +08:00
wanckl
5124d2a51c fix(twai): currect twai type macro initialize definition 2024-12-26 11:57:38 +08:00
wuzhenghui
241dc137a2 fix(esp_hw_support): fix FLASH leakage workaround kconfig dependcy 2024-12-26 11:43:07 +08:00
Island
b370b7538d Merge branch 'bugfix/fixed_ble_issues_241220_v5.1' into 'release/v5.1'
Bugfix/fixed ble issues 241220 (v5.1)

See merge request espressif/esp-idf!35921
2024-12-26 11:30:28 +08:00
WanqQixiang
94399fb82e fix(openthread): Fix external DNS resolve hook for DNS64 client 2024-12-26 11:17:23 +08:00
Armando
b8cc131156 fix(psram): fixed mode reg read bad timing on octal and hex psrams 2024-12-26 11:17:07 +08:00
morris
1f022e2a6e Merge branch 'bugfix/reserve_mspi_pin_regarding_line_mode_v5.1' into 'release/v5.1'
fix(gpio_reserve): reserve the mspi pin regarding line mode (v5.1)

See merge request espressif/esp-idf!35908
2024-12-26 11:03:27 +08:00
morris
c7ad441eab Merge branch 'bugfix/rtc_clk_cpu_freq_set_xtal_behavior_v5.1' into 'release/v5.1'
fix(clk): rtc_clk_cpu_freq_set_xtal will always disable CPU's PLL (v5.1)

See merge request espressif/esp-idf!35946
2024-12-26 10:48:58 +08:00
Song Ruo Jing
9026c0905e fix(clk): add an inevitable kconfig option to be selected to use rc32k 2024-12-25 20:08:56 +08:00
Song Ruo Jing
6888440994 fix(uart): fix 8/16-bit uart register access 2024-12-25 19:40:22 +08:00
morris
20b0a71a66 Merge branch 'fix/c61_h2_pmu_icg_csv_update_v5.1' into 'release/v5.1'
fix(pmu): h2 update pmu_icg_mapping.h (v5.1)

See merge request espressif/esp-idf!34799
2024-12-25 16:34:43 +08:00
Song Ruo Jing
ea2463cd8c 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 14:19:37 +08:00
Song Ruo Jing
8f1b98b237 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 14:19:29 +08:00
morris
cb1f878478 Merge branch 'feat/rmt_return_real_channel_resolution_v5.1' into 'release/v5.1'
feat(rmt): add API to return the real clock resolution of a channel (v5.1)

See merge request espressif/esp-idf!35904
2024-12-25 14:10:40 +08:00
laokaiyao
774920dfa2 fix(gpio_reserve): reserve the mspi pin regarding line mode 2024-12-25 11:09:56 +08:00
zwl
09486fbdfc feat(ble): add dtm configuration command in hci example 2024-12-25 10:00:43 +08:00
Rahul Tank
5746b0088f Merge branch 'bugfix/ble_common_issues_v5.1' into 'release/v5.1'
Bugfix/ble common issues v5.1

See merge request espressif/esp-idf!35797
2024-12-25 09:58:18 +08:00
Astha Verma
f6c4b1c4b5 fix(nimble): fix memory leak issue in Blufi example 2024-12-24 22:20:05 +05:30
Rahul Tank
e4e56f030c Merge branch 'bugfix/solve_memory_prints_v5.1' into 'release/v5.1'
fix(nimble): Changing esp_rom_printf to ESP_LOGI when memory allocation fails (v5.1)

See merge request espressif/esp-idf!35839
2024-12-25 00:24:52 +08:00
Song Ruo Jing
6a26acf647 fix(clk): rtc_clk_cpu_freq_set_xtal will always disable CPU's PLL
Align C6/H2 rtc_clk_cpu_freq_set_xtal behavior to other chips
2024-12-24 22:33:38 +08:00
morris
2249f2c916 Merge branch 'bugfix/fix_i2s_24b_buf_size_calc_v5.1' into 'release/v5.1'
fix(i2s): fixed some issues in I2S driver (v5.1)

See merge request espressif/esp-idf!35771
2024-12-24 22:01:27 +08:00
wanckl
c032520054 fix(driver_twai): fixed bus-off when twai_init due to wrong gpio config
Closes https://github.com/espressif/esp-idf/issues/14548
2024-12-24 18:15:39 +08:00
Shu Chen
509be3d12d Merge branch 'fix/add_macros_for_otbr_v5.1' into 'release/v5.1'
fix(openthread): add macros for ot_br (v5.1)

See merge request espressif/esp-idf!35895
2024-12-24 17:55:40 +08:00
Abhinav Kudnar
a725747800 fix(nimble): Changing esp_rom_printf to ESP_LOGI when memory allocation fails 2024-12-24 14:14:27 +05:30
Rahul Tank
ff0826a90f Merge branch 'bugfix/fix_link_estab_param_v5.1' into 'release/v5.1'
fix(nimble): Corrected link_estab event handling parameters (v5.1)

See merge request espressif/esp-idf!35810
2024-12-24 16:43:04 +08:00
wanckl
67cb6b21c1 fix(pmu): c61 and h2 update pmu_icg_mapping.h 2024-12-24 16:10:27 +08:00
Zhao Wei Liang
9e24e88ca7 feat(ble): Support get ble controller free heap size on ESP32-C2
(cherry picked from commit 2cb7d2437b)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-24 15:21:08 +08:00
Zhao Wei Liang
811efe487c feat(ble): Support get ble controller free heap size on ESP32-H2
(cherry picked from commit 12f226be7d)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-24 15:21:05 +08:00
Zhao Wei Liang
778d18bab0 feat(ble): Support get ble controller free heap size on ESP32-C6
(cherry picked from commit aa7feb9449)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-24 15:21:03 +08:00
Zhao Wei Liang
95e2d76aba feat(ble): fixed some ble issues on ESP32-C2
(cherry picked from commit 5f9a3cdd1a)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-24 15:21:01 +08:00
Zhao Wei Liang
8077af9685 feat(ble): adjust bt default scheme position
(cherry picked from commit 446239251c)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-24 15:20:59 +08:00
Chen Jian Hua
d1b039305c 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:48 +08:00
laokaiyao
26f97d8d4d fix(i2s): add check for the tdm frame bits num 2024-12-24 14:50:41 +08:00
laokaiyao
1afe2af442 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 14:50:41 +08:00
laokaiyao
f22dd313fa refactor(i2s): refactor i2s examples common dependencies
Closes https://github.com/espressif/esp-idf/issues/14751

Make the common I2S dependencies as an example common component,
so that to avoid slash & backslash issue on windows
when use absolute include path.
2024-12-24 14:50:41 +08:00
laokaiyao
51adfa1fd9 fix(i2s): return error when mclk_div is smaller than 2 2024-12-24 14:50:30 +08:00
laokaiyao
4bcc2b151f fix(i2s): fixed incorrect buf size calculation 2024-12-24 12:35:26 +08:00
morris
9120e4dc81 feat(rmt): add API to return the real clock resolution of a channel
Closes https://github.com/espressif/esp-idf/pull/15074
2024-12-24 11:17:32 +08:00
Tan Yan Quan
c9f1da176d fix(openthread): add macros for ot_br 2024-12-23 21:31:25 +08:00
Shu Chen
50b36ece57 Merge branch 'feature/add_rx_buff_statistic_v5.1' into 'release/v5.1'
feat(802.15.4): IEEE802.15.4 add rx buffer statistic (v5.1)

See merge request espressif/esp-idf!35642
2024-12-23 17:34:48 +08:00
morris
c3b7a31f28 Merge branch 'fix/flash_noos_issues_v5.1' into 'release/v5.1'
flash: fixed some no_os API issues (v5.1)

See merge request espressif/esp-idf!35795
2024-12-23 17:34:21 +08:00
Shu Chen
81a34cbbc7 Merge branch 'fix/thread-lib-v51' into 'release/v5.1'
fix(openthread): update esp-thread-lib branch (v5.1)

See merge request espressif/esp-idf!35815
2024-12-23 17:29:57 +08:00
Marius Vikhammer
e5d9f16f42 Merge branch 'fix/ringbuf_receives_after_aq_wraparound_v5.1' into 'release/v5.1'
fix(esp_ringbuf): Fixed no-split ringbuf issue where acquire pointer  wraps around (v5.1)

See merge request espressif/esp-idf!35870
2024-12-23 14:48:47 +08:00
Jiang Jiang Jian
55c50d6732 Merge branch 'bugfix/fix_some_wifi_bugs_20241221_v5.1' into 'release/v5.1'
fix some wifi bugs 20241221(Backport v5.1)

See merge request espressif/esp-idf!35864
2024-12-23 13:42:03 +08:00
liuning
f7e29d28be feat(phy): support to query phy used time 2024-12-23 10:59:11 +08:00
weiyuhan
8d6604194d fix(ble): removed c5 sdk config 2024-12-21 18:44:10 +08:00
weiyuhan
dbd9b4db31 feat(ble): Added bluedroid get-started example build rule 2024-12-21 18:35:29 +08:00
Sudeep Mohanty
62bf3932f9 fix(esp_ringbuf): Fixed no-split ringbuf issue where acquire pointer wraps around
This commit fixes an issue with no-split ring buffers where in the the
buffer did not receive items correctly if the acquire pointer wraps
around before items are sent to it.
2024-12-21 12:08:14 +05:30
muhaidong
7f77ddd850 fix(wifi): fixed blufi connect wep or wpa ap fail issue 2024-12-21 09:56:38 +08:00
muhaidong
bb04801208 fix(phy): fixed calibration warning infomation inaccurate issue
Closes https://github.com/espressif/esp-idf/issues/14963
2024-12-21 09:56:38 +08:00
Tan Yan Quan
b98ede466b fix(openthread): update esp-thread-lib branch 2024-12-20 12:27:05 +08:00
Chen Jian Hua
ff6dda30fb feat(bt/bluedroid): Added BLE get started examples for Bluedroid
(cherry picked from commit d051a2a39d)

Co-authored-by: xuzhekai <xuzhekai@espressif.com>
2024-12-20 12:03:48 +08:00
Armando
218947014c fix(cache): fixed cache hal ctx not initialised in app issue 2024-12-20 10:35:11 +08:00
Armando
eb79d784e0 fix(spi_flash): fixed no_os flash API not consider cache states issue on h2/p4/c6/c5/c61 2024-12-20 10:35:11 +08:00
morris
11608b18b5 Merge branch 'fix/fix_adc_cali_check_scheme_api_issue_v5.1' into 'release/v5.1'
adc: fixed adc_cali_check_scheme wrong return on c2/h2/c6 (v5.1)

See merge request espressif/esp-idf!35722
2024-12-20 10:19:01 +08:00
Alexey Gerenkov
5b15425089 Merge branch 'fix/coredump_checksum_error_v5.1' into 'release/v5.1'
Fix/coredump checksum error (v5.1)

See merge request espressif/esp-idf!35765
2024-12-19 22:54:07 +08:00
Chen Yudong
118ab73787 ci: add build test for eco versions 2024-12-19 21:05:48 +08:00
Island
b098ceda0f Merge branch 'bugfix/fix_set_perfer_ext_conn_param_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fixed setting perfer conn params complete event report (v5.1)

See merge request espressif/esp-idf!35745
2024-12-19 19:21:08 +08:00
Rahul Tank
d55529ef09 fix(nimble): Corrected link_estab event handling parameters 2024-12-19 16:03:09 +05:30
Jiang Jiang Jian
cfae377be9 Merge branch 'fix/fix_esp32c2_eco4_ld_err_v51' into 'release/v5.1'
fix(wifi): fix esp32c2eco4 ld err

See merge request espressif/esp-idf!35784
2024-12-19 16:10:58 +08:00
Island
620ec857a5 Merge branch 'bugfix/fix_blufi_prepare_write_v5.1' into 'release/v5.1'
fix(blufi): Fixed crash issue in Blufi example during prepare write operation (v5.1)

See merge request espressif/esp-idf!35714
2024-12-19 15:06:42 +08:00
wangtao@espressif.com
776eee39d7 fix(wifi): fix esp32c2eco4 ld err 2024-12-19 10:59:33 +08:00
Wang Meng Yang
38913142d9 Merge branch 'bugfix/fix_btqabr2023330_v5.1' into 'release/v5.1'
fix(bt): Fix error code returned by create_conn_cancel_cmd at different status (backport v5.1)

See merge request espressif/esp-idf!35574
2024-12-19 10:47:26 +08:00
Roland Dobai
32a118de11 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:43 +01:00
Shu Chen
e35d74c446 Merge branch 'feature/change_ot_ci_cases_wlan_to_ethernet_v5.1' into 'release/v5.1'
feat(openthread): change wlan to ethernet (Backport v5.1)

See merge request espressif/esp-idf!35739
2024-12-18 19:20:41 +08:00
Erhan Kurubas
5274d52f16 change(coredump): make sure consistency with written data and calculated checksum 2024-12-18 13:29:02 +03:00
chenjianhua
28de7759b2 fix(bt/bluedroid): Fixed LE channel selection algorithm event reporting 2024-12-18 11:50:53 +08:00
Chen Jian Hua
ee3ecd434b 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:21 +08:00
Island
90b1dbbdd1 Merge branch 'bugfix/fix_ble_aa_zero_c3_s3_v5.1' into 'release/v5.1'
fix(bt/ble): Update esp32c3/s3 libbtdm_app.a (555b0a2) (v5.1)

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

See merge request espressif/esp-idf!35708
2024-12-18 10:41:25 +08:00
Wei Yu Han
856e93cf2f docs(ble): Added BLE Qualification Information to API Guides (v5.1) 2024-12-18 10:41:25 +08:00
yiwenxiu
0c025a9f97 feat(openthread): change wlan to ethernet 2024-12-18 10:02:22 +08:00
xiongweichao
0d4d43fe63 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:40:57 +08:00
chenqingqing
86949f53d1 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:40:57 +08:00
Rahul Tank
59714207df Merge branch 'feat/pts_changes_5.1' into 'release/v5.1'
feat(nimble): BLE 5.4 PTS Related Features and Fixes (v5.1)

See merge request espressif/esp-idf!34977
2024-12-17 20:02:50 +08:00
Island
9ed0daca21 Merge branch 'feat/support_some_vendor_hci_for_qa_v5.1' into 'release/v5.1'
fix(ble): fixed the connect issue when rx error aa on ESP32-C2 (v5.1)

See merge request espressif/esp-idf!35644
2024-12-17 16:49:16 +08:00
zhanghaipeng
22dd47032b docs(ble/bluedroid): Optimize BLE example documentation 2024-12-17 16:30:31 +08:00
zhanghaipeng
18f986858a feat(ble/bluedroid): Support create BLE static random address and NRPA 2024-12-17 16:29:25 +08:00
Armando
8dfe3d88a1 fix(adc): fixed adc_cali_check_scheme wrong return on c2/h2/c6 2024-12-17 16:18:47 +08:00
Zhang Hai Peng
f4cf1ee0da 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:28 +08:00
Marius Vikhammer
a0079d0699 Merge branch 'bugfix/rm_redefined_gpio_num_v5.1' into 'release/v5.1'
fix(ulp): remove redefinition and unify gpio enum in ulp (v5.1)

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

See merge request espressif/esp-idf!35662
2024-12-17 15:42:42 +08:00
zhangyanjiao
7459060e22 fix(ci): Enlarge the pcap memory size in sniffer example 2024-12-17 11:09:26 +08:00
Troy
9971f83f06 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:09:18 +08:00
xiongweichao
cfdcded587 fix(ble): fixed that the resolvable private address does not change when light sleep is enabled 2024-12-17 10:50:13 +08:00
zhanghaipeng
263ecbc9be 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:50:06 +08:00
Xiaoyu Liu
a72b5bd3cc fix(ulp): remove redefinition and unify gpio enum in ulp 2024-12-17 09:56:37 +08:00
Abhinav Kudnar
893fca370b feat(nimble): Added PAwR support for nimble with IDF examples 2024-12-16 15:51:32 +05:30
Sumeet Singh
54ce62f82a fix(nimble): Added
1. Option to disable automatic discovery when receiving out-of-sync
2. Fixed bugs related to robust caching
2024-12-16 15:51:32 +05:30
Sumeet Singh
0b79ace9e8 feat(nimble): Added ways to enable/disable some menuconfig options at runtime 2024-12-16 15:51:32 +05:30
Sumeet Singh
35ec35a5d6 feat(nimble): Added option to disable automatically sending extra credits to peer 2024-12-16 15:51:32 +05:30
Sumeet Singh
d06424e0a8 feat(nimble): Added support for persisting csf characteristic for bonded devices 2024-12-16 15:51:31 +05:30
Sumeet Singh
7cf3593192 feat(nimble): Added option in menuconfig to enable Secure Connections Only mode 2024-12-16 15:29:21 +05:30
Sumeet Singh
a5e10f2ceb fix(nimble): fix and enable connection subrating 2024-12-16 15:29:21 +05:30
Sumeet Singh
7c5540a386 fix(nimble): Added option to enable code under Enhanced COC 2024-12-16 15:29:21 +05:30
Sumeet Singh
f3944883f4 fix(nimble): Fixed Device Information and Scan Parameters service 2024-12-16 15:29:21 +05:30
Sumeet Singh
bb2eb017af fix(nimble): Fixed encrypted advertisement data example 2024-12-16 15:29:21 +05:30
Sumeet Singh
d811a900b1 feat(nimble): Added LE GATT Security Levels Characteristic 2024-12-16 15:29:21 +05:30
Sumeet Singh
8fda6410d5 feat(nimble): Added support for EATT Credit Based Flow Control Mode 2024-12-16 15:29:20 +05:30
nilesh.kale
098291a06a 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:19 +05:30
Tan Yan Quan
9e39278677 feat(802.15.4): remove unnecessary includes in ieee802154 test case 2024-12-16 15:01:56 +08:00
Rahul Tank
ddf194936c Merge branch 'bugfix/fix_vulnerability_v5.1' into 'release/v5.1'
fix(nimble): Fixes for security vulnerabilities reported in NimBLE (v5.1)

See merge request espressif/esp-idf!35502
2024-12-16 15:00:32 +08:00
Island
85df8b03c5 Merge branch 'feat/support_bleqabr24_1539_v5.1' into 'release/v5.1'
feat(bt/bluedroid): Added config for saving BLE bonding keys to NVS (v5.1)

See merge request espressif/esp-idf!35601
2024-12-16 14:25:46 +08:00
Jiang Jiang Jian
41a885bb2d Merge branch 'bugfix/fix_some_wifi_bugs_241209_v5.1' into 'release/v5.1'
fix(wifi): fix some wifi issues(Backport v5.1)

See merge request espressif/esp-idf!35517
2024-12-16 11:13:38 +08:00
Zhao Wei Liang
4036633ee3 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:25 +08:00
Zhao Wei Liang
9f9deff3cb feat(ble): support some vendor hci commands on ESP32-H2
(cherry picked from commit 15203f9f35)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-16 11:03:23 +08:00
Zhao Wei Liang
3d6ed6a93b feat(ble): support some vendor hci commands on ESP32-C6
(cherry picked from commit 5bd66eaa57)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-16 11:03:21 +08:00
Tan Yan Quan
8812827e19 feat(802.15.4): add some documentation for txrx statistics and debug record 2024-12-16 10:54:51 +08:00
Tan Yan Quan
f159431e86 feat(802.15.4): IEEE802.15.4 add documentation and refactor component structure 2024-12-16 10:54:51 +08:00
Tan Yan Quan
02ad9863d2 feat(802.15.4): IEEE802.15.4 add some minor edits for readability 2024-12-16 10:54:51 +08:00
Tan Yan Quan
fa96cfdd08 feat(802.15.4): IEEE802.15.4 add rx buffer statistic 2024-12-16 10:54:50 +08:00
Island
cb583c210b Merge branch 'fix/ble_mesh_enable_high_duty_itvl_on_nimble_v5.1' into 'release/v5.1'
feat(ble_mesh): select BT_NIMBLE_HIGH_DUTY_ADV_ITVL when using random adv itvl (v5.1)

See merge request espressif/esp-idf!35596
2024-12-13 16:22:01 +08:00
muhaidong
37cf056fd2 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-13 15:58:37 +08:00
Jiang Jiang Jian
4f9120cbbb Merge branch 'feat/add_no_bss_deauth_protect_v51' into 'release/v5.1'
feat(wifi): add protect for softap send no bss deauth releated code

See merge request espressif/esp-idf!35594
2024-12-13 13:56:59 +08:00
Shu Chen
802164506d Merge branch 'bugfix/fixed-zigbee-dirty-backport-5.1' into 'release/v5.1'
fix(zigbee): fixed the dirty zigbee backport

See merge request espressif/esp-idf!35593
2024-12-12 16:18:07 +08:00
chenjianhua
c62bc3ba12 fix(bt/bluedroid): Fixed failure to get host status when host is not enabled 2024-12-12 14:44:05 +08:00
chenjianhua
29dd7d0fb4 feat(bt/bluedroid): Added config for saving BLE bonding keys to NVS 2024-12-12 14:43:48 +08:00
Luo Xu
987a2a8866 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:21 +08:00
xieqinan@espressif.com
dc7bcad056 fix(zigbee): fixed the dirty zigbee backport 2024-12-12 11:52:10 +08:00
wangtao@espressif.com
e9c2c6da81 feat(wifi): add protect for softap send no bss deauth releated code 2024-12-12 11:51:06 +08:00
Island
faef56543b Merge branch 'fix/ble_mesh_bugs_fixed_v5.1' into 'release/v5.1'
fix(ble_mesh): Miscellaneous update (v5.1)

See merge request espressif/esp-idf!35424
2024-12-12 10:53:29 +08:00
Jiang Jiang Jian
bb48bfb0ba Merge branch 'feature/reason_for_ap_stadisconnected_event_v5.1' into 'release/v5.1'
fix(esp_wifi): Add some bugfixes and cleanup in softAP (Backport v5.1)

See merge request espressif/esp-idf!35576
2024-12-12 10:23:30 +08:00
Island
e423469b8a Merge branch 'bugfix/fix_hid_crash_v5.1' into 'release/v5.1'
fix(ble): Fix crash issue during logging (v5.1)

See merge request espressif/esp-idf!35508
2024-12-12 09:06:07 +08:00
Sarvesh Bodakhe
9584729322 fix(esp_wifi): Add some bugfixes and cleanup in softAP
1. Fix wrong reason code in 'WIFI_EVENT_AP_STADISCONNECTED' event
2. cleanup in softAP for disconnecting connected station
3. Update examples to display reason while processing WIFI_EVENT_AP_STADISCONNECTED event
2024-12-11 15:40:04 +05:30
Shu Chen
4e4e790f51 Merge branch 'fix/disable_border_agent_default_v5_1' into 'release/v5.1'
fix(openthread): Disable Border Agent features by default(v5.1)

See merge request espressif/esp-idf!35553
2024-12-11 17:18:53 +08:00
luoxu
222c0d4345 fix(ble_mesh): Miscellaneous update 2024-12-11 11:02:49 +08:00
WanqQixiang
1e219cf057 fix(openthread): Disable Border Agent features by default 2024-12-11 10:59:59 +08:00
Alexey Gerenkov
c571a595e8 Merge branch 'fix/coredump-gcc-analyzer-warnings_v5.1' into 'release/v5.1'
fix(system): fix GCC-14 analyzer warnings for coredump (v5.1)

See merge request espressif/esp-idf!35525
2024-12-10 21:55:00 +08:00
Kapil Gupta
174aa79c72 Merge branch 'bugfix/wps_ie_reset_v51' into 'release/v5.1'
fix(wifi): Remove WPS IEs once WPS succeeds(backport v5.1)

See merge request espressif/esp-idf!35080
2024-12-10 15:34:10 +08:00
morris
0d4bc85125 Merge branch 'bugfix/uart_vfs_read_behavior_v5.1' into 'release/v5.1'
fix(uart_vfs): read() now aligned to POSIX defined behavior (v5.1)

See merge request espressif/esp-idf!35396
2024-12-10 10:52:24 +08:00
Erhan Kurubas
6a62f67e5e fix(espcoredump): prevent null pointer dereference in panic reason handling 2024-12-09 15:20:39 +01:00
Erhan Kurubas
afa65c6003 fix(espcoredump): fix incorrect pointer usage in checksum update call 2024-12-09 15:20:33 +01:00
Alexey Lapshin
483ea6903a fix(espcoredump): fix GCC-14 analyzer warnings for coredump 2024-12-09 15:20:28 +01:00
Kapil Gupta
03c6f210fb fix(wifi): Remove WPS IEs once WPS succeeds 2024-12-09 18:45:35 +08:00
zhanghaipeng
88ccc42dbf feat(bt): Add support for converting BT HCI logs to btsnoop format 2024-12-09 17:52:57 +08:00
Zhang Hai Peng
d9ae4e437e 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:23 +08:00
Zhang Hai Peng
b115b78549 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:57 +08:00
Rahul Tank
ef62be9a16 fix(nimble): Fixes for security vulnerabilities reported in NimBLE 2024-12-09 10:12:03 +05:30
Rahul Tank
bd2e471f3a Merge branch 'fix/hci_err_code_def_v5.1' into 'release/v5.1'
fix(nimble): Added a function for printing HCI error definition (v5.1)

See merge request espressif/esp-idf!35202
2024-12-07 00:17:10 +08:00
Island
f639dcccf2 Merge branch 'bugfix/fix_ble_creat_conn_fail_enh_v5.1' into 'release/v5.1'
fix(ble/bluedroid): Fixed BLE create connection fail because of invalid own address type (v5.1)

See merge request espressif/esp-idf!35016
2024-12-06 15:49:21 +08:00
Jiang Jiang Jian
648ff3c825 Merge branch 'bugfix/load_access_fault_upon_auth_v5.1' into 'release/v5.1'
fix(wifi): Add a check on hostapd instance while handling an Auth frame (Backport v5.1)

See merge request espressif/esp-idf!34120
2024-12-06 14:36:01 +08:00
Wang Meng Yang
ec07ca583e Merge branch 'bugfix/access_null_in_hf_cb_v5.1' into 'release/v5.1'
fix(bt/bluedroid): fixed access NULL in HFP callback handler (v5.1)

See merge request espressif/esp-idf!35409
2024-12-06 12:07:31 +08:00
Shu Chen
d7997d19ba Merge branch 'fix/add_delay_before_command_in_ot_ci_case_v5.1' into 'release/v5.1'
feat(openthread): add delay before execute wifi command in openthread ci cases (Backport v5.1)

See merge request espressif/esp-idf!35419
2024-12-06 11:15:36 +08:00
Jiang Jiang Jian
7f13f06151 Merge branch 'bugfix/watchdog_timer_ap_sta_esp32c5_v5.1' into 'release/v5.1'
fix(wifi): Prevent overwriting of scan parameters in consecutive scans (Backport v5.1)

See merge request espressif/esp-idf!34484
2024-12-06 10:38:25 +08:00
akshat
0d4500c2af fix(wifi): Prevent overwriting of scan parameters in consecutive scans 2024-12-05 11:21:47 +05:30
Jin Cheng
ef4d1bf538 fix(bt/bluedroid): fixed access NULL in HFP callback handler 2024-12-05 13:21:58 +08:00
Jiang Jiang Jian
381b01d799 Merge branch 'bugfix/retry_count_when_sta_disconnect_v5.1' into 'release/v5.1'
fix(wifi): Do not attempt re-connection as per 'failure_retry_cnt' when sta itself issues disconnect in between of connection establishment (Backport v5.1)

See merge request espressif/esp-idf!34187
2024-12-05 10:50:11 +08:00
Sergei Silnov
849b565b91 Merge branch 'fix/unity_tester_v5.1' into 'release/v5.1'
refactor: changed logic of unity_tester (v5.1)

See merge request espressif/esp-idf!35429
2024-12-05 01:43:55 +08:00
Song Ruo Jing
c3c5ab0a92 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 21:39:12 +08:00
morris
56aae01626 Merge branch 'bugfix/esp32c3_eco7_usj_console_v5.1' into 'release/v5.1'
fix(esp_rom): fix esp32c3 eco7 console rom function address (v5.1)

See merge request espressif/esp-idf!34741
2024-12-04 20:06:50 +08:00
Jiang Jiang Jian
7312ba8b66 Merge branch 'bugfix/chip823_pll_bug_v5.1' into 'release/v5.1'
fix(H2):fix pll low temp bug(V5.1)

See merge request espressif/esp-idf!35239
2024-12-04 19:23:42 +08:00
igor.udot
e05471b857 refactor: changed logic of unity_tester, replaced threads by generators 2024-12-04 10:53:28 +01:00
yiwenxiu
2534aa2f20 feat(openthread): add delay before execute wifi command in openthread ci cases 2024-12-04 17:14:11 +08:00
akshat
a0ea332ca3 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-04 14:11:43 +05:30
morris
08e6ef4f25 Merge branch 'fix/fix_esp32_pico_v3_psram_not_ignored_issue_v5.1' into 'release/v5.1'
psram: fixed esp32p pico-v3 psram init not ignored issue (v5.1)

See merge request espressif/esp-idf!35380
2024-12-04 15:23:36 +08:00
Jiang Jiang Jian
7c7ea080bd Merge branch 'fix/fix_regdma_wait_node_issue_v5.1' into 'release/v5.1'
fix(esp_hw_support): fix the issue of regdma wait node to immediately return to done (v5.1)

See merge request espressif/esp-idf!35360
2024-12-04 13:56:12 +08:00
Jiang Jiang Jian
b703665059 Merge branch 'fix/fix_esp32c2eco4_wifi_deinit_crash_issue_v51' into 'release/v5.1'
fix(wifi): fix esp32c2eco4 wifi deinit crash issue v51

See merge request espressif/esp-idf!35388
2024-12-04 12:04:20 +08:00
Jiang Jiang Jian
eb935a254e Merge branch 'bugfix/fix_ble_ke_mem_267_assert_v5.1' into 'release/v5.1'
fix(bt/controller): Fixed BLE assert ke_mem.c line 267 on ESP32-C3 and ESP32-S3 (backport v5.1)

See merge request espressif/esp-idf!35340
2024-12-04 11:49:06 +08:00
Jiang Jiang Jian
efa4a3a48f Merge branch 'bugfix/sae_h2e_vulnerability_fix_v5.1' into 'release/v5.1'
fix(wifi): Sae check for invalid rejected group (v5.1)

See merge request espressif/esp-idf!33981
2024-12-04 11:41:10 +08:00
Sajia
c7cfa6379d fix(wifi): Add a check on hostapd instance while handling an Auth frame 2024-12-04 11:12:53 +08:00
Li Bo
b63270aed2 fix(esp_rom): fix esp32c3 eco7 console rom function address 2024-12-04 10:06:39 +08:00
morris
775dfda86a Merge branch 'bugfix/test_esp_flash_write_v5.1' into 'release/v5.1'
fix(spi_flash): Fix Test esp_flash_write (v5.1)

See merge request espressif/esp-idf!35387
2024-12-04 10:03:48 +08:00
chenjianhua
abe0d3c1ff feat(ble/bluedroid): Support setting connection params when creating connection 2024-12-03 18:03:36 +08:00
zhanghaipeng
18d9603e8e fix(ble/bluedroid): Optimize BLE API "esp_ble_gattc_enh_open" 2024-12-03 18:03:12 +08:00
zhanghaipeng
ed62f94a53 fix(ble/bluedroid): Fixed BLE create connection fail because of invalid own address type 2024-12-03 18:03:12 +08:00
wangtao@espressif.com
379a646390 fix(wifi): fix esp32c2eco4 wifi deinit crash issue 2024-12-03 15:56:21 +08:00
Konstantin Kondrashov
f18a74032a fix(spi_flash): Fix Test esp_flash_write 2024-12-03 09:56:11 +02:00
Armando
23b64495d7 fix(psram): fixed esp32p pico-v3 psram init not ignored issue
Closes https://github.com/espressif/esp-idf/issues/14970
2024-12-03 15:27:41 +08:00
Astha Verma
075137eebf fix(nimble): Added a function for printing HCI error definition 2024-12-03 12:11:34 +05:30
Jouni Malinen
4e9f740a0e 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-12-03 14:05:21 +08:00
Jouni Malinen
7d943fb032 SAE: Check that peer's rejected groups are not enabled
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2024-12-03 14:05:21 +08:00
Jouni Malinen
84dc7782b7 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-12-03 14:05:21 +08:00
Jouni Malinen
2e25cef6b3 SAE: Check for invalid Rejected Groups element length explicitly
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.

Signed-off-by: Jouni Malinen <j@w1.fi>
2024-12-03 14:05:21 +08:00
Jouni Malinen
3448ff697b SAE: Check that peer's rejected groups are not enabled in AP
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2024-12-03 14:05:21 +08:00
Li Shuai
2b406b6810 fix(esp_hw_support): fix the issue of regdma wait node to immediately return to done 2024-12-03 10:35:06 +08:00
Rahul Tank
77a3025ac1 Merge branch 'bugfix/fix_esp_hid_host_compilation_v5.1' into 'release/v5.1'
fix(nimble): Fix compilation issue in esp_hid_host example (v5.1)

See merge request espressif/esp-idf!35310
2024-12-02 20:16:55 +08:00
Rahul Tank
6052f46b06 Merge branch 'bugfix/change_hci_cb_logging_v5.1' into 'release/v5.1'
fix(nimble): Replace ESP_LOG* with esp_rom_printf in controller context callback (v5.1)

See merge request espressif/esp-idf!35030
2024-12-02 18:22:51 +08:00
zhiweijian
5f680167d3 fix(bt/controller): Fixed BLE assert ke_mem.c line 267 on ESP32-C3 and ESP32-S3 2024-12-02 16:18:33 +08:00
Island
116f856111 Merge branch 'fix/ble_mesh_heartbeat_bug_v5.1' into 'release/v5.1'
fix(ble_mesh): fixed heartbeat issue (v5.1)

See merge request espressif/esp-idf!34963
2024-12-02 11:29:44 +08:00
morris
5cbd829624 Merge branch 'fix/spi_slave_no_dma_rx_overwrite_v5.1' into 'release/v5.1'
fix(driver_spi): fixed slave no dma rx overwrite when trans_len below or over (v5.1)

See merge request espressif/esp-idf!34173
2024-12-02 10:45:41 +08:00
Wang Meng Yang
763ef6b3e3 Merge branch 'bugfix/sdp_get_uuid_error_v5.1' into 'release/v5.1'
fix(bt/bluedroid): fixed issues introduced by byte alignment(v5.1)

See merge request espressif/esp-idf!35255
2024-12-02 09:50:13 +08:00
Jiang Jiang Jian
0dbc947c2b Merge branch 'bugfix/fix_wifi_bugs_241126_v5.1' into 'release/v5.1'
bugfix: fix some wifi issues 241126 v5.1

See merge request espressif/esp-idf!35224
2024-11-29 20:29:29 +08:00
Wang Meng Yang
ea5c51cbfa Merge branch 'fix/duplicated_enc_restart_request_when_change_key_type_v5.1' into 'release/v5.1'
fix(bt): fixed some issues in esp32 bt controller(backport v5.1)

See merge request espressif/esp-idf!35297
2024-11-29 20:01:37 +08:00
Rahul Tank
d804ec0b97 fix(nimble): Fix compilation issue in esp_hid_host example 2024-11-29 15:25:41 +05:30
gongyantao
dc375a769d 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:12:00 +08:00
morris
3a7cc46e29 Merge branch 'contrib/github_pr_14767_v5.1' into 'release/v5.1'
fix(gptimer): race on FSM state in gptimer_start() (GitHub PR) (v5.1)

See merge request espressif/esp-idf!35137
2024-11-29 13:32:47 +08:00
sibeibei
ee099bda6c 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-11-28 16:44:20 +08:00
Chen Yudong
09fe746322 ci: increase test_wifi_power_save got ip timeout 2024-11-28 16:44:20 +08:00
Rahul Tank
a7855d3adb Merge branch 'bugfix/resolve_watchdog_crash_v5.1' into 'release/v5.1'
fix(nimble): Resolved watchdog due to memory exceed prints (v5.1)

See merge request espressif/esp-idf!35211
2024-11-28 15:07:10 +08:00
Island
2928d40078 Merge branch 'bugfix/add_aa_check_on_esp32c2_and_esp32c6_v5.1' into 'release/v5.1'
Bugfix/add aa check on esp32c2 and esp32c6 (v5.1)

See merge request espressif/esp-idf!35231
2024-11-28 11:02:48 +08:00
Shu Chen
f7765f439f Merge branch 'fix/enhance_wifi_connection_check_in_ot_ci_case_v5.1' into 'release/v5.1'
feat(openthread): enhance wifi connection check in openthread ci cases (Backport v5.1)

See merge request espressif/esp-idf!35160
2024-11-28 10:47:16 +08:00
xiongweichao
2ebdb13bc3 fix(bt/bluedroid): fixed issues introduced by byte alignment
- esp_bt_uuid_t is byte aligned, tBT_UUID is 4-byte aligned.
2024-11-28 10:38:18 +08:00
Alexey Gerenkov
f2a0d61739 Merge branch 'change/sysview_test_config_v5.1' into 'release/v5.1'
change(sysview): run heap_log tracing tests on existing cores (v5.1)

See merge request espressif/esp-idf!35198
2024-11-27 18:58:33 +08:00
Abhinav Kudnar
b29e4093e3 fix(nimble): Resolved watchdog due to memory exceed prints 2024-11-27 18:05:27 +08:00
zlq
6ae7b61b2b fix(H2):fix pll low temp bug 2024-11-27 17:51:18 +08:00
Shu Chen
a355efbf6f Merge branch 'backport/openthread_related_feature_v51_20241125' into 'release/v5.1'
Backport openthread related features to 5.1

See merge request espressif/esp-idf!35174
2024-11-27 16:38:08 +08:00
zwl
d8bd860402 fix(ble): fixed the connect issue when rx error aa on ESP32-C6 2024-11-27 16:20:29 +08:00
Zhao Wei Liang
e81b4628b6 fix(ble): fixed the connect issue when rx error aa on ESP32-H2
(cherry picked from commit 093b65e27c)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-11-27 16:03:34 +08:00
Island
8cee3e3f9a Merge branch 'bugfix/fix_bleqabr24_1646_v5.1' into 'release/v5.1'
Fixed BLE creating connection when the connection already exists on ESP32 (v5.1)

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

See merge request espressif/esp-idf!35007
2024-11-27 15:37:02 +08:00
yiwenxiu
317d4859f8 feat(openthread): enhance wifi connection check in openthread ci cases 2024-11-27 15:31:44 +08:00
Wang Meng Yang
3e1ecc4e8b Merge branch 'feat/add_profile_state_event_v5.1' into 'release/v5.1'
feat(bt/bluedroid): added events to indicate the profile states of HFP (v5.1)

See merge request espressif/esp-idf!35151
2024-11-27 14:44:14 +08:00
Jiang Jiang Jian
8a8f21e011 Merge branch 'bugfix/sae_pk_transition_disable_v5.1' into 'release/v5.1'
fix(wifi): Fix bug in wrong profile checking of AP's RSNXE IE and other fixes (Backport v5.1)

See merge request espressif/esp-idf!34890
2024-11-27 14:30:42 +08:00
Chen Jian Hua
3bb9e492fa 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:53:54 +08:00
wanckl
34a7551c3d 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-11-27 11:07:22 +08:00
Shyamal Khachane
2eaee75296 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-11-27 00:34:50 +05:30
Sarvesh Bodakhe
e35035aa9a 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-11-27 00:34:47 +05:30
Sarvesh Bodakhe
9475109311 fix(wpa_supplicant): Fix debug print in wps_start_msg_timer() 2024-11-27 00:30:24 +05:30
Sarvesh Bodakhe
a0c7229954 fix(wifi): Fix bug in wrong profile checking of AP's RSNXE IE 2024-11-27 00:30:22 +05:30
Erhan Kurubas
aefe7913c5 fix(sysview): add prefix to the module desc to avoid stuck in Segger SystemView app
Closes https://github.com/espressif/esp-idf/issues/10483
2024-11-26 09:04:38 +01:00
Erhan Kurubas
344ac60cf1 change(sysview): support single/dual core targets in heap_trace_log test 2024-11-26 08:56:59 +01:00
chenjianhua
f09d2524a2 fix(bt): Update bt lib for ESP32(c3082c4)
- Fixed BLE creating connection when the connection already exists
2024-11-26 15:34:26 +08:00
Wang Meng Yang
345693ce9b Merge branch 'bugfix/disconn_sdp_upon_wrong_data_v5.1' into 'release/v5.1'
fix(bt/bluedroid): disconnect SDP connection on receiving incorrect response (v5.1)

See merge request espressif/esp-idf!35146
2024-11-26 14:59:48 +08:00
Island
43e4dd53e8 Merge branch 'bugfix/fix_c2_light_sleep_coex_v5.1' into 'release/v5.1'
fix(ble): fix ble light sleep error on esp32c2 (v5.1)

See merge request espressif/esp-idf!35053
2024-11-26 11:09:58 +08:00
Jiang Jiang Jian
aeff1279f6 Merge branch 'bugfix/fix_external_coex_build_fail_issue_v5.1' into 'release/v5.1'
fix external coex build fail issue

See merge request espressif/esp-idf!35178
2024-11-26 10:27:00 +08:00
Jiang Jiang Jian
024c6dee5f Merge branch 'bugfix/fix_some_wifi_bugs_1030_v5.1' into 'release/v5.1'
Bugfix/fix some wifi bugs 1030 v5.1(Backport v5.1)

See merge request espressif/esp-idf!34709
2024-11-25 20:50:55 +08:00
muhaidong
aa52d39d4b fix external coex build fail issue 2024-11-25 20:11:11 +08:00
Xu Si Yu
dee502d6cb feat(openthread): adjusted the default macro configurations of openthread 2024-11-25 18:16:00 +08:00
Xu Si Yu
f9aa14a5f3 feat(openthread): support using custom header file 2024-11-25 18:15:05 +08:00
Jin Cheng
61beadb586 feat(bt/bluedroid): added events to indicate the profile states of HFP 2024-11-25 16:23:10 +08:00
yinqingzhao
2a715e4203 feat(twt): twt add parameter to enable keep alive 2024-11-25 15:10:56 +08:00
Jin Cheng
e65a01c55a fix(bt/bluedroid): disconnect SDP connection on receiving incorrect response 2024-11-25 10:20:27 +08:00
Wang Meng Yang
07821e8408 Merge branch 'bugfix/lmp_trans_collision_v5.1' into 'release/v5.1'
fix(bt/controller): Fixed some controller bugs on ESP32 (v5.1)

See merge request espressif/esp-idf!34947
2024-11-25 09:53:24 +08:00
Wang Meng Yang
edb09cdb28 Merge branch 'bugfix/rx_invalid_cmd_err_code_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fixed the incorrect error code returned when receiving an invalid command(v5.1)

See merge request espressif/esp-idf!34993
2024-11-22 21:16:19 +08:00
lsita
d503c5733c fix(gptimer): race condition between start and stop
Merges https://github.com/espressif/esp-idf/pull/14767
2024-11-22 18:27:38 +08:00
Jin Cheng
3db4974814 fix(bt/controller): Fixed some controller bugs on ESP32
- Fixed wrong logic in handling sniff transaction collision at slave
      side
    - Fixed the issue ACL is stopped too early before eSCO
2024-11-22 17:26:00 +08:00
Jin Cheng
2322404be6 fix(bt/bluedroid): AG should send OK or other error codes to HF client
when it is driven by HF to initiate a call.
2024-11-22 17:26:00 +08:00
Aditya Patwardhan
6bca6f4e17 Merge branch 'bugfix/ota_failed_with_openssl_3.0.2_v5.1' into 'release/v5.1'
fix(esp_http_client): Fix ota failure with openssl server (v5.1)

See merge request espressif/esp-idf!35068
2024-11-22 16:13:36 +08:00
xiongweichao
8c485371b9 fix(bt/bluedroid): Fixed the incorrect error code returned
when receiving an invalid command
2024-11-22 12:25:23 +08:00
Jin Chen
27ece294bb fix(ble): change ld for ble scan coex issue
(cherry picked from commit dd499d7b2e)

Co-authored-by: cjin <jinchen@espressif.com>
2024-11-22 10:41:40 +08:00
Jin Chen
b7b9367b21 fix(ble): fix ble light sleep error on esp32c2
(cherry picked from commit 23f7e33a97)

Co-authored-by: cjin <jinchen@espressif.com>
2024-11-22 10:41:40 +08:00
Jiang Jiang Jian
7805969ac1 Merge branch 'backport/openthread_related_feature_v51_20241112' into 'release/v5.1'
Backport openthread related features to 5.1

See merge request espressif/esp-idf!34836
2024-11-22 10:07:57 +08:00
Roland Dobai
320626ae74 Merge branch 'fix/import_error_msg_v5.1' into 'release/v5.1'
fix(tools): re-raise ImportError without module name (v5.1)

See merge request espressif/esp-idf!35076
2024-11-21 23:06:23 +08:00
Frantisek Hrbata
72a74a622b fix(tools): re-raise ImportError without module name
The ImportError or ModuleNotFoundError might be raised without
specifying a module name. In this not so common situation, re-raise the
exception to print all the information that could assist in identifying
the problem.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-11-21 09:54:37 +01:00
Xu Si Yu
eaa23bc704 fix(openthread): fix a naming error of esp radio spinel 2024-11-21 15:52:46 +08:00
zwx
d7f69d03c0 feat(openthread): support alloc nat64 session from psram 2024-11-21 15:52:46 +08:00
Xu Si Yu
aa67538038 fix(coex): fix 802.15.4 external coexistence 2024-11-21 15:52:46 +08:00
Xu Si Yu
78a4ea29f3 feat(openthread): update openthread submodule and border router lib 2024-11-21 15:52:45 +08:00
Jiang Jiang Jian
7ac7939f52 Merge branch 'bugfix/fix_some_wifi_coexist_bugs_20241105_v5.1' into 'release/v5.1'
bugfix/fix some wifi coexist bugs 20241105 v5.1

See merge request espressif/esp-idf!34657
2024-11-21 15:49:41 +08:00
nilesh.kale
1608b89ff0 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:39 +05:30
Jiang Jiang Jian
907337aa7c Merge branch 'fix/fix_modem_module_clock_missing_after_ota_v5.1' into 'release/v5.1'
fix(esp_system): deselect all modem modules lp clock source selection before clk initialization (v5.1)

See merge request espressif/esp-idf!34926
2024-11-20 19:51:53 +08:00
Shu Chen
6999b0a68c Merge branch 'fix/add_network_reconnectin_in_ot_ci_case_v5.1' into 'release/v5.1'
feat(openthread): flush ipv6 addr in openthread ci cases (Backport v5.1)

See merge request espressif/esp-idf!34670
2024-11-20 10:15:17 +08:00
Alexey Gerenkov
ca75f777ac Merge branch 'jtag_doc_update_v5.1' into 'release/v5.1'
docs(jtag): update OpenOCD related sections (v5.1)

See merge request espressif/esp-idf!34400
2024-11-19 21:15:08 +08:00
Rahul Tank
ec6002a058 fix(nimble): Replace ESP_LOG* with esp_rom_printf in controller context callback 2024-11-19 17:42:27 +05:30
Jiang Jiang Jian
fdd8d599b8 Merge branch 'fix/fix_deadlock_in_pm_mode_switching_v5.1' into 'release/v5.1'
fix(esp_pm): fix deadlock in pm_mode switching (v5.1)

See merge request espressif/esp-idf!34989
2024-11-19 19:04:52 +08:00
Luo Xu
be6d87f730 fix(ble_mesh): fixed heartbeat issue
(cherry picked from commit 167cd4762b)

Co-authored-by: luoxu <luoxu@espressif.com>
2024-11-19 18:03:29 +08:00
Rahul Tank
97e4f3c75c Merge branch 'bugfix/memory_issue_v5.1' into 'release/v5.1'
fix(nimble): Nimble Error logs in case of memory overflow/failure (v5.1)

See merge request espressif/esp-idf!35000
2024-11-19 17:08:08 +08:00
yiwenxiu
dc99a90d4c feat(openthread): flush ipv6 addr in openthread ci cases 2024-11-19 15:44:29 +08:00
wuzhenghui
effce8fd46 fix(esp_pm): fix deadlock in pm_mode switching 2024-11-18 19:23:58 +08:00
Abhinav Kudnar
fc71bdb6ad fix(nimble): Nimble Error logs in case of memory overflow/failure 2024-11-18 17:54:50 +08:00
wuzhenghui
ca1e8810e1 fix(esp_pm): fix missed ccompare update when another core is already in do_switch 2024-11-18 16:50:45 +08:00
liuning
aba5049808 fix(coex): fix esp32c2/esp32c5/esp32c61 coexist memory leakage issue 2024-11-18 14:17:18 +08:00
liuning
97a5f94f0f fix(coex): sync up coex head file 2024-11-18 14:13:30 +08:00
liuning
da34a49d5f fix(coex): fix esp32c5 coexist hw timer issue 2024-11-18 14:13:30 +08:00
liuning
06aa7e0802 fix(coex): fix some coexist debug issues 2024-11-18 14:13:30 +08:00
muhaidong
92666b5140 fix(wifi): fix modem_clock_module_enable mismatch issue 2024-11-18 14:13:30 +08:00
muhaidong
b27767df5d fix(wifi): fix esp32c5 enable external coex fail issue 2024-11-18 14:13:30 +08:00
muhaidong
f208ffa32f fix(wifi): esp32c5 esp32c61 support external coex 2024-11-18 14:13:30 +08:00
liuning
c4752d8e09 feat(coex): optimize connectionless coexist pwr, optimize wifi pwr with bt idle 2024-11-18 14:13:30 +08:00
liuning
b5a8c9684d feat(coex): support GPIO debug 2024-11-18 14:13:29 +08:00
Song Ruo Jing
c2138be7ee feat(soc): support SOC_GPIO_IN_RANGE_MAX/SOC_GPIO_OUT_RANGE_MAX 2024-11-18 14:13:29 +08:00
Jiang Jiang Jian
64849cb703 Merge branch 'change/change_pm_slp_iram_opt_dependence_v5.1' into 'release/v5.1'
change(esp_pm): change pm_slp_iram_opt dependence(backport v5.1)

See merge request espressif/esp-idf!33864
2024-11-18 11:01:22 +08:00
Jiang Jiang Jian
fb83a5ee5b Merge branch 'fix/lwip_drop_ipv6_if_no_ll_v5.1' into 'release/v5.1'
fix(lwip): Add default IPv6 input filter to drop traffic if ipv6 not assigned (v5.1)

See merge request espressif/esp-idf!34150
2024-11-18 11:00:50 +08:00
Jiang Jiang Jian
a068fdd1ba Merge branch 'fix/ws_transport_mem_corrupt_v5.1' into 'release/v5.1'
fix(transport): Fix websocket mem-corruption while reading headers (v5.1)

See merge request espressif/esp-idf!34155
2024-11-18 11:00:00 +08:00
Jiang Jiang Jian
1fd224df79 Merge branch 'fix/wifi_netif_null_deref_v5.1' into 'release/v5.1'
esp_wifi: Add null pointer checks to WiFi-netif APIs (v5.1)

See merge request espressif/esp-idf!34160
2024-11-18 10:59:33 +08:00
Shu Chen
cd50023d6e Merge branch 'backport/2015_enhack_v51' into 'release/v5.1'
fix(802.15.4): add case for 2015 frame enh-ack(Backport v5.1)

See merge request espressif/esp-idf!34949
2024-11-17 21:36:45 +08:00
Erhan Kurubas
2412bf019d docs(jtag): update OpenOCD related sections 2024-11-17 08:30:29 +08:00
Wang Meng Yang
78fc88d7f5 Merge branch 'bugfix/fix_classic_bt_build_fail_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fixed classic bt build fail when enable dynamic memory and disable BLE (v5.1)

See merge request espressif/esp-idf!34928
2024-11-15 17:35:12 +08:00
Jiang Jiang Jian
853b8c770a Merge branch 'bugfix/fix_h2_wrong_lslp_drvb_config_bug_v5.1' into 'release/v5.1'
fix(h2): fix lslp drvb config bug (v5.1)

See merge request espressif/esp-idf!34294
2024-11-15 16:30:03 +08:00
Jiang Jiang Jian
9a80fa7b04 Merge branch 'bugfix/chip823_pll_low_temp_bug_v5.1' into 'release/v5.1'
[H2]Fix cpu switch fail for bbpll cali fail bug in low temp (v5.1)

See merge request espressif/esp-idf!34601
2024-11-15 16:29:15 +08:00
Jiang Jiang Jian
76d44109d3 Merge branch 'bugfix/fix_tbtt_interval_update_fail_v5.1' into 'release/v5.1'
fix(wifi): Optimization for wifi components (v5.1)

See merge request espressif/esp-idf!34893
2024-11-15 15:11:48 +08:00
Mahavir Jain
ed5f875afe Merge branch 'bugfix/update_condition_to_verify_http_version_v5.1' into 'release/v5.1'
fix(esp_http_server): updated condition to verify http version (v5.1)

See merge request espressif/esp-idf!34637
2024-11-15 15:01:57 +08:00
Tan Yan Quan
fc4e17ecee fix(802.15.4): add case for 2015 frame enh-ack 2024-11-15 14:16:57 +08:00
wuzhenghui
88e3e21a9f fix(esp_system): deselect all modem modules clk source selection before clk init 2024-11-15 11:05:21 +08:00
morris
5ee3b7847b Merge branch 'contrib/github_pr_14859_v5.1' into 'release/v5.1'
fix(usb_host): return ESP_ERR_NO_MEM on failed alloc in client register (GitHub PR) (v5.1)

See merge request espressif/esp-idf!34878
2024-11-15 10:59:18 +08:00
zhangyanjiao
362d806dbb 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-15 09:45:34 +08:00
zhangyanjiao
db3f58fc4f docs(wifi/espnow): Update the description for ESP-NOW frame 2024-11-15 09:45:34 +08:00
Martin Vychodil
6b51d36351 Merge branch 'bugfix/nvs_entry_sanity_check_v5.1' into 'release/v5.1'
Bugfix/added nvs entry header sanity checks (v5.1)

See merge request espressif/esp-idf!34295
2024-11-14 22:39:00 +08:00
Zhang Hai Peng
1ef4eb21cc 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:35 +08:00
Adam Múdry
8b361bce16 fix(littlefs): Allow LittleFS image generation on Windows + version bump
Closes https://github.com/espressif/esp-idf/issues/12900
2024-11-14 13:23:14 +01:00
radek.tandler
79b93d1db7 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 12:48:22 +01:00
Jiang Jiang Jian
58b9f28c19 Merge branch 'bugfix/support_random_iv_in_esptouch_v2_v5.1' into 'release/v5.1'
fix(wifi): Support AES IV with random value in esptouch v2 (v5.1)

See merge request espressif/esp-idf!34611
2024-11-14 15:51:13 +08:00
Shu Chen
5ed3e67c7c Merge branch 'fix/find_and_close_service_in_ot_ci_case_v5.1' into 'release/v5.1'
fix(ci): optimize an openthread ci case (Backport v5.1)

See merge request espressif/esp-idf!34724
2024-11-14 11:58:58 +08:00
Island
febfdf6628 Merge branch 'feature/support_moving_code_to_flash_v5.1' into 'release/v5.1'
feat(ble): Support for putting code in flash on ESP32-C2 (v5.1)

See merge request espressif/esp-idf!34783
2024-11-14 10:09:26 +08:00
Daniel Mangum
e555945318 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-13 09:58:06 +01:00
Island
15fb892fe7 Merge branch 'bugfix/fix_some_ble_bugs_240926_esp32_v5.1' into 'release/v5.1'
Fixed some BLE bugs 240926 on ESP32 (v5.1)

See merge request espressif/esp-idf!34551
2024-11-13 12:05:16 +08:00
Jiang Jiang Jian
aacc60deee Merge branch 'feature/set_hp_sleep_power_mode_with_clock_src_selection_v5.1' into 'release/v5.1'
change(esp_hw_support): switch hp_sys default power mode with clock src selection (v5.1)

See merge request espressif/esp-idf!34114
2024-11-12 19:26:55 +08:00
Jiang Jiang Jian
3a24b91c8e Merge branch 'fix/fix_ota_slowclock_switching_v5.1' into 'release/v5.1'
fix(esp_hw_support): fix rtc slow clock missing after the OTA app changes the slow clock source (v5.1)

See merge request espressif/esp-idf!34471
2024-11-12 19:26:09 +08:00
Jiang Jiang Jian
9ede3c842a Merge branch 'fix/bypass_some_restore_process_if_sleep_rejected_v5.1' into 'release/v5.1'
fix(esp_hw_support): skip some wakeup steps if sleep is rejected (v5.1)

See merge request espressif/esp-idf!34619
2024-11-12 19:24:02 +08:00
Wang Meng Yang
ce2f2d7675 Merge branch 'bugfix/fix_avrc_absolute_volume_compatibility_v5.1' into 'release/v5.1'
bugfix/fix_avrc_absolute_volume_compatibility[backport v5.1]

See merge request espressif/esp-idf!34772
2024-11-12 17:54:58 +08:00
Wang Meng Yang
a628f0aef3 Merge branch 'bugfix/osi_replace_free_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Replace free/malloc with osi_free/malloc(v5.1)

See merge request espressif/esp-idf!34608
2024-11-12 17:54:32 +08:00
gongyantao
d9cfaead16 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-12 11:14:55 +08:00
zhanghaipeng
c7d169e38a fix(bt/ble): Update esp32 libbtdm_app.a (17db8bd)
- Added a verification step for the Access Address within the CONNECT_IND PDU
2024-11-12 11:14:46 +08:00
chenjianhua
a991b5df81 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-12 11:14:37 +08:00
morris
fca4986ffd Merge branch 'refactor/usb_mock_classes_v5.1' into 'release/v5.1'
refactor(usb): Split test device descriptors from mock classes (v5.1)

See merge request espressif/esp-idf!31415
2024-11-12 10:03:03 +08:00
morris
a2704f5295 Merge branch 'bugfix/workaround_of_i2s_half_sample_rate_issue_v5.1' into 'release/v5.1'
fix(i2s): fix i2s half sample rate issue (v5.1)

See merge request espressif/esp-idf!34355
2024-11-12 10:01:52 +08:00
Island
f068192bd9 Merge branch 'feat/support_controller_run_in_flash_only_v5.1' into 'release/v5.1'
feat(bt/controller): Support controller code run in flash only (backport v5.1)

See merge request espressif/esp-idf!34697
2024-11-12 09:55:29 +08:00
David Cermak
79cb7d5c0c fix(lwip): Add default IPv6 input filter to drop traffic if ipv6 not assigned
* Makes LWIP_HOOK_IP6_INPUT default to LWIP_HOOK_IP6_INPUT_DEFAULT
* Updated the stub hook implementation to actually filter out all IPv6
packets if the input netif has no link local address.
2024-11-11 23:55:58 +08:00
David Cermak
067e4952d9 fix(transport): Fix websocket mem-corruption while reading headers
Closes https://github.com/espressif/esp-idf/issues/14473
2024-11-11 23:55:25 +08:00
David Cermak
2aba487a9c fix(esp_wifi): Add null pointer checks to WiFi-netif APIs
Added null pointer checks to WiFi-netif API functions to prevent potential
crashes from invalid arguments, updated unit tests.

Closes https://github.com/espressif/esp-idf/issues/8702
2024-11-11 23:55:06 +08:00
Wang Meng Yang
9439479fe5 Merge branch 'bugfix/update_btlib_v5.1' into 'release/v5.1'
fix(bt/controller): Fixed some controller bugs on ESP32 (v5.1)

See merge request espressif/esp-idf!34466
2024-11-11 18:51:45 +08:00
Shen Weilong
4fff9f7cf7 feat(ble): Support for putting code in flash on ESP32-C2 2024-11-11 17:45:55 +08:00
Wang Meng Yang
9480f89a9c Merge branch 'bugfix/hfp_sniff_mng_v5.1' into 'release/v5.1'
bugfix/hf_and_ag_cannot_enter/exit sniff mode. (v5.1)

See merge request espressif/esp-idf!34469
2024-11-11 15:09:26 +08:00
zhangyanjiao
4f85a2726e fix(wifi): Support AES IV with random value in esptouch v2 2024-11-11 15:05:05 +08:00
xiongweichao
9ff8a54cfe fix(bt/bluedroid): Replace free/malloc with osi_free/malloc 2024-11-11 11:00:58 +08:00
Jiang Jiang Jian
f604a6026c Merge branch 'fix/c6_ble_no_adv_bug_v5.1' into 'release/v5.1'
fix: C6 ble does not send adv when coexistence with wifi v5.1

See merge request espressif/esp-idf!34574
2024-11-11 10:45:33 +08:00
Jin Cheng
cb70ff68cc 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-10 21:30:39 +08:00
morris
9305e550bc Merge branch 'feat/mcpwm_dead_time_add_warning_v5.1' into 'release/v5.1'
fix(mcpwm): add warning about generator deadtime (v5.1)

See merge request espressif/esp-idf!34732
2024-11-08 16:49:46 +08:00
morris
ff9cd92bd7 Merge branch 'feat/parlio_sleep_retention_v5.1' into 'release/v5.1'
fix(parlio): fix spelling error in reg_base.h (v5.1)

See merge request espressif/esp-idf!34735
2024-11-08 16:49:05 +08:00
liqigan
5ac289c463 fix(bt/bluedroid): Fixed AVRCP compatibility issue on absolute volume synchronization 2024-11-08 14:50:42 +08:00
hongshuqing
cf055247c1 fix: fix pll low temp bug 2024-11-08 12:08:31 +08:00
Island
287e71269a Merge branch 'bugfix/fixed_h2_assert_master_1031_v5.1' into 'release/v5.1'
Bugfix/fixed h2 assert master 1031 (v5.1)

See merge request espressif/esp-idf!34538
2024-11-08 11:47:16 +08:00
Shu Chen
954f6baa88 Merge branch 'backport/openthread_related_feature_v51_20241018' into 'release/v5.1'
Backport/openthread related feature to release/v5.1

See merge request espressif/esp-idf!34282
2024-11-08 11:40:00 +08:00
Wang Meng Yang
2b5b526227 Merge branch 'bugfix/fix_memory_leak_in_sco_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fix memory leak in sco when bluedroid disable (v5.1)

See merge request espressif/esp-idf!34567
2024-11-08 10:33:05 +08:00
Jin Cheng
4ea87de8cf fix(bt/bluedroid): fixed AG and HF client cannot enter/exit sniff mode 2024-11-08 10:02:50 +08:00
Jin Cheng
cfc7340393 Revert "Disable sniff mode during (e)SCO connection."
This reverts commit 39a5eb84f3.
2024-11-08 10:02:50 +08:00
Sergei Silnov
39baee4b1d Merge branch 'ci/5.1_fix_macos_arm_python_version' into 'release/v5.1'
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!33882
2024-11-07 22:15:06 +08:00
zhiweijian
1ddf2dd755 feat(bt/controller): Support controller code run in flash only 2024-11-07 16:52:38 +08:00
Chen Jichang
10ad141972 fix(parlio): fix spelling error in reg_base.h 2024-11-07 14:59:26 +08:00
Simon Dean
bdb090f629 enable openthread coap client for mtd 2024-11-07 11:55:56 +08:00
zwx
fec70691db fix(802154): pass hardware abort reason into processing function 2024-11-07 11:55:56 +08:00
Xu Si Yu
11e72011b7 fix(ieee802154): fix a bug in the usage of a macro 2024-11-07 11:55:56 +08:00
zwx
b3c6e5efc5 feat(ieee802154): add frame type checking for hw autoack feature 2024-11-07 11:55:56 +08:00
Xu Si Yu
9c4d817726 feat(openthread): support vendor hook for rcp spi 2024-11-07 11:55:56 +08:00
Xu Si Yu
b59b0e0926 feat(openthread): allow enabling trel before getting interface 2024-11-07 11:55:56 +08:00
Xu Si Yu
88077e0b16 feat(openthread): support trel feature 2024-11-07 11:55:56 +08:00
Xu Si Yu
d697fda6a1 fix(openthread): add macro for rcp init 2024-11-07 11:55:56 +08:00
Shu Chen
b45d7fa97f Merge branch 'backport/linker_script_check_missing_function_v51' into 'release/v5.1'
fix(ieee802154): fix linker error due to static function being inlined(Backport v5.1)

See merge request espressif/esp-idf!34719
2024-11-07 11:52:29 +08:00
Shu Chen
bdc59fc751 Merge branch 'backport/upgrade-zigbee-examples-v5.1' into 'release/v5.1'
feat(zigbee): Upgrade the Zigbee lib to v1.6 for Zigbee examples(Backport v5.1)

See merge request espressif/esp-idf!34711
2024-11-07 11:39:33 +08:00
Shu Chen
937d309634 Merge branch 'fix/esp_prov_ipv6_resolve_v5_1' into 'release/v5.1'
fix(tools/esp_prov): Fix hostname resolving for IPv6-only host(v5.1)

See merge request espressif/esp-idf!34676
2024-11-07 11:06:57 +08:00
Chen Jichang
a477b04eda fix(mcpwm): add warning about generator deadtime
Closes https://github.com/espressif/esp-idf/issues/14773
2024-11-07 10:59:23 +08:00
xieqinan@espressif.com
60c50d101b feat(zigbee): Upgrade the Zigbee lib to v1.6 for Zigbee examples
- Optimize the Zigbee light, switch and gateway examples
- Remove the esp_zigbee_rcp example
2024-11-07 10:45:12 +08:00
Xu Si Yu
14e8d52963 fix(ci): optimize an openthread ci case 2024-11-07 10:38:50 +08:00
zwl
3e782595ca fix(ble): fixed occasional crash issue in low memory scenarios on ESP32-C6 2024-11-07 09:39:21 +08:00
Mahavir Jain
9e1474b88f Merge branch 'fix/fetch_image_hdr_v5.1' into 'release/v5.1'
fix(esp_system): Correct address used to fetch application image header (v5.1)

See merge request espressif/esp-idf!34630
2024-11-06 20:06:59 +08:00
zwx
2ecf40cf90 fix(802.15.4): add no inline to some static function 2024-11-06 19:51:58 +08:00
Ivan Grokhotkov
4a451e485c fix(ieee802154): fix linker error due to static function being inlined
When the compiler decides to inline a static function, linker script
generator will complain about the missing function.
2024-11-06 19:51:54 +08:00
Zhao Wei Liang
bf5e64de81 fix(ble): fixed occasional crash issue in low memory scenarios on ESP32-H2
(cherry picked from commit dbad6a0ca5)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-11-06 18:05:29 +08:00
Island
26dabfd177 Merge branch 'bugfix/fix_ble_build_fail_v5.1' into 'release/v5.1'
fix(ble/bluedroid): Fixed BLE build fail when enable dynamic memory and BLE5.0 (v5.1)

See merge request espressif/esp-idf!34662
2024-11-06 16:36:58 +08:00
Island
3f87a40a4f Merge branch 'bugfix/fix_some_ble_bugs_240926_esp32c3_v5.1' into 'release/v5.1'
Fixed some BLE bugs 240926 on ESP32C3 (v5.1)

See merge request espressif/esp-idf!34555
2024-11-06 11:50:32 +08:00
Island
c17d169da0 Merge branch 'feat/support_blecrt_90_v5.1' into 'release/v5.1'
feat(bt/bluedroid): Added API to set supported channel selection algorithm (v5.1)

See merge request espressif/esp-idf!34503
2024-11-06 11:50:13 +08:00
WanqQixiang
da05404bbb fix(tools/esp_prov): Fix hostname resolving for IPv6-only host 2024-11-05 17:24:41 +08:00
Island
192f3c11d7 Merge branch 'bugfix/fix_ble_adv_start_fail_v5.1' into 'release/v5.1'
fix(ble/bluedroid): Fixed crash issue in BLE SMP when a disconnection process is ongoing(v5.1)

See merge request espressif/esp-idf!34526
2024-11-05 16:37:09 +08:00
Zhang Hai Peng
0d56d39b0d 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:34 +08:00
linruihao
3dbf454c15 fix(bt/bluedroid): Fix memory leak in sco when bluedroid disable 2024-11-05 15:17:13 +08:00
Shu Chen
740de1465f Merge branch 'backport/fix_energy_scan_api_para_mismatch_v51' into 'release/v5.1'
fix(openthread): set channel for energy scan(Backport v5.1)

See merge request espressif/esp-idf!34594
2024-11-05 14:17:22 +08:00
Michael (XIAO Xufeng)
5b6aa19189 Merge branch 'feat/new_xmc_id_v5.1' into 'release/v5.1'
feat(spi_flash): Add new xmc chip id (backport v5.1)

See merge request espressif/esp-idf!34286
2024-11-05 14:09:34 +08:00
Shu Chen
122462f846 Merge branch 'feat/openthread_dataset_changed_event_v5_1' into 'release/v5.1'
feat(openthread): Add dataset changed event and post it in state change callback(v5.1)

See merge request espressif/esp-idf!34544
2024-11-05 12:53:12 +08:00
Rahul Tank
4f21e5b11d Merge branch 'bugfix/fix_datalen_issue_v5.1' into 'release/v5.1'
fix(nimble): Adjust time parameter in set Data len API in case BLE 5.0 support is not present (v5.1)

See merge request espressif/esp-idf!34221
2024-11-05 11:53:26 +08:00
Jiang Jiang Jian
8dc131b661 Merge branch 'fix/fix_wifi_bugs_11_4_v5.1' into 'release/v5.1'
fix(wifi): fix some bss color issues

See merge request espressif/esp-idf!34618
2024-11-05 10:40:51 +08:00
Yuhan Wei
5e6ca969c7 fix(phy): Updated phylib to phy_version: 320, 348a293 2024-11-05 00:06:36 +08:00
nilesh.kale
5118e84328 fix(esp_http_server): updated condition to verify http version
Closes https://github.com/espressif/esp-idf/issues/14723
2024-11-04 15:51:14 +05:30
Chen Jian Hua
07858aeec9 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-11-04 18:05:23 +08:00
wuzhenghui
1e5931287f 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 17:01:18 +08:00
Laukik Hase
8dee18faae fix(esp_system): Correct address used to fetch application image header 2024-11-04 14:12:25 +05:30
Rahul Tank
cabaf74249 fix(nimble): Adjust Data len time in case BLE 5.0 support is not present 2024-11-04 11:33:10 +05:30
xuxiao
fb2a0f1824 fix(wifi): fix some bss color issues 2024-11-04 11:12:34 +08:00
Zhang Hai Peng
3461f85c66 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-11-04 00:04:45 +08:00
Zhang Hai Peng
1685368ea2 fix(ble/bluedroid): Support enable BLE topology check by API
(cherry picked from commit dbc94c7056)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-11-04 00:04:45 +08:00
chenjianhua
1bfee38a09 fix(bt/bluedroid): Fixed error when memory debug enabled 2024-11-03 06:04:26 +08:00
chenjianhua
f45e76d906 fix(bt/bluedroid): Fixed GATTC app status check when BT and BLE coexist 2024-11-03 06:04:26 +08:00
chenjianhua
df08c03024 fix(bt/bluedroid): Update address type for BLE link when the connection is completed 2024-11-03 06:04:26 +08:00
Chen Jian Hua
2f7419e06d feat(bt/bluedroid): Added API to set supported channel selection algorithm
(cherry picked from commit 4ae7b4aecf)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-11-03 06:04:26 +08:00
laokaiyao
eedf7b24ec fix(i2s): fix i2s half sample rate issue 2024-11-01 22:04:59 +08:00
Jiang Jiang Jian
263a3ed82d Merge branch 'bugfix/wifi_set_mode_error_propagation_v5.1' into 'release/v5.1'
Handle missing error propagation in esp_wifi_set_mode() API (Backport v5.1)

See merge request espressif/esp-idf!33874
2024-11-01 16:47:30 +08:00
zwx
8494f2a47f fix(openthread): set channel for energy scan 2024-11-01 16:35:58 +08:00
akshat
0e9e1e470e fix(esp_wifi): Handle missing error propagation in esp_wifi_set_mode 2024-11-01 13:53:41 +08:00
Island
dc64b09dc5 Merge branch 'modified_ble_multi_conn_example_readme_v5.1' into 'release/v5.1'
update(ble): Modified the ble multi_conn example's readme (v5.1)

See merge request espressif/esp-idf!33991
2024-11-01 12:21:29 +08:00
Jiang Jiang Jian
b3e6d62c70 Merge branch 'bugfix/wpa2_ent_fixes_v5.1' into 'release/v5.1'
Few fixes in wpa_supplicant(v5.1)

See merge request espressif/esp-idf!34446
2024-11-01 11:39:25 +08:00
WanqQixiang
7bb4bafea0 feat(openthread): Add dataset changed event and post it in state change callback 2024-10-31 19:06:02 +08:00
C.S.M
f93199cb85 docs(spi_flash): Add migration guide for removing XMC-C suspend support 2024-10-31 18:28:45 +08:00
C.S.M
bffc1f39d0 patch(spi_flash): cleanup XMC flash chip usage according to new information 2024-10-31 18:28:44 +08:00
C.S.M
5a331fd492 feat(spi_flash): Add new xmc chip id 2024-10-31 18:28:44 +08:00
Marius Vikhammer
bb97baa5db Merge branch 'fix/priority_inv_when_remove_from_unordered_event_list_v5.1' into 'release/v5.1'
fix(freertos): Fixed priority inversion when setting event group bits (v5.1)

See merge request espressif/esp-idf!34125
2024-10-31 15:35:32 +08:00
Jiang Jiang Jian
1c55f245e9 Merge branch 'fix/fix_esp32c2_tx_shake_issue_v51' into 'release/v5.1'
fix(wifi): fix esp32c2 tx shake issue

See merge request espressif/esp-idf!34513
2024-10-31 14:43:05 +08:00
Marius Vikhammer
21fbceadee Merge branch 'fix/freertos_race_cond_in_stream_buffers_send_v5.1' into 'release/v5.1'
fix(freertos): Fixed SMP race condition in xStreamBufferSend() (v5.1)

See merge request espressif/esp-idf!34337
2024-10-31 09:46:38 +08:00
Island
427e448869 Merge branch 'docs/add_ble_get_started_eng_2024102310_v5.1' into 'release/v5.1'
Docs: Added BLE English version of BLE Get Started (v5.1)

See merge request espressif/esp-idf!34384
2024-10-30 17:05:24 +08:00
Jiang Jiang Jian
dbab329c8e Merge branch 'bugfix/fix_miss_internal_wapi_deinit_issue_v5.1' into 'release/v5.1'
fix(wifi): fix miss internal wapi deinit issue(Backport v5.1)

See merge request espressif/esp-idf!34492
2024-10-30 16:45:34 +08:00
Marius Vikhammer
0270cb0595 Merge branch 'fix/freertos_race_cond_in_stream_buffers_v5.1' into 'release/v5.1'
fix(freertos): Fixed SMP race condition in stream_buffers.c (v5.1)

See merge request espressif/esp-idf!34227
2024-10-30 15:08:18 +08:00
BLE BOT
7c31bdd704 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-30 14:27:37 +08:00
Alexey Gerenkov
49be03fd46 Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20241016_v5.1' into 'release/v5.1'
feat(tools): update openocd version to v0.12.0-esp32-20241016 (v5.1)

See merge request espressif/esp-idf!34395
2024-10-29 20:36:44 +08:00
wangtao@espressif.com
5dd89e7613 fix(wifi): fix esp32c2 tx shake issue 2024-10-29 20:00:39 +08:00
Island
987a61f266 Merge branch 'bugfix/fix_ble_robust_feature_v5.1' into 'release/v5.1'
fix(ble/bluedroid): Fixed error when writing Client Supported Features characteristic (v5.1)

See merge request espressif/esp-idf!34245
2024-10-29 16:04:13 +08:00
Island
f25e2726cb Merge branch 'bugfix/fix_ble_handle_check_v5.1' into 'release/v5.1'
fix(ble/bluedroid): Fixed BLE handle check for GATT API (v5.1)

See merge request espressif/esp-idf!34094
2024-10-29 16:03:57 +08:00
Island
ed06d92d73 Merge branch 'bugfix/fix_ext_conn_adv_data_check_v5.1' into 'release/v5.1'
fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(01cc408) (v5.1)

See merge request espressif/esp-idf!34001
2024-10-29 16:03:47 +08:00
Island
cfe9f16abf Merge branch 'feat/get_ble_resolve_address_status_v5.1' into 'release/v5.1'
feat(ble/bluedroid): Support resolve BLE address for interval usage (v5.1)

See merge request espressif/esp-idf!33806
2024-10-29 16:03:38 +08:00
Island
82b8a9acea Merge branch 'feat/support_enable_ble_hci_log_by_api_v5.1' into 'release/v5.1'
feat(ble/bluedroid): Support enable BLE hci log by API (v5.1)

See merge request espressif/esp-idf!34422
2024-10-29 16:03:23 +08:00
Island
507229bc3e Merge branch 'docs/update_ble_feature_support_status_v5.1' into 'release/v5.1'
docs(ble): Updated one feature name in feature status table v5.1

See merge request espressif/esp-idf!34067
2024-10-29 16:02:08 +08:00
Island
0f1400bff5 Merge branch 'docs/add_ble_get_started_docs_v5.1' into 'release/v5.1'
docs(ble): Added BLE Get Started (v5.1)

See merge request espressif/esp-idf!34019
2024-10-29 16:02:00 +08:00
Wei Yu Han
e12c54b798 docs(ble): Added BLE Get Started (v5.1) 2024-10-29 16:02:00 +08:00
Island
69786f1515 Merge branch 'fix/fix_nimble_gatt_server_example_readme_v5.1' into 'release/v5.1'
docs(ble): Added BLE Get Started documentation link to README.md (v5.1)

See merge request espressif/esp-idf!33828
2024-10-29 16:01:55 +08:00
muhaidong
0fff36592e fix(wifi): fix miss internal wapi deinit issue 2024-10-29 12:00:11 +08:00
wuzhenghui
b6076491ee fix(esp_hw_support): disable unused clock sources after rtc clock switching complete 2024-10-28 19:59:15 +08:00
Island
fa24d81f43 Merge branch 'bugfix/fix_assert_if_ble_sleep_init_failed_v5.1' into 'release/v5.1'
fix(ble): do not assert if ble sleep init failed (v5.1)

See merge request espressif/esp-idf!34429
2024-10-28 11:55:12 +08:00
wuzhenghui
590335963c fix(esp_hw_support): enable all supported slow clock at pmu_init 2024-10-28 11:36:55 +08:00
Mahavir Jain
289ffe7887 Merge branch 'feat/mbedtls_size_optimization_v5.1' into 'release/v5.1'
Fix the increase in build size of mbedtls while upgrading to v3.x (v5.1)

See merge request espressif/esp-idf!34254
2024-10-28 11:17:17 +08:00
Mahavir Jain
5947ebe427 Merge branch 'feat/move_crt_bundle_dummy_cert_to_rodata_v5.1' into 'release/v5.1'
Move cert bundle's dummy cert to .rodata to reduce RAM usage (v5.1)

See merge request espressif/esp-idf!34203
2024-10-28 11:15:46 +08:00
Mahavir Jain
f55d1d196f Merge branch 'bug/ci_test_https_server_file_serving_v5.1' into 'release/v5.1'
fix(protocols): Erased the storage partition for http_server ci test (v5.1)

See merge request espressif/esp-idf!34166
2024-10-28 11:15:28 +08:00
Mahavir Jain
7a518ede74 Merge branch 'feature/update_mbedtls_version_to_3.6.2_v5.1' into 'release/v5.1'
feat(mbedtls): update mbedtls version to 3.6.2(v5.1)

See merge request espressif/esp-idf!34359
2024-10-28 11:15:12 +08:00
Island
588bb93a7e Merge branch 'refactor/ble_example_print_on_bluedroid_v5.1' into 'release/v5.1'
refactor(bt/bluedroid): Refactor the print for BLE examples (v5.1)

See merge request espressif/esp-idf!34308
2024-10-28 10:52:43 +08:00
Island
2627e8b491 Merge branch 'bugfix/fix_bci_443_v5.1' into 'release/v5.1'
fix(bt/controller): Fixed the timeout of wake up timer when using RC OSC (v5.1)

See merge request espressif/esp-idf!33891
2024-10-28 10:52:33 +08:00
Island
626d642f4e Merge branch 'bugfix/fix_bleqabr24_1282_v5.1' into 'release/v5.1'
Fixed BLE scanning and initiating coexist on ESP32 (v5.1)

See merge request espressif/esp-idf!33832
2024-10-28 10:52:28 +08:00
morris
607e2e39e8 Merge branch 'refactor/lcd_i80_gpio_config_v5.1' into 'release/v5.1'
Optimize RGB LCD IRAM usage (v5.1)

See merge request espressif/esp-idf!34127
2024-10-28 10:13:16 +08:00
morris
a9153132b2 Merge branch 'fix/mcpwm_pm_lock_memory_leak_v5.1' into 'release/v5.1'
fix(mcpwm): fix pm_lock memory issues (v5.1)

See merge request espressif/esp-idf!34060
2024-10-28 10:11:51 +08:00
Anton Maklakov
de7454dfcb Merge branch 'ci/temp_disable_sonarqube_v5.1' into 'release/v5.1'
ci: temp disable sonarqube check. keep it for migrating to codechecker (v5.1)

See merge request espressif/esp-idf!34453
2024-10-28 09:44:00 +08:00
Wang Meng Yang
de8cdc55c5 Merge branch 'feat/support_32k_osc_ble_sleep_clk_v5.1' into 'release/v5.1'
feat(ble): Support using 32k oscillator as Bluetooth sleep clock(v5.1)

See merge request espressif/esp-idf!33998
2024-10-28 09:36:42 +08:00
Rahul Tank
320096d3d7 Merge branch 'bugfix/wifi_bt_coex_crash_v5.1' into 'release/v5.1'
fix(nimble): Fix the sequence of ll and host transport init (v5.1)

See merge request espressif/esp-idf!33963
2024-10-26 22:19:37 +08:00
Roland Dobai
0c53e6d54e Merge branch 'feat/ninja_use_targz_instead_zip' into 'release/v5.1'
feat(tools): ninja tool download - use .tar.gz instead of .zip

See merge request espressif/esp-idf!33950
2024-10-26 22:09:56 +08:00
Roland Dobai
927a5ed1e2 Merge branch 'fix/ldgen_sort_v5.1' into 'release/v5.1'
fix(ldgen): enable default name SORT in linker fragment (v5.1)

See merge request espressif/esp-idf!34076
2024-10-26 22:09:36 +08:00
Roland Dobai
05a0f5e602 Merge branch 'fix/gdbgui_py3.13_v5.1' into 'release/v5.1'
fix(tools): Print message about GDBGUI being not supported with Python 3.13 (v5.1)

See merge request espressif/esp-idf!34379
2024-10-26 22:09:30 +08:00
Roland Dobai
d202f27910 Merge branch 'update/version_5_1_5' into 'release/v5.1'
Update version to 5.1.5

See merge request espressif/esp-idf!34434
2024-10-26 01:03:16 +08:00
Fu Hanxi
aa07780dbb ci: disable sonarqube check 2024-10-25 14:21:09 +02:00
Aditi
396df5d50f fix(wpa_supplicant): Add few fixes in dpp task 2024-10-25 14:49:42 +05:30
aditi
bc26245787 fix(wpa_supplicant): Add few fixes in btm_rrm task 2024-10-25 14:49:33 +05:30
aditi
ae2569e008 fix(wpa_supplicant): Add few fixes in eloop task 2024-10-25 14:48:45 +05:30
aditi
9e6da54e4d fix(wpa_supplicant): Add few fixes in WPS task 2024-10-25 14:48:38 +05:30
aditi
6f1b92a489 fix(wpa_supplicant): Add few fixes in NAN task 2024-10-25 14:48:33 +05:30
aditi
4e81e6e6f4 fix(wpa_supplicant): Add few fixes in eap client code 2024-10-25 14:48:24 +05:30
Roland Dobai
454782bb6b change(version): Update version to 5.1.5 2024-10-25 09:02:00 +02:00
Chen Jichang
a3297f8eee fix(mcpwm): fix pm_lock memory issues 2024-10-25 10:57:48 +08:00
cjin
8da41a584b fix(ble): do not assert if ble sleep init failed 2024-10-25 10:51:31 +08:00
Zhang Hai Peng
4dc96c1616 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:17 +08:00
chenjianhua
ef626df142 fix(bt/bluedroid): correct the readme links for BLE periodic examples 2024-10-24 18:04:06 +08:00
chenjianhua
56b76f8b79 refactor(bt/bluedroid): Refactor the print for BLE examples 2024-10-24 18:04:06 +08:00
chenjianhua
24ce9e2384 refactor(bt/bluedroid): Refactor the print for gatt_server and gatt_client example 2024-10-24 18:04:06 +08:00
Jiang Jiang Jian
f12cfcbcdb Merge branch 'fix/fix_esp32c2eco4_country_auto_issue' into 'release/v5.1'
fix(wifi): fix esp32c2 eco4 set conutry policy auto issue v51

See merge request espressif/esp-idf!34329
2024-10-24 15:16:23 +08:00
wangtao@espressif.com
0afc589f3a fix(wifi): fix esp32c2 eco4 set conutry policy auto issue 2024-10-23 19:21:51 +08:00
Jiang Jiang Jian
cac882e133 Merge branch 'bugfix/usb_serial_jtag_simplify_v5.1' into 'release/v5.1'
usb-serial-jtag driver simplification (backport v5.1)

See merge request espressif/esp-idf!33909
2024-10-23 19:20:44 +08:00
Alexey Gerenkov
48e192eb63 feat(tools): update openocd version to v0.12.0-esp32-20241016 2024-10-23 10:05:43 +02:00
Sudeep Mohanty
5f3a1f90eb 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-23 14:51:17 +08:00
Anton Maklakov
75e38687f3 Merge branch 'ci/replace_internal_clang-tidy-runner_v5.1' into 'release/v5.1'
ci: replace internal clang-tidy runner with the pypi project (v5.1)

See merge request espressif/esp-idf!34361
2024-10-23 14:44:07 +08:00
Roland Dobai
f145943e62 fix(tools): Print message about GDBGUI being not supported with Python 3.13 2024-10-22 16:01:12 +02:00
Fu Hanxi
aee4baa4a2 ci: replace internal clang-tidy runner with the pypi project 2024-10-22 10:30:09 +02:00
nilesh.kale
29d13fec3e feat(mbedtls): update mbedtls version to 3.6.2 2024-10-22 13:45:19 +05:30
hongshuqing
6e17a9d872 fix(h2): modify wrong lslp drvb config 2024-10-18 17:01:16 +08:00
xiongweichao
b3ea519624 feat(ble): Support using 32k oscillator as Bluetooth sleep clock 2024-10-18 16:52:16 +08:00
C.S.M
5b43155723 fix(usb_serial_jtag): Fix issue that use u32_reg read/write cannot be used to modify fifo regs 2024-10-18 16:07:00 +08:00
Jeroen Domburg
f8f3427aee refactor(usb-serial-jtag): usb-serial-jtag driver simplification to fix rom print coexistence 2024-10-18 16:07:00 +08:00
Jiang Jiang Jian
71ff7408a2 Merge branch 'bugfix/backport_supplicant_fixes_v5.1' into 'release/v5.1'
fix(wifi): Backport some fixes(v5.1)

See merge request espressif/esp-idf!33977
2024-10-18 11:18:10 +08:00
Jiang Jiang Jian
1e2aad9efd Merge branch 'fix/fix_wifi_bugs_10_15_v5.1' into 'release/v5.1'
fix(wifi): fix can not tx in low rssi during iperf test (backport v5.1)

See merge request espressif/esp-idf!34233
2024-10-18 02:24:24 +08:00
Jiang Jiang Jian
01bb4f97d4 Merge branch 'bugfix/fix_funcs_overriding_on_esp32c3_eco7_v5.1' into 'release/v5.1'
fix(bt/controller): Fixed BLE functions overriding on ESP32-C3 ECO7 (v5.1)

See merge request espressif/esp-idf!34198
2024-10-17 19:53:54 +08:00
xuxiao
d787f5b325 fix(wifi): fix can not tx in low rssi during iperf test (backport v5.1) 2024-10-17 17:44:07 +08:00
harshal.patil
95311aae84 fix(mbedtls): Fix the increase in build size of mbedtls when upgrading to v3.x 2024-10-17 14:55:16 +05:30
Zhang Hai Peng
2eca72f18d 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:21 +08:00
harshal.patil
97c9eae41d 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:41:39 +05:30
Sudeep Mohanty
9b25720b61 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:41:21 +02:00
Frantisek Hrbata
b4106a3fdf 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:25:31 +02:00
Chen Jian Hua
110cd62787 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:26 +08:00
hrushikesh.bhosale
7f4125a242 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 15:53:40 +05:30
morris
7a20ca42d4 refactor(lcd): optimize rgb lcd iram usage
lcd_com_mount_dma_data() doesn't need to be placed in IRAM
2024-10-11 18:59:47 +08:00
Sudeep Mohanty
ab14d0e270 test(freertos): Added unit test for event groups to test priority inversion
This commit adds a FreeRTOS unit test to verify that event groups do not
cause priority inversion when unblocking a higher priority task.
2024-10-11 12:00:22 +02:00
Sudeep Mohanty
b013c1da82 fix(freertos): Fixed priority inversion when setting event group bits
This commit fixes a priority inversion when a lower priority task set
event group bits to unblock a higher priority task but the lower
priority task continued to run.
2024-10-11 12:00:20 +02:00
wuzhenghui
fdc6a04943 change(esp_hw_support): switch hp_sys default power mode with clock src selection 2024-10-11 16:08:44 +08:00
Zhang Hai Peng
bb5a8e4b4e fix(ble/bluedroid): Fixed BLE handle check for GATT API
(cherry picked from commit 514155de3b)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-10-10 21:13:18 +08:00
Wei Yu Han
e34be3ae59 docs(ble): Updated one feature name in feature status table 2024-10-10 10:41:15 +08:00
Kapil Gupta
6938abf90c fix(esp_wifi): Prevent memory overflow in WPS 2024-10-09 16:07:56 +05:30
Kapil Gupta
60552ecfa1 fix(esp_wifi): Mask some error conditions in WPS
Mask some error conditions in WPS to increase the probability of
WPS success.
2024-10-09 16:07:56 +05:30
Kapil Gupta
7810b9f4ff fix(esp_wifi): Disable WPS timers once WPS succeed 2024-10-09 16:07:56 +05:30
Kapil Gupta
beb46af390 fix(esp_wifi): Allow connection with WPA mode in WPS 2024-10-09 16:07:44 +05:30
Zhang Hai Peng
e0113b33c4 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:26 +08:00
Shen Wei Long
adc3bb1cd4 update(ble): Modified the ble multi_conn example's readme
(cherry picked from commit 28ffd5fc04)

Co-authored-by: Shen Weilong <shenweilong@espressif.com>
2024-10-08 13:25:33 +08:00
Mahavir Jain
632e0c2a9f Merge branch 'fix/coredump_sha_build_error_v5.1' into 'release/v5.1'
fix(esp-coredump): fix build error when mbedtls hardware sha disabled (v5.1)

See merge request espressif/esp-idf!33945
2024-10-08 12:59:41 +08:00
Mahavir Jain
7b395bd8ae Merge branch 'bugfix/null_assign_variable_v5.1' into 'release/v5.1'
fix(wifi_prov): Use calloc instead of malloc to zero initialize variable (v5.1)

See merge request espressif/esp-idf!33968
2024-10-08 12:25:43 +08:00
Mahavir Jain
0c50d91e96 Merge branch 'feature/update_mbedtls_version_to_3.6.1_v5.1' into 'release/v5.1'
feat(mbedtls): updated mbedtls version to 3.6.1(v5.1)

See merge request espressif/esp-idf!33915
2024-10-08 12:25:12 +08:00
Kapil Gupta
8baaec05be fix(esp_wifi): Deinit WPS registrar during hostapd deinit 2024-10-07 10:42:39 +05:30
Kapil Gupta
a6006f5a56 fix(esp_wifi): Added prints in btm roam for error condition 2024-10-07 10:42:32 +05:30
Rahul Tank
18209f91e7 fix(wifi_prov): Use calloc instead of malloc to zero initialize variable 2024-10-04 11:48:53 +05:30
Abhinav Kudnar
deed739453 fix(nimble): Fix the sequence of ll and host transport init 2024-10-03 17:01:37 +08:00
Marek Fiala
8e11bd5b90 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-10-02 21:24:00 +08:00
Erhan Kurubas
0e6dca576d test(esp-coredump): add test for the soft sha config 2024-10-01 10:18:25 +02:00
Erhan Kurubas
7a3f74f0d4 fix(esp-coredump): fix build error when mbedtls hardware sha disabled 2024-10-01 10:07:40 +02:00
Peter Macko
64a818fb9f Remove PYTHON_VER=3.7.10 from .gitlab-ci.yml as it breaks test_build_system_cmake_macos on ARM 2024-09-30 15:57:41 +02:00
Jiang Jiang Jian
6dff5b8f5b Merge branch 'fix/fix_free_eb_twice_issue_v51' into 'release/v5.1'
fix(wifi): fix ampdu to normal cause free buffer twice issue(Backport v5.1)

See merge request espressif/esp-idf!33896
2024-09-30 17:46:53 +08:00
Jiang Jiang Jian
77213ac824 Merge branch 'feat/add_mode_chg_parem_v5.1' into 'release/v5.1'
feat(bt/bluedroid): Report sniff interval to application layer(v5.1)

See merge request espressif/esp-idf!33867
2024-09-30 14:20:14 +08:00
Jiang Jiang Jian
571d282b96 Merge branch 'fix/ecdsa_verify_check_hash_len_v5.1' into 'release/v5.1'
Wrap some mbedtls' ECDSA verification related APIs (v5.1)

See merge request espressif/esp-idf!33785
2024-09-30 14:19:09 +08:00
wangtao@espressif.com
91ec13f858 fix(wifi): fix ampdu to normal cause free buffer twice issue 2024-09-30 13:11:04 +08:00
nilesh.kale
6571b71612 feat(mbedtls): updated mbedtls version to 3.6.1 2024-09-29 22:48:33 +05:30
Jiang Jiang Jian
b64505ce8c Merge branch 'bugfix/fix_esp32c2_rom_eco1_mbedtls_issues_v5.1' into 'release/v5.1'
fix(esp_rom): Fixed esp32c2 rom eco1 mbedtls issues (v5.1)

See merge request espressif/esp-idf!33897
2024-09-29 18:37:58 +08:00
Jiang Jiang Jian
9972ff5af8 Merge branch 'feature/ftm_calibration_esp32c6_v5.1' into 'release/v5.1'
feat(ftm): Update ftm calibration values for esp32c6 (Backport v5.1)

See merge request espressif/esp-idf!33868
2024-09-29 13:58:43 +08:00
Jiang Jiang Jian
1c8daa88c9 Merge branch 'fix/fix_bss_color_issues_v51' into 'release/v5.1'
fix(wifi): fixed the issue where the BSS color was not included when sending...

See merge request espressif/esp-idf!33877
2024-09-29 10:18:13 +08:00
Darian Leung
ceb1c01cc5 fix(usb): Make string descriptor checks in unit tests optional
Checking for an exact match for product or serial and string descriptors can
lead to test failures if the USB devices connected to the runner is changed. This
commit adds some kconfig options to make the string descriptor checks optional,
with the product and serial string checks being disabled by default.
2024-09-28 00:56:44 +08:00
Darian Leung
c66f46cb77 refactor(usb): Split test device descriptors from mock class files
Previously, descriptors of the test devices were stored direclty in the mock
device files (e.g., "mock_[hid|msc].[h|c]"). This commit splits out the device
descriptors to separate files (e.g., "dev_[hid|msc].c") along with getter
functions.

Users that want to run the tests locally on a different device simply need to
update the "dev_[hid|msc].c" file for their device.
2024-09-28 00:56:44 +08:00
Darian Leung
12f07d846b refactor(usb): Rename mock class files
- Rename "test_usb_mock_..." class files to "mock_..."
- Fixed some codespell issues
- Fixed comment spacing
2024-09-28 00:56:44 +08:00
Sajia
a3a0a2f6c2 feat(ftm): Add ftm calibration values for esp32c6 2024-09-27 17:36:15 +05:30
Jiang Guang Ming
c3ae4a3206 fix(esp_rom): Fixed esp32c2 rom eco1 mbedtls issues 2024-09-27 19:25:34 +08:00
Chen Jian Hua
fddbca1d60 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:28 +08:00
Chen Jian Hua
5bafa3e07f 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:25 +08:00
zhanghaipeng
9fe3cff677 fix(ble/bluedroid): Fixed BLE spelling error in word 2024-09-27 15:52:02 +08:00
zhanghaipeng
3696a08461 feat(ble/bluedroid): Add BLE memory allocation failure message 2024-09-27 15:51:55 +08:00
zhanghaipeng
94b5b8d60b feat(ble/controller): Display BLE controller init status for ESP32 and ESP32C3/S3 2024-09-27 15:51:43 +08:00
xuxiao
a59658a072 fix(wifi): fixed the issue where the BSS color was not included when sending packets at HE rates (v5.1) 2024-09-27 15:45:20 +08:00
zhanghaipeng
ed1ad4ef27 feat(ble/bluedroid): Optimize address resolution status for interval use 2024-09-27 14:48:10 +08:00
xiongweichao
1b19449dc0 feat(bt/bluedroid): Report sniff interval to application layer 2024-09-27 14:16:16 +08:00
Jiang Jiang Jian
59274ae0d6 Merge branch 'bugfix/set_sae_pmk_len_v5.1' into 'release/v5.1'
fix(esp_wifi): Set PMK len after SAE exchange

See merge request espressif/esp-idf!33853
2024-09-27 13:48:35 +08:00
Kapil Gupta
4acdc6c830 fix(esp_wifi): Set PMK after SAE exchange 2024-09-27 12:27:32 +08:00
Lou Tianhao
a0a4dcbf83 change(esp_pm): change pm_slp_iram_opt dependence 2024-09-27 11:57:37 +08:00
Jiang Jiang Jian
0ddb785147 Merge branch 'fix/fix_some_wifi_bugs_0924_v5.1' into 'release/v5.1'
fix(wifi): fix itwt crash issues causes by creat multiple itwt connect (v5.1)

See merge request espressif/esp-idf!33811
2024-09-27 11:38:35 +08:00
Jiang Jiang Jian
f878b4e27e Merge branch 'bugfix/fix_c2eco4_ble_init_error' into 'release/v5.1'
fix(ble): Fixed BLE initialization issue on ESP32-C2 eco4

See merge request espressif/esp-idf!33798
2024-09-27 10:42:01 +08:00
Chen Jian Hua
ffdd43f2bf 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:24 +08:00
Wei Yu Han
f1f3ed86cc 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-26 09:38:11 +08:00
Island
3d65cb7286 Merge branch 'bugfix/fixed_c5_ble_cache_error_240919_v5.1' into 'release/v5.1'
Bugfix/fixed c5 ble cache error 240919 (v5.1)

See merge request espressif/esp-idf!33759
2024-09-25 17:04:41 +08:00
xuxiao
d348a8152d fix(wifi): fix itwt crash issues causes by creat multiple itwt connect 2024-09-25 14:13:44 +08:00
Zhang Hai Peng
94476c72b6 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:19 +08:00
Shen Weilong
311d8d28d5 fix(ble): Fixed BLE initialization issue on ESP32-C2 eco4 2024-09-25 11:38:13 +08:00
Rahul Tank
d8f805c87b Merge branch 'bugfix/fix_clang_compilation_issue_v5.1' into 'release/v5.1'
fix(nimble): Fix clang compilation issue (v5.1)

See merge request espressif/esp-idf!33766
2024-09-25 00:20:19 +08:00
Rahul Tank
77c69f281c Merge branch 'bugfix/fix_blufi_deinit_fail_v5.1' into 'release/v5.1'
fix(nimble): Fixed deinit sequence in blufi (v5.1)

See merge request espressif/esp-idf!33770
2024-09-25 00:10:12 +08:00
harshal.patil
9ebd2ed8fe feat(mbedtls): Wrap mbedtls_ecdsa_read_signature to use ECDSA hardware when possible 2024-09-24 16:51:30 +05:30
harshal.patil
f648fca1b9 fix(mbedtls/port): Check signature hash length before using ECDSA hardware 2024-09-24 16:51:20 +05:30
Island
a693c960d6 Merge branch 'bugfix/fix_ble_scan_assert_1728_v5.1' into 'release/v5.1'
fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(e9ae856) (v5.1)

See merge request espressif/esp-idf!33720
2024-09-24 16:10:25 +08:00
Rahul Tank
d0bc721a78 fix(nimble): Fixed deinit sequence in blufi 2024-09-24 12:21:24 +05:30
Rahul Tank
8e0739ccd5 fix(nimble): Fix clang compilation issue 2024-09-24 12:15:59 +05:30
Rahul Tank
adf8d464fc Merge branch 'feat/send_data_len_afer_conn_v5.1' into 'release/v5.1'
feat(nimble): Set data length after connection (v5.1)

See merge request espressif/esp-idf!33696
2024-09-24 14:28:51 +08:00
Mahavir Jain
8b2abcc839 Merge branch 'fix/add_countermeasure_for_ecdsa_peripheral_issue_v5.1' into 'release/v5.1'
feat(hal): Add countermeasure for ECDSA generate signature (v5.1)

See merge request espressif/esp-idf!33748
2024-09-24 12:13:29 +08:00
Zhao Wei Liang
23cdac7ab3 fix(ble): unified ble memory allocation method
(cherry picked from commit 8e4cc79a27)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-09-24 12:03:21 +08:00
Aditya Patwardhan
9949fb3d2b feat(hal): Add countermeasure for ECDSA generate signature
The ECDSA peripheral before ECO5 of esp32h2 does not perform the ECDSA
    sign operation in constant time. This allows an attacker to read the
    power signature of the ECDSA sign operation and then calculate the
    ECDSA key stored inside the eFuse. The commit adds a countermeasure
    for this attack. In this case the real ECDSA sign operation is
    masked under dummy ECDSA sign operations to hide its real power
    signature
2024-09-23 19:32:27 +05:30
zhanghaipeng
e711935672 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:32:15 +08:00
chenjianhua
54b10d1ae1 test(bt/bluedroid): Support to disable BLE address resolution 2024-09-23 13:32:04 +08:00
Zhang Hai Peng
a0c57c0b6f 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:20 +08:00
Jiang Jiang Jian
a13ab34101 Merge branch 'refactor/rtc_init_before_mspi_tuning_v5.1' into 'release/v5.1'
fix(startup): move rtc initialization before MSPI timing tuning to improve stability (v5.1)

See merge request espressif/esp-idf!32555
2024-09-21 15:01:16 +08:00
Jiang Jiang Jian
ea9f369f45 Merge branch 'feat/support_esp32c2_eco4_wifi_v51' into 'release/v5.1'
Feat/support esp32c2 eco4 wifi v51

See merge request espressif/esp-idf!33706
2024-09-21 14:43:53 +08:00
Jiang Jiang Jian
6983207dd1 Merge branch 'bugfix/check_bootloader_size_with_sign_v5.1' into 'release/v5.1'
fix(esptool_py): Check the size of the bootloader + signature block (v5.1)

See merge request espressif/esp-idf!33592
2024-09-21 14:42:48 +08:00
Jiang Jiang Jian
768104dd5f Merge branch 'fix/assert_fail_in_xtaskdeletewithcaps_v5.1' into 'release/v5.1'
Fixed occational assert failure in vTaskDeleteWithCaps() (v5.1)

See merge request espressif/esp-idf!33687
2024-09-21 14:40:41 +08:00
wangtao@espressif.com
70b29ec9cf feat(wifi): update support esp32c2eco4 wifi lib 2024-09-21 10:28:53 +08:00
wangtao@espressif.com
7caee46b77 fix(wifi): fix esp32c2 eco4 ld 2024-09-20 20:33:51 +08:00
wangtao@espressif.com
4758622331 feat(wifi): support esp32c2 eco4 wifi bringup 2024-09-20 20:32:42 +08:00
Jiang Jiang Jian
464d5d55a3 Merge branch 'ble_dev/esp32c2eco4_chip_20240903_v5.1' into 'release/v5.1'
change(ble): update c2 eco4 ld file (v5.1)

See merge request espressif/esp-idf!33667
2024-09-20 19:35:08 +08:00
Sudeep Mohanty
22754918e0 fix(freertos): Fixed assert failure in vTaskDeleteWithCaps
This commit fixes an assert failure in vTaskDeleteWithCaps() when
multiple un-pinned tasks are created with stack in the external memory
and such tasks delete themselves.

Closes https://github.com/espressif/esp-idf/issues/14222
2024-09-20 10:28:29 +02:00
Sudeep Mohanty
288fd05b0e test(freertos): Added a test for vTaskDeleteWithCaps when stack is in ext RAM
This commit adds a stress tests for creating multiple tasks with
xTaskCreateWithCaps such that the stack is allocated in external SPIRAM.
Then the tasks self-delete. This is done iteratively as stress test.
2024-09-20 10:28:29 +02:00
Jiang Jiang Jian
36b9357ef7 Merge branch 'bugfix/fix_sdp_bugs_v5.1' into 'release/v5.1'
Bugfix/fix sdp bugs[backport 5.1]

See merge request espressif/esp-idf!33604
2024-09-20 14:13:42 +08:00
Jiang Jiang Jian
538302a22f Merge branch 'fix/fix_clock_retention_link_context_v5.1' into 'release/v5.1'
fix(esp_hw_support): add clock retention contents for esp32c6 & esp32h2  (v5.1)

See merge request espressif/esp-idf!33606
2024-09-20 14:12:30 +08:00
Jiang Jiang Jian
cd464116d5 Merge branch 'feature/add_api_to_get_last_status_code_logged_during_ota_v5.1' into 'release/v5.1'
feat(esp_https_ota): added API to get last status code logged from http resonse (v5.1)

See merge request espressif/esp-idf!33611
2024-09-20 14:04:48 +08:00
Jiang Jiang Jian
df98b8396e Merge branch 'fix/fix_some_wifi_bugs_0902_v5.1' into 'release/v5.1'
fix(wifi): fix some wifi bugs(Backport v5.1)

See merge request espressif/esp-idf!33647
2024-09-20 13:53:14 +08:00
Shu Chen
be1ba2eff8 Merge branch 'backport/openthread_related_feature_v51' into 'release/v5.1'
Backport/openthread related feature v51(Backport v5.1)

See merge request espressif/esp-idf!33408
2024-09-20 13:50:35 +08:00
Jiang Jiang Jian
67d4d2c5d3 Merge branch 'fix/mmu_multicore_app_bl_v5.1' into 'release/v5.1'
fix(MMU): fixed mmap deadlock when using multicore app with unicore bootloader (v5.1)

See merge request espressif/esp-idf!32898
2024-09-20 13:41:17 +08:00
Marius Vikhammer
207eccfc8f Merge branch 'fix/ringbuf_receives_item_not_yet_sent_v5.1' into 'release/v5.1'
fix(esp_ringbuf): Fixed a bug where in a no-split buffer received items prematurely (v5.1)

See merge request espressif/esp-idf!33651
2024-09-20 13:39:12 +08:00
Jiang Jiang Jian
e902170873 Merge branch 'bugfix/fix_usb_dp_pullup_disable_v5.1' into 'release/v5.1'
GPIO: correct pio_ll_pullup_dis when USB DP (backport v5.1)

See merge request espressif/esp-idf!32496
2024-09-20 13:36:22 +08:00
Jiang Jiang Jian
a28a3a460d Merge branch 'fix/spi_hd_seg_fix_iwdt_timeout_v5.1' into 'release/v5.1'
fix(spi_slave_hd): fix seg mode potential iwdt timeout when multi task call (v5.1)

See merge request espressif/esp-idf!31844
2024-09-20 13:34:59 +08:00
Shen Wei Long
f7fb8a6dc6 change(ble): update c2 eco4 ld file
(cherry picked from commit 25189b190f)

Co-authored-by: Shen Weilong <shenweilong@espressif.com>
2024-09-20 12:53:27 +08:00
Jiang Jiang Jian
69aa96eb3c Merge branch 'feat/support_esp32c2_eco4_rom_systimer_hal_v5.1' into 'release/v5.1'
feat(esp_rom): support esp32c2 rev2.0(ECO4) rom systimer hal (backport v5.1)

See merge request espressif/esp-idf!33613
2024-09-20 12:06:52 +08:00
Jiang Jiang Jian
3d3ae683da Merge branch 'feat/bringup_esp32c2_rom_mbedtls_to_formal_feature_v5.1' into 'release/v5.1'
feat(mbedtls): bringup rom mbedtls feature to formal (backport v5.1)

See merge request espressif/esp-idf!33646
2024-09-20 12:06:32 +08:00
Wang Meng Yang
0e1492b06d Merge branch 'bugfix/fix_some_bugs_in_avrcp_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fixed some bugs in AVRCP (Backport v5.1)

See merge request espressif/esp-idf!33580
2024-09-20 11:41:06 +08:00
Jiang Jiang Jian
2136defda4 Merge branch 'bugfix/support_cert_test_v5.1' into 'release/v5.1'
fix(phy): Add cert_test support for ESP32, ESP32-C2, ESP32-C6, ESP32-H2 and ESP32-S2(Backport v5.1)

See merge request espressif/esp-idf!33622
2024-09-20 11:39:36 +08:00
Island
697a621545 Merge branch 'feat/support_blecrt_242_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fixed access fault when reading BLE controller information fails (v5.1)

See merge request espressif/esp-idf!33632
2024-09-20 10:34:02 +08:00
yinqingzhao
d73f3d68fc fix(wifi): fix some wifi bugs 2024-09-20 10:28:32 +08:00
Rahul Tank
2e7caef119 feat(nimble): Set data length after connection 2024-09-19 20:24:29 +05:30
Sudeep Mohanty
1fb7afab01 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-19 16:06:00 +02:00
Island
71bac64a08 Merge branch 'bugfix/fixed_c6_crash_c2_crash_issue_v5.1' into 'release/v5.1'
Bugfix/fixed c6 crash c2 crash issue (v5.1)

See merge request espressif/esp-idf!33597
2024-09-19 20:21:06 +08:00
Island
dbe47c367e Merge branch 'bugfix/fix_ble_max_tx_power_on_esp32c3_v5.1' into 'release/v5.1'
fix(bt/controller): Change the max TX power to +20dBm on ESP32-C3 and ESP32-S3 (v5.1)

See merge request espressif/esp-idf!33615
2024-09-19 19:59:54 +08:00
Jiang Jiang Jian
ce64b50f77 Merge branch 'bugfix/pm-165_v5.1' into 'release/v5.1'
backport v5.1: fix the issue of station fail to connect to softap caused by abnormal rf flag signal

See merge request espressif/esp-idf!33626
2024-09-19 16:47:30 +08:00
Jiang Guang Ming
d4e558f654 feat(mbedtls): bringup rom mbedtls feature to formal 2024-09-19 16:45:01 +08:00
muhaidong
e2822c3a1f fix(phy): update cert_test docs 2024-09-19 16:20:06 +08:00
Xu Si Yu
9ead83c4ee feat(openthread): update extension commands component for examples 2024-09-19 16:07:03 +08:00
Rahul Tank
be263857eb Merge branch 'fix/added_a_change_to_print_address_of_advertising_instance_v5.1' into 'release/v5.1'
fix(nimble): Added a change to print address of an advertising instance (v5.1)

See merge request espressif/esp-idf!33563
2024-09-19 14:32:15 +08:00
Chen Jian Hua
807acee34c 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:26 +08:00
Chen Jian Hua
c2e8a6e9b2 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:24 +08:00
Li Shuai
9bd938d39a fix(esp_wifi): fix the issue of station fail to connect to softap caused by abnormal rf flag signal 2024-09-18 22:18:33 +08:00
Jiang Guang Ming
86b0c1b6eb feat(esp_rom): support esp32c2 rev2.0(ECO4) rom systimer hal 2024-09-18 21:02:13 +08:00
Jiang Guang Ming
b5fe76b7dc feat(esp_rom): add esp32c2.rom.eco4.ld 2024-09-18 21:02:04 +08:00
Mu Hai Dong
1e10eba6e5 Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Jiang Jiang Jian <jack@espressif.com>
2024-09-18 20:15:23 +08:00
muhaidong
ea85edc469 fix(phy): esp32s2 and esph2 support rf cert_test 2024-09-18 19:54:08 +08:00
Xiao Xufeng
cd1a50a952 ci(mmu): add unicore test 2024-09-18 19:31:33 +08:00
Xiao Xufeng
7d4d6ae5fd fix(MMU): fixed mmap deadlock when using multicore app with unicore bootloader
Closes https://github.com/espressif/esp-idf/issues/11617
2024-09-18 19:31:33 +08:00
Xiao Xufeng
dbed93dce8 fix(startup): move rtc initialization before MSPI timing tuning to improve stability 2024-09-18 19:30:22 +08:00
muhaidong
8992e1cec8 fix(phy): fix esp32 build fail issue
Closes https://github.com/espressif/esp-idf/issues/11972
2024-09-18 19:17:02 +08:00
wanlei
7a8655d763 fix(spi_slave_hd): fix seg mode potential iwdt timeout when multi task call 2024-09-18 18:01:12 +08:00
xiehang
5d7e2a6fde fix(phy): All chip support cert_test 2024-09-18 18:00:46 +08:00
Chen Jian Hua
c846ee7917 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:20 +08:00
nilesh.kale
6de1125cbf 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:38 +05:30
zwl
7890498092 fix(ble): fixed occasional crash issue in multi-connect scenarios on ESP32-C6 2024-09-18 17:03:37 +08:00
wuzhenghui
710baa1fe3 fix(esp_hw_support): add clock retention contents 2024-09-18 16:57:46 +08:00
liqigan
0b2bf46463 fix(bt/bluedroid): Fixed not deep copy service_name and user1_ptr in RAW SDP search event 2024-09-18 16:42:22 +08:00
liqigan
3ee6b9e051 change(bt/bluedroid): Limited SDP service discovery operation 2024-09-18 16:42:07 +08:00
liqigan
340cc81c02 change(bt/bluedroid): Release record data after SDP record created 2024-09-18 16:41:57 +08:00
Zhao Wei Liang
0678e23215 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:45 +08:00
Zhao Wei Liang
906b24dcac 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:43 +08:00
Zhao Wei Liang
96e6cebe8c fix(ble): fixed occasional acl data packet loss issue when using UHCI on ESP32-H2
(cherry picked from commit c929a01931)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-09-18 15:57:41 +08:00
morris
f59e219457 Merge branch 'bugfix/warn_rc32k_use_v5.1' into 'release/v5.1'
fix(clk): warn the users to avoid using RC32K clock (v5.1)

See merge request espressif/esp-idf!33503
2024-09-18 15:37:09 +08:00
Roland Dobai
afaee632ea Merge branch 'feature/tools_fix_arm64_arm32_detection_v5.1' into 'release/v5.1'
fix(idf_tools): Fix platform detection - arm64 hardware but it's running in arm32 environment (v5.1)

See merge request espressif/esp-idf!33396
2024-09-18 15:32:46 +08:00
Konstantin Kondrashov
bf484ad78d fix(examples): Increases partition table offset for SBV2+FE test 2024-09-18 09:58:49 +03:00
Konstantin Kondrashov
5b08c93852 fix(esptool_py): Check the size of the bootloader + signature block 2024-09-18 09:58:48 +03:00
Jiang Jiang Jian
7ff192c979 Merge branch 'bugfix/forbid_uart_suspend_auto_lightsleep_v5.1' into 'release/v5.1'
uart: Fixed issue that TX be blocked by auto-lightsleep (v5.1)

See merge request espressif/esp-idf!31109
2024-09-18 13:53:46 +08:00
Anton Maklakov
61bc4b9684 ci: update mypy check for python 3.8 2024-09-18 11:11:26 +07:00
linruihao
35ff605f35 fix(bt/bluedroid): Fixed some bugs in AVRCP 2024-09-18 11:26:34 +08:00
Jiang Jiang Jian
165172072c Merge branch 'fix/fix_wifi_rssi_to_snr_issue_v51' into 'release/v5.1'
fix(wifi): fix wifi rssi to snr issue v51

See merge request espressif/esp-idf!33541
2024-09-18 11:10:37 +08:00
Jiang Jiang Jian
e682fb89e0 Merge branch 'change/improve_some_wifi_releated_introduction_v51' into 'release/v5.1'
change(wifi):improve some wifi releated introduction

See merge request espressif/esp-idf!33540
2024-09-18 10:53:21 +08:00
Alexey Gerenkov
4057760b86 Merge branch 'fix/sysview_example_tests_v5.1' into 'release/v5.1'
test(sysview): fix gdb no response error in sysview_heap_log tests (v5.1)

See merge request espressif/esp-idf!33459
2024-09-17 23:01:20 +08:00
shreeyash
cf106f07d1 fix(nimble): Added a change to print address of an advertising instance 2024-09-17 12:19:03 +05:30
Rahul Tank
5ed5ed7be7 Merge branch 'bugfix/add_dummy_cb_during_deinit_v5.1' into 'release/v5.1'
fix(nimble): De-register host cb in stack deinit (v5.1)

See merge request espressif/esp-idf!33375
2024-09-16 23:44:50 +08:00
Roland Dobai
f449357a70 Merge branch 'feat/update_tools_in_tools_json_v5.1' into 'release/v5.1'
feat(tools): Update tools: cmake, ninja, ccache (v5.1)

See merge request espressif/esp-idf!33532
2024-09-16 19:42:05 +08:00
Rahul Tank
f6b08fb2e9 fix(nimble): De-register host cb in stack deinit 2024-09-16 14:22:47 +05:30
Jiang Jiang Jian
6436187c8e Merge branch 'bugfix/fix_missing_per_adv_sync_est_evt_v5.1' into 'release/v5.1'
fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(c66a703) (Backport v5.1)

See merge request espressif/esp-idf!33451
2024-09-14 16:34:54 +08:00
wangtao@espressif.com
ce6fe53c69 fix(wifi): fix wifi rssi to snr issue v51 2024-09-14 15:30:34 +08:00
wangtao@espressif.com
27efe05cad change(wifi):improve some wifi releated introduction 2024-09-14 15:04:32 +08:00
Marek Fiala
abbfb9d073 feat(tools): Exclude modified folders by rebuild 2024-09-13 16:56:46 +02:00
Marek Fiala
1c00a61ca3 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 16:56:46 +02:00
Jiang Jiang Jian
386bdf6011 Merge branch 'feat/support_esp32c2_eco4_rom_mbedtls_v3.6.0_lts_v5.1' into 'release/v5.1'
feat(mbedtls): support esp32c2 eco4 rom mbedtls v3.6.0 lts v5.1 (backport v5.1)

See merge request espressif/esp-idf!33423
2024-09-13 20:32:31 +08:00
Island
d8018d6a96 Merge branch 'bugfix/fixed_multi_conn_example_crash_issue_5.1' into 'release/v5.1'
fix(ble): fiexed the crash issue of examples/bluetooth/nimble/ble_multi_conn

See merge request espressif/esp-idf!33494
2024-09-13 19:18:02 +08:00
Jiang Jiang Jian
de8a8b5c43 Merge branch 'bugfix/ftm_apsta_bw_issue_v5.1' into 'release/v5.1'
fix(esp_wifi): Fix FTM issues in AP-STA mode (Backport v5.1)

See merge request espressif/esp-idf!33483
2024-09-13 12:04:38 +08:00
Song Ruo Jing
a4bc0becb0 fix(clk): warn the users to avoid using RC32K clock 2024-09-13 12:03:03 +08:00
Xiao Xufeng
74eb0cd4a8 fix(soc): fixed uart_periph.h not including reg.h issue
This will cause rom/uart.h can't compile.
2024-09-12 21:26:13 +08:00
Michael (XIAO Xufeng)
990fb3c2e8 feat(uart_test): add test case for uart tx blocked by auto-suspend 2024-09-12 21:26:13 +08:00
LiPeng
4a8f1d30ce fix(uart): Fixed issue that TX be blocked by auto-lightsleep 2024-09-12 21:26:13 +08:00
Shen Weilong
99ff4745e2 fix(ble): fiexed the crash issue of examples/bluetooth/nimble/ble_multi_conn 2024-09-12 20:58:00 +08:00
Nachiket Kukade
a93ae1141d 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-09-12 10:47:22 +05:30
Jiang Jiang Jian
33fbade6b8 Merge branch 'bugfix/fix_s3c3_wrong_ext32k_config_bug_v5.1' into 'release/v5.1'
fix(ext_32k): fix the external 32K issue on C3&S3 (v5.1)

See merge request espressif/esp-idf!33155
2024-09-12 10:51:54 +08:00
Jiang Jiang Jian
e187f3e65b Merge branch 'bugfix/psram_fallback_in_wifi_osi_v5.1' into 'release/v5.1'
fix(wifi): Add PSRAM failure fallback in WiFi Queue API's (Backport v5.1)

See merge request espressif/esp-idf!33351
2024-09-12 10:50:28 +08:00
Jiang Jiang Jian
f209311613 Merge branch 'fix/clang_linker_fix_for_linux_target_v5.1' into 'release/v5.1'
fix(cmake): Fixed linker not supporting -warn_commons for linux target on MacOS (v5.1)

See merge request espressif/esp-idf!33054
2024-09-12 10:50:05 +08:00
Jiang Jiang Jian
3db2c6fbe4 Merge branch 'docs/add_nimble_get_started_v5.1' into 'release/v5.1'
feat(ble/example): Added NimBLE Get started examples (v5.1)

See merge request espressif/esp-idf!33030
2024-09-12 10:49:48 +08:00
Jiang Jiang Jian
fa8cd334b7 Merge branch 'fix/vtaskdeletewithcaps_leaks_memory_v5.1' into 'release/v5.1'
fix(freertos): Fixed memory leak issue in vTaskDeleteWithCaps() (v5.1)

See merge request espressif/esp-idf!32401
2024-09-12 10:49:19 +08:00
morris
6d438a9ea6 Merge branch 'docs/sync_psram_noinit_and_bss_description_v5.1' into 'release/v5.1'
docs(psram): sync psram noinit description (v5.1)

See merge request espressif/esp-idf!33464
2024-09-12 10:00:56 +08:00
morris
e2f05a1187 Merge branch 'feat/parlio_tx_support_psram_buffer_v5.1' into 'release/v5.1'
fix(parlio_tx): fixed errors in the first transfer (v5.1)

See merge request espressif/esp-idf!33359
2024-09-12 09:43:19 +08:00
Marius Vikhammer
4d2c27dd39 Merge branch 'bugfix/ulp_riscv_reg_ops_header_inclusion_v5.1' into 'release/v5.1'
fix(ulp_riscv): Fixed the header inclusion dependency for ulp_riscv_register_ops.h (v5.1)

See merge request espressif/esp-idf!33452
2024-09-12 08:55:23 +08:00
Chen Jichang
036cd854b9 docs(psram): sync psram noinit description 2024-09-11 20:17:55 +08:00
Erhan Kurubas
8a4e0b6b2a test(sysview): fix gdb no response error in sysview_heap_log tests 2024-09-11 13:43:16 +03:00
Sudeep Mohanty
3088bebc23 fix(ulp_riscv): Fixed the header inclusion dependency for ulp_riscv_register_ops.h
There are redefinition compilation warnings for the register operation
macros when a ULP program was compiled which included soc.h before
ulp_riscv_register_ops.h. This commit fixes the issues by delegating the
exclusion macro to the CMakeLists.txt file.

Closes: https://github.com/espressif/esp-idf/issues/12116
Closes: https://github.com/espressif/esp-idf/issues/14438
2024-09-11 11:25:31 +02:00
linruihao
42ccb8fc26 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(c66a703)
- Fixed missing sync established event after canceling sync
2024-09-11 17:15:42 +08:00
Wei Yu Han
e03dce674c fix(ble): Increased the length of addr_str in ble_get_started nimble examples 2024-09-11 17:14:22 +08:00
weiyuhan
df9abfe9f9 fix(ble): Added ble_get_started examples to build-test-rules.yml 2024-09-11 17:14:22 +08:00
Yuhan Wei
a8b85dd01c fix(ble): Removed unsupported sdkconfig 2024-09-11 17:14:22 +08:00
Yuhan Wei
89db2b75dc fix(ble): Removed the C5 support for examples in ble_get_started 2024-09-11 17:14:22 +08:00
Zhou Xiao
d4b4f5c146 docs(ble): Replace advertising interval hex value with BLE_GAP_ADV_ITVL_MS 2024-09-11 17:14:22 +08:00
Zhou Xiao
17ea84eef6 docs(ble): Improved as Weilong and Shenhang requested 2024-09-11 17:14:22 +08:00
zhouxiao
77f9b38039 docs(ble): Added BLE Get Started 2024-09-11 17:14:22 +08:00
Wang Meng Yang
494cce05a9 Merge branch 'bugfix/exit_sniff_immed_enter_sniff_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fix the protocol stack to exit sniff mode(v5.1)

See merge request espressif/esp-idf!33399
2024-09-11 15:30:44 +08:00
Rahul Tank
9559f40dc6 Merge branch 'bugfix/bidirectioanl_data_transfer_ble_spp_v5.1' into 'release/v5.1'
fix(nimble): Added support for bidirectional data trasfer (v5.1)

See merge request espressif/esp-idf!33414
2024-09-11 14:04:28 +08:00
Chen Jichang
4a10d24b48 fix(parlio_tx): fix error in first transfer and 1 byte transfer
On p4, the clock was configured in the wrong order causing a dropped
count on the first transmission. And gdma eof event fails to trigger
parlio_tx eof event when transmitting single byte.
2024-09-11 09:52:07 +08:00
Wang Meng Yang
8af42a08cf Merge branch 'bugfix/fix_hid_cod_setting_v5.1' into 'release/v5.1'
Bugfix/fix hid cod setting[backport 5.1]

See merge request espressif/esp-idf!33339
2024-09-10 18:30:49 +08:00
Sudeep Mohanty
d87171a2f1 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:51:36 +08:00
Sudeep Mohanty
a6a5ca31cc fix(freertos): Fixed memory leak issue in vTaskDeleteWithCaps()
vTaskDeleteWithCaps() leaked memory when a task uses the API to delete
itself. This commit adds a fix to avoid the memory leak.

Closes https://github.com/espressif/esp-idf/issues/14222
2024-09-10 14:48:30 +08:00
xiongweichao
acfa4b00a7 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:05 +08:00
Island
ed4220c163 Merge branch 'bugfix/fix_some_ble_bugs_240826_v5.1' into 'release/v5.1'
Fixed some BLE bugs 240826 on ESP32C3 (8ce789b) (v5.1)

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

See merge request espressif/esp-idf!33387
2024-09-10 11:37:16 +08:00
Marius Vikhammer
13c6c90055 Merge branch 'fix/freertos_port_assert_in_isr_bug_v5.1' into 'release/v5.1'
fix(freertos): Incorrect assert in FreeRTOS port layer when not in ISR context (v5.1)

See merge request espressif/esp-idf!32374
2024-09-10 11:06:52 +08:00
Jiang Guang Ming
cf2c0e1edb fix(heap): rev2.0 still use tlsf patch code 2024-09-10 11:04:22 +08:00
Jiang Guang Ming
b98c1db2b5 feat(mbedtls): support rom mbedtls threading layer 2024-09-10 10:38:24 +08:00
Jiang Guang Ming
3faea4b10c feat(mbedtls): select MBEDTLS_CMAC_C when MBEDTLS_USE_CRYPTO_ROM_IMPL enabled 2024-09-10 10:38:19 +08:00
Jiang Guang Ming
e49ee08d8c feat(mbedtls): support ROM mbedtls v3.6.0 on C2 rev2.0(ECO4) 2024-09-10 10:38:12 +08:00
Jiang Guang Ming
6976a43ad3 feat(esp_rom): include rom.mbedtls.eco4.ld with C2 rev2.0(ECO4) select 2024-09-10 10:37:57 +08:00
Jiang Guang Ming
2ee77ff20f feat(esp_rom): update esp32c2.rom.mbedtls.eco4.ld 2024-09-10 10:37:47 +08:00
Jiang Guang Ming
8ad0723c27 feat(esp_hw_support): Support esp32c2 rev2.0 chip 2024-09-10 10:37:34 +08:00
Astha Verma
20d3a306eb fix(nimble): Added support for bidirectional data trasfer 2024-09-09 18:41:27 +05:30
Shu Chen
61d6201cf0 feat(openthread): support time sync feature on border router 2024-09-09 20:28:17 +08:00
Michael Wei
e325f1fcd1 fix(openthread): fix RCP build to pass time sync and CSL options
Closes https://github.com/espressif/esp-idf/pull/14060
2024-09-09 20:28:15 +08:00
zwx
72d231e674 feat(lwip): reply the NS without LL opt 2024-09-09 20:17:25 +08:00
zwx
b3b321f715 fix(802.15.4): fix oob issue for pending table 2024-09-09 20:15:25 +08:00
zwx
3db6cccffe feat(802.15.4): support large scale pending table size 2024-09-09 20:15:11 +08:00
zwx
ceea71d009 feat(lwip): add a config to set the size of ND6 table cache 2024-09-09 20:15:00 +08:00
zwx
9c0c0ce994 feat(esp_netif): add an API to get all preferred ip6 addresses 2024-09-09 20:14:25 +08:00
Jiang Jiang Jian
99775566c5 Merge branch 'bugfix/sae_gcmp_conn_failure_v5.1' into 'release/v5.1'
Fix SAE connection failure when GCMP cipher is used (Backport v5.1)

See merge request espressif/esp-idf!33232
2024-09-09 14:35:48 +08:00
Anton Maklakov
2456dc6a8e fix(idf_tools): fix delimiter when the updater parsing, ' *' or ' ' 2024-09-09 13:01:00 +07:00
Anton Maklakov
49773c662a fix(idf_tools): Fix platform detection for arm64 machine but arm32 environment 2024-09-09 13:00:46 +07:00
chenjianhua
867ed4d319 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:29 +08:00
chenjianhua
51aa349204 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:46 +08:00
Island
4bd5b51627 Merge branch 'docs/optimized_ble_gattc_multi_connect_example_v5.1' into 'release/v5.1'
docs(ble/bluedroid): Optimize BLE example documentation for getting characteristic (v5.1)

See merge request espressif/esp-idf!33196
2024-09-09 10:34:51 +08:00
Krzysztof Budzynski
c769ca3d41 Merge branch 'docs/remove_user_guide_for_esp32_pico_kit_related_migration_v5.1' into 'release/v5.1'
docs: remove user guide for esp32-pico-kit related docs after migration (v5.1)

See merge request espressif/esp-idf!32783
2024-09-06 18:38:57 +08:00
Rahul Tank
571f5caf41 Merge branch 'bugfix/make_cccd_flags_configurable_v5.1' into 'release/v5.1'
fix(nimble): Make CCCD flags configurable (v5.1)

See merge request espressif/esp-idf!33315
2024-09-06 14:05:44 +08:00
zhanghaipeng
a0f864456c fix(ble/bluedroid): Optimize BLE function 'esp_ble_resolve_adv_data_by_type' 2024-09-06 10:14:42 +08:00
zhanghaipeng
1dbaced1ca docs(ble/bluedroid): Optimize BLE example documentation for getting characteristic 2024-09-06 10:14:42 +08:00
Nebojša Cvetković
a3eb74cdb7 fix(bt/bluedroid): Resolve warning: unused variable 'pp' 2024-09-06 10:14:42 +08:00
Nachiket Kukade
e23ccc987c fix(wifi): Add PSRAM failure fallback in WiFi Queue API's 2024-09-05 18:11:26 +05:30
morris
35eaff1d2a Merge branch 'bugfix/eth_plus_wifi_doc_v5.1' into 'release/v5.1'
docs(esp_eth): added warning to not use ESP32 as ETH CLK source with WiFi (v5.1)

See merge request espressif/esp-idf!33247
2024-09-05 18:45:05 +08:00
liqigan
6464747486 fix(esp_hid): Fixed protocol mode mapping bug
Closes https://github.com/espressif/esp-idf/issues/14232
2024-09-05 14:25:44 +08:00
liqigan
7079d50ecd 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:25:27 +08:00
morris
cc56879ed4 Merge branch 'support_psram_noinit_segment_on_s3_v5.1' into 'release/v5.1'
feat(psram): add psram noinit  segment support on s2/s3/p4/c5 and bss segment on c5 (v5.1)

See merge request espressif/esp-idf!33258
2024-09-05 10:45:32 +08:00
Roland Dobai
d80d9a4499 Merge branch 'docs/remove_output_format_v5.1' into 'release/v5.1'
docs(size): remove -DOUTPUT_FORMAT output format option for idf.py size (v5.1)

See merge request espressif/esp-idf!33311
2024-09-04 20:43:39 +08:00
shreeyash
81752a8f5f fix(nimble): Make CCCD flags configurable 2024-09-04 14:13:19 +05:30
Frantisek Hrbata
e08cde2c89 docs(size): remove -DOUTPUT_FORMAT output format option for idf.py size
Setting OUTPUT_FORMAT through the CMake variable probably never
functioned and seems to be a remnant (possibly a typo in the
documentation) from the time when the -DOUTPUT_JSON=1 CMake variable was
used to specify the JSON output format, prior to the introduction of the
--format option. This removes the note regarding the option to choose
the output format using -DOUTPUT_FORMAT.

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

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-09-04 10:09:11 +02:00
Chen Jichang
bec23c9d81 feat(psram): add psram noinit segment support on S2/S3/P4/C5
Closes https://github.com/espressif/esp-idf/issues/14253
2024-09-04 15:08:12 +08:00
zlq
6a40c63c28 fix(ext_32k): fix the external 32K issue on C3&S3 (v5.1) 2024-09-04 12:04:31 +08:00
renpeiying
42408045ff docs: Remove User Guide for ESP32-Pico-Kit related docs after migration 2024-09-02 19:17:04 +08:00
Sajia
0dbd2aa24c fix(esp_wifi): Refactor and update wpa_supplicant with upstream 2024-09-02 16:12:32 +05:30
renpeiying
7c7aeb3fc7 docs: Update zh_CN translation for MR32736 2024-09-02 11:44:03 +02:00
Ondrej Kosta
ebee641116 docs(esp_eth): added warning to not use ESP32 as ETH CLK source with WiFi 2024-09-02 11:32:08 +02:00
Marius Vikhammer
220f9e6c42 Merge branch 'task/add_ldgen_exception_for_freertos_v5.1' into 'release/v5.1'
fix(freertos): Added freertos and ringbuf fragments to the exception list of ldgen mapping checks (v5.1)

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

See merge request espressif/esp-idf!33207
2024-09-02 10:08:14 +08:00
Wang Meng Yang
c86c53dd64 Merge branch 'contrib/github_pr_14286_v5.1' into 'release/v5.1'
fix(bt): Add a parameter in the two least significant bits of Class of Device (backport v5.1)

See merge request espressif/esp-idf!33166
2024-09-02 09:34:51 +08:00
Michael (XIAO Xufeng)
adcc279a8c Merge branch 'fix_wrong_ap3204_id_check_v5.1' into 'release/v5.1'
fix(psram): fixed ap3204 id check (v5.1)

See merge request espressif/esp-idf!33131
2024-08-31 02:05:31 +08:00
Sudeep Mohanty
b2b1a3a81b 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:18:52 +02:00
Sudeep Mohanty
c2be14c80f 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:18:50 +02:00
Jiang Jiang Jian
46cf3b84c6 Merge branch 'fix/hfp_pcm_codec_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fix default codec type on PCM datapath for hfp_hf (backport v5.1)

See merge request espressif/esp-idf!33161
2024-08-30 13:57:19 +08:00
Jiang Jiang Jian
57e5b0655f Merge branch 'bugfix/fix_wifi_bugs_240828_v5.1' into 'release/v5.1'
fix(wifi): fix wifi bugs 240828 (Backport v5.1)

See merge request espressif/esp-idf!33188
2024-08-30 12:05:21 +08:00
zwl
1f1fc3baed fix(ble): fixed crash issue during deinit host after deinit controller on ESP32-C2 2024-08-30 12:03:04 +08:00
Jiang Jiang Jian
5587f635f1 Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20240821_v5.1' into 'release/v5.1'
feat(tools): update openocd version to v0.12.0-esp32-20240821 (v5.1)

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

See merge request espressif/esp-idf!33179
2024-08-30 11:06:36 +08:00
Jiang Jiang Jian
19e4df4012 Merge branch 'ci/run_dangerjs_on_other_runners' into 'release/v5.1'
ci: run dangerjs job on specific runner (v5.1)

See merge request espressif/esp-idf!33200
2024-08-30 10:32:24 +08:00
Chen Yudong
e387abe447 ci: run dangerjs job on specific runner 2024-08-29 20:45:00 +08:00
Rahul Tank
7f9f4003c2 fix(wifi_prov): Add support for ESP IP controller chips in bluedroid 2024-08-29 15:06:39 +05:30
sibeibei
18273427d4 fix(wifi): fix wifi bugs 240828 v5.1 2024-08-29 14:48:30 +08:00
Alexey Gerenkov
8235a0dcff feat(tools): update openocd version to v0.12.0-esp32-20240821 2024-08-28 13:20:40 +03:00
chenqingqing
5fa5a1327c fix(bt/bluedroid): Fix default codec type on PCM datapath for hfp_hf 2024-08-28 17:01:50 +08:00
chenqingqing
20990096b2 fix(bt): Add a parameter in the two least significant bits of Class of Device 2024-08-28 16:52:03 +08:00
WebDust21
592e743dad fix(bt): Enable use of RESERVED bits in COD (GitHub PR) 2024-08-28 16:51:53 +08:00
Island
25668990ad Merge branch 'debug/fix_deep_sleep_wake_up_by_ble_v5.1' into 'release/v5.1'
fix(ble): fix BLE immediately  wakeup deep sleep (v5.1)

See merge request espressif/esp-idf!33097
2024-08-28 15:13:27 +08:00
Jiang Jiang Jian
5b4687eeee Merge branch 'bugfix/fix_wrong_typecast_spp_v5.1' into 'release/v5.1'
fix(wifi): Fix wrong typecasting of sta_info while getting SPP Caps (Backport v5.1)

See merge request espressif/esp-idf!33120
2024-08-28 12:58:19 +08:00
Jiang Jiang Jian
cd3c28d077 Merge branch 'bugfix/fix_esp32c6_rxappend_esp32_tbtt_delay_v5.1' into 'release/v5.1'
fix(coex): fix esp32 crash issue, fix esp32c6 rx issue

See merge request espressif/esp-idf!33089
2024-08-28 11:43:13 +08:00
Jiang Jiang Jian
af1841131c Merge branch 'coredump_fixes_v5.1' into 'release/v5.1'
Coredump fixes v5.1

See merge request espressif/esp-idf!33085
2024-08-28 11:37:53 +08:00
Armando
6ead617708 fix(psram): fixed ap3204 id check 2024-08-28 11:05:44 +08:00
Nachiket Kukade
75f4e2c8bb fix(wifi): Fix wrong typecasting of sta_info while getting SPP Caps 2024-08-27 16:25:01 +05:30
cjin
53c865090c feat(ble): add internal api to change ble slow clock source 2024-08-27 12:48:38 +08:00
cjin
6a89c38a7e fix(ble): remove ble wakeup before entering light sleep 2024-08-27 10:18:16 +08:00
Island
810458ddf9 Merge branch 'bugfix/fixed_c6_c2_issues_master_v5.1' into 'release/v5.1'
Bugfix/fixed c6 c2 issues master (v5.1)

See merge request espressif/esp-idf!33066
2024-08-27 10:05:36 +08:00
zwl
c83d6bcc9a fix(ble): fixed ble controller issues on ESP32-H2 2024-08-26 19:43:40 +08:00
zwl
8ea9a8a93c fix(ble): fixed ble controller issues on ESP32-C6 2024-08-26 19:43:12 +08:00
zwl
d31558126f fix(ble): fixed ble controller issues on ESP32-C2 2024-08-26 19:42:40 +08:00
liuning
17e522a0a1 fix(coex): fix esp32 crash issue, fix esp32c6 rx issue 2024-08-26 19:14:48 +08:00
Jiang Jiang Jian
df69f27173 Merge branch 'feat/collect_retention_link_definition_v5.1' into 'release/v5.1'
change(esp_hw_support): collect retention link priority definition (v5.1)

See merge request espressif/esp-idf!33070
2024-08-26 19:07:52 +08:00
Erhan Kurubas
54e470e9e0 fix(coredump): fix buffer overflow inside esp_core_dump_get_summary
Closes https://github.com/espressif/esp-idf/issues/13754
2024-08-26 13:13:50 +03:00
Jiang Jiang Jian
e1f1586c07 Merge branch 'bugfix/dpp_auth_failure_v5.1' into 'release/v5.1'
fix(wpa_supplicant):Deinit old dpp authentication data after receiving config.(v5.1)

See merge request espressif/esp-idf!32433
2024-08-26 16:08:50 +08:00
Jiang Jiang Jian
264690591d Merge branch 'fix/netif_ppp_ip6_autoconfig_v5.1' into 'release/v5.1'
fix(esp_netif): Fix missing IPv6 autoconfig for PPP netifs (v5.1)

See merge request espressif/esp-idf!32180
2024-08-26 14:54:02 +08:00
Jiang Jiang Jian
386d49f132 Merge branch 'bugfix/fix_some_ble_bugs_cjh_v5.1' into 'release/v5.1'
Fixed some BLE bugs 240812 (backport v5.1)

See merge request espressif/esp-idf!32794
2024-08-26 14:52:05 +08:00
Jiang Jiang Jian
090d0e2445 Merge branch 'contrib/github_pr_14314_v5.1' into 'release/v5.1'
perf(gcm): shrink Shoup table and tune GCM loop (GitHub PR) (v5.1)

See merge request espressif/esp-idf!32998
2024-08-26 14:51:43 +08:00
Jiang Jiang Jian
00a0acfc23 Merge branch 'bugfix/fix_ble_resolve_adv_data_v5.1' into 'release/v5.1'
fix(ble/bluedroid): Fixed memory out-of-bounds issue when parsing adv data (v5.1)

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

See merge request espressif/esp-idf!32593
2024-08-26 14:42:08 +08:00
Island
b9c2accce9 Merge branch 'docs/add_ble_feature_status_table_v5.1' into 'release/v5.1'
docs(ble): Added BLE feature support status (v5.1)

See merge request espressif/esp-idf!32924
2024-08-26 14:02:48 +08:00
Jiang Jiang Jian
4def81ec23 Merge branch 'bugfix/fix_some_wifi_bugs_240823_v5.1' into 'release/v5.1'
fix(wifi): fix some wifi bugs 240821(Backport v5.1)

See merge request espressif/esp-idf!33068
2024-08-26 13:51:44 +08:00
Rahul Tank
b3a30e28a6 Merge branch 'fix/change_bt_hci_log_to_nimble_nomenclature_v5.1' into 'release/v5.1'
fix(nimble): Added BT_HCI_LOG_INCLUDED macro into esp nimble configuration according to nimble nomenclature (v5.1)

See merge request espressif/esp-idf!32956
2024-08-26 11:56:32 +08:00
wuzhenghui
2a48be3a9d change(esp_hw_support): collect retention link priority definition 2024-08-26 11:22:30 +08:00
muhaidong
3618f56443 fix(wifi): fix some wifi bugs 240821
1. fixed association refused temporarily issue.
2. give some information when password length mismatch authmode threshold.
3. fix reset connection fail issue.
2024-08-24 14:17:02 +08:00
Astha Verma
20c2a13767 fix(nimble): Added BT_HCI_LOG_INCLUDED macro according to nimble nomenclature 2024-08-24 11:04:38 +05:30
David Čermák
95647a5bf2 Merge branch 'backport/esp_netif_get_ip6addr_should_be_valid_v51' into 'release/v5.1'
fix(esp_netif): netif should return only valid addr(Backportv5.1)

See merge request espressif/esp-idf!32159
2024-08-23 21:01:17 +08:00
chenjianhua
1743d22f08 fix(bt/bluedroid): Fixed work queue delete when create thread failed 2024-08-23 16:56:54 +08:00
chenjianhua
821977402c feat(bt/bluedroid): Report HCI error code to app when command fails 2024-08-23 16:56:45 +08:00
chenjianhua
5c50fac22a fix(bt/bluedroid): Fixed BLE create conn cancel when conn already exist 2024-08-23 16:56:45 +08:00
chenjianhua
f8ad2871e6 feat(bt/bluedroid): Add print and assert when failed to alloc memory 2024-08-23 16:56:45 +08:00
Jiang Jiang Jian
df432b8508 Merge branch 'bugfix/fix_clkn_lost_after_modem_sleep_v5.1' into 'release/v5.1'
fix(bt/controller): Fixed bluetooth disconnect issue after modem sleep on ESP32 (v5.1)

See merge request espressif/esp-idf!33004
2024-08-23 16:07:46 +08:00
zwx
9c623a6fb6 fix(esp_netif): netif should return only valid addr 2024-08-23 15:11:50 +08:00
Jiang Jiang Jian
0670fbbe3d Merge branch 'bugfix/fix_mesh_ie_issue_from_leaf_to_root_v5.1' into 'release/v5.1'
fix(wifi/mesh): clear the rootless state in mesh ie when changing from leaf to root (v5.1)

See merge request espressif/esp-idf!32988
2024-08-23 13:49:05 +08:00
Rahul Tank
763d91a486 Merge branch 'bugfix/blesmp_getlist_bond_fail_v5.1' into 'release/v5.1'
fix(nimble): Fixed blesmp getbondlist issue (v5.1)

See merge request espressif/esp-idf!32824
2024-08-23 12:57:06 +08:00
linruihao
b22e9d00a8 fix(bt/controller): Fixed bluetooth disconnect issue after modem sleep on ESP32 2024-08-23 11:05:10 +08:00
aditi
ae9be2f03d fix(wpa_supplicant):Deinit old dpp authentication data after receiving config. 2024-08-23 10:36:36 +08:00
Jiang Jiang Jian
56e34547c9 Merge branch 'example/ping_invalid_ip6_fix_v5.1' into 'release/v5.1'
fix(example): Fixed updating recv addr for invalid packets (v5.1)

See merge request espressif/esp-idf!32991
2024-08-23 10:32:59 +08:00
zhanghaipeng
a70bb11950 feat(ble/controller): Support get BLE controller free heap size 2024-08-23 09:42:25 +08:00
zhanghaipeng
98f034be03 docs(blufi): Optimize documentation for Blufi example 2024-08-23 09:42:25 +08:00
zhanghaipeng
31e68c9d36 fix(ble/bluedroid): Fixed memory out-of-bounds issue when parsing adv data 2024-08-23 09:42:24 +08:00
shreeyash
c8f50920b2 fix(nimble): Fixed blesmp getbondlist issue 2024-08-22 21:33:59 +05:30
Jiang Jiang Jian
e026fd1f81 Merge branch 'docs/fix_typo_adc_oneshot_v5.1' into 'release/v5.1'
docs: fix a typo in adc_oneshot (v5.1)

See merge request espressif/esp-idf!33008
2024-08-22 19:44:26 +08:00
Yuhan Wei
7552a7df9a docs(ble): Updated example links in zh_CN ble-mesh-feature-list.rst 2024-08-22 17:04:52 +08:00
Island
7ba5cbf9d9 Merge branch 'bugfix/fix_bleqabr24_1152_v5.1' into 'release/v5.1'
Fixed BLE vendor HCI get controller status command on ESP32 (v5.1)

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

See merge request espressif/esp-idf!32260
2024-08-22 15:30:45 +08:00
Mahavir Jain
d4acd61a8a Merge branch 'fix/docs_nvs_encryption_update_v5.1' into 'release/v5.1'
docs(nvs_encryption): Updated the docs of nvs_encryption (v5.1)

See merge request espressif/esp-idf!32911
2024-08-22 11:38:03 +08:00
Linda
b0c5075fb1 docs: fix a typo in adc_oneshot 2024-08-22 10:19:37 +08:00
David Čermák
d784acb1f3 Merge branch 'fix/websocket_first_packet_v5.1' into 'release/v5.1'
fix(ws_transport): fix first fragment loosing during websocket connection (release-v5.1)

See merge request espressif/esp-idf!30434
2024-08-21 23:02:38 +08:00
David Čermák
b55fcb7175 Merge branch 'mqtt_update_v5.1' into 'release/v5.1'
change(mqtt): Updte esp_mqtt submodule (v5.1)

See merge request espressif/esp-idf!32940
2024-08-21 22:58:35 +08:00
Richard Allen
f45c9f14c3 change(mbedtls/port): optimize gcm_mult()
1) pre-shift GCM last4 to use 32-bit shift

On 32-bit architectures like Aarch32, RV32, Xtensa,
shifting a 64-bit variable by 32-bits is free,
since it changes the register representing half of the 64-bit var.
Pre-shift the last4 array to take advantage of this.

2) unroll first GCM iteration

The first loop of gcm_mult() is different from
the others. By unrolling it separately from the
others, the other iterations may take advantage
of the zero-overhead loop construct, in addition
to saving a conditional branch in the loop.
2024-08-21 18:26:31 +05:30
David Cermak
4c28f14c8c fix(esp_netif): Fix missing IPv6 autoconfig for PPP netifs
Closes https://github.com/espressif/esp-idf/issues/13713
2024-08-21 20:32:40 +08:00
Abhik Roy
5d0a95e503 fix(example): Fixed updating recv addr for invalid packets for ping
Closes https://github.com/espressif/esp-idf/issues/14197
2024-08-21 20:38:22 +10:00
zhangyanjiao
bb0a498018 fix(wifi/mesh): update the mesh ip_internal_network example 2024-08-21 18:04:00 +08:00
zhangyanjiao
3629e4b92a 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 18:03:50 +08:00
zhangyanjiao
8f4de25ff1 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 18:02:49 +08:00
hrushikesh.bhosale
7d173b6550 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:50:35 +05:30
Island
06e274fe49 Merge branch 'fix/ble_mesh_gh_pr_13135_v5.1' into 'release/v5.1'
fix(ble_mesh): Fix OP_TIME_SET and OP_TIME_STATUS (v5.1)

See merge request espressif/esp-idf!32771
2024-08-21 16:55:07 +08:00
Suren Gabrielyan
88e0b83a9f fix(ws_transport): utility functions minor improvments 2024-08-21 15:18:56 +08:00
Richard Allen
a97a796e18 fix(ws_transport): fixed server-key corruption
When first fragment is sent over HTTP during websocket
connection, defer buffering of fragment until after the
websocket server-key is validated.

This order is required because the first fragment buffering
overwrites the memory holding the server-key headers.

Fixes 2267d4b
Fixes https://github.com/espressif/esp-protocols/issues/396
PR https://github.com/espressif/esp-idf/pull/13724
2024-08-21 15:18:56 +08:00
Suren Gabrielyan
373e70dedd fix(ws_transport): fix first fragment losting during websocket connection 2024-08-21 15:18:56 +08:00
Island
a80e1dc83d Merge branch 'bugfix/fixed_c2_blufi_issue_when_use_only_4.2_adv_v5.1' into 'release/v5.1'
fix(ble): fixed blufi issue on ESP32-C2 (v5.1)

See merge request espressif/esp-idf!32944
2024-08-21 15:18:22 +08:00
chenjianhua
6d488f11b3 fix(bt): Update bt lib for ESP32(241c96c)
- Fixed BLE vendor HCI get controller status command
2024-08-20 19:31:13 +08:00
Krzysztof Budzynski
981cef41a8 Merge branch 'docs/delete_user_guides_three_esp32_dev_boards_v5.1' into 'release/v5.1'
docs: delete user guides of ESP32-DevKitC, ESP-WROVER-KIT and ESP32-PICO-DevKitM-2 (v5.1)

See merge request espressif/esp-idf!32750
2024-08-20 18:37:53 +08:00
Rahul Tank
071fed2d6f feat(nimble): BLE_GAP_EVENT_LINK_ESTAB event to ensure link established 2024-08-20 14:56:13 +05:30
Rahul Tank
4e6e08d483 Merge branch 'feat/allow_connect_during_scan_v5.1' into 'release/v5.1'
feat(nimble): Add support to allow connection during scanning (v5.1)

See merge request espressif/esp-idf!32845
2024-08-20 17:20:41 +08:00
Linda
d551c5cd6d docs: delete user guides of ESP32-DevKitC, ESP-WROVER-KIT and ESP32-PICO-DevKitM-2 2024-08-20 14:42:34 +08:00
Jiang Jiang Jian
97dabe74f6 Merge branch 'fix/esp32c5_rng_random_disable_v5.1' into 'release/v5.1'
fix(bootloader): update random disable api for ESP32-C5/C6 (v5.1)

See merge request espressif/esp-idf!32763
2024-08-20 11:36:07 +08:00
Jiang Jiang Jian
7c29c5f2b1 Merge branch 'bugfix/provide_random_addr_api_v5.1' into 'release/v5.1'
fix(wifi_prov): Added API to set random address (v5.1)

See merge request espressif/esp-idf!32327
2024-08-20 10:35:58 +08:00
zwl
bd48565e81 fix(ble): fixed blufi issue on ESP32-C2 2024-08-19 21:48:25 +08:00
Euripedes Rocha
f4d629d8f1 change(mqtt): Update esp_mqtt submodule
git log --oneline aa6f889fb4f6f743b3a550aa587713aabbdca1fc..cac1552e62b0474c162547b7cce345d7cd1aecfe

Detailed description of the changes:
* fix: clang analyzer unknown pragma warning
  - See merge request espressif/esp-mqtt!215
  - See commit https://github.com/espressif/esp-mqtt/commit/6bb5a5b
* fix: gcc analyzer unknown pragma warning
  - See merge request espressif/esp-mqtt!214
  - See commit https://github.com/espressif/esp-mqtt/commit/b527203
* feat: Moves deletion of expired messages to run at all states
  - Closes IDFGH-12831
  - Closes https://github.com/espressif/esp-mqtt/issues/278
  - See commit https://github.com/espressif/esp-mqtt/commit/32dada4
* fix: Handling of state in the outbox for enqueued QoS 0 messages
  - Closes IDFGH-12829
  - Closes https://github.com/espressif/esp-mqtt/issues/276
  - See commit https://github.com/espressif/esp-mqtt/commit/739cb2d
* fix: Instalation of gcovr in host tests was broken
  - See merge request espressif/esp-mqtt!211
  - See commit https://github.com/espressif/esp-mqtt/commit/6643c49
* Allow to publish using only topic alias on MQTT5
  - Closes IDFGH-12735
  - Fix: Allow to publish using only topic alias on MQTT5 (espressif/esp-mqtt@0071aca)
* refactor: replaced heap mock with Linux-compatible heap component
  - See merge request espressif/esp-mqtt!208
  - See commit https://github.com/espressif/esp-mqtt/commit/8b0b43e
* fix: gcc -fanalyzer warnings
  - See merge request espressif/esp-mqtt!209
  - See commit https://github.com/espressif/esp-mqtt/commit/8bc3bff
* fix: Use catch from component manager
  - See merge request espressif/esp-mqtt!210
  - See commit https://github.com/espressif/esp-mqtt/commit/53e0cc7
* fix: Fix host test for github ci.
  - Closes IDF-8883
  - See commit https://github.com/espressif/esp-mqtt/commit/b43d93c
2024-08-19 15:20:55 +02:00
Yuhan Wei
5f9391d751 docs(ble): Updated ble fast provision example link in ble-mesh-faq.rst 2024-08-19 17:20:53 +08:00
Yuhan Wei
84ec5c013d docs(ble): Updated the support status for NimBLE LE Power Control feature 2024-08-19 11:52:44 +08:00
Pat Erley
cc32d8c96c 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:04:02 +08:00
Sergei Silnov
d38afc77db Merge branch 'fix/component_manager_load_all_local_components_v5.1' into 'release/v5.1'
fix: component manager load all component dirs even set(COMPONENTS ...) (v5.1)

See merge request espressif/esp-idf!32040
2024-08-16 19:39:04 +08:00
Yuhan Wei
7925d3c54d docs(ble): Updated the feature status of nimble host 2024-08-16 18:07:38 +08:00
Yuhan Wei
7a387c70ca docs(ble): Updated Title in the bluetooth API reference files 2024-08-16 17:57:13 +08:00
Yuhan Wei
dbefde37a5 docs(ble): Added ble static images 2024-08-16 17:36:48 +08:00
Rahul Tank
61edc67100 feat(nimble): Add support to allow connection during scanning 2024-08-16 15:05:39 +05:30
Yuhan Wei
60fa6032a8 docs(ble): Added BLE feature support status 2024-08-16 17:35:06 +08:00
Sergei Silnov
ac0c497226 Merge branch 'ci/remove_pacman_tests' into 'release/v5.1'
ci: remove idf-component-manager tests in idf

See merge request espressif/esp-idf!32880
2024-08-16 17:05:53 +08:00
Jiang Jiang Jian
446ec3a899 Merge branch 'feature/ipc_noblocking_call_v5.1' into 'release/v5.1'
feat(ipc): Adds a new no blocking IPC call (v5.1)

See merge request espressif/esp-idf!28443
2024-08-15 22:29:51 +08:00
Fu Hanxi
0ce01df3c5 test: improve test_dependency_lock test case 2024-08-15 20:42:06 +08:00
Fu Hanxi
195efb38cb fix: component manager load all component dirs even set(COMPONENTS ...) 2024-08-15 20:42:06 +08:00
Fu Hanxi
7ac07039ea ci: remove idf-component-manager tests in idf 2024-08-15 14:38:42 +02:00
Jiang Jiang Jian
99395b281d Merge branch 'bugfix/heap_corrupt_in_bt_mem_release_on_esp32_v5.1' into 'release/v5.1'
fix(bt): Fix heap corruption in the call of esp_bt_mem_release on ESP32 (v5.1)

See merge request espressif/esp-idf!32803
2024-08-15 19:56:36 +08:00
Jiang Jiang Jian
f6d8ff4356 Merge branch 'bugfix/avoid_offchan_ftm_retries_v5.1' into 'release/v5.1'
fix(wifi): Avoid internal retries for offchannel FTM Requests (Backport v5.1)

See merge request espressif/esp-idf!32869
2024-08-15 16:51:05 +08:00
Marius Vikhammer
8a54136147 Merge branch 'test/fix_flaky_sched_time_test_v5.1' into 'release/v5.1'
test(freertos): Fixed flaky scheduling time test (v5.1)

See merge request espressif/esp-idf!32850
2024-08-15 10:13:00 +08:00
Nachiket Kukade
0626574e68 fix(wifi): Avoid internal retries for offchannel FTM Requests 2024-08-14 18:33:54 +05:30
Wang Mengyang
4b7286d083 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-14 19:00:15 +08:00
Island
c608177cf9 Merge branch 'docs/optimized_ble_adv_data_type_v5.1' into 'release/v5.1'
docs(ble/bluedroid): Optimize BLE example for setting advertising data (v5.1)

See merge request espressif/esp-idf!32757
2024-08-14 15:53:19 +08:00
Sudeep Mohanty
4a80393066 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 09:33:29 +02:00
Wang Meng Yang
670b6c76e2 Merge branch 'bugfix/fix_ble_channel_map_update_v5.1' into 'release/v5.1'
fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(f583012) (v5.1)

See merge request espressif/esp-idf!32583
2024-08-14 10:50:08 +08:00
Jiang Jiang Jian
a5c6b4dde5 Merge branch 'fix/disable_timer_wakeup_source_with_auto_sleep_off_v5.1' into 'release/v5.1'
fix(esp_pm): disable timer wakeup source with auto light-sleep off (v5.1)

See merge request espressif/esp-idf!32620
2024-08-14 10:44:04 +08:00
Jiang Jiang Jian
90a2abd415 Merge branch 'bugfix/fix_newlib_nano_float_printf_issues_v5.1' into 'release/v5.1'
fix newlib nano float printf issues (backport v5.1)

See merge request espressif/esp-idf!32514
2024-08-14 10:42:38 +08:00
Rahul Tank
0ef8d9321d Merge branch 'bugfix/handle_linked_om_blufi_v5.1' into 'release/v5.1'
fix(nimble) Added change to handle linked om data at blufi layer (v5.1)

See merge request espressif/esp-idf!31976
2024-08-14 00:56:24 +08:00
Alexey Gerenkov
5be911560a Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20240726_v5.1' into 'release/v5.1'
feat(tools): update openocd version to v0.12.0-esp32-20240726 (v5.1)

See merge request espressif/esp-idf!32606
2024-08-13 23:34:34 +08:00
Rahul Tank
9481ed111f fix(nimble) Added change to handle linked om data at blufi layer 2024-08-13 16:54:42 +05:30
Fu Hanxi
92fcaa346a ci: fix test_bt_hid path 2024-08-13 11:23:02 +02:00
zhanghaipeng
f653a21793 feat(ble/bluedroid): Support getting BLE address type in bond list 2024-08-13 12:13:08 +08:00
zhanghaipeng
75430acf9d docs(ble/bluedroid): Optimize documentation for BLE connection parameter updates 2024-08-13 12:13:08 +08:00
zhanghaipeng
824bd4342b fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(f583012)
- Fix BLE channel map update when latency is not zero
2024-08-13 12:13:08 +08:00
chenjianhua
13527b0e91 feat(bt): Update bt lib for ESP32-C3 and ESP32-S3(4e58df9)
- Support enhanced BLE TX power setting and getting
2024-08-13 12:13:08 +08:00
Wang Meng Yang
eeef1103ec Merge branch 'fix/change_bt_example_sdkconfig_name_v5.1' into 'release/v5.1'
fix(bt): change example sdkconfig name to sdkconfig.ci.test(backport v5.1)

See merge request espressif/esp-idf!32806
2024-08-13 11:37:16 +08:00
gongyantao
badc32ad6e fix(bt): change example sdkconfig name to sdkconfig.ci.test 2024-08-13 09:54:48 +08:00
Island
059732a311 Merge branch 'feat/print_the_ble_mac_when_init_5.1' into 'release/v5.1'
feat(ble): Print out the BT mac when the controller is initialized

See merge request espressif/esp-idf!32732
2024-08-12 20:15:06 +08:00
Wang Meng Yang
18f4c90ef5 Merge branch 'bugfix/fix_hidh_integrity_check_bug_v5.1' into 'release/v5.1'
fix(esp_hid): Loose the check of input report length to be more compatible[backport 5.1]

See merge request espressif/esp-idf!32722
2024-08-12 19:09:14 +08:00
morris
5b74ce1f9e Merge branch 'docs/fix_a_typo_v5.1' into 'release/v5.1'
docs: Fix a small typo in adc_calibration.rst (v5.1)

See merge request espressif/esp-idf!32717
2024-08-12 18:30:06 +08:00
Shu Chen
e1b83bac56 Merge branch 'backport/make_ot_task_queue_non_permanent_blocking_51' into 'release/v5.1'
fix(openthread): make ot task queue sending non-permanent blocking(Backport 5.1)

See merge request espressif/esp-idf!32632
2024-08-12 16:04:08 +08:00
Mahavir Jain
3697add29c Merge branch 'change/exclude_cves_v5.1' into 'release/v5.1'
change: exclude CVEs that do not impact ESP-IDF components (v5.1)

See merge request espressif/esp-idf!32661
2024-08-12 12:42:26 +08:00
Mahavir Jain
665585d8a5 fix(rng): avoid clearing PMU_PERIF_I2C_RSTB in random disable API for C6
This configuration bit is required for ADC operation as well and hence
should not be cleared in the RNG API sequence.

Ideally, the ADC driver should take care of initializing this bit but
still the RNG layer change is required because of interleaved API usage
scenario described in following linked issue.

Closes https://github.com/espressif/esp-idf/issues/14124
Closes https://github.com/espressif/esp-idf/issues/14280
2024-08-12 10:09:15 +05:30
zhanghaipeng
a9db5f07bf docs(ble/bluedroid): Optimize BLE example for setting advertising data 2024-08-12 11:38:02 +08:00
Island
3b2520943d Merge branch 'bugfix/fixed_c6_h2_vendor_hci_master_v5.1' into 'release/v5.1'
Bugfix/fixed c6 h2 vendor hci master (v5.1)

See merge request espressif/esp-idf!32741
2024-08-12 10:49:26 +08:00
Jiang Guang Ming
09b1844a0a feat(newlib): add test case for printf float 2024-08-12 09:59:13 +08:00
Jiang Guang Ming
97c5bc51e6 fix(esp_rom): add new rom caps ESP_ROM_HAS_NEWLIB_NANO_PRINTF_FLOAT_BUG 2024-08-12 09:57:07 +08:00
Alexey Gerenkov
1bdf3d3bc4 feat(tools): update openocd version to v0.12.0-esp32-20240726 2024-08-11 12:02:59 +02:00
zwl
8397aaa29d fix(bluetooth/controller): fixed get controller status vendor hci command error on ESP32C6 2024-08-10 13:06:45 +08:00
Shen Weilong
a981024b98 feat(ble): Print out the BT mac when the controller is initialized 2024-08-09 20:55:16 +08:00
Krzysztof Budzynski
c3962392bf Merge branch 'docs/remove_user_guide_for_esp32_ethernet_migration_v5.1' into 'release/v5.1'
docs: remove user guide for esp32-ethernet-kit migration (v5.1)

See merge request espressif/esp-idf!32588
2024-08-09 16:27:59 +08:00
liqigan
f0add1b1c1 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:55:06 +08:00
shenmengjing
7e86ed064c docs: Fix a small typo in adc_calibration.rst 2024-08-09 14:45:44 +08:00
morris
aeffb97301 Merge branch 'contrib/github_pr_14310_v5.1' into 'release/v5.1'
fix(gptimer): remove incorrect param from example (GitHub PR) (v5.1)

See merge request espressif/esp-idf!32686
2024-08-09 12:31:59 +08:00
Island
c9c26a6afc Merge branch 'fix/ble_mesh_github_pr_14140_v5.1' into 'release/v5.1'
fix(ble-mesh): don't use dangling pointer in nimble gatt service (v5.1)

See merge request espressif/esp-idf!32615
2024-08-09 10:33:15 +08:00
Rahul Tank
5fe3559796 Merge branch 'feat/set_data_length_enhancement_v5.1' into 'release/v5.1'
feat(nimble): Add extra handling for set data len packet event (v5.1)

See merge request espressif/esp-idf!32624
2024-08-08 21:13:59 +08:00
Rahul Tank
5af88badfa feat(nimble): Add extra handling for set data len packet event 2024-08-08 12:03:36 +05:30
LonerDan
3e53dff916 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:50 +08:00
KonstantinKondrashov
d28ecb3345 feat(CI): Add targets into manifest file for esp_flash_stress test 2024-08-07 15:13:17 +03:00
KonstantinKondrashov
17c3f85a89 feat(ipc): Adds a new no blocking IPC call 2024-08-07 15:13:11 +03:00
KonstantinKondrashov
6f46db3de8 fix(spi_flash): Fix stuck during flash operation
When a task was not pinned to a certain CPU.
2024-08-07 15:00:52 +03:00
Wang Meng Yang
03f66399a1 Merge branch 'fix/hfp_pcm_api_set_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Add PCM configuration about pcm frame sync signal shape (backport v5.1)

See merge request espressif/esp-idf!32481
2024-08-07 19:06:24 +08:00
Aditya Patwardhan
a9b0e12787 Merge branch 'fix/incorrect_config_name_v5.1' into 'release/v5.1'
Fix encrypt image instead of the partition optimisation not being enabled (v5.1)

See merge request espressif/esp-idf!32641
2024-08-07 19:01:17 +08:00
Rahul Tank
1fc491ac57 Merge branch 'bugfix/fix_proxy_example_assert_v5.1' into 'release/v5.1'
fix(nimble): Fixed assert issue in proximity_sensor example (v5.1)

See merge request espressif/esp-idf!32628
2024-08-07 18:03:46 +08:00
Wang Meng Yang
79aa71958c Merge branch 'feature/ble_example_pytest_v5.1' into 'release/v5.1'
add pytest for classic bt example(backport v5.1)

See merge request espressif/esp-idf!32544
2024-08-07 14:19:42 +08:00
Frantisek Hrbata
efa758c6a3 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:25:48 +02:00
harshal.patil
7a167f4b9a fix(bootloader_support): Fix encrypt image instead of the partition feature not being enabled 2024-08-06 13:45:35 +05:30
Island
6892f1a08d Merge branch 'bugfix/fixed_ble_issues_on_c6_h2_c2_0731_v5.1' into 'release/v5.1'
Bugfix/fixed ble issues on c6 h2 c2 0731 (v5.1)

See merge request espressif/esp-idf!32462
2024-08-06 16:01:17 +08:00
zwx
760bdd1cfc fix(openthread): make ot task queue sending non-permanent blocking 2024-08-06 14:10:55 +08:00
gongyantao
2837193ee6 change(ci): remove device name check in bt example 2024-08-06 14:09:43 +08:00
gongyantao
e55c9c36a0 fix(bt): get remote device name from eir data 2024-08-06 14:09:38 +08:00
gongyantao
cda15079a2 feat(bt/example): add ci sdkconfig for bt examples 2024-08-06 14:09:25 +08:00
wuzhenghui
41bff2fdfa fix(esp_pm): configure timer wakeup source with auto light-sleep congiguration 2024-08-06 11:06:00 +08:00
Mario Schlegel
c237d010e4 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-06 10:43:57 +08:00
Rahul Tank
5c57dfe949 Merge branch 'bugfix/adjust_tx_power_lvl_boundary_v5.1' into 'release/v5.1'
fix(nimble): Modify Advertising Tx power levels (v5.1)

See merge request espressif/esp-idf!32563
2024-08-05 20:38:40 +08:00
Ivan Grokhotkov
9be8ed546e Merge branch 'fix/fatfs_f_mount_immediately_after_formatting_v5.1' into 'release/v5.1'
fix(vfs): FATFS mount immediately after format if mount failed (v5.1)

See merge request espressif/esp-idf!32381
2024-08-05 20:32:32 +08:00
xiongweichao
efd8ee03e5 fix(bt/controller): Fixed disconnection issue
- Fixed the issue of disconnection caused by updating the channel map in sniff mode
2024-08-05 20:01:56 +08:00
chenqingqing
d36f5166fe fix(bt/bluedroid): Add PCM configuration about pcm frame sync signal shape 2024-08-05 20:01:56 +08:00
Rahul Tank
71ad2918aa fix(nimble): Fixed assert issue in proximity_sensor example 2024-08-05 16:57:50 +05:30
renpeiying
1fec545f4e docs: remove user guide for esp32-ethernet-kit migration 2024-08-05 17:41:43 +08:00
shenmengjing
06780211b4 docs: Delete ESP32-S2-Kaluga-Kit related user guide files 2024-08-05 16:10:23 +08:00
Rahul Tank
a367c5da00 fix(nimble): Modify Advertising Tx power levels 2024-08-05 10:57:48 +05:30
Island
d7bf5a1eac Merge branch 'bugfix/fix_ble_security_param_v5.1' into 'release/v5.1'
fix(ble/bluedroid): Fixed issue with resetting BLE security parameters during initialization (v5.1)

See merge request espressif/esp-idf!32507
2024-08-02 17:31:28 +08:00
Island
69ed92c95c Merge branch 'bugfix/fix_ble_gattc_app_unregister_v5.1' into 'release/v5.1'
Bugfix/fix ble gattc app unregister (v5.1)

See merge request espressif/esp-idf!32440
2024-08-02 17:30:21 +08:00
Roland Dobai
aba4f87e38 Merge branch 'fix/setuptools_constraint_v5.1' into 'release/v5.1'
fix: ensure the constraint file is followed also for setuptools (v5.1)

See merge request espressif/esp-idf!32547
2024-08-02 17:12:37 +08:00
Frantisek Hrbata
518dc6f412 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 09:36:05 +02:00
Yuan Hong Hui
20b31e6b63 feat(bt):add pytest for classic bt example 2024-08-02 15:24:18 +08:00
Rahul Tank
f49f9795dc Merge branch 'bugfix/add_return_value_to_rpa_to_api_v5.1' into 'release/v5.1'
fix(nimble): Add return value to RPA Timeout API (v5.1)

See merge request espressif/esp-idf!32477
2024-08-01 20:31:06 +08:00
zhanghaipeng
3a163fe2cf fix(ble/bluedroid): Fixed issue with resetting BLE security parameters during initialization 2024-08-01 16:18:05 +08:00
gaoxu
f964342507 fix(gpio): correct usb dp gpio pullup disable function v5.1 2024-08-01 11:26:06 +08:00
Shu Chen
21ed2cbd6a Merge branch 'backport/fix_154_next_operation_for_multi_event_v51' into 'release/v5.1'
fix(ieee802154): refactor the next operation logic for multiple events(Backport v5.1)

See merge request espressif/esp-idf!32386
2024-08-01 10:59:13 +08:00
Shu Chen
9dad9f9704 Merge branch 'backport/openthread_related_bacport_to_5_1' into 'release/v5.1'
Backport some openthread related features (Backport v5.1)

See merge request espressif/esp-idf!32249
2024-08-01 10:48:35 +08:00
Rahul Tank
966988af45 fix(nimble): Add return value to RPA Timeout API 2024-07-31 14:46:33 +05:30
Shu Chen
b6b4727c58 Merge branch 'backport/add_ot_ts_lock_check_v51' into 'release/v5.1'
feat(openthread): add task switching lock holder check(Backport v5.1)

See merge request espressif/esp-idf!32452
2024-07-31 16:55:49 +08:00
zwx
bfed357f37 fix(ieee802154): refacted the next operation logic for multiple events 2024-07-31 16:40:09 +08:00
zwl
fde374a78e fix: fixed directed adv can't be conneted when adv filter is 0x2 on ESP32C2 2024-07-31 14:38:52 +08:00
zwl
c8b7ce6f11 fix: fixed occasional wdt issue in multi-connection scenarios on ESP32H2 2024-07-31 14:38:52 +08:00
zwx
554ca91716 feat(openthread): add task switching lock holder check 2024-07-31 11:36:26 +08:00
Island
490d5e7211 Merge branch 'feat/save_ble_log_to_flash_0605_v5.1' into 'release/v5.1'
ble: save ble log to flash on ESP32C6 (v5.1)

See merge request espressif/esp-idf!32396
2024-07-31 11:29:30 +08:00
Jiang Jiang Jian
1465707c71 Merge branch 'bugfix/fix_beacon_timeout_issue_in_mesh_v5.1' into 'release/v5.1'
fix(wifi/mesh): fix the beacon timeout issue in mesh (v5.1)

See merge request espressif/esp-idf!32424
2024-07-31 11:01:23 +08:00
zhanghaipeng
2330510635 fix(ble/bluedroid): Fix incorrect state issue when unregistering BLE GATTC application 2024-07-30 19:12:40 +08:00
zhangyanjiao
2b3df95766 fix(wifi/mesh): fix the beacon timeout issue in mesh 2024-07-30 11:36:16 +08:00
morris
5a26d8ae8e Merge branch 'feat/support_psram_aps3204l_v5.1' into 'release/v5.1'
psram: support APS3204L (v5.1)

See merge request espressif/esp-idf!32392
2024-07-29 17:13:48 +08:00
Rahul Tank
75b87ea1bc Merge branch 'bugifx/zero_initilize_variable_v5.1' into 'release/v5.1'
fix(nimble): Zero initialize variable to avoid garbage value (v5.1)

See merge request espressif/esp-idf!32368
2024-07-29 13:11:14 +08:00
zwl
d26a0ba71f fix(ble): fixed tx memory leak issue when controller disable 2024-07-29 11:56:23 +08:00
zwl
035bb3176d fix(ble): fixed wdt issue when print key controller info on ESP32-C6 and ESP32-H2 2024-07-29 11:56:23 +08:00
zwl
70e5c79476 feat(bluetooth/controller): support switching log output mode on ESP32-C2 2024-07-29 11:56:23 +08:00
zwl
10c8b0c3b8 feat(bluetooth/controller): support switching log output mode on ESP32-C6 and ESP32-H2 2024-07-29 11:56:23 +08:00
zwl
11f0fd8f8e feat(bluetooth/controller): storage ble controller log to flash on ESP32C2 2024-07-29 11:56:23 +08:00
zwl
cfb5d9d224 feat(bluetooth/controller): storage ble controller log to flash on ESP32C6 and ESP32H2 2024-07-29 11:56:23 +08:00
Armando
c330a9ef67 feat(psram): support APS3204L 2024-07-29 11:43:33 +08:00
Rahul Tank
1d23173715 fix(nimble): Zero initialize variable to avoid garbage value 2024-07-26 21:33:00 +05:30
Adam Múdry
b57e0a2d49 fix(vfs): FATFS mount immediately after format if mount failed 2024-07-26 17:54:51 +02:00
Sudeep Mohanty
7b5508b6ff 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-07-26 15:55:49 +02:00
Jiang Jiang Jian
ecdd485305 Merge branch 'bugfix/handle_no_pmkid_case_owe_v5.1' into 'release/v5.1'
Recompute keys in OWE incase of PMKID absence or mismatch (Backport v5.1)

See merge request espressif/esp-idf!32335
2024-07-26 19:07:41 +08:00
Jiang Jiang Jian
6457a4b824 Merge branch 'fix/stack_overflow_in_example_spp_initiator_v5.1' into 'release/v5.1'
Fix/stack overflow in example spp initiator(backport v5.1)

See merge request espressif/esp-idf!32234
2024-07-26 17:59:18 +08:00
Island
2e08930e9c Merge branch 'bugfix/fix_ble_cannot_create_conn_v5.1' into 'release/v5.1'
fix(ble/bluedroid): Fixed BLE cannot create connection(v5.1)

See merge request espressif/esp-idf!32309
2024-07-26 15:43:36 +08:00
Jiang Jiang Jian
0ca290deb0 Merge branch 'bugfix/fix_some_ble_bugs_cjh_v5.1' into 'release/v5.1'
Fixed some BLE bugs 240723 (backport v5.1)

See merge request espressif/esp-idf!32301
2024-07-26 14:19:55 +08:00
Jiang Jiang Jian
db09005c83 Merge branch 'bugfix/fix_coex_loadprohibit_issue_v5.1' into 'release/v5.1'
fix(coex): Fixed coexist scheme phase index overflow issue (backport v5.1)

See merge request espressif/esp-idf!32294
2024-07-26 11:04:05 +08:00
zhanghaipeng
bea98fdd1e fix(ble/bluedroid): Fixed BLE cannot create connection 2024-07-26 10:38:10 +08:00
Aditya Patwardhan
9d3f9e943e Merge branch 'bugfix/existing_mmap_region_offset_v5.1' into 'release/v5.1'
fix(esp_mm): for existing mmap region, consider new offset for virtual addr (v5.1)

See merge request espressif/esp-idf!32114
2024-07-25 17:10:19 +08:00
Xu Si Yu
28b785077b feat(openthread): support restoring vendor properties of rcp 2024-07-25 15:58:28 +08:00
Xu Si Yu
ffe3ce3ed0 feat(openthread): support changing openthread version information 2024-07-25 15:58:20 +08:00
Xu Si Yu
c743807de8 fix(common_components): unregister event handler if wifi disconnect and stop reconnecting 2024-07-25 15:57:56 +08:00
Xu Si Yu
e6f76a17a1 feat(openthread): update openthread submodule 2024-07-25 15:57:56 +08:00
Shyamal Khachane
39d284ba33 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:33:42 +05:30
Rahul Tank
79012cb3e2 fix(wifi_prov): Added API to set random address 2024-07-24 20:58:04 +05:30
zhiweijian
d41dfab0f6 feat(bt/controller): support mesh duplicate with extend scan 2024-07-23 20:07:43 +08:00
linruihao
8ea1299395 fix(coex): Update bt lib for ESP32-C3 and ESP32-S3(e4ba7f6)
- Fixed coexist LoadProhibited issue
2024-07-23 20:07:38 +08:00
zhanghaipeng
f004ac85e2 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-23 20:07:32 +08:00
chenjianhua
6ce37484e9 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-23 20:07:23 +08:00
linruihao
8acb4bc521 fix(coex): Fixed coexist scheme phase index overflow issue 2024-07-23 17:46:24 +08:00
Jiang Jiang Jian
9069767c9e Merge branch 'bugfix/11r_disable_sdkconfig_v5.1' into 'release/v5.1'
fix(wifi): Ignore 11R, ENT AP when disabled in sdkconfig

See merge request espressif/esp-idf!32241
2024-07-23 15:05:48 +08:00
Marius Vikhammer
897a7743de Merge branch 'fix/lp_i2c_generates_spurious_start_cond_v5.1' into 'release/v5.1'
fix(lp-i2c): Fixed the generation of spurious I2C start with lp-i2c (v5.1)

See merge request espressif/esp-idf!32109
2024-07-23 14:40:52 +08:00
Jiang Jiang Jian
fab1411da1 Merge branch 'bugfix/remove_duplicate_fn_dpp_v5.1' into 'release/v5.1'
wifi: backport some dpp fixes (v5.1)

See merge request espressif/esp-idf!32262
2024-07-23 10:48:23 +08:00
Rahul Tank
5211ea3e78 Merge branch 'bugfix/increase_timer_task_depth_v5.1' into 'release/v5.1'
fix(nimble): Increase Timer stack size for nimble application (v5.1)

See merge request espressif/esp-idf!32271
2024-07-22 20:10:59 +08:00
Rahul Tank
320257a60b fix(nimble): Increase Timer stack size for nimble application 2024-07-22 15:52:10 +05:30
Kapil Gupta
3d84716864 fix(esp_wifi): backport some dpp fixes 2024-07-22 12:02:43 +05:30
Island
864f4713a7 Merge branch 'fix/ble_mesh_24_76_v5.1' into 'release/v5.1'
fix(ble_mesh): fixed BLEMESH24-76_v5.1

See merge request espressif/esp-idf!32228
2024-07-22 14:05:29 +08:00
Shreyas Sheth
8c91bf7e9f fix(wifi): Ignore 11R, ENT AP when disabled in sdkconfig 2024-07-19 12:41:59 +05:30
gongyantao
9955258770 feat(bt): add bt address printing for all bt examples 2024-07-19 11:49:01 +08:00
gongyantao
07b1e674ad fix(bt): fix uTask stack overflow in bt example spp_initiator 2024-07-19 11:47:19 +08:00
Rahul Tank
cd4714dd01 Merge branch 'bugfix/reset_irk_when_all_unpair_v5.1' into 'release/v5.1'
fix(nimble): Fixed BLE security vulnerability when using fixed IRK (v5.1)

See merge request espressif/esp-idf!32158
2024-07-18 22:49:28 +08:00
Jiang Jiang Jian
d65755e8de Merge branch 'bugfix/fix_mesh_xon_request_timeout_issue_v5.1' into 'release/v5.1'
fix(wifi/mesh): fix the issue that xon request timeout constantly when root reboot (v5.1)

See merge request espressif/esp-idf!32183
2024-07-18 21:36:19 +08:00
Island
51acf1367b Merge branch 'feat/support_default_tx_level_for_esp32h2_esp32c6_esp32c2_v5.1' into 'release/v5.1'
Feat/support default tx level for esp32h2 esp32c6 esp32c2 v5.1

See merge request espressif/esp-idf!32193
2024-07-18 19:33:50 +08:00
morris
a23a3703b5 Merge branch 'bugfix/rmt_memory_power_up_v5.1' into 'release/v5.1'
fix(rmt): power up memory block (v5.1)

See merge request espressif/esp-idf!32173
2024-07-18 15:13:41 +08:00
Rahul Tank
0095bc4b7f fix(nimble): Fixed BLE security vulnerability when using fixed IRK 2024-07-18 09:55:33 +05:30
zhangyanjiao
ee421a11ba 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-18 11:46:23 +08:00
luoxu
5507b1ee37 fix(ble_mesh): fixed BLEMESH24-76 2024-07-18 11:39:17 +08:00
zwl
4cdb166b36 feat(bluetooth/controller): support default tx power configurable on ESP32C2 2024-07-18 10:44:29 +08:00
zwl
115af31441 feat(bluetooth/controller): support default tx power configurable on ESP32C6 and ESP32H2 2024-07-18 10:43:07 +08:00
Jiang Jiang Jian
f50aaeac10 Merge branch 'bugfix/wps_bug_v5.1' into 'release/v5.1'
fix(wpa_supplicant):Fix for setting wps status fail when connection fails(v5.1)

See merge request espressif/esp-idf!31222
2024-07-17 21:04:41 +08:00
Island
d82f9162df Merge branch 'feat/optimize_bt_porting_hci_0628_5.1' into 'release/v5.1'
feat(bluetooth/controller): adopting new HCI layer code and support UHCI...

See merge request espressif/esp-idf!32132
2024-07-17 19:29:37 +08:00
morris
fde22b2a2a fix(rmt): power up memory block 2024-07-17 13:53:35 +08:00
aditi
03f7fad2fa fix(wpa_supplicant):Fix for setting wps status fail when connection fails 2024-07-17 11:17:34 +05:30
Mahavir Jain
ef80a09a4d Merge branch 'bugfix/c5_mpi_ecc_power_mode_v5.1' into 'release/v5.1'
fix(hal): correct mpi/ecc peripheral power up sequence for ESP32-C5 (v5.1)

See merge request espressif/esp-idf!31866
2024-07-17 13:03:01 +08:00
zwl
6f6d163d30 fix(ble): fixed nimble host only build error 2024-07-16 13:23:41 +08:00
zwl
c2bf1ff2b5 feat(bluetooth/controller): update nimble host to adapt hci layer 2024-07-16 13:23:41 +08:00
zwl
4ec72b01fb feat(bluetooth/controller): add default cts and rts macro definition 2024-07-16 13:23:41 +08:00
zwl
b7ea3416c3 feat(bluetooth/controller): adopting new HCI layer code and support UHCI function on ESP32-C6 and ESP32-H2 2024-07-16 13:23:41 +08:00
zwl
c09892df4a feat(bluetooth/controller): adopting new HCI layer code on ESP32-C2 2024-07-16 13:23:41 +08:00
zwl
d7838290e5 feat(bluetooth/controller): optimize bt hci layer code 2024-07-16 13:23:41 +08:00
Jiang Jiang Jian
875e422021 Merge branch 'bugfix/fix_some_wifi_bugs_240715_v5.1' into 'release/v5.1'
fix(wifi): fix some wifi bugs 240715(Backport v5.1)

See merge request espressif/esp-idf!32137
2024-07-16 13:06:41 +08:00
Jiang Jiang Jian
e3dbf6af91 Merge branch 'bugfix/ld_acl_c_3576_v5.1' into 'release/v5.1'
fix(bt/controller): Removed an improper assertion in ACL link driver (v5.1)

See merge request espressif/esp-idf!32119
2024-07-16 11:52:32 +08:00
muhaidong
09054d31d8 fix(wifi): fix some wifi bugs 240715
1. update api esp_wifi_sta_get_rssi docs
2. fix disable gcmp choose pairwise cipher wrong issue
3. fix sta may join bad signal ap when set by signal
2024-07-15 20:30:48 +08:00
muhaidong
1f74339756 fix(wifi): fix configure gcmp failure issue 2024-07-15 20:04:09 +08:00
muhaidong
cd7eb3621a fix(wifi): fixed disable gcmp choose pairwise cipher wrong issue 2024-07-15 20:02:35 +08:00
muhaidong
c688060142 fix(doc): update api esp_wifi_sta_get_rssic docs
Closes https://github.com/espressif/esp-idf/issues/12685
2024-07-15 19:59:45 +08:00
muhaidong
335faac23f fix(wifi): annotate a rom function 2024-07-15 19:56:15 +08:00
Jin Cheng
1b848b6ef0 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:29:26 +08:00
Mahavir Jain
deab1da6f2 fix(esp_mm): for existing mmap region, consider new offset for virtual addr
While returning virtual address for existing memory mapped region, newly
supplied offset from the physical address was not getting considered.

This was a regression present from ESP-IDF 5.1 release.

Added test case in spi_flash component that fails without this fix.

Closes https://github.com/espressif/esp-idf/issues/13929
2024-07-15 12:42:45 +08:00
Jiang Jiang Jian
0b6f501aef Merge branch 'docs/optimized_ble_controller_api_references_esp32_v5.1' into 'release/v5.1'
docs(ble): Revised the esp32 controller API explanations (v5.1)

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

See merge request espressif/esp-idf!32080
2024-07-15 10:40:29 +08:00
morris
d97add7130 Merge branch 'fix/usb_hs_scheduler_backport_v5.1' into 'release/v5.1'
fix(usb/host): Fix occasional ISOC scheduler skipping transfers backport to v5.1

See merge request espressif/esp-idf!32085
2024-07-14 21:07:25 +08:00
Sudeep Mohanty
23bf06b231 fix(lp-i2c): Fixed the generation of spurious I2C start with lp-i2c
This commit fixes an issue with LP I2C and RTC I2C where in the
peripherals generated a spurious I2C start condition when initialized.
This caused some sensors to not respond properly to the following read
or write request.

Closes https://github.com/espressif/esp-idf/issues/14043
Closes https://github.com/espressif/esp-idf/issues/11608
2024-07-12 17:29:35 +02:00
Island
dc859c1e67 Merge branch 'feat/add_ble50_instant_v5.1' into 'release/v5.1'
Add support for BLE 5.0 instances in related events (v5.1)

See merge request espressif/esp-idf!31992
2024-07-12 14:52:56 +08:00
Sarvesh Bodakhe
67de87c6ba 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:03:30 +05:30
Sarvesh Bodakhe
23470b660e 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 12:03:06 +05:30
Tomas Rezucha
a774e0dfb5 fix(usb/host): Fix occasional ISOC scheduler skipping transfers 2024-07-12 08:18:45 +02:00
Wei Yu Han
d7960deda7 docs(ble): Removed trailing whitespaces 2024-07-12 09:15:05 +08:00
Wei Yu Han
3db28fbb04 docs(ble): Revised the explanation for esp_bt_mem_release and esp_bt_controller_mem_release 2024-07-12 08:54:17 +08:00
Alexey Gerenkov
cb194de911 Merge branch 'fix_coredump_build_error_v5.1' into 'release/v5.1'
fix(coredump): fix array out of the bounds error (v5.1)

See merge request espressif/esp-idf!32016
2024-07-11 21:46:07 +08:00
Jiang Jiang Jian
d049d69ab1 Merge branch 'feature/support_coex_pwr_v5.1' into 'release/v5.1'
feature/support coex pwr v5.1

See merge request espressif/esp-idf!32043
2024-07-11 20:45:23 +08:00
morris
4f169e1ecc Merge branch 'fix/usb_msc_test_backport_v5.1' into 'release/v5.1'
fix(usb/test): Update MSC device test for new console backport v5.1

See merge request espressif/esp-idf!32053
2024-07-11 20:20:23 +08:00
Tomas Rezucha
30060af790 fix(usb/test): Update MSC device test for new console 2024-07-11 11:09:46 +02:00
liuning
9aa89c2718 feat(wifi, coex): update libs to support feature and fix some issue 2024-07-11 11:24:30 +08:00
liuning
2c8de044a3 feat(wifi): support coex pwr 2024-07-11 11:24:10 +08:00
Rahul Tank
230dfcfe64 Merge branch 'bugfix/fix_example_menuconfig_error_v5.1' into 'release/v5.1'
fix(nimble): Update menuconfig option to consider 5.0 support (v5.1)

See merge request espressif/esp-idf!32037
2024-07-10 22:24:15 +08:00
Rahul Tank
1f736fb017 fix(nimble): Update menuconfig option to consider 5.0 support 2024-07-10 17:22:27 +05:30
Island
92584e3bde Merge branch 'bugfix/split_hci_log_in_nimble_v5.1' into 'release/v5.1'
fix(bt/nimble): split hci log in nimble (backport v5.1)

See merge request espressif/esp-idf!32000
2024-07-10 18:38:33 +08:00
zhanghaipeng
0c82c90bca fix(ble/bluedroid): Fixed BLE set adv param check 2024-07-10 12:24:37 +08:00
Mahavir Jain
c64c930f06 Merge branch 'contrib/github_pr_13945_v5.1' into 'release/v5.1'
fix(esp_http_client): Do not allocate client->if_name twice in esp_http_client_init. (GitHub PR) (v5.1)

See merge request espressif/esp-idf!31944
2024-07-10 12:21:54 +08:00
Wei Yu Han
e7b13d719d docs(ble): Add the parameter name data in esp_vhci_host_send_packet 2024-07-10 10:41:50 +08:00
Erhan Kurubas
b9c1258556 fix(coredump): fix array out of the bounds error
Closes https://github.com/espressif/esp-idf/issues/14117
2024-07-09 22:10:45 +02:00
zhiweijian
3cac5c4fdd fix(bt/nimble): split hci log in nimble 2024-07-09 16:40:06 +08:00
zhanghaipeng
67e1325377 feat(ble/bluedroid): Support BLE50 instance in related event 2024-07-09 15:38:44 +08:00
Jiang Jiang Jian
3465bb0367 Merge branch 'bugfix/fix_esco_conflict_with_sniff_v5.1' into 'release/v5.1'
fix(bt/controller): Fixed some controller bugs (v5.1)

See merge request espressif/esp-idf!31954
2024-07-09 10:42:53 +08:00
Jiang Jiang Jian
1798232ce7 Merge branch 'bugfix/cache2phys_xip_v5.1' into 'release/v5.1'
fix(mmap): fixed spi_flash_cache2phys return addr in PSRAM issue (v5.1)

See merge request espressif/esp-idf!31107
2024-07-09 10:37:12 +08:00
Jiang Jiang Jian
9cc4aeef61 Merge branch 'fix/wait_efuse_idle_after_wake_v5.1' into 'release/v5.1'
fix(esp_hw_support): wait eFuse controller idle after sleep wakeup (v5.1)

See merge request espressif/esp-idf!31949
2024-07-09 10:34:39 +08:00
Jiang Jiang Jian
bae9a3a29f Merge branch 'change/add_some_wifi_feature_and_fix_some_bug_v5.1' into 'release/v5.1'
feat(wifi): add softap csa&dtim&wait_bcast_data setting v5.1

See merge request espressif/esp-idf!31921
2024-07-08 19:20:56 +08:00
linruihao
b981e4cdac 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:26:59 +08:00
liqigan
8725c9a56e fix(bt/controller): Fixed not report HCI_Disconnection_Complete event 2024-07-08 14:26:59 +08:00
wuzhenghui
242d0e70e7 fix(esp_hw_support): wait eFuse controller idle after sleep wakeup 2024-07-08 14:17:28 +08:00
Island
c8b9ad5da0 Merge branch 'fix/blemesh24_61_v5.1' into 'release/v5.1'
fix/blemesh24_61 (v5.1)

See merge request espressif/esp-idf!31566
2024-07-08 14:06:32 +08:00
Rahul Tank
ae9e4888df Merge branch 'bugfix/revert_extra_print_v5.1' into 'release/v5.1'
Revert "fix(nimble): Added debug print to check for skipped adv report" (v5.1)

See merge request espressif/esp-idf!31933
2024-07-08 12:56:09 +08:00
fbp2m
bed13e209c 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:00 +08:00
Rahul Tank
e922e49f85 Revert "fix(nimble): Added debug print to check for skipped adv report"
This reverts commit 634412e20c.
2024-07-05 18:09:25 +05:30
Wang Ning
565394ba44 Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Wang Ning <wangning@espressif.com>
2024-07-05 18:08:13 +08:00
Yuhan Wei
86463b7f27 docs(ble): Add the explanations to controller parameters configurable in menuconfig 2024-07-05 18:08:13 +08:00
Wang Ning
b81ddcbed0 Apply 35 suggestion(s) to 1 file(s)
Co-authored-by: Wang Ning <wangning@espressif.com>
2024-07-05 18:08:13 +08:00
Yuhan Wei
fde21eab8e docs(ble): Removed note in esp_bt_controller_config_t 2024-07-05 18:08:13 +08:00
Yuhan Wei
2dcd257dcf docs(ble): Replaced BT with Bluetooth 2024-07-05 18:08:13 +08:00
Yuhan Wei
e7be8fa4c6 docs(ble): Removed unnecessary explanations 2024-07-05 18:08:13 +08:00
Yuhan Wei
060a7e3abb docs(ble): Added corresponding values to the controller mode 2024-07-05 18:08:12 +08:00
Yuhan Wei
e742961c9c docs(ble): Fixed the explanation of TX power type 2024-07-05 18:08:12 +08:00
Yuhan Wei
5f1064ccc4 docs(ble): Added typeof for BLE sleep clock accuracy enum 2024-07-05 18:08:12 +08:00
Yuhan Wei
09a682753f docs(ble): Added a name for BLE sleep clock accuracy enum 2024-07-05 18:08:12 +08:00
Yuhan Wei
698c38441e docs(ble): Revised the esp32 controller API explanations 2024-07-05 18:08:12 +08:00
wangtao@espressif.com
cf2bdb08f4 feat(wifi): add softap csa&dtim&wait_bcast_data setting v5.1 2024-07-05 15:35:31 +08:00
Mahavir Jain
f4b38d00bc Merge branch 'fix/c6_bootloader_rng_enable_v5.1' into 'release/v5.1'
fix(bootloader_support): Fixed pattern in RNG enable function to avoid output on IO0 (v5.1)

See merge request espressif/esp-idf!31907
2024-07-05 12:47:50 +08:00
Jiang Jiang Jian
a5686fbeac Merge branch 'bugfix/fix_some_wifi_bugs_v5.1' into 'release/v5.1'
fix(wifi):fix some wifi bugs(Backport v5.1)

See merge request espressif/esp-idf!31904
2024-07-05 12:06:21 +08:00
Island
aaeb03ad36 Merge branch 'bugfix/fixed_ble_issues_on_esp32c2_esp32c6_v5.1' into 'release/v5.1'
Bugfix/fixed ble issues on esp32c2 esp32c6 (v5.1)

See merge request espressif/esp-idf!31861
2024-07-05 10:39:26 +08:00
Jiang Jiang Jian
20a169cfb8 Merge branch 'docs/update_twt_docs_v5.1' into 'release/v5.1'
docs(wifi):update TWT docs(Backport v5.1)

See merge request espressif/esp-idf!31899
2024-07-04 19:15:17 +08:00
yinqingzhao
3a202c65a0 fix(wifi):fix some wifi bugs 2024-07-04 17:57:13 +08:00
Jakob Hasse
1070c75ec7 fix(bootloader_support): Fixed pattern in RNG enable function on C6 to avoid output on IO0 2024-07-04 11:36:58 +02:00
yinqingzhao
a8c4e7c254 docs(wifi):update TWT docs 2024-07-04 15:00:27 +08:00
luoxu
86fd1c0ca1 fix(ble_mesh): ensure the operation of adv busy is thread-safe 2024-07-04 12:13:03 +08:00
luoxu
5e7546269e feat(ble_mesh): add cas operation for bt_mesh_atomic_val_t 2024-07-04 12:13:03 +08:00
Jiang Jiang Jian
f2a321d843 Merge branch 'contrib/github_pr_14084_v5.1' into 'release/v5.1'
remove TLS pointer/deletion callback from correct thread (GitHub PR) (v5.1)

See merge request espressif/esp-idf!31853
2024-07-04 11:29:36 +08:00
Jiang Jiang Jian
b2ea5cf471 Merge branch 'fix/suppress_c++11_invalid_suffix_on_literal_v5.1' into 'release/v5.1'
fix: Fix PRI inttypes error due to C++ invalid suffix on literal in SPIFFS (v5.1)

See merge request espressif/esp-idf!31808
2024-07-04 10:34:57 +08:00
Jiang Jiang Jian
c6ef988244 Merge branch 'bugfix/openthread_uart_vfs_register_v5_1' into 'release/v5.1'
fix(openthread): register uart vfs devices when they are not registered(v5.1)

See merge request espressif/esp-idf!31792
2024-07-04 10:33:37 +08:00
Xiao Xufeng
acb85aee23 fix(mmap): fixed spi_flash_cache2phys return addr in PSRAM issue
When SPIRAM_FETCH_INSTRUCTIONS or SPIRAM_RODATA enabled
2024-07-04 10:30:24 +08:00
Jiang Jiang Jian
274a723a75 Merge branch 'feature/add-newlib-sbom_v5.1' into 'release/v5.1'
feat(newlib): Add sbom manifest file (v5.1)

See merge request espressif/esp-idf!31830
2024-07-04 10:16:16 +08:00
Jiang Jiang Jian
9d8525f7fd Merge branch 'fix/usb_isoc_error_status_backport_v5.1' into 'release/v5.1'
fix(usb/host): Decode error flags in ISOC transfers backport to v5.1

See merge request espressif/esp-idf!31882
2024-07-04 10:15:56 +08:00
Jiang Jiang Jian
a3de6512a4 Merge branch 'feature/sae_pk_transition_disable_v5.1' into 'release/v5.1'
feat(esp_wifi): Add support for SAE-PK, OWE and WPA3 transition disable (Backport v5.1)

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

See merge request espressif/esp-idf!31833
2024-07-03 16:43:30 +08:00
Sarvesh Bodakhe
de4010b95a feat(esp_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: default avatarjgujarathi <jash.gujarathi@espressif.com>
2024-07-03 13:07:47 +05:30
Tomas Rezucha
b7ec35da41 fix(usb/host): Decode error flags in ISOC transfers 2024-07-03 09:15:57 +02:00
Jiang Jiang Jian
f455c00b20 Merge branch 'docs/delete_userguide_esp32_s2_devkitc_1_v5.1' into 'release/v5.1'
docs: Delete user guide esp32-s2-devkitc-1 (v5.1)

See merge request espressif/esp-idf!31620
2024-07-03 15:08:20 +08:00
Mahavir Jain
9ff2f9ab2f fix(hal): correct the power up sequence for MPI/ECC peripherals in ESP32-C5 2024-07-03 11:50:10 +05:30
Jiang Jiang Jian
9beca6e0ec Merge branch 'bugfix/fix_phy_cal_data_v5.1' into 'release/v5.1'
fix(phy): add phy calibration data check when mode is not none calibration v5.1

See merge request espressif/esp-idf!31817
2024-07-03 13:58:53 +08:00
Jiang Jiang Jian
2059071053 Merge branch 'fix/fix_esp_tls_client_key_parsing_v5.1' into 'release/v5.1'
fix(esp_tls): Fixed client key parsing for ECC key (v5.1)

See merge request espressif/esp-idf!31840
2024-07-03 13:58:17 +08:00
Jiang Jiang Jian
4a142be6bb Merge branch 'docs/format_ap_basic_configuration_tables_v5.1' into 'release/v5.1'
docs: format AP basic configuration tables in wifi.rst (v5.1)

See merge request espressif/esp-idf!31856
2024-07-03 13:55:10 +08:00
Jiang Jiang Jian
a06c6877fa Merge branch 'bugfix/wps_mode_change_v5.1' into 'release/v5.1'
fix(esp_wifi): Fix for issue in changing opmode when wps is enabled(v5.1)

See merge request espressif/esp-idf!30779
2024-07-02 22:29:52 +08:00
zwl
98f12d1a2d fix(ble): fixed some ble controller issues on ESP32C6 and ESP32H2 2024-07-02 15:44:32 +08:00
zwl
8744e7c8bc fix(ble): fixed some ble controller issues on ESP32-C2 2024-07-02 15:44:32 +08:00
Linda
cbae9c7fb1 docs: format AP basic configuration tables in wifi.rst 2024-07-02 14:59:49 +08:00
aditi_lonkar
8587991313 fix(esp_wifi): Fix for issue in changing opmode when wps is enabled 2024-07-02 11:59:48 +05:30
Jiang Jiang Jian
597331d23c Merge branch 'lwip/if_indextoname_compolation_fix_v5.1' into 'release/v5.1'
fix(lwip): Fixed compilation error referencing undefined POSIX interface API (v5.1)

See merge request espressif/esp-idf!31407
2024-07-02 13:52:57 +08:00
Jiang Jiang Jian
4422beda77 Merge branch 'backport/support_eth_mac_using_esp_read_mac_v51' into 'release/v5.1'
feat(eth) configure eth mac using esp_read_mac(Backport v5.1)

See merge request espressif/esp-idf!31091
2024-07-02 13:51:09 +08:00
Myk Melez
4e22d115b7 fix(pthread): Remove TLS pointer/deletion callback from correct thread
Originally, pthread_internal_local_storage_destructor_callback was only called from pthread_exit
on the thread whose TLS is being destroyed.

In b3755b751e, pthread_internal_local_storage_destructor_callback
started being called from pthread_join and pthread_detach on a different thread (whichever one
called one of those functions).

But pthread_internal_local_storage_destructor_callback is still calling
vTaskSetThreadLocalStoragePointer and vTaskSetThreadLocalStoragePointerAndDelCallback with a NULL
xTaskToSet argument, which causes those functions to set the TLS pointer and deletion callback
for the current thread, not the thread whose TLS is being destroyed.

This commit makes pthread_internal_local_storage_destructor_callback call
vTaskSetThreadLocalStoragePointer and vTaskSetThreadLocalStoragePointerAndDelCallback
with the handle of the thread whose TLS is being destroyed.
2024-07-02 13:33:20 +08:00
Krzysztof Budzynski
fe617ff0d8 Merge branch 'docs/migrate_esp32c3_devkitc_02_devkitm_1_user_guide_v5.1' into 'release/v5.1'
docs: Migrate user guides of ESP32-C3-DevKitM and ESP32-C3-DevKitC to esp-dev-kits (v5.1)

See merge request espressif/esp-idf!31823
2024-07-02 13:20:20 +08:00
Zhang Xiao Yan
6193237a79 docs: Migrate user guides of ESP32-C3-DevKitM and ESP32-C3-DevKitC to esp-dev-kits (v5.1) 2024-07-02 13:20:20 +08:00
Jiang Jiang Jian
98f351292d Merge branch 'fix/docs_wifi_get_sta_list_v5.1' into 'release/v5.1'
fix(docs): tcpip_adapter: Document replacement of tcpip_adapter_get_sta_list (v5.1)

See merge request espressif/esp-idf!31172
2024-07-02 10:45:11 +08:00
Marius Vikhammer
8280458c36 Merge branch 'fix/usb-serial-jtag-hangs-on-init_v5.1' into 'release/v5.1'
fix(console): USB Serial JTAG freezes when input received before the driver is installed (v5.1)

See merge request espressif/esp-idf!31822
2024-07-02 10:44:47 +08:00
Aditya Patwardhan
cca7792e90 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-02 09:30:39 +08:00
Mahavir Jain
b928bd205e Merge branch 'fix/esp_tls_use_64_bit_variable_for_time_v5.1' into 'release/v5.1'
fix(esp-tls): Use 64 bit variable for time instead of 32 bit (v5.1)

See merge request espressif/esp-idf!30625
2024-07-01 19:15:37 +08:00
Alexey Lapshin
8705da6ff3 feat(newlib): Add sbom manifest file 2024-07-01 17:09:14 +07:00
Rahul Tank
634412e20c fix(nimble): Added debug print to check for skipped adv report 2024-07-01 15:33:53 +05:30
Aditya Patwardhan
e73b02198e fix(esp-tls): Use 64 bit variable for time instead of 32 bit
Use appropriate API available on respective platform for obtaining
    time
    Closes https://github.com/espressif/esp-idf/issues/13593
2024-07-01 14:38:53 +05:30
zhangshuxian
a46f24c41f docs: Delete user guide esp32-s2-devkitc-1 2024-07-01 15:45:55 +08:00
Guillaume Souchere
8aa0b7fb1a fix(console): USB Serial JTAG freezes when input received before init
When data was sent through USB Serial JTAG before the
driver was installed, the bus was malfunctioning. This
was because the interrupt bit for data reception was cleared
regardless of whether data was received or not. Consequently,
usb_serial_jtag_isr_handler_default was not triggered and the
data was never read causing the bus to malfunction.

This commit is modifying usb_serial_jtag_driver_install to
prevent clearing USB_SERIAL_JTAG_INTR_SERIAL_OUT_RECV_PKT and
USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY thus allowing the callback
usb_serial_jtag_isr_handler_default to trigger for possible data
exchanged prior to the call to usb_serial_jtag_driver_install.

This commit also modified the while logic in linenoiseProbe to
discard any data that doesn't match the expected chaaracter sequences
to prevent random input from interfering with evaluating whether the
terminal supports escape sequences or not.

See https://github.com/espressif/esp-idf/issues/13940
2024-07-01 09:37:00 +02:00
chenjianxing
79629f4667 fix(phy): add phy calibration data check when mode is not none calibration 2024-07-01 15:22:40 +08:00
xiaqilin
ceb24b5161 fix(esp_phy): fix the frequency switching issue in esp32h2/esp32c6 ble/ieee802154 coex 2024-07-01 15:22:30 +08:00
Jiang Jiang Jian
abc703a0dd Merge branch 'bugfix/fix_ble_connect_fail_report_time_v5.1' into 'release/v5.1'
fix(ble/bluedroid): Fixed BLE report event when connection fails (v5.1)

See merge request espressif/esp-idf!31783
2024-07-01 14:20:09 +08:00
Jiang Jiang Jian
2653904d33 Merge branch 'bugfix/mgmt_gcmp_issue_v5.1' into 'release/v5.1'
fix(wifi): Fix GCMP encryption for mgmt packets and other bugfixes (Backport v5.1)

See merge request espressif/esp-idf!30481
2024-07-01 11:06:05 +08:00
Jiang Jiang Jian
078aff1033 Merge branch 'bugfix/wpa3_init_crash_v5.1' into 'release/v5.1'
fix(wpa_supplicant): Fix wpa3 AP crash because of dangling pointer (v5.1)

See merge request espressif/esp-idf!31542
2024-07-01 10:52:16 +08:00
Jiang Jiang Jian
9653044214 Merge branch 'docs/add_the_description_of_gpio_wakeup_in_lightsleep_when_pd_top_v5.1' into 'release/v5.1'
docs(pm): add description for gpio_wakeup (backport v5.1)

See merge request espressif/esp-idf!31739
2024-07-01 10:24:50 +08:00
Jiang Jiang Jian
321ffde711 Merge branch 'fix/incorrect_console_input_decoding_wifi_prov_mgr_v5.1' into 'release/v5.1'
fix(tools/esp_prov): Fix incorrect input decoding when using console transport (v5.1)

See merge request espressif/esp-idf!31691
2024-07-01 10:24:13 +08:00
Jiang Jiang Jian
dc164cd29e Merge branch 'fix/ulp_riscv_i2c_multi_byte_v5.1' into 'release/v5.1'
fix(ulp-risc-v): Fixed RTC I2C multi-byte read/write issue for ULP RISC-V (v5.1)

See merge request espressif/esp-idf!31715
2024-07-01 10:23:34 +08:00
Jiang Jiang Jian
8de6307fa1 Merge branch 'docs/delete_user_guide_esp32_s2_devkitm_1_v5.1' into 'release/v5.1'
docs: Delete user guide esp32-s2-devkitm-1 (v5.1)

See merge request espressif/esp-idf!31609
2024-07-01 10:22:55 +08:00
Jiang Jiang Jian
d45ec891d2 Merge branch 'docs/update_esp_vfs_notes_v5.1' into 'release/v5.1'
docs(vfs): update esp_vfs_register_fd api description (v5.1)

See merge request espressif/esp-idf!30427
2024-07-01 10:21:41 +08:00
Jiang Jiang Jian
61ba825b03 Merge branch 'fix/bump_esp_littlefs_to_v5.1' into 'release/v5.1'
fix(storage/littlefs): Bump version to v1.14.4 (core v2.9.1) (v5.1)

See merge request espressif/esp-idf!30358
2024-07-01 10:21:20 +08:00
Jiang Jiang Jian
6b60fc715f Merge branch 'bugfix/crash_after_bluedroid_deinit_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fixed controller using null pointer after bluedroid deinit(v5.1)

See merge request espressif/esp-idf!30328
2024-07-01 10:20:53 +08:00
Jiang Jiang Jian
135eb2e5da Merge branch 'fix/heap-trace-on-all-functions_v5.1' into 'release/v5.1'
fix(heap): Tracing of all heap_caps API functions (backport v5.1)

See merge request espressif/esp-idf!30235
2024-07-01 10:20:21 +08:00
Adam Múdry
43c69badc6 fix: PRI inttypes error due to C++ invalid suffix on literal in SPIFFS 2024-06-30 23:32:04 +02:00
Rahul Tank
c98f32ecb9 Merge branch 'bugfix/set_correct_cb_arg_v5.1' into 'release/v5.1'
fix(nimble): Pass the correct cb arg during reconnection attempt (v5.1)

See merge request espressif/esp-idf!31719
2024-06-28 21:00:58 +08:00
Kapil Gupta
967eda03d0 fix(esp_wifi): Correct action frame type in send_mgmt_frame API 2024-06-28 16:25:18 +05:30
Sarvesh Bodakhe
9d637316a9 fix(wifi): Add bugfix to avoid RSNXE and KDE mismatch during 4-way-handshake 2024-06-28 16:25:18 +05:30
Kapil Gupta
c5e1603e6d fix(wifi): Fix encryption/decryption issue for mgmt packets
* Fix issues related to mgmt packets encryption in GCMP
* Fix issue of wrong decryption of mgmt packets when PMF is enabled
* Fix softAP bug in handling of SAE Reauthentication
* Fix send mgmt err when eapol process
* Fix data len not correct in he actions
2024-06-28 16:24:54 +05:30
WanqQixiang
879e7903ef fix(openthread): register uart vfs devices when they are not registered 2024-06-28 15:52:40 +08:00
zhanghaipeng
6f08290f3d fix(ble/bluedroid): Fixed BLE report event when connection fails 2024-06-28 12:00:45 +08:00
Jiang Jiang Jian
3a7997dba5 Merge branch 'bugfix/ft_scanning_failure_v51' into 'release/v5.1'
Fix scanning and connecting to FT APs(v5.1)

See merge request espressif/esp-idf!31185
2024-06-28 11:24:49 +08:00
jgujarathi
31b2cd7b8e 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.
- Send unicast probe requests if bssid is known during scan
- Allows for RSNXE IE to be processed as a variable length upto
  255 bytes, changing the earlier max of 20.
2024-06-27 15:41:17 +05:30
Island
3530c0c7c8 Merge branch 'bugfix/fixed_hci_uart_error_on_esp32c6_esp32h2_v5.1' into 'release/v5.1'
feat(bluetooth/controller): Fixed the issue of unresponsiveness when using hci... (v5.1)

See merge request espressif/esp-idf!31752
2024-06-27 17:19:29 +08:00
Island
4efd577c19 Merge branch 'bugfix/fix_some_ble_bugs_cjh_v5.1' into 'release/v5.1'
Fixed some BLE bugs 240620 (backport v5.1)

See merge request espressif/esp-idf!31654
2024-06-26 20:33:14 +08:00
zwl
ea6d8e64c9 feat(bluetooth/controller): Fixed the issue of unresponsiveness when using hci uart mode on ESP32-C6 and ESP32-H2 2024-06-26 17:32:57 +08:00
Lou Tianhao
d587205bbf docs(pm): add description for gpio_wakeup 2024-06-26 14:12:33 +08:00
harshal.patil
a2993ab3a6 fix(tools/esp_prov): Fix incorrect input decoding when using console transport
- Closes https://github.com/espressif/esp-idf/issues/14013
2024-06-26 11:28:47 +05:30
Shreyas Sheth
a14d4ea8a4 fix(wpa_supplicant): Fix wpa3 AP crash because of dangling pointer 2024-06-26 10:45:28 +08:00
Jiang Jiang Jian
c1f50a8eae Merge branch 'bugfix/station_ic_pmf_state_v5.1' into 'release/v5.1'
fix(wifi): Disable IC_PMF variable properly when station disconnects and always clear keys in tx_cb (Backport v5.1)

See merge request espressif/esp-idf!31633
2024-06-26 10:44:18 +08:00
Jiang Jiang Jian
55cfe6ee21 Merge branch 'bugfix/l2cap_use_wrong_handle_v5.1' into 'release/v5.1'
fix(bt/bluedroid):  Fixed the issue of using the wrong handle to handle the BTA_JV_L2CAP_READ_EVT event(v5.1)

See merge request espressif/esp-idf!31280
2024-06-26 10:41:21 +08:00
Jiang Jiang Jian
e649fcf81c Merge branch 'feature/esp32c6_pu8m_in_sleep_support_v5.1' into 'release/v5.1'
feat(sleep): support 8m force pu in sleep for esp32c6 & esp32h2 (v5.1)

See merge request espressif/esp-idf!31001
2024-06-26 10:40:32 +08:00
Jiang Jiang Jian
6f1ff29851 Merge branch 'fix/add_integrity_check_when_select_temporary_key_v5.1' into 'release/v5.1'
fix(bt): add integrity check when temporary link key selected(backport v5.1)

See merge request espressif/esp-idf!31700
2024-06-26 10:37:53 +08:00
Guillaume Souchere
42447ccf12 fix(heap): Tracing of all heap_caps API
This commit fixes the missing tracing on all
heap_caps_xx_prefer and heap_caps_xx_aligned
functions.
2024-06-25 11:59:24 +02:00
Sarvesh Bodakhe
a2db5d852e fix(wifi): Fix station PMF issue
Fix issue of station PMF not getting reset when disconnecing from PMF connection
2024-06-25 14:13:21 +05:30
Marius Vikhammer
14e01c031f Merge branch 'fix/fsync-call-propagation-to-secondary-console_v5.1' into 'release/v5.1'
fix(console): Fsync not propagated to secondary output (backport v5.1)

See merge request espressif/esp-idf!30263
2024-06-25 16:07:38 +08:00
Island
cf072a4fe3 Merge branch 'feat/optimize_bt_porting_layer_0619_v5.1' into 'release/v5.1'
Feat/optimize bt porting layer 0619 (v5.1)

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

See merge request espressif/esp-idf!31678
2024-06-25 12:39:10 +08:00
Jiang Jiang Jian
187be854ea Merge branch 'fix/trigger_system_reset_in_brownout_isr_v5.1' into 'release/v5.1'
change(esp_system): trigger digital system reset in brownout isr (v5.1)

See merge request espressif/esp-idf!31685
2024-06-25 11:50:13 +08:00
Rahul Tank
0edef52a67 fix(nimble): Pass the correct cb arg during reconnection attempt 2024-06-25 08:32:14 +05:30
Sudeep Mohanty
0a0327dce8 fix(ulp-risc-v): Fixed RTC I2C multi-byte read/write issue for ULP RISC-V
This commit fixes an issue where multi-byte reads and writes over the
RTC I2C peripheral got stuck on the esp32s2 and esp32s3.

Closes https://github.com/espressif/esp-idf/issues/12235
2024-06-24 17:11:02 +02:00
chenjianhua
3730b0a9af feat(bt/bluedroid): Add definition for the reason of BLE authentication failure 2024-06-24 17:59:01 +08:00
chenjianhua
5eed961113 fix(bt/bluedroid): Fixed BLE security vulnerability when using fixed IRK 2024-06-24 17:59:01 +08:00
linruihao
1f57c2b91a fix(bt): Overwrite a function in esp32c3 eco7 rom 2024-06-24 17:59:01 +08:00
chenjianhua
40b9ec3860 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 17:59:01 +08:00
chenjianhua
ae29703fb4 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 17:59:01 +08:00
gongyantao
6cd05b082a fix(bt): add integrity check when temporary link key selected 2024-06-24 17:50:35 +08:00
morris
97de085b35 Merge branch 'bugfix/esp32h2_iomux_retention_v5.1' into 'release/v5.1'
fix(gpio): fix IO 21-27 IOMUX registers not being backed up on ESP32H2 (v5.1)

See merge request espressif/esp-idf!31192
2024-06-24 17:33:55 +08:00
Jiang Jiang Jian
accaf2bd51 Merge branch 'bugfix/wpa3_sta_mem_leak_v5.1' into 'release/v5.1'
Fix a memory leak that occurs when the SAE connection is interrupted (Backport v5.1)

See merge request espressif/esp-idf!31661
2024-06-24 14:20:05 +08:00
morris
450846057c fix(lcd): build errors with deprecated lcd types in cpp
Closes https://github.com/espressif/esp-idf/issues/14029
2024-06-24 14:06:20 +08:00
wuzhenghui
8e5e95e452 change(esp_hw_support): update xtal_freq after assume to avoid mass print in DFS 2024-06-24 13:38:47 +08:00
wuzhenghui
563683f471 change(esp_system): trigger digital system reset in brownout isr 2024-06-24 12:07:30 +08:00
cjin
066e04a9a4 fix(ble): added c6 config check for ble light sleep 2024-06-24 11:31:40 +08:00
zwl
5fe68c206e feat(bluetooth/controller): adjust bt/porting code structure and delete redundant code 2024-06-24 11:31:40 +08:00
Rahul Tank
517064d0b3 Merge branch 'bugfix/free_memory_before_reattempt_v5.1' into 'release/v5.1'
fix(nimble): Clear resource before re-starting advertising(v5.1)

See merge request espressif/esp-idf!31627
2024-06-24 10:45:17 +08:00
Jiang Jiang Jian
44ed05a546 Merge branch 'bugfix/wifi-6570_v5.1' into 'release/v5.1'
backport v5.1: fix the issue of wifipwr losing its clock during sleep on the esp32c6 eco1

See merge request espressif/esp-idf!31616
2024-06-24 09:58:30 +08:00
Shyamal Khachane
233a57d4f5 fix(esp_wifi): Fix a memory leak that occurs when the 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 14:47:30 +05:30
Marius Vikhammer
bd2b9390ef Merge branch 'refactor/cpu_interrupt_table_v5.1' into 'release/v5.1'
fix(esp_hw_support): refactor and clear reserved interrupts that are unused or not applicable anymore (backport v5.1)

See merge request espressif/esp-idf!31259
2024-06-21 08:59:05 +08:00
Jiang Jiang Jian
d326c1bbf4 Merge branch 'fix/use_rom_crc_check_in_cpu_retention_v5.1' into 'release/v5.1'
fix(ci): use esp_rom_crc32_le in cpu retention frame check (v5.1)

See merge request espressif/esp-idf!31591
2024-06-20 13:51:26 +08:00
Rahul Tank
b482d04fb6 fix(nimble): Clear resource before re-starting advertising 2024-06-20 11:02:46 +05:30
zhangshuxian
c9e33d0e8d docs: Delete user guide esp32-s2-devkitm-1 2024-06-20 11:49:48 +08:00
Island
344e9ad593 Merge branch 'feat/put_bt_interface_code_to_rom_v5.1' into 'release/v5.1'
Feat/put bt interface code to rom (v5.1)

See merge request espressif/esp-idf!31551
2024-06-20 10:38:02 +08:00
Li Shuai
56526ffefa fix(wifi): fix the issue of wifipwr losing its clock during sleep on the esp32c6 eco1 2024-06-19 19:35:27 +08:00
Marius Vikhammer
8d4f718534 Merge branch 'contrib/github_pr_14010_v5.1' into 'release/v5.1'
fix(ulp): Write pin's output mode to the correct register (GitHub PR) (v5.1)

See merge request espressif/esp-idf!31597
2024-06-19 17:34:38 +08:00
LonerDan
cd7b8f2db1 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:23 +02:00
wuzhenghui
7ecc6ac029 fix(ci): use esp_rom_crc32_le in sleep retention frame check 2024-06-19 14:07:03 +08:00
Sergei Silnov
c00dad83c1 Merge branch 'fix/idf_tools_warning_error_v5.1' into 'release/v5.1'
fix(tools): Improve the warning message from idf_tools.py about the Python environment (v5.1)

See merge request espressif/esp-idf!31513
2024-06-18 18:36:26 +08:00
Jiang Jiang Jian
5a2a16f5c3 Merge branch 'feat/use_iterator_for_regdma_link_traverse_function_v5.1' into 'release/v5.1'
fix(esp_hw_support): use iterator for regdma_link_stats to save stack consume (v5.1)

See merge request espressif/esp-idf!31546
2024-06-18 10:35:22 +08:00
xiongweichao
b63bcef8e0 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-06-17 19:03:47 +08:00
xiongweichao
69729d4639 fix(bt/bluedroid): Fixed deadlock caused by not unlocking 2024-06-17 19:03:05 +08:00
xiongweichao
3eb54ad307 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:03:05 +08:00
zwl
b01930a5c0 feat(bluetooth/controller): update controller api name on ESP32-C2 2024-06-17 16:43:32 +08:00
zwl
7019204f20 feat(bluetooth/controller): update controller api name on ESP32-C6 and ESP32-H2 2024-06-17 16:43:32 +08:00
Li Shuai
f5f020f6e7 fix(esp_hw_support): use iterator for regdma_link_stats to save stack consume
Closes https://github.com/espressif/esp-idf/issues/13288
2024-06-17 15:59:07 +08:00
Rahul Tank
58a9d0e27b Merge branch 'bugfix/fix_no_mem_coex_issue_v5.1' into 'release/v5.1'
fix(nimble): Added change to handle extra memory for ext adv reattempt (v5.1)

See merge request espressif/esp-idf!31502
2024-06-14 20:04:19 +08:00
Rahul Tank
17a19a13be Merge branch 'contrib/github_pr_13951_v5.1' into 'release/v5.1'
Fix stack overflow bug for `examples/bluetooth/esp_hid_device` when using esp32s3 with nimble (GitHub PR) (v5.1)

See merge request espressif/esp-idf!31517
2024-06-14 19:50:04 +08:00
Mohammad-Mohsen Aseman-Manzar
098a804f73 Fix stack overflow bug for examples/bluetooth/esp_hid_device when using esp32s3 with nimble
Related to 60354c39a9
2024-06-14 14:27:41 +05:30
Roland Dobai
5a51f06a24 fix(tools/idf_tools.py): Improve the warning message about the environment 2024-06-14 10:01:27 +02:00
Rahul Tank
d5c4973bd3 fix(nimble): Added change to handle extra memory for ext adv reattempt 2024-06-14 12:05:09 +05:30
Abhik Roy
4e2e2b2c53 fix(lwip): Fixed compilation error referencing undefined POSIX interface API
Closes https://github.com/espressif/esp-idf/issues/13577
2024-06-14 13:13:39 +10:00
Island
fe475fe87a Merge branch 'bugfix/fix_ble_evt_time_v5.1' into 'release/v5.1'
fix(ble/controller): Update esp32 bt-lib (1e63e23) (v5.1)

See merge request espressif/esp-idf!31483
2024-06-14 10:43:25 +08:00
Shu Chen
b0bece2812 Merge branch 'backport/shortened_uart_read_bytes_blocking_51' into 'release/v5.1'
fix(uart): remove unnecessary wait when sending message to ring buffer(backport5.1)

See merge request espressif/esp-idf!31382
2024-06-14 09:36:20 +08:00
linruihao
18cac360b9 fix(bt/controller): Fixed assert issue caused by DPORT access 2024-06-13 17:36:05 +08:00
zhanghaipeng
ae9a2fde60 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:41:06 +08:00
Island
e3c4c76b17 Merge branch 'bugfix/fix_ble_pktlen_change_v5.1' into 'release/v5.1'
Bugfix/fix ble pktlen change (v5.1)

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

See merge request espressif/esp-idf!31434
2024-06-12 20:03:56 +08:00
Jiang Jiang Jian
bfb7936851 Merge branch 'bugfix/fix_lp_half_world_access_v5.1' into 'release/v5.1'
fix(hal): fix LP timer / PMU LL half word access (v5.1)

See merge request espressif/esp-idf!31388
2024-06-12 17:04:58 +08:00
Jiang Jiang Jian
411ff70468 Merge branch 'bugfix/fix_null_data_issue_in_mesh_v5.1' into 'release/v5.1'
fix(wifi): do not send null data when scan start/done for mesh (v5.1)

See merge request espressif/esp-idf!31369
2024-06-12 11:01:44 +08:00
Jakub Kocka
71130318df fix(tools): Avoid crashing when Git is used to acquire IDF version
Closes https://github.com/espressif/esp-idf/issues/13345
2024-06-11 09:39:56 +02:00
wuzhenghui
4c78de50f4 fix(hal): fix PMU LL half word and byte access 2024-06-07 14:18:24 +08:00
wuzhenghui
4d6793a44a fix(hal): fix LP timer LL half word access 2024-06-07 14:18:22 +08:00
zwx
38bbc918c4 fix(uart): remove unnecessary wait when sending message to ring buffer 2024-06-07 11:45:40 +08:00
Roland Dobai
2b1a0cc523 Merge branch 'ci/fix_macos_runner_v5.1' into 'release/v5.1'
ci: select correct python version for mac runners (v5.1)

See merge request espressif/esp-idf!31354
2024-06-06 21:09:47 +08:00
zhangyanjiao
4844b20f4c fix(wifi): do not send null data when scan start/done for mesh
Closes https://github.com/espressif/esp-idf/issues/13786
2024-06-06 19:10:28 +08:00
Shu Chen
a08c207e7f Merge branch 'backport/openthread_changes_51' into 'release/v5.1'
Backport some openthread related features (Backport v5.1)

See merge request espressif/esp-idf!31065
2024-06-06 16:56:27 +08:00
zwx
ff7a97b7f1 feat(openthread): update BR lib 2024-06-06 14:18:57 +08:00
Rahul Tank
d2f8b753fc Merge branch 'bugfix/ble_gap_unpair_error_code_v5.1' into 'release/v5.1'
fix(nimble): Added return code in ble_gap_unpair error logs (v5.1)

See merge request espressif/esp-idf!31309
2024-06-06 12:54:08 +08:00
Jiang Jiang Jian
7f1a2c3cc1 Merge branch 'fix/assert_in_bt_controller_v5.1' into 'release/v5.1'
fix(bt): fix some issues in bluetooth controller(backport v5.1)

See merge request espressif/esp-idf!31323
2024-06-06 12:02:43 +08:00
Fu Hanxi
f10e452e50 ci: ensure macos selected the correct python installed by pyenv 2024-06-05 16:03:02 +02:00
David Čermák
b2eeb41888 Merge branch 'update_mqtt_v5.1' into 'release/v5.1'
Update Mqtt client (v5.1)

See merge request espressif/esp-idf!30274
2024-06-05 15:47:37 +08:00
Xu Si Yu
f27797c49a fix(openthread): remove the empty task for openthread tasklets 2024-06-05 15:30:52 +08:00
zwx
ed00f6d94e fix(802.15.4): fixed ieee802154 will sleep when only pm enabled 2024-06-05 15:27:36 +08:00
zwx
e95771bde8 feat(802154): log buffer full message in debug mode only 2024-06-05 15:20:30 +08:00
zwx
ff60eefe0a fix(802.15.4): fix a risk for receive_at and ignore bit8 for the frame length 2024-06-05 15:20:30 +08:00
Xu Si Yu
5abe7425d9 feat(openthread): update openthread br lib 2024-06-05 15:20:30 +08:00
zwx
f87f5a3f22 feat(openthread): remove the range for some configurations 2024-06-05 15:20:30 +08:00
Abhinav Kudnar
5694eb354f fix(nimble): Added return code in ble_gap_unpair error logs 2024-06-05 12:10:41 +05:30
Island
76e28986ba Merge branch 'fix/idfgh-12762_v5.1' into 'release/v5.1'
fix(ble_mesh):Fixed a compatibility issue with the provisioner (v5.1)

See merge request espressif/esp-idf!30731
2024-06-05 10:44:02 +08:00
Island
445811d412 Merge branch 'optimize/bt_make_alarm_num_configurable_v5.1' into 'release/v5.1'
feat(ble_mesh): Make alarm number configurable (v5.1)

See merge request espressif/esp-idf!30789
2024-06-05 10:43:49 +08:00
gongyantao
2a98fba7fe 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:11:57 +08:00
Wang Meng Yang
b36c954052 Merge branch 'feat/set_get_lpclk_src_v5.1' into 'release/v5.1'
feat(ble): Added API to get low power clock source(v5.1)

See merge request espressif/esp-idf!30108
2024-06-04 19:36:22 +08:00
Wang Meng Yang
50599a62f5 Merge branch 'bugfix/spp_crash_after_deint_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fixed SPP crash due to the connection not being disconnected before esp_spp_deinit was called(v5.1)

See merge request espressif/esp-idf!30081
2024-06-04 19:34:40 +08:00
Rahul Tank
d3d5a4ef53 Merge branch 'bugfix/explict_free_adv_data_v5.1' into 'release/v5.1'
fix(nimble): Explicitly NULL assign adv data (v5.1)

See merge request espressif/esp-idf!31290
2024-06-04 19:32:19 +08:00
luoxu
23c712ed13 fix(ble_mesh):Fixed a compatibility issue with the provisioner
Closes https://github.com/espressif/esp-idf/issues/13741
2024-06-04 16:50:12 +08:00
wangjialiang
410a02acf0 feat(ble_mesh): Make alarm number configurable 2024-06-04 16:36:10 +08:00
Euripedes Rocha
5814e2a5d5 change(mqtt): Update esp-mqtt submodule
git log --oneline e6afdb4025fe018ae0add44e3c45249ea1974774..aa6f889fb4f6f743b3a550aa587713aabbdca1fc

Detailed description of the changes:
* fix: regard reason codes greater than 0x80 as failures.
  - See merge request espressif/esp-mqtt!205
  - See commit https://github.com/espressif/esp-mqtt/commit/e7b9aa5
* PR: Return on allocation failure
  - See merge request espressif/esp-mqtt!204
  - set last_retransmit to now when first connected (espressif/esp-mqtt@c06f154)
  - add return to faile_message, avoid segment fault (espressif/esp-mqtt@37478a9)
* Minor warning of unused variable
  - See merge request espressif/esp-mqtt!203
  - fix: Minor warning of unused variable (espressif/esp-mqtt@726e5f2)
* Cover the case for SOC without MAC address
  - See merge request espressif/esp-mqtt!202
  - fix: Cover the case for SOC without MAC address (espressif/esp-mqtt@5e3abd4)
* Make state and size atomic
  - See merge request espressif/esp-mqtt!199
  - feat: Make state and size atomic (espressif/esp-mqtt@891380b)
* fix: Adjust the log level on few messages to avoid cluthering the logs
  - See merge request espressif/esp-mqtt!201
  - See commit https://github.com/espressif/esp-mqtt/commit/5c17fc4
* fix: Make automatic client_id soc dependent
  - See merge request espressif/esp-mqtt!200
  - See commit https://github.com/espressif/esp-mqtt/commit/657a2ae
* Clarify data that users need to take care of lifetime.
  - See merge request espressif/esp-mqtt!197
  - docs: Clarify data that users need to take care of lifetime. (espressif/esp-mqtt@371f594)
* Update mqtt_client.h
  - See merge request espressif/esp-mqtt!198
  - add const char * to esp_mqtt_client_subscribe() generic macros (espressif/esp-mqtt@acdb66d)
* client: Report failure on timeout in mid-message timeout (GitHub PR)
  - See merge request espressif/esp-mqtt!165
  - Merges https://github.com/espressif/esp-mqtt/pull/232
  - client: Report failure on timeout in mid-message timeout (espressif/esp-mqtt@ddde502)
* fix: Move buffer initialization to set config
  - See merge request espressif/esp-mqtt!194
  - Closes https://github.com/espressif/esp-mqtt/issues/267
  - See commit https://github.com/espressif/esp-mqtt/commit/ea0df31
* Fix check for message creation when processing publish
  - See merge request espressif/esp-mqtt!195
  - fix: Deliver publish verifies if message was created only for QoS >0
        (espressif/esp-mqtt@6780056)
2024-06-04 15:13:54 +08:00
Rahul Tank
6ab57bbcc4 fix(nimble): Explicitly NULL assign adv data 2024-06-04 12:16:12 +05:30
Island
a9d29b3281 Merge branch 'feat/add_hci_log_record_for_nimble_v5.1' into 'release/v5.1'
feat(bt/nimble): support hci log for nimble (backport v5.1)

See merge request espressif/esp-idf!31213
2024-06-04 14:19:00 +08:00
Jiang Jiang Jian
176f719eb3 Merge branch 'bugfix/nan_datapath_issues_v5.1' into 'release/v5.1'
Fix issues in NAN datapath establishment (Backport v5.1)

See merge request espressif/esp-idf!30852
2024-06-04 12:05:58 +08:00
Jiang Jiang Jian
85fd3f397d Merge branch 'fix/sntp_getreachability_v5.1' into 'release/v5.1'
fix(netif): Add missing SNTP get-reachablitiy API (v5.1)

See merge request espressif/esp-idf!30033
2024-06-04 11:37:05 +08:00
Jiang Jiang Jian
0196f081e5 Merge branch 'bugfix/log_wrap_around_cache_generation_counter_v5.1' into 'release/v5.1'
fix(log): Fix wrap-around of cache generation counter (v5.1)

See merge request espressif/esp-idf!29939
2024-06-04 11:31:12 +08:00
Jiang Jiang Jian
7b5a5ea50e Merge branch 'fix/wl_fatfsgen_safe_mode_v5.1' into 'release/v5.1'
fix(storage/fatfs): make wl_fatfsgen.py safe mode aware (v5.1)

See merge request espressif/esp-idf!29729
2024-06-04 11:30:50 +08:00
Island
d456fdf322 Merge branch 'bugfix/esp32c2_fixed_some_ble_issues_master_v5.1' into 'release/v5.1'
Bugfix/esp32c2 fixed some ble issues master (v5.1)

See merge request espressif/esp-idf!31234
2024-06-04 10:22:07 +08:00
Shyamal Khachane
e6a5be3fda fix(esp_wifi): Fix issues in NAN datapath establishment
1. Resolve indefinite waiting while stopping NAN
2. Increase NDP response timeout to 8 DW's
3. Set NAN discovery beacon interval to 100 TU's as per Section 9.2
   of Wi-Fi Aware Specification v4.0
2024-06-03 18:23:30 +05:30
Jiang Jiang Jian
7ade2ae6e5 Merge branch 'bugfix/fix_dhcp_pool_issue_on_dhcp_server_v5.1' into 'release/v5.1'
fix(lwip): fixed the dhcp pool error on dhcp server (v5.1)

See merge request espressif/esp-idf!31266
2024-06-03 19:47:35 +08:00
Jiang Jiang Jian
de580a0e44 Merge branch 'bugfix/fix_some_wifi_bugs_v5.1' into 'release/v5.1'
fix(wifi): fixed sniffer and espnow issue (v5.1)

See merge request espressif/esp-idf!31214
2024-06-03 19:38:07 +08:00
morris
d47e88776e Merge branch 'feature/usb_host_hub_support_collective_backport_v5.1' into 'release/v5.1'
refactor(usb/host): Prerequisite Refactoring For Hub Collective backport (v5.1)

See merge request espressif/esp-idf!29447
2024-06-03 16:10:30 +08:00
zhangyanjiao
5d00019475 fix(lwip): fixed the dhcp pool error on dhcp server 2024-06-03 11:34:15 +08:00
Omar Chebib
16d957e7aa fix(esp_hw_support): clear reserved interrupts that are not applicable for each target 2024-06-03 11:09:45 +08:00
Omar Chebib
1439815d57 refactor(esp_hw_support): changed reserved interrupt functions to be now defined per SoC 2024-06-03 11:05:25 +08:00
zhangyanjiao
e81e61f86f docs(wifi): update the docmentation for mesh API 2024-06-03 10:50:27 +08:00
zhangyanjiao
64d34d84be 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-06-03 10:49:23 +08:00
Jiang Jiang Jian
9eea1706bf Merge branch 'doc/update_esp32c6_power_statics_5.1' into 'release/v5.1'
docs(lowpower): updating low-power statistics in Wi-Fi scenarios (v5.1)

See merge request espressif/esp-idf!31211
2024-06-03 10:38:11 +08:00
Jiang Jiang Jian
8d296506b5 Merge branch 'contrib/github_pr_13022_v5.1' into 'release/v5.1'
fix(freertos): Fix broken portable macro portTRY_ENTER_CRITICAL_SAFE() (v5.1)

See merge request espressif/esp-idf!30317
2024-06-03 10:27:00 +08:00
xiongweichao
0648347994 feat(ble): Added API to get low power clock source 2024-06-03 10:25:29 +08:00
Jiang Jiang Jian
f209f008f3 Merge branch 'bugfix/esp_timer_test_fail_v5.1' into 'release/v5.1'
fix(esp_timer): Force test to go light sleep ignoring ESP_ERR_SLEEP_REJECT (v5.1)

See merge request espressif/esp-idf!29872
2024-06-03 10:24:42 +08:00
xiongweichao
5a8f272660 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-06-03 10:24:00 +08:00
Jiang Jiang Jian
67ee7eeaae Merge branch 'bugfix/pm-108_v5.1' into 'release/v5.1'
backport v5.1: fix the issue of tg0 watchdog reset caused by wifi module retention

See merge request espressif/esp-idf!31013
2024-06-03 10:19:41 +08:00
zhiweijian
42aa1be457 feat(bt/nimble): support hci log for nimble 2024-06-03 09:48:51 +08:00
zhanghaipeng
9d5f956e87 fix(ble/bluedroid): Optimize BLE stack connect callback name 2024-06-02 19:25:12 +08:00
zhanghaipeng
2f14db087d fix(ble/bluedroid): Fixed BLE no data length change event 2024-06-02 19:23:56 +08:00
Darian Leung
f0b26289d7 docs(usb): Add USBH maintainer notes 2024-06-02 00:29:36 +08:00
Darian Leung
29ae4e7a4f refactor(usb/usbh): Update USBH device creation and enumeration handling
This commit updates how the USBH handles device creation and enumeration so that
upper layers (such as the Hub driver) can use the USBH API for enumeration instead
of calling the HCD.

USBH Updates:

USBH now creates unenumerated devices set to address 0 with no device/config
descriptor. A newly created device can be opened and communicated with immediately
(using control transfers). This allows the Hub driver to call the USBH instead of
the HCD. Summary of USBH changes:

- Added new APIs to add/remove a device. Devices are now created as unenumerated
and can be immediately opened and communicated with.
- Added new APIs to enumerate a device (see 'usbh_dev_set_...()' functions). Device
must be locked (see 'usbh_dev_enum_lock()') before enumeration functions can be called.
- Added UID for each device. This allows the particular USBH without needing to
use the device's handle (which implies opening the device).

Hub Driver Updates:

Hub driver now calls the USBH for enumeration. Summary of USBH changes:

- Replace all 'hcd_pipe_...()' calls with 'usbh_dev_...()' calls
- Refactored port event handling to fit with new USBH API
- Updated to use UID to uniquely identify devices without opening them

USB Host Updates:

- Reroute USBH control transfers to clients and hub driver

Note: Backported ESP_ERR_NOT_ALLOWED macro
2024-06-02 00:29:36 +08:00
Darian Leung
15121a3ef6 refactor(usb/hub): Update Hub driver port request logic 2024-06-02 00:29:35 +08:00
Darian Leung
144463be5c refactor(usb/hcd): Allow port resets with allocated pipes
This commit updates the HCD API to allow port resets to occur even if pipes
are allocated. The pipes cannot be active and the port reset will simply
restore the pipes (by reinitializing their channel registers) following the
reset.

Changes:

- Allow port resets while channels are allocated
- Remove pipe persistance API 'hcd_pipe_set_persist_reset()'
2024-06-02 00:29:35 +08:00
Darian Leung
8053174dd4 refactor(usb/usbh): Rename device pool functions and ref_count
This commit renames the following APIs and variables in the USBH:

- Rename the prefix of device pool functions from 'usbh_dev_...' to
  'usbh_devs_...'.
- Rename 'ref_count' to 'open_count'. This variable tracks the number of times
  a device has been opened.
2024-06-02 00:29:34 +08:00
Darian Leung
5f0a659e73 refactor(usb/host): Refactor USBH function grouping
This commit rearranges the USBH functions into new groupings to provide a
clearer abstraction. This is in preparation for refactoring/removing the Hub
related functions in the USBH API. This commit DOES NOT MAKE ANY BEHAVIORAL
CHANGES to the code.

Functions are now grouped into...

- USBH Processing: Functions dealing with overall USBH processing
- Device Pool: Functions that add/remove/open/close devices from the internal
               device pool
- Device: Functions that pertain to setting/getting a particular device
- Endpoints: Functions that pertain to a particular endpoint
- Transfer: Functions that pertain to sending transfers
2024-06-02 00:29:34 +08:00
Roman Leonov
8479302503 refactor(hcd_dwc): Added mps request from hcd_dwc 2024-06-02 00:29:34 +08:00
Darian Leung
0b77a7289c refactor(usb/host): Simplify USBH and Hub interaction
Previously, on a device disconnection, the USBH and Hub would the require the
following 2-way interaction:

- Hub -> usbh_hub_pass_event() -> USBH to indicate a port error
- USBH -> usbh_hub_req_cb_t -> Hub to request port recovery after the device
has been freed.

The 2-way interaction has been simplified:

- USBH now nofities upper layers of devices being freed via the
USBH_EVENT_DEV_FREE event
- Hub now handles port recovery only after a device has been freed
2024-06-02 00:29:33 +08:00
Roman Leonov
cfa48efc6a refactor(usb_host): Renamed hub_driver_state to root_port_state 2024-06-02 00:29:33 +08:00
Tomas Rezucha
4270a4edce feat(usb/host): Add missing sync types from USB specification 2024-06-02 00:29:33 +08:00
Roman Leonov
54d984644a feat(usb_host): Added KConfig parameter for External HUB support enable 2024-06-02 00:29:32 +08:00
Roman Leonov
01761f4c99 refactor(usb_host): Added chapter11 header, refactor chapter9 header 2024-06-02 00:29:32 +08:00
Darian Leung
78515b3fef refactor(usb): Remove USBH control transfer callback
This commit merges the USBH control transfer callback into the USBH event
callback. This simplifies the code as the USBH now uses a single callback.
2024-06-02 00:29:32 +08:00
Darian Leung
42076af4c4 refactor(usb): Update USBH event callback arguments
This commit does the following:

- Updates the USBH event callback arguments to now pass a usbh_event_data_t
which can contain different data for each event
- Updated event names
2024-06-02 00:29:31 +08:00
Rahul Tank
3f9ab2d6a6 Merge branch 'bugfix/free_reattempt_adv_data_v5.1' into 'release/v5.1'
fix(nimble): Added change to free memory in case of failure (v5.1)

See merge request espressif/esp-idf!31166
2024-06-01 18:59:49 +08:00
morris
8318a2ad44 Merge branch 'feature/usb_new_phy_driver_collective_backport_v5.1' into 'release/v5.1'
refactor(usb/host): PHY driver preqrequisite refacotring collective backport (v5.1)

See merge request espressif/esp-idf!29791
2024-05-31 22:30:32 +08:00
zwl
f590e07eb1 ble: fixed ble some issues on esp32c6 and esp32h2 2024-05-31 17:13:44 +08:00
zwl
ffc8485670 ble: fixed ble some issues on esp32c2 2024-05-31 17:13:44 +08:00
Rahul Tank
3b5c0b7d73 fix(nimble): Added change to free memory in case of failure 2024-05-31 12:09:32 +05:30
Jiang Jiang Jian
08aef5cd64 Merge branch 'bugfix/wps_scan_log_flood_v5.1' into 'release/v5.1'
fix(wpa_supplicant): Suppress RSN IE print to Verbose level (Backport v5.1)

See merge request espressif/esp-idf!31157
2024-05-31 13:47:41 +08:00
Jiang Jiang Jian
6535d0745b Merge branch 'bugfix/ftm_fix_wrong_compensation_v5.1' into 'release/v5.1'
Fix issue in selecting FTM compensation with external AP (Backport v5.1)

See merge request espressif/esp-idf!30740
2024-05-31 13:37:05 +08:00
Island
a7a612c9fc Merge branch 'bugfix/bleqabr24-549_v5.1' into 'release/v5.1'
fix(ble_mesh): fix issues in mesh deinit_v5.1

See merge request espressif/esp-idf!30542
2024-05-31 11:13:53 +08:00
wuzhenghui
36756bfd22 docs(lowpower): updating low-power statistics in Wi-Fi scenarios 2024-05-31 10:28:36 +08:00
luoxu
cd5f3bf146 fix(ble_mesh): fix issues in mesh deinit 2024-05-30 20:40:55 +08:00
Jiang Jiang Jian
cfe861582c Merge branch 'bugfix/stop_tg_wdt_in_xpd_xtal_lightsleep_v5.1' into 'release/v5.1'
fix(esp_hw_support): stop tg wdt in xpd xtal lightsleep (v5.1)

See merge request espressif/esp-idf!31140
2024-05-30 20:00:24 +08:00
Nachiket Kukade
3e82811fec fix(esp_wifi): Fix issue in selecting FTM compensation with external AP 2024-05-30 19:42:24 +08:00
Li Shuai
493b757a53 fix(wifi): fixed the issue of tg0 watchdog reset caused by wifi module retention 2024-05-30 17:20:03 +08:00
Song Ruo Jing
78ea2c19e7 fix(gpio): fix IO 21-27 IOMUX registers not being backed up on ESP32H2 2024-05-30 15:08:09 +08:00
David Cermak
f0c6358839 fix(docs): tcpip_adapter: Document replacement of tcpip_adapter_get_sta_list 2024-05-29 13:45:53 +02:00
David Cermak
cea1893729 fix(esp_netif): Prevent running esp_netif_sntp_init() multiple times
Closes https://github.com/espressif/esp-idf/issues/12854
2024-05-29 17:22:29 +08:00
David Cermak
2f87894e58 fix(netif): Add missing SNTP get-reachablitiy API 2024-05-29 17:22:29 +08:00
Rahul Tank
ebe0b3f40c Merge branch 'feature/ble_resolve_adv_data_v5.1' into 'release/v5.1'
feat(nimble): Added API to get resolve ADV data (v5.1)

See merge request espressif/esp-idf!30952
2024-05-29 13:51:39 +08:00
Nachiket Kukade
1614f9e3b5 fix(wpa_supplicant): Suppress RSN IE print to Verbose level 2024-05-29 11:09:57 +05:30
wuzhenghui
725381290e fix(esp_hw_support/sleep): stop TG0/TG1 watchdog if XTAL not power down in lightsleep 2024-05-28 19:39:19 +08:00
wuzhenghui
bd1017132e change(esp_hw_support/sleep): improve esp32c3 systimer stall bug workaround 2024-05-28 19:38:04 +08:00
Roland Dobai
59e2674bf6 Merge branch 'fix/pytest_session_dir_v5.1' into 'release/v5.1'
ci: apply new fix in pytest-embedded 1.10 (v5.1)

See merge request espressif/esp-idf!30678
2024-05-28 17:02:23 +08:00
Jiang Jiang Jian
f2b11841fc Merge branch 'bugfix/mldv6_report_memory_leak_v5.1' into 'release/v5.1'
fix(esp_netif): Fix mldv6 report memory leak in esp_netif(v5.1)

See merge request espressif/esp-idf!31062
2024-05-28 15:58:22 +08:00
Wang Meng Yang
7046477541 Merge branch 'bugfix/fix_hid_connection_failed_bug_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fix HID connection bugs[backport 5.1]

See merge request espressif/esp-idf!30590
2024-05-28 15:19:35 +08:00
David Čermák
89eb191f7f Merge branch 'bugfix/eth_l2_test_conn_wait_tmo_v5.1' into 'release/v5.1'
ci(esp_eth): increased L2 test wait for connection timeout (v5.1)

See merge request espressif/esp-idf!29882
2024-05-27 18:25:37 +08:00
David Čermák
0c9478fb65 Merge branch 'bugfix/dm9051_phy_axs_wait_v5.1' into 'release/v5.1'
fix(esp_eth): made access to PHY registers for DM9051 more robust (v5.1)

See merge request espressif/esp-idf!30280
2024-05-27 18:24:55 +08:00
David Čermák
489e460479 Merge branch 'contrib/github_pr_13560_v5.1' into 'release/v5.1'
esp_eth: DP83848: correct link detection to use BMSR (GitHub PR) (v5.1)

See merge request espressif/esp-idf!30452
2024-05-27 18:24:35 +08:00
morris
d7c75b92d1 Merge branch 'bugfix/check_c3_efuse_error_on_ram_app_condition_v5.1' into 'release/v5.1'
bugfix(cpu_start): check c3 efuse error log on ram app condition (v5.1)

See merge request espressif/esp-idf!31046
2024-05-27 15:43:21 +08:00
zwx
aeb1221652 feat(eth) configure eth mac using esp_read_mac
* Closes https://github.com/espressif/esp-idf/issues/13808
2024-05-27 15:30:26 +08:00
Island
2daa497ba0 Merge branch 'feat/add_api_to_set_privacy_mode_v5.1' into 'release/v5.1'
feat(bt/bluedroid): support BLE set privacy mode (v5.1)

See merge request espressif/esp-idf!31027
2024-05-27 14:56:15 +08:00
WanqQixiang
9bcbd2fb51 fix(esp_netif): Fix mldv6 report memory leak in esp_netif 2024-05-24 15:29:53 +08:00
Abhinav Kudnar
8df917bde9 feat(nimble): Added API to get resolve ADV data 2024-05-24 11:56:21 +05:30
Island
e603747a5a Merge branch 'bugfix/BLEQABR23-798_v5.1' into 'release/v5.1'
bugfix(ble_mesh): Close BLEQABR23-798 (v5.1)

See merge request espressif/esp-idf!30646
2024-05-24 14:10:18 +08:00
Island
262264e4e2 Merge branch 'fix/ble_mesh_gatts_bugfix_v5.1' into 'release/v5.1'
BLE Mesh Gatts bugfix (v5.1)

See merge request espressif/esp-idf!30874
2024-05-24 14:09:56 +08:00
Sergei Silnov
8354a8f3bf Merge branch 'fix/gdbgui_version_check_v5.1' into 'release/v5.1'
fix(tools): Use GDGBUI arguments based on its version (v5.1)

See merge request espressif/esp-idf!31039
2024-05-23 22:51:55 +08:00
Roland Dobai
ab18946708 fix(tools): Use GDGBUI arguments based on its version
Closes https://github.com/espressif/esp-idf/issues/13665
2024-05-23 14:45:41 +02:00
Rahul Tank
de42be85db Merge branch 'bugfix/restart_advertising_if_slave_23e_v5.1' into 'release/v5.1'
fix(nimble): start advertising if disconnect due to 0x3E in slave (v5.1)

See merge request espressif/esp-idf!31034
2024-05-23 20:26:21 +08:00
Armando
bb51330aa6 bugfix(cpu_start): check c3 efuse error log on ram app condition
Prior to this commit, esp_efuse_check_errors() is only called when it's
2nd stage btld app.

This commit moves this error check so under all conditions (including
ram app, pure ram app) will check this efuse error
2024-05-23 15:56:08 +08:00
Mahavir Jain
68c894bba6 Merge branch 'feature/update_cjson_version_to_1.7.18_v5.1' into 'release/v5.1'
feat(cjson): update submodule to v1.7.18 (v5.1)

See merge request espressif/esp-idf!31016
2024-05-23 15:10:14 +08:00
luoxu
f401e2960a fix(ble_mesh): Create service after service register success 2024-05-23 14:30:03 +08:00
Jiang Jiang Jian
836dba4fa7 Merge branch 'bugfix/loadprohibited_after_bt_deinit_v5.1' into 'release/v5.1'
Fixed some coexist issues

See merge request espressif/esp-idf!31005
2024-05-23 11:36:24 +08:00
chenjianhua
6678996170 feat(bt/bluedroid): support BLE set privacy mode 2024-05-22 19:25:50 +08:00
zhanghaipeng
b1bbc8e486 fix(ble/bluedroid): Optimized BLE SPP example for improved compatibility 2024-05-22 19:25:11 +08:00
zhanghaipeng
af59333eb5 feat(ble/bluedroid): Support BLE add device to resolving list 2024-05-22 19:23:24 +08:00
zhanghaipeng
c075708e0b feat(ble/bluedroid): Support set resolvable provate address timeout by api 2024-05-22 19:21:31 +08:00
zhanghaipeng
c488cc4b6a fix(ble/bluedroid): Fixed BLE GATT max length of an attribute value 2024-05-22 18:03:47 +08:00
zhanghaipeng
6427524d9b fix(ble/bluedroid): Optimize BLE documentation comments to comply with Doxygen syntax 2024-05-22 18:03:41 +08:00
zhanghaipeng
6f64b2d99c fix(ble/bluedroid): Optimize the BLE documentation 2024-05-22 18:03:34 +08:00
luoxu
25b6f0c92f bugfix(ble_mesh): Close BLEQABR23-798 2024-05-22 16:59:03 +08:00
Fu Hanxi
9228c6f5dd ci: move log dir from pytest_embedded_log to pytest-embedded 2024-05-22 16:58:53 +08:00
Fu Hanxi
32c0b6c3f1 ci: apply new fix in pytest-embedded 1.10 2024-05-22 16:58:53 +08:00
Fu Hanxi
f39f8d4a3f ci: update mypy check for python 3.12, check under python 3.7 rules 2024-05-22 16:58:53 +08:00
Jiang Jiang Jian
47418a88b9 Merge branch 'bugfix/esp32c6eco1_coex_ble_deinit_wifi_bcn_timeout_v5.1' into 'release/v5.1'
backport v5.1: fix the issue where deinit ble in a coexist scenario causes the wifi mac tsf counter to stop

See merge request espressif/esp-idf!30983
2024-05-22 16:18:17 +08:00
nilesh.kale
3d2260d292 feat(cjson): update submodule to v1.7.18
Changelog: https://github.com/DaveGamble/cJSON/releases/tag/v1.7.18
2024-05-22 13:34:54 +05:30
Rahul Tank
29dcca6c7c fix(nimble): start advertising if disconnect due to 0x3E in slave 2024-05-22 12:58:27 +05:30
Marius Vikhammer
f63329ccd1 Merge branch 'fix/brownout_crash_v5.1' into 'release/v5.1'
fix(brownout): fixed brownout isr crashing if cache disabled (v5.1)

See merge request espressif/esp-idf!30833
2024-05-22 12:49:42 +08:00
baohongde
6668aa0388 fix(coex): Fixed some coexist issues
- Fixed crash issue in coexist callback
- Fixed coexist scheme status update issue
2024-05-22 11:50:50 +08:00
chenjianhua
f8af3d8e0d 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:50:50 +08:00
chaijie@espressif.com
d2dd830a47 feat(sleep): support 8m force pu in sleep for esp32c6/esp32h2 2024-05-22 11:35:12 +08:00
Marius Vikhammer
4f82fc267a Merge branch 'feature/console_add_sbom_file_v5.1' into 'release/v5.1'
feat(system/console): Added argtable3 SBOM manifest file for SPDX file generation for console component (v5.1)

See merge request espressif/esp-idf!30945
2024-05-22 11:16:02 +08:00
Jiang Jiang Jian
9a76c7f4c2 Merge branch 'bugfix/fix_esp32_cant_tx_after_tx_timeout_v5.1' into 'release/v5.1'
fix(wifi): fix esp32 unrecoverable m f issue

See merge request espressif/esp-idf!30970
2024-05-22 10:47:04 +08:00
Marius Vikhammer
39074c031e fix(brownout): fixed brownout isr crashing if cache disabled
If a brownout ISR was triggered while cache was disabled the system would panic.

This was due to a print accessing a string stored in flash
2024-05-22 10:19:10 +08:00
Alexey Gerenkov
0a68361c35 Merge branch 'coredump_sanity_check_v5.1' into 'release/v5.1'
fix(coredump): increase sanity check before get summary (v5.1)

See merge request espressif/esp-idf!30529
2024-05-21 22:14:09 +08:00
Aditya Patwardhan
3982d5552b Merge branch 'bugfix/fix_resetting_redirect_counter_v5.1' into 'release/v5.1'
fix: reset redirect counter for using same handler (v5.1)

See merge request espressif/esp-idf!30937
2024-05-21 17:22:15 +08:00
Roland Dobai
980a568961 Merge branch 'ci/use_github_on_macos_runners' into 'release/v5.1'
ci: use github repo for mac runners

See merge request espressif/esp-idf!30949
2024-05-21 17:19:25 +08:00
Li Shuai
fc40fafe8d fix(wifi): fix the issue where deinit ble in a coexist scenario causes the wifi mac tsf counter to stop 2024-05-21 16:52:39 +08:00
Jiang Jiang Jian
91df5f03e9 Merge branch 'doc/add_description_for_pd_top_gpio_configuration_v5.1' into 'release/v5.1'
docs(esp_pm): Adding notes on configuring GPIOs when using PD_TOP sleep (v5.1)

See merge request espressif/esp-idf!30797
2024-05-21 12:04:46 +08:00
Fu Hanxi
a1a2799767 ci: make fast_template_app optional 2024-05-21 05:54:47 +02:00
Island
d4ed2ec56b Merge branch 'bugfix/fixed_issues_on_esp32c6_and_esp32h2_v5.1' into 'release/v5.1'
fixed some ble issues on esp32c6 and esp32h2 (v5.1)

See merge request espressif/esp-idf!30893
2024-05-21 11:52:27 +08:00
liuning
f7b10c4e3c fix(wifi): fix esp32 unrecoverable m f issue 2024-05-21 10:27:30 +08:00
Fu Hanxi
935b35551f ci: use github repo for mac runners 2024-05-20 16:13:26 +02:00
Marius Vikhammer
9c064071ad Merge branch 'fix/prompt-erased-by-backspace-in-dumbmode_v5.1' into 'release/v5.1'
fix(console): bug where backspace erases the prompt in dumb mode (backport v5.1)

See merge request espressif/esp-idf!30349
2024-05-20 15:10:51 +08:00
Xiaoyu Liu
033d5b0344 feat(system/console): Added argtable3 SBOM manifest file in console component for SPDX file generation 2024-05-20 15:04:45 +08:00
Harshit Malpani
a7f29df625 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:46:45 +05:30
Harshit Malpani
f561153820 fix: reset redirect counter for using same handler
Closes https://github.com/espressif/esp-idf/issues/13633
2024-05-20 10:46:44 +05:30
liqigan
970029c2f4 fix(bt/bluedroid): Fix HID Device connection failed bug
Closes https://github.com/espressif/esp-idf/issues/13671
2024-05-20 10:44:29 +08:00
liqigan
cf2bd8029d 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-20 10:44:29 +08:00
Island
bd5335f7d3 Merge branch 'feat/optimzie_ble_ctrl_memory_v5.1' into 'release/v5.1'
ble: support only legacy adv and slave function on esp32c2 (v5.1)

See merge request espressif/esp-idf!30335
2024-05-17 10:31:25 +08:00
Jiang Jiang Jian
6d228dc010 Merge branch 'feat/sleep_retention_depends_power_state_management_v5.1' into 'release/v5.1'
backport v5.1: sleep retention multiple modules initialization and dependency management

See merge request espressif/esp-idf!30374
2024-05-17 10:24:18 +08:00
Erhan Kurubas
d55d2278ee fix(coredump): don't allow mapping of non-encrypted coredump partition 2024-05-16 21:28:18 +02:00
Erhan Kurubas
cf9c2aed41 fix(coredump): increase sanity check before get summary
Closes https://github.com/espressif/esp-idf/issues/13594
2024-05-16 21:24:40 +02:00
zwl
4647a47a17 ble: fixed some issues on ESP32C6 and ESP32H2 2024-05-16 17:46:18 +08:00
Rahul Tank
0d5d7413cf Merge branch 'feature/get_local_used_addr_v5.1' into 'release/v5.1'
feat(nimble): Added API to get local used address (v5.1)

See merge request espressif/esp-idf!30758
2024-05-16 17:39:42 +08:00
Jiang Jiang Jian
8071b02318 Merge branch 'fix/assert_1024_in_rwbt_isr_v5.1' into 'release/v5.1'
fix(bt/ble): fix some issues in bluetooth controller(backport v5.1)

See merge request espressif/esp-idf!30815
2024-05-16 16:44:29 +08:00
Abhinav Kudnar
7a7aeff0c9 feat(nimble): Added API to get local used address 2024-05-16 09:50:04 +05:30
Rahul Tank
a86e6ea6e9 Merge branch 'doc/update_readme_enc_adv_v5.1' into 'release/v5.1'
docs(nimble): Added chip information in enc_adv example README file (v5.1)

See merge request espressif/esp-idf!30775
2024-05-16 12:12:02 +08:00
Rahul Tank
82b9984816 Merge branch 'bugix/avoid_reset_extract_cb_v5.1' into 'release/v5.1'
fix(nimble): Avoid slave instance reset inside extract_cb (v5.1)

See merge request espressif/esp-idf!30489
2024-05-16 12:01:57 +08:00
Aditya Patwardhan
66f4c0b435 Merge branch 'feature/update_mbedtls_to_3.6.0_v5.1' into 'release/v5.1'
feat(mbedtls): updated mbedtls version from 3.5.2 to 3.6.0 (v5.1)

See merge request espressif/esp-idf!30670
2024-05-15 20:18:24 +08:00
Rahul Tank
8abb343778 docs(nimble): Added chip information in ble_enc_adv README file 2024-05-15 15:32:55 +05:30
nilesh.kale
e6c6121b38 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:57:14 +05:30
Rahul Tank
8cf7043e28 Merge branch 'bugfix/disable_mbedtls_options_v5.1' into 'release/v5.1'
fix(nimble): Deselect MBEDTLS_ECP_RESTARTABLE when mbedTLS is used (v5.1)

See merge request espressif/esp-idf!30620
2024-05-15 14:17:56 +08:00
Rahul Tank
d72ba104ca fix(nimble): Create separate API to only extract cb info 2024-05-15 11:06:10 +05:30
Marius Vikhammer
3f5c4d0db6 Merge branch 'fix/log_buffer_v5.1' into 'release/v5.1'
fix(log): Fixed incorrect argument type in hexdump log functions (v5.1)

See merge request espressif/esp-idf!29777
2024-05-15 09:07:51 +08:00
Marius Vikhammer
a1b0f253a6 Merge branch 'doc/ringbuffer_v5.1' into 'release/v5.1'
docs(esp_ringbuf): Corrected example code block (v5.1)

See merge request espressif/esp-idf!30634
2024-05-15 09:07:36 +08:00
Rahul Tank
81918dde2a Merge branch 'bugfix/free_controlle_memory_in_init_fail_v5.1' into 'release/v5.1'
fix(nimble): Free controller memory if init fails (v5.1)

See merge request espressif/esp-idf!30751
2024-05-14 20:13:48 +08:00
Li Shuai
18a45fa98f fix: add ESP_ERR_NOT_ALLOWED error code to esp_err.h 2024-05-14 19:34:37 +08:00
Li Shuai
159e58dc27 fix: modify some typos to ensure CI pipeline run pass 2024-05-14 19:34:37 +08:00
Li Shuai
1be5cb7e9e fix(example): fixed app partition is too small for binary size 2024-05-14 19:34:37 +08:00
xiaqilin
28b017c383 change(ieee802154): add sleep deinit API 2024-05-14 19:34:37 +08:00
Li Shuai
9586dba801 change(esp_hw_support): use power down peripheral in light sleep option to determine TOP to off 2024-05-14 19:34:37 +08:00
Li Shuai
0dea30c2f2 change(esp_hw_support): add adc retention module and it is dependencies on the clock modem 2024-05-14 19:34:37 +08:00
Li Shuai
c9b1618a3e change(esp_hw_support): dump sleep retention context to io stream 2024-05-14 19:34:37 +08:00
Li Shuai
7cc3c78447 change(ieee802154): use new sleep retention api to implement ieee802154 mac retention 2024-05-14 19:34:37 +08:00
Li Shuai
2f7a2e0965 change(bt): use new retention api to implement BT mac and bb retention 2024-05-14 19:34:37 +08:00
Li Shuai
08a05ec562 change(esp_hw_support): use new retention api to implement gdma retention 2024-05-14 19:34:37 +08:00
Li Shuai
b7b90fc394 change(wifi): use new retention api to implement wifi mac and bb retention 2024-05-14 19:34:32 +08:00
Li Shuai
0cb0890145 change(esp_hw_support): modify system and modem clock to support modem domain power down 2024-05-14 17:50:59 +08:00
Li Shuai
031f56e294 change(esp_hw_support): some system peripherals to use a retention module number 2024-05-14 17:50:59 +08:00
Li Shuai
83cb32cd70 feat(esp_hw_support): implement of sleep retention module initialize and dependency management 2024-05-14 17:50:59 +08:00
Li Shuai
38b3341863 change(esp_hw_support): modify the style of module argument from bitmap to number 2024-05-14 17:50:59 +08:00
Li Shuai
7d738cae1c change(esp_hw_support): rename interface name of get modules bitmap to get created modules 2024-05-14 17:50:59 +08:00
Li Shuai
44644845f3 change(esp_hw_support): rename sleep retention module to created module 2024-05-14 17:50:59 +08:00
Alexey Gerenkov
a2215bd122 Merge branch 'fix/gcov_fault_v5.1' into 'release/v5.1'
fix(gcov): fix exceptions on gcov task_tick_hook (v5.1)

See merge request espressif/esp-idf!30026
2024-05-14 17:45:03 +08:00
Alexey Gerenkov
1751ffe936 Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20240318_v5.1' into 'release/v5.1'
feat(tools): update openocd version to v0.12.0-esp32-20240318 (v5.1)

See merge request espressif/esp-idf!30046
2024-05-14 17:44:07 +08:00
Jiang Jiang Jian
784e95b2d7 Merge branch 'fix/fix_some_esp32c6_wifi_bugs_v5.1' into 'release/v5.1'
fix(wifi): fix some wifi bugs (Backport v5.1)

See merge request espressif/esp-idf!30820
2024-05-14 15:18:51 +08:00
Jin Cheng
16794dc48f fix(bt/controller): Parse out the correct packet types from Host parameters
- For HCI command HCI_Enhanced_Setup_Synchronous_Connection
2024-05-14 11:54:25 +08:00
xuxiao
07edad1af5 fix(wifi): fix some wifi bugs (Backport v5.1) 2024-05-14 11:33:42 +08:00
Jiang Jiang Jian
5423b20c4a Merge branch 'bugfix/fix_mesh_packet_tx_issue_v5.1' into 'release/v5.1'
fix(wifi): fix the tx issue when mesh packet lifetime remain equal to zero (v5.1)

See merge request espressif/esp-idf!30791
2024-05-14 11:01:11 +08:00
gongyantao
090a7755cc 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:04:42 +08:00
Roland Dobai
ca9c86da77 Merge branch 'set_gdb_remotetimeout_v5.1' into 'release/v5.1'
tools(gdbinit): set remote timeout for the gdb connection (v5.1)

See merge request espressif/esp-idf!30806
2024-05-13 23:07:14 +08:00
Marius Vikhammer
03f7927325 Merge branch 'bugfix/coredump_switch_stack_v5.1' into 'release/v5.1'
fix(espcoredump): Reconfigure the stack guard when using custom coredump stack (backport v5.1)

See merge request espressif/esp-idf!29527
2024-05-13 20:53:37 +08:00
Erhan Kurubas
ce2c90fcce change(gdbinit): set remote timeout for the gdb connection 2024-05-13 13:49:35 +02:00
zwl
7e4a26970e ble: update sdkconfig.defaults.esp32c6 file for blufi example 2024-05-13 17:49:35 +08:00
zwl
130b5a03e1 ble: update sdkconfig.defaults.esp32c2 file for blufi example 2024-05-13 17:49:35 +08:00
zwl
45b9ccfb1f ble: optimize bt cmakelists.txt file 2024-05-13 17:49:35 +08:00
zwl
5e2679a02f ble: support only legacy adv and slave function on esp32c2 2024-05-13 17:49:35 +08:00
Darian Leung
d41515f948 refactor(hal/usb): Add new USB PHY related HAL API
This commit adds/updates the USB PHY related HAL APIs. The following changes
are made:

- Updated 'usb_wrap_hal.h' API
- Added 'usb_serial_jtag_hal.h' API
2024-05-13 17:36:34 +08:00
Darian Leung
4f996fc421 feat(hal/usb): Update USB WRAP and USJ LL
- Added LL cap macros to distinguish feature differences between the LLs of
  different targets:
    - '..._LL_EXT_PHY_SUPPORTED' indicates whether the USB WRAP/USJ supports
      routing to an external FSLS PHY.
- Added 'usb_wrap_types.h' and 'usb_serial_jtag_types.h' to provide types used
  in LLs.
- Fixed some spelling/naming issues as part of code-spell pre-commit
2024-05-13 17:36:34 +08:00
Darian Leung
06821a8fe6 refactor(hal/usb): Refactor usb_wrap_ll.h
This commit rewrite the 'usb_wrap_ll.h' API as follows:

- All APIs renamed from 'usb_fsls_phy_ll_...()' to 'usb_wrap_ll_...()'
- APIs now match their equivalent counter parts in 'usb_serial_jtag_ll.h'
2024-05-13 17:36:33 +08:00
Darian Leung
c776d40df1 refactor(hal/usb): Remove usb_fsls_phy_ll.h
For targets that only contain a USJ peripheral (and not a DWC OTG), their
'usb_fsls_phy_ll.h' headers only contain a single function
('usb_fsls_phy_ll_int_jtag_enable()') whose feature is already covered by
functions in 'usb_serial_jtag_ll.h'. Thus, this header is redundant.

This commit does the following:

- Remove 'usb_fsls_phy_ll.h' for targets that only contain a USJ peripheral
- Rename 'usb_fsls_phy_[hal|ll].[h|c]' to `usb_wrap_[hal|ll].[h|c]` for targets
that contain a DWC OTG peripheral. This better reflects the underlying peripheral
that the LL header accesses.
2024-05-13 17:36:33 +08:00
Darian Leung
75498cdb7a refactor(hal/usj): Add USB PHY related functions to USJ LL 2024-05-13 17:36:32 +08:00
wuzhenghui
57ef28a6c6 docs(gpio): add description for gpio_force_hold_all & gpio_force_unhold_all
Closes https://github.com/espressif/esp-idf/issues/13186
2024-05-13 16:24:56 +08:00
morris
9808619d52 Merge branch 'bugfix/fix_gpio_etm_multi_task_v5.1' into 'release/v5.1'
fix(gpio_etm): allow one GPIO binds to multiple ETM tasks (v5.1)

See merge request espressif/esp-idf!30457
2024-05-13 15:59:44 +08:00
wuzhenghui
2e21a74d85 docs(esp_pm): Adding notes on configuring GPIOs when using PD_TOP sleep
Closes https://github.com/espressif/esp-idf/issues/13143
2024-05-13 15:58:15 +08:00
Rahul Tank
9ac8768650 fix(nimble): Free controller memory if init fails 2024-05-13 12:00:16 +05:30
Jiang Jiang Jian
ae1cf0594c Merge branch 'doc/update_bt_sleep_process_v5.1' into 'release/v5.1'
docs: Update the process of Bluetooth entering sleep in the sleep_modes.rst(v5.1)

See merge request espressif/esp-idf!30734
2024-05-13 14:29:06 +08:00
Mahavir Jain
bbd9fe21f3 Merge branch 'backport/support_tls1_3_v5.1' into 'release/v5.1'
https_mbedtls: update example to support TLS 1.3 connection

See merge request espressif/esp-idf!30606
2024-05-13 14:11:02 +08:00
Island
cb98558051 Merge branch 'bugfix/fix_some_ble_bugs_cjh_v5.1' into 'release/v5.1'
Fixed some BT and BLE bugs 2404 (backport v5.1)

See merge request espressif/esp-idf!30784
2024-05-13 14:01:24 +08:00
Rahul Tank
7ad7f84f0f Merge branch 'bugfix/fix_ble_issues_5.1' into 'release/v5.1'
fix(nimble): Bugfix/fix ble issues 5.1

See merge request espressif/esp-idf!30246
2024-05-13 13:55:15 +08:00
zhangyanjiao
10a837db5f fix(wifi): fix the tx issue when mesh packet lifetime remain equal to zero 2024-05-13 11:31:13 +08:00
Jiang Jiang Jian
a79bd17e39 Merge branch 'bugfix/bt_bss_in_extram_v5.1' into 'release/v5.1'
fix(bt): Fix missing linker symbol when ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY enabled(backport v5.1)

See merge request espressif/esp-idf!30636
2024-05-13 11:01:50 +08:00
Jiang Jiang Jian
af5579d3f2 Merge branch 'bugfix/hf_local_param_null_v5.1' into 'release/v5.1'
fix(bt/bluedroid): allocate memory for control block of HFP Audio Gateway (v5.1)

See merge request espressif/esp-idf!30441
2024-05-13 11:00:04 +08:00
Jiang Jiang Jian
309ec787b9 Merge branch 'doc/update_espnow_example_v5.1' into 'release/v5.1'
docs(wifi): change the magic varible from int to uint32_t on the receiving side (v5.1)

See merge request espressif/esp-idf!30308
2024-05-13 10:44:42 +08:00
Jiang Jiang Jian
db65d0b71e Merge branch 'feature/disable_pmk_caching_v5.1' into 'release/v5.1'
feat(esp_wifi): Provide API to disable PMK caching (v5.1)

See merge request espressif/esp-idf!30290
2024-05-13 10:43:22 +08:00
Jiang Jiang Jian
80de3e63a9 Merge branch 'bugfix/fix_ble_appearance_v5.1' into 'release/v5.1'
Fixed BLE appearance category ranges (v5.1)

See merge request espressif/esp-idf!30286
2024-05-13 10:43:05 +08:00
Jiang Jiang Jian
a2bbd59755 Merge branch 'support/esp_sleep_enable_ext1_wakeup_io_v5.1' into 'release/v5.1'
Support/esp sleep enable ext1 wakeup io(backport v5.1)

See merge request espressif/esp-idf!30164
2024-05-13 10:42:20 +08:00
Jiang Jiang Jian
17e072ea01 Merge branch 'bugfix/add_workaround_for_ble_rtc_hw_issue_backport_v5.1' into 'release/v5.1'
fix(ble): add workaround for ble RTC not enabled issue (v5.1)

See merge request espressif/esp-idf!30133
2024-05-13 10:40:36 +08:00
Jiang Jiang Jian
50da12dafc Merge branch 'feat/set_cpu_freq_after_pm_config_changed_v5.1' into 'release/v5.1'
fix(esp_pm): update CPU frequency immediately after updating pm_config (v5.1)

See merge request espressif/esp-idf!30071
2024-05-13 10:39:28 +08:00
Jiang Jiang Jian
eb639cd917 Merge branch 'bugfix/ble_mesh_heartbeat_filter_add_v5.1' into 'release/v5.1'
Fix(ble_mesh):fix error condition for heartbeat filter adding node address (v5.1)

See merge request espressif/esp-idf!29987
2024-05-13 10:38:27 +08:00
Jiang Jiang Jian
ffbb69e9d5 Merge branch 'change/add_convt_from_hci_state_to_esp_state_v5.1' into 'release/v5.1'
change(bt/bluedroid): Use BTC util to convert HCI status to ESP status (v5.1)

See merge request espressif/esp-idf!29922
2024-05-13 10:37:35 +08:00
Jiang Jiang Jian
3e151e836f Merge branch 'bugfix/dpp_auth_deinit_crash_v51' into 'release/v5.1'
Fix issues with DPP stop listen and DPP auth data deinit (Backport v5.1)

See merge request espressif/esp-idf!29702
2024-05-13 10:37:09 +08:00
Wang Meng Yang
7f127429d3 Merge branch 'bugfix/sdp_remove_record_no_evt_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fixed the crash caused by using illegal pointers during SDP deinit(v5.1)

See merge request espressif/esp-idf!29943
2024-05-13 10:18:47 +08:00
Wang Meng Yang
5056683c0a Merge branch 'feature/add_api_to_send_vendor_hci_cmd_v5.1' into 'release/v5.1'
Feature/add api to send vendor hci cmd (backport v5.1)

See merge request espressif/esp-idf!30226
2024-05-13 10:16:50 +08:00
Rahul Tank
a5d0406c74 Merge branch 'bugfix/handle_missing_free_v5.1' into 'release/v5.1'
fix(nimble): Handle missing free in application (v5.1)

See merge request espressif/esp-idf!29888
2024-05-12 16:21:56 +08:00
Rahul Tank
12fd2435ea fix(nimble): Expose API to set RPA Timeout 2024-05-12 13:50:14 +05:30
Sumeet Singh
bce9b7ad4b fix(nimble): Removed code for termination upon signed write operation failure 2024-05-12 13:50:14 +05:30
Rahul Tank
e4083fd321 fix(nimble): Fix compilation issues when CCCD is set to 0 2024-05-12 13:50:14 +05:30
Rahul Tank
d7bfdee87b fix(nimble): Fix for Vulnerability CVE_2024_24746 2024-05-12 13:50:14 +05:30
Rahul Tank
fec0bb07f6 fix(nimble): Add support for data length change evt 2024-05-12 13:50:14 +05:30
Rahul Tank
28f8c9d228 fix(nimble): Fix the size of num_packets in dtm event 2024-05-12 13:50:14 +05:30
Rahul Tank
0bda7fb520 fix(nimble): Remove extra code in reattempt connection 2024-05-12 13:50:14 +05:30
Rahul Tank
d8e072fd8a fix(nimble): Change reconnection scheme 2024-05-12 13:50:14 +05:30
Rahul Tank
7ff783db6a fix(nimble): Handle auto connection flag for extended connect 2024-05-12 13:50:14 +05:30
Darshan Dobariya
26eb624879 fix(nimble): Added support for deleting the oldest bonded device across reboot 2024-05-12 13:50:14 +05:30
Roshan Bangar
a51364c76f fix(nimble): Fix compilation issues and Minor enhancements to esp_hid 2024-05-12 13:50:14 +05:30
Roshan Bangar
0e0ac035dd fix(nimble): Fixed compilation issues on disabling security 2024-05-12 13:50:14 +05:30
morris
442a798083 Merge branch 'feat/add_example_usj_v5.1' into 'release/v5.1'
change(usb_serial_jtag): Add example for usb serial jtag echo (backport v5.1)

See merge request espressif/esp-idf!30020
2024-05-11 22:37:34 +08:00
morris
54507f0113 Merge branch 'refactor/usb_remove_unused_files_v5.1' into 'release/v5.1'
USB: Remove unused HAL files and deprecate usb_periph (v5.1)

See merge request espressif/esp-idf!29790
2024-05-11 22:36:18 +08:00
zhanghaipeng
db06b4ac2a feat(ble/bluedroid): Support BLE command status debug log 2024-05-11 14:40:24 +08:00
zhanghaipeng
da961e3c75 fix(ble/controller): Update esp32 bt-lib (4012cfb)
- Fixed BLE coex assert
- Fixed BLE DTM status and tx count
2024-05-11 14:40:13 +08:00
chenjianhua
c3c56b9a75 feat(bt): Update bt lib for ESP32-C3 and ESP32-S3(c23ab4c)
- Support QA test vendor HCI command and event
2024-05-11 14:38:58 +08:00
baohongde
08d3e74353 fix(ble/controller): Fixed LoadProhibited after bluetooth deinit 2024-05-11 14:38:53 +08:00
chenjianhua
fecd966e5a 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-05-11 14:38:47 +08:00
baohongde
2798e62787 feat(ble/controller): Add coexist schm for BLE 2024-05-11 14:38:40 +08:00
chenjianhua
d6df155da2 feat(bt): Update bt lib for ESP32(e314148)
- Support QA test vendor HCI command and event
2024-05-11 14:37:13 +08:00
zhanghaipeng
c6414934b0 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-05-11 14:37:06 +08:00
Jin Cheng
0cdccd57e9 fix(bt/controller): Use embedded assembly to get access to DPORT registers 2024-05-11 14:36:57 +08:00
Jiang Jiang Jian
517a27ed26 Merge branch 'fix/rd_stored_link_key_error_v5.1' into 'release/v5.1'
fix(bt): fix some issues in bt controller(backport v5.1)

See merge request espressif/esp-idf!29977
2024-05-11 11:31:39 +08:00
Shu Chen
c626cac47d Merge branch 'fix/fix_ot_br_partition_table_5_1' into 'release/v5.1'
fix(openthread): increase factory app size in ot_br partition table (backport to 5.1)

See merge request espressif/esp-idf!30249
2024-05-11 10:24:48 +08:00
Shu Chen
ddc6cf9b0d Merge branch 'feature/add_test_case_for_select_block_5_1' into 'release/v5.1'
Backport some openthread features(Backport v5.1).

See merge request espressif/esp-idf!29927
2024-05-11 10:24:27 +08:00
morris
01b912a9e5 Merge branch 'fix/uart_wakeup_threshold_v5.1' into 'release/v5.1'
fix(uart): Fix mismatch wakeup rising edges required with the threshold configured (v5.1)

See merge request espressif/esp-idf!30464
2024-05-10 22:59:34 +08:00
morris
3f35154c0b Merge branch 'bugfix/uart_bitrate_max_value_c2_v5.1' into 'release/v5.1'
fix(uart): correct C2 UART_BITRATE_MAX value (v5.1)

See merge request espressif/esp-idf!30460
2024-05-10 22:58:37 +08:00
morris
81bd6ac6a5 Merge branch 'bugfix/gpio_drive_cap_v5.1' into 'release/v5.1'
fix(gpio): add workaround to ensure correct IO drive strength for C3 and S3 (v5.1)

See merge request espressif/esp-idf!30467
2024-05-10 22:58:17 +08:00
morris
3e5ad6fb24 Merge branch 'fix/increase_26mhz_esp32c2_slow_clock_calibration_wdt_threshold_v5.1' into 'release/v5.1'
fix(esp_system): increase 26Mhz esp32c2 slow clock calibration timeout watchdog threshold (v5.1)

See merge request espressif/esp-idf!30573
2024-05-10 22:57:54 +08:00
morris
50c01e118b Merge branch 'doc/auto_suspend_disabled_by_default_v5.1' into 'release/v5.1'
doc(flash): fix auto suspend enabled by default issue (v5.1)

See merge request espressif/esp-idf!30254
2024-05-10 22:57:18 +08:00
morris
33b5b78e36 Merge branch 'feature/parlio_tx_nonblock_queue_v5.1' into 'release/v5.1'
feat(parlio_tx): support non-blocking transaction queue (v5.1)

See merge request espressif/esp-idf!29722
2024-05-10 22:56:32 +08:00
morris
a2b9a076b7 Merge branch 'bugfix/unsupport_partial_receive_on_esp32_v5.1' into 'release/v5.1'
fix(rmt): Fix the RMT RX filter not working correctly on esp32/s2 (v5.1)

See merge request espressif/esp-idf!30078
2024-05-10 22:55:59 +08:00
Mahavir Jain
f981039355 Merge branch 'esp32p4/deterministic_ecdsa_support_v5.1' into 'release/v5.1'
Add operation successful check in ECDSA (v5.1)

See merge request espressif/esp-idf!30181
2024-05-10 20:36:15 +08:00
Mahavir Jain
6aa5c43b70 Merge branch 'feature/add_documentation_for_external_flash_encryption_v5.1' into 'release/v5.1'
flash_encryption_docs: Add documentation regarding enabling flash encryption externally through espefuse tool (v5.1)

See merge request espressif/esp-idf!30522
2024-05-10 20:35:11 +08:00
Mahavir Jain
41de6d2f90 Merge branch 'fix/incorrect_connection_closure_parttool_test_v5.1' into 'release/v5.1'
ci(otatool): fix test failure caused due to closing connection incorrectly (v5.1)

See merge request espressif/esp-idf!30292
2024-05-10 20:32:35 +08:00
Mahavir Jain
14b3dff0db Merge branch 'feature/mbedtls_error_str_config_v5.1' into 'release/v5.1'
feat(mbedtls): add kconfig option for MBEDTLS_ERROR_C (v5.1)

See merge request espressif/esp-idf!30105
2024-05-10 20:32:01 +08:00
Mahavir Jain
23d76b5495 Merge branch 'bugfix/nvs_enc_test_v5.1' into 'release/v5.1'
fix(tests): correct the flash write length for NVS encrypted test (v5.1)

See merge request espressif/esp-idf!30604
2024-05-10 20:31:51 +08:00
Roland Dobai
3bf7ff3d48 Merge branch 'docs/external_flash_5.1' into 'release/v5.1'
docs(idf_py): Describe the option to configure esptool.py with --extra-args (backport to v5.1)

See merge request espressif/esp-idf!30322
2024-05-10 20:26:18 +08:00
Roland Dobai
e2d9d68f5a Merge branch 'refactor/idf_tools_version_v5.1' into 'release/v5.1'
refactor(idf_tools): IDF version is acquired only from version or header file (backport v5.1)

See merge request espressif/esp-idf!29742
2024-05-10 20:14:07 +08:00
Roland Dobai
c8c6a4fdd4 Merge branch 'fix/exit_asyncio_gracefully_v5.1' into 'release/v5.1'
fix: exit gracefully when process started via asyncio is terminated (v5.1)

See merge request espressif/esp-idf!30384
2024-05-10 20:13:10 +08:00
Jiang Jiang Jian
c90091490f Merge branch 'update/release_v5_1_4' into 'release/v5.1'
Update version to 5.1.4

See merge request espressif/esp-idf!30736
2024-05-10 13:44:57 +08:00
Jack
d7b0a45ddb versions: Update to v5.1.4 2024-05-09 18:35:18 +08:00
Jiang Jiang Jian
9d8842f3ff Merge branch 'bugfix/libphy_chips_20240430_v5.1' into 'release/v5.1'
Bugfix/libphy chips 20240430 v5.1

See merge request espressif/esp-idf!30578
2024-05-09 12:08:10 +08:00
xiongweichao
a62df0920b docs: Update the process of Bluetooth entering sleep in the sleep_modes.rst 2024-05-09 11:28:36 +08:00
liuning
3004af48e6 update c3 s3 c6 libphy fix coex reset and bug 2024-05-08 17:15:09 +08:00
Aditya Patwardhan
43d48bb23f docs/Flash encryption: Add encrypted partitions section 2024-05-07 10:41:08 +05:30
Rahul Tank
63ae667750 fix(nimble): Deselect MBEDTLS_ECP_RESTARTABLE when mbedTLS is used 2024-05-06 15:21:05 +05:30
Wang Mengyang
cc0485e40d 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 16:39:46 +08:00
Wang Mengyang
d01f09044e 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
2024-05-06 16:38:10 +08:00
Jakob Hasse
28d1fc1214 docs(esp_ringbuf): Corrected example code block
* Closes https://github.com/espressif/esp-idf/issues/13730
2024-05-06 10:28:32 +02:00
Harshit Malpani
6cad71d638 fix: Update https_mbedtls example to fix TLS v1.2 connection 2024-05-02 16:58:29 +05:30
Harshit Malpani
07f2cbeb0c 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 16:57:50 +05:30
Harshit Malpani
ff03fd934a 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 16:55:34 +05:30
Mahavir Jain
01631ffcb4 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 16:55:20 +05:30
Mahavir Jain
bc82323e3f 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:13 +05:30
Mahavir Jain
499b579986 esp_tls: add initial support for TLS 1.3 connection 2024-05-02 16:53:37 +05:30
Karl Palsson
79c0c6609b 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:09:01 +08:00
Nachiket Kukade
9a91fba9f2 feat(esp_wifi): Update FTM PHY Compensation with calibration 2024-04-30 12:11:29 +08:00
wuzhenghui
6e1659c233 fix(esp_system): increase 26Mhz esp32c2 slow clock calibration timeout watchdog threshold 2024-04-30 11:47:18 +08:00
Jiang Jiang Jian
d06c758489 Merge branch 'bugfix/fix_scan_get_ap_number_issue_v5.1' into 'release/v5.1'
fix(wifi): fixed scan get ap number issue(Backport v5.1)

See merge request espressif/esp-idf!30569
2024-04-30 11:42:46 +08:00
muhaidong
26a2f687e7 fix(wifi): fixed scan get ap number issue 2024-04-30 10:53:28 +08:00
Radim Karniš
26d6e7563d docs(idf_py): Describe the option to configure esptool.py with --extra-args 2024-04-29 15:20:27 +02:00
Jiang Jiang Jian
24dc97b296 Merge branch 'fix/fix_some_esp32c6_twt_bugs_v5.1' into 'release/v5.1'
fix(wifi): fix some esp32c6 wifi bugs (Backport v5.1)

See merge request espressif/esp-idf!30412
2024-04-29 15:02:00 +08:00
zwx
8f602988d9 feat(openthread): move iperf dependency into cli extension 2024-04-28 16:45:48 +08:00
Xu Si Yu
ad0de2103b feat(openthread): support openthread ephemeral key 2024-04-28 16:32:28 +08:00
xuxiao
fdbdf6036f fix(wifi): fix some esp32c6 wifi bugs (Backport v5.1) 2024-04-28 16:24:49 +08:00
Dávid Fehér
9103290f57 fix(openthread): Fix openthread mtd joiner config
* Fix openthread-core-esp32x-mtd-config.h: OPENTHREAD_CONFIG_JOINER_ENABLE macro value

* On ESP32 MTD devices Joiner role functionality was not working even if 'Joiner enable' was checked in SDK config because 0 was defined in OPENTHREAD_CONFIG_JOINER_ENABLE macro. Value modified to 1 to resolve the issue. Tested and working on ESP32 H2 MTD device.

* Closes: https://github.com/espressif/esp-idf/pull/13473
2024-04-28 16:21:48 +08:00
Ondrej Kosta
db57aa3ae7 fix(esp_eth): made access to PHY registers for DM9051 more robust 2024-04-25 20:19:07 +08:00
Song Ruo Jing
a664c71fd7 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:21:37 +08:00
Song Ruo Jing
c57bfa3737 fix(gpio_etm): allow one GPIO binds to multiple ETM tasks 2024-04-24 17:10:03 +08:00
Song Ruo Jing
204de70570 fix(gpio): add workaround to ensure correct IO drive strength for C3 and S3 2024-04-24 16:59:42 +08:00
Song Ruo Jing
b00844ca57 fix(uart): correct C2 UART_BITRATE_MAX value 2024-04-24 16:19:51 +08:00
Jin Cheng
c38a3544ca 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:15 +08:00
sonika.rathi
a2cc142a54 docs(vfs): update esp_vfs_register_fd api description
Closes https://github.com/espressif/esp-idf/issues/11586
2024-04-23 15:25:12 +02:00
Frantisek Hrbata
0de3c3b572 fix: exit gracefully when process started via asyncio is terminated
Currently when process is started through asyncio Runner and it is termited
e.g. with SIGINT(ctrl+c) a traceback is printed instead of gracefully
exit.

Exception ignored in: <function BaseSubprocessTransport.__del__ at 0x7fe980970900>
Traceback (most recent call last):
  File "/usr/lib64/python3.12/asyncio/base_subprocess.py", line 129, in __del__
    self.close()
  File "/usr/lib64/python3.12/asyncio/base_subprocess.py", line 107, in close
    proto.pipe.close()
  File "/usr/lib64/python3.12/asyncio/unix_events.py", line 568, in close
    self._close(None)
  File "/usr/lib64/python3.12/asyncio/unix_events.py", line 592, in _close
    self._loop.call_soon(self._call_connection_lost, exc)
  File "/usr/lib64/python3.12/asyncio/base_events.py", line 793, in call_soon
    self._check_closed()
  File "/usr/lib64/python3.12/asyncio/base_events.py", line 540, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

This is caused because asyncio Runner context in asyncio.run is closing the event
loop and if exception is unhandled in coroutine(run_command) the transport is not
closed before the even loop is closed and we get RuntimeError: Event loop is closed
in the transport __del__ function because it's trying to use the closed
even loop.

Let's catch asyncio.CancelledError in case the process we are trying to
read from is terminated, print message, let the asyncio finish and exit
gracefully.

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

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-04-22 11:51:32 +02:00
Jiang Jiang Jian
2fd087b246 Merge branch 'fix/ieee802154_include_header_issue_v5.1' into 'release/v5.1'
Fix/ieee802154 include header issue (backport v5.1)

See merge request espressif/esp-idf!30331
2024-04-22 15:40:14 +08:00
Xu Si Yu
00e2c89149 feat(openthread): add max csmabackoffs for transmission 2024-04-22 10:31:18 +08:00
Xu Si Yu
1e5858b57a fix(vfs): add eventfd_select_block test case 2024-04-22 10:31:13 +08:00
Adam Múdry
3cf5243562 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:54:55 +02:00
Guillaume Souchere
c2aad3d28a fix(linenoise): Skip 0x00 to 0x1F character in dump mode
Skipping through the non printable character assures that
in dumb mode, any special keys will not lead to the cursor
movement.
2024-04-19 07:49:25 +02:00
Guillaume Souchere
3766ebbd70 fix(console): bug where backspace erases the prompt in dumb mode 2024-04-19 07:46:32 +02:00
cjin
b2cc9800d0 bugfix(ble): workaround to avoid ble rtc not work when power up 2024-04-19 08:44:43 +08:00
xiaqilin
f0d0463a93 fix(ieee802154): fix ieee802154 next operation acquire lock in interrupt 2024-04-18 11:34:25 +08:00
xiaqilin
4528d2299d fix(ieee802154): fix ieee802154 include header file issue and unused value issue 2024-04-18 11:33:51 +08:00
Jiang Jiang Jian
c686e23038 Merge branch 'bugfix/fix_lmac_end_frame_exchange_sequence_assert_issue_v5.1' into 'release/v5.1'
fix(wifi): fixed lmacEndFrameExchangeSequence assert issue(Backport v5.1)

See merge request espressif/esp-idf!30316
2024-04-18 11:29:08 +08:00
Jiang Jiang Jian
2622be4328 Merge branch 'bugfix/fixed_coex_asset_on_esp32c2_v5.1' into 'release/v5.1'
Bugfix/fixed coex asset on esp32c2 v5.1

See merge request espressif/esp-idf!30301
2024-04-18 11:28:45 +08:00
zhanghaipeng
151976a2c2 fix(ble/bluedroid): Fixed set BLE appearance value 2024-04-17 20:40:44 +08:00
Andy Lin
b562ceb8c1 fix(freertos): Fix broken portable macro portTRY_ENTER_CRITICAL_SAFE()
This commit fixes a bug where the portTRY_ENTER_CRITICAL_SAFE() for the
Xtensa and RISC-V FreeRTOS ports were broken as it did not correctly use
the timeout parameter.

Merges: https://github.com/espressif/esp-idf/pull/13022
2024-04-17 13:42:12 +02:00
muhaidong
c58e1e2ec5 fix(wifi): fixed lmacEndFrameExchangeSequence assert issue 2024-04-17 19:36:03 +08:00
zhangyanjiao
9c79a2333d docs(wifi): update the docmentation for sniffer API
Closes https://github.com/espressif/esp-idf/issues/10740
2024-04-17 16:18:16 +08:00
zhangyanjiao
6f2f5e8bb7 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:18:08 +08:00
zwl
f22ac0ff82 ble: fixed an occasional assertion issue in coexistence scenarios on ESP32C2 2024-04-17 14:55:29 +08:00
zwl
e4fe67f7c2 ble: fixed the bt cmakelist error when use nimble host only 2024-04-17 14:54:54 +08:00
harshal.patil
fb854f0d51 ci(otatool): fix test failure caused due to closing connection incorrectly 2024-04-17 10:16:28 +05:30
Kapil Gupta
a4cda66e30 feat(esp_wifi): Provide API to disable PMK caching 2024-04-17 09:40:37 +05:30
Xiao Xufeng
9b142a9f72 doc(flash): fix auto suspend enabled by default issue 2024-04-16 23:02:42 +08:00
Guillaume Souchere
045b013796 fix(console): Fsync not propagated to secondary output
Calls to fsync need to also be propagated to secondary
output when CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG
is enabled.

Closes https://github.com/espressif/esp-idf/issues/13162
2024-04-16 08:35:44 +02:00
Mahavir Jain
c432c692fa Merge branch 'bugfix/howsmyssl_cert_update_v5.1' into 'release/v5.1'
fix(examples): update root certificate for howsmyssl endpoint (v5.1)

See merge request espressif/esp-idf!30204
2024-04-16 10:58:26 +08:00
Xu Si Yu
4476ff475e fix(openthread): increase factory app size in ot_br partition table 2024-04-15 20:54:26 +08:00
Lou Tianhao
ccc7edb965 docs(pm): add description for ext1 2024-04-15 20:33:07 +08:00
Lou Tianhao
b8c6179355 change(pm): add ext1 new api 2024-04-15 20:33:02 +08:00
zhiweijian
45f5714beb fix(ble/bluedroid): Fixed adv not restart due to disconnection reason 0x3e 2024-04-13 15:41:49 +08:00
zhiweijian
cc2e293d7c feat(bt/common): Add bluerooth hci layer data stream record 2024-04-13 15:41:15 +08:00
zhiweijian
070f6b4c9a feat(bt/bluedroid): add api to setnd vendor hci command 2024-04-13 12:57:55 +08:00
zhiweijian
eefcec929e fix(ble/bluedroid): fixed bluedroid host DTM API 2024-04-13 11:47:44 +08:00
zhiweijian
fc5bd26340 feat(ble/bluedroid): Add APIs for BLE direct test mode on bluedroid host 2024-04-13 11:45:04 +08:00
harshal.patil
b5347ef02b feat(hal/ecdsa): Add HAL API for operation successful check 2024-04-12 11:14:10 +05:30
Mahavir Jain
6a89ca77e1 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:06 +08:00
Jiang Jiang Jian
dd8080e164 Merge branch 'bugfix/BT-3491_v5.1' into 'release/v5.1'
bugfix(ble_mesh): Avoid provisioner handling messages from nodes that have...(v5.1)

See merge request espressif/esp-idf!28050
2024-04-12 10:30:49 +08:00
Jiang Jiang Jian
07c17c6114 Merge branch 'feat/adjust_ble_log_init_order_v5.1' into 'release/v5.1'
Feat/adjust ble log init order v5.1

See merge request espressif/esp-idf!30002
2024-04-12 10:30:36 +08:00
Jiang Jiang Jian
ac3087ea36 Merge branch 'bugfix/gptimer_alarm_config_in_sram_v5.1' into 'release/v5.1'
feat(gptimer): check the alarm config is not in flash (v5.1)

See merge request espressif/esp-idf!30135
2024-04-12 09:08:41 +08:00
Jiang Jiang Jian
592b7a9b80 Merge branch 'bugfix/fix_some_wifi_bugs_240411_v5.1' into 'release/v5.1'
fix(wifi): fixed some wifi issue 240411(Backport v5.1)

See merge request espressif/esp-idf!30187
2024-04-12 09:08:14 +08:00
luoxu
a1f97563cc fix(ble_mesh): fix error condition for heartbeat filter adding node address 2024-04-11 20:24:43 +08:00
wangjialiang
8fc57142a3 update invalid links in the ble mesh example documentation 2024-04-11 20:23:50 +08:00
luoxu
ea6e8653f6 bugfix(ble_mesh): Avoid provisioner handling messages from nodes that have already left the network. 2024-04-11 20:23:50 +08:00
Jiang Jiang Jian
35d5ea1104 Merge branch 'bugfix/config_sae_compile_error_v5.1' into 'release/v5.1'
fix(wpa_supplicant): Compile error when CONFIG_SAE is disabled (v5.1)

See merge request espressif/esp-idf!30178
2024-04-11 16:09:45 +08:00
muhaidong
edbf44b290 fix(wifi): fixed some wifi issue
1. sync multi antenna gpio register from IDF
2. fixed multicast address qos frames issue
3. fixed task watchdog got triggered by esp_wifi_stop issue
2024-04-11 15:33:43 +08:00
Jiang Jiang Jian
9abd010153 Merge branch 'fix/heap-calloc-fail-wrong-size_v5.1' into 'release/v5.1'
fix(heap): Wrong size propagated in alloc fail callback of heap_caps_calloc() (backport v5.1)

See merge request espressif/esp-idf!30091
2024-04-11 15:19:10 +08:00
muhaidong
6f20668b24 fix(wifi): fix multicast address qos frames issue 2024-04-11 14:54:37 +08:00
Jiang Jiang Jian
32c8c5805d Merge branch 'bugfix/fix_rtc_cntl_v5.1' into 'release/v5.1'
[S3]fix(rtc_cntl_reg.h): fix RTC_CNTL_SLAVE_PD_M

See merge request espressif/esp-idf!30170
2024-04-11 14:12:24 +08:00
Jiang Jiang Jian
3826f2b828 Merge branch 'bugfix/fix_coded_phy_s8_tx_issue_v5.1' into 'release/v5.1'
fix(esp_phy): fixed BLE coded phy s8 tx issue in coexistence scenarios (backport v5.1)

See merge request espressif/esp-idf!30173
2024-04-11 13:59:47 +08:00
Shreyas Sheth
2ac6e7345f fix(wpa_supplicant): Compile error when CONFIG_SAE is disabled
Closes https://github.com/espressif/esp-idf/issues/13553
2024-04-11 11:18:58 +05:30
Mahavir Jain
468732a4d2 docs: add note about newly added mbedtls config to reduce app size footprint 2024-04-11 11:51:53 +08:00
Mahavir Jain
7b6622b5b6 feat(mbedtls): add kconfig option for MBEDTLS_ERROR_C
Disabling this config can reduce footprint for the cases where
mbedtls_strerror() is used and hence the debug strings are getting
pulled into the application image.
2024-04-11 11:51:53 +08:00
linruihao
661d066872 fix(esp_phy): update phylib for C3, S3, C2 and C6
- fixed BLE coded phy s8 tx issue in coexistence scenarios
- fixed ESP32-C3 and ESP32-S3 BLE RX issue
- optimize ESP32-C3 and ESP32-S3 light sleep current
2024-04-10 20:35:34 +08:00
zlq
58848946af [S3]fix(rtc_cntl_reg.h): fix RTC_CNTL_SLAVE_PD_M 2024-04-10 19:51:25 +08:00
Jiang Jiang Jian
a8f833a912 Merge branch 'fix/fix_pmu_power_domain_initialize_order_v5.1' into 'release/v5.1'
fix(esp_hw_support): fix pmu power domain initialize order (v5.1)

See merge request espressif/esp-idf!30152
2024-04-10 17:23:55 +08:00
Michael (XIAO Xufeng)
d82b572ecd Merge branch 'bugfix/i2c_timeout_issue_v5.1' into 'release/v5.1'
fix(i2c): fix issues related to timeout and alive interval tick (backport v5.1)

See merge request espressif/esp-idf!29980
2024-04-10 16:44:22 +08:00
wuzhenghui
ddd2c5b418 fix(esp_hw_support): fix pmu power domain initialize order 2024-04-10 10:07:58 +08:00
morris
4a497e1212 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:26 +08:00
Mahavir Jain
d1c17f96f6 Merge branch 'fix/pmp_idcache_prot_c6_h2_v5.1' into 'release/v5.1'
fix(esp_hw_support): Fix the flash I/DROM region PMP protection (v5.1)

See merge request espressif/esp-idf!30023
2024-04-08 17:52:23 +08:00
Guillaume Souchere
2c794ee423 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:42:49 +02:00
morris
491f4af657 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:50:37 +08:00
Alexey Gerenkov
75a4f0e2b7 feat(tools): update openocd version to v0.12.0-esp32-20240318 2024-04-08 03:34:56 +08:00
xiongweichao
67137791cd fix(bt/bluedorid): Fixed crash caused by using illegal pointer 2024-04-07 19:08:41 +08:00
xiongweichao
75c0c89de3 fix(bt/bluedorid): Fixed no event when removing an invalid SDP record 2024-04-07 19:08:41 +08:00
wuzhenghui
4a754c735d fix(esp_pm): update CPU frequency immediately after updating pm_config
Closes https://github.com/espressif/esp-idf/issues/13492
2024-04-07 14:46:48 +08:00
Cao Sen Miao
932d595256 change(usb_serial_jtag): Add a usb_serial_jtag echo example for how to use usb_serial_jtag APIs,
Closes https://github.com/espressif/esp-idf/issues/12620,
Closes https://github.com/espressif/esp-idf/issues/12605
2024-04-07 11:59:35 +08:00
Cao Sen Miao
93b2297dc1 fix(usb_serial_jtag): Fix issue that buffer seems not flush when TX buffer is full and flush slow,
Closes https://github.com/espressif/esp-idf/issues/12628
2024-04-07 10:46:37 +08:00
Jeroen Domburg
28e2ab09ea fix(driver): Add docs and driver fix for the case where a full EP does not cause the host to pickup the data 2024-04-07 10:46:34 +08:00
Jiang Jiang Jian
46d402d22e Merge branch 'bugfix/wpa3_ap_ci_crash_v5.1' into 'release/v5.1'
fix(esp_wifi): Fix crash when assoc req comes before confirm is processed

See merge request espressif/esp-idf!29950
2024-04-07 10:35:12 +08:00
Jiang Jiang Jian
368b7eb3fc Merge branch 'fix/add_phy_private_dslp_callback_v5.1' into 'release/v5.1'
fix(esp_hw_support): move deepsleep phy callback before PLL disable (v5.1)

See merge request espressif/esp-idf!30014
2024-04-07 10:24:39 +08:00
Alexey Lapshin
e9b4e6f00c fix(gcov): fix exceptions on gcov task_tick_hook
Closes https://github.com/espressif/esp-idf/issues/13511
2024-04-03 15:29:36 +04:00
Jiang Jiang Jian
581bcf46b5 Merge branch 'bugfix/fix_ble_power_save_ci_v5.1' into 'release/v5.1'
fix(ble): fix conn error of ble power save ci test(v5.1)

See merge request espressif/esp-idf!29823
2024-04-03 19:03:29 +08:00
Jiang Jiang Jian
a1471a9291 Merge branch 'bugfix/aud-5252_v5.1' into 'release/v5.1'
backport v5.1: fix the issue of modem hang caused by incorrect configuration of power and isolate signals

See merge request espressif/esp-idf!30008
2024-04-03 19:03:09 +08:00
Jiang Jiang Jian
54ad993fe9 Merge branch 'feature/add_cli_in_openthread_sleep_example_v5.1' into 'release/v5.1'
feat(openthread): add cli in openthread sleep example (backport v5.1)

See merge request espressif/esp-idf!29596
2024-04-03 19:02:32 +08:00
Laukik Hase
f839fa089a fix(esp_hw_support): Fix the flash I/DROM region PMP protection 2024-04-03 15:51:39 +05:30
wuzhenghui
b0d7c5ac40 fix(esp_hw_support): move deepsleep phy callback before PLL disable 2024-04-03 14:11:18 +08:00
Li Shuai
4254953374 fix(esp_hw_support): fixed modem hang caused by incorrect configuration of power and isolate signals 2024-04-03 10:49:31 +08:00
Shreyas Sheth
a64d8b12c8 fix(esp_wifi): Fix crash when assoc req comes before confirm is processed 2024-04-03 00:04:14 +05:30
cjin
d7c4968d3c feat(ble): add cca related config in c6, h2 and c2 2024-04-02 19:55:37 +08:00
cjin
8e140779e7 change(ble): support ble light sleep using ext 32k xtal on C2 2024-04-02 19:55:36 +08:00
zwl
142af33ded ble: update esp32c2 lib to 7a428d35 2024-04-02 19:25:51 +08:00
zwl
056754317c ble: update esp32h2 and esp32c6 lib to 39c6e050 2024-04-02 19:25:37 +08:00
zhaoweiliang
90cf9c42d7 ble : adjust the log initialization sequence of ESP32C6 and ESP32H2 2024-04-02 19:25:10 +08:00
Omar Chebib
4c896cbb3a 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-04-02 10:43:00 +08:00
gongyantao
3796715228 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:37:45 +08:00
Jiang Jiang Jian
d1baafb8c0 Merge branch 'bugfix/fix_call_to_header_event_callback_v5.1' into 'release/v5.1'
fix: Fix call to event_handler on on_header state of HTTP Client (v5.1)

See merge request espressif/esp-idf!29955
2024-04-01 20:41:02 +08:00
Harshit Malpani
ce225dfc1a 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:19:57 +05:30
Jiang Jiang Jian
a355214a16 Merge branch 'bugfix/fix_coex_ld_issue_v5.1' into 'release/v5.1'
fix(wifi): fix coex ld issue (v5.1)

See merge request espressif/esp-idf!29916
2024-04-01 14:08:58 +08:00
Omar Chebib
7a598cd561 fix(espcoredump): Reconfigure the stack guard when using custom coredump stack 2024-04-01 10:57:56 +08:00
Konstantin Kondrashov
63d71b1bcd fix(log): Fix wrap-around of cache generation counter
Closes https://github.com/espressif/esp-idf/issues/6516
2024-03-29 17:32:03 +03:00
Jiang Jiang Jian
92a184d482 Merge branch 'bugfix/dpp_example_init_error_v5.1' into 'release/v5.1'
fix(wifi/example): Fix dpp example init error (v5.1)

See merge request espressif/esp-idf!29860
2024-03-29 19:47:50 +08:00
liuning
6c015fd05e fix(wifi): fix coex ld issue 2024-03-28 21:19:27 +08:00
Rahul Tank
a0d6d5c714 fix(nimble): Handle missing free in application 2024-03-28 08:51:07 +05:30
Jin Cheng
1dc8ace8c7 change(bt/bluedroid): Use BTC util to convert HCI status to ESP status 2024-03-28 10:19:00 +08:00
Konstantin Kondrashov
c4b99b73db fix(esp_timer): Force to go light sleep ignoring ESP_ERR_SLEEP_REJECT 2024-03-27 19:49:33 +02:00
Ondrej Kosta
6fc71b750d ci(esp_eth): increased L2 test wait for connection timeout 2024-03-27 12:59:55 +01:00
sparker
c218c35439 fix(wifi/example): Fix dpp example init error
Set wifi mode before calling esp_supp_dpp_init.

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

Signed-off-by: Shreyas Sheth <shreyas.sheth@espressif.com>
2024-03-27 11:21:20 +05:30
cjin
27b553eb38 fix(ble): fix ci ble powe save test addresss error 2024-03-25 15:59:32 +08:00
Darian Leung
5c2a003f91 refactor(soc): Remove soc/usb_types.h
This header has been removed for the following reasons:

- Header is misplaced. 'xxx_types.h' headers should be placed in the 'hal'
component.
- The 'usb_xxx_endpoint_t' should be placed in the 'xxx_struct.h' header.
2024-03-22 15:21:52 +08:00
Darian Leung
3073673669 refactor(soc): Rename usb_otg_periph to usb_dwc_periph
- Renamed usb_otg_periph.h/c to usb_dwc_periph.h/c to match naming convention
of other DWC OTG related files
- Added compatibility header for usb_otg_periph.h
2024-03-22 15:21:51 +08:00
Darian Leung
93e2cbcc77 refactor(soc): Deprecate usb pin mappings
usb_pins.h and usb_periph.h/c lists mappings of USB DWC signals to GPIOs used
to connect to external FSLS PHYs. However, those signals can be routed to any
GPIOs via the GPIO matrix. Thus, these mapping are meaningless and have been
deprecated.
2024-03-22 15:21:51 +08:00
Darian Leung
0205ed9dc6 refactor(hal): Remove usb_hal and usb_ll
This commit removes some legacy USB related HAL and LL files that are no longer
used.
2024-03-22 15:21:51 +08:00
Jiang Jiang Jian
d23b7a0361 Merge branch 'bugfix/wps_reg_regression_v5.1' into 'release/v5.1'
fix(esp_wifi): Fixed regression caused by 02d6704a when wpa_supplicant debug logs enabled (!29701)

See merge request espressif/esp-idf!29754
2024-03-22 13:53:44 +08:00
Jiang Jiang Jian
c642c72713 Merge branch 'bugfix/fix_softap_coex_start_issue_v5.1' into 'release/v5.1'
fix(wifi): fix softap coex start issue, no wifi request if wifi is not used at idle

See merge request espressif/esp-idf!29771
2024-03-22 10:46:26 +08:00
liuning
01548764f6 fix(wifi): fix softap coex start issue, no wifi request if wifi is not used at idle 2024-03-21 19:16:55 +08:00
Jakob Hasse
cb71476ff3 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:09 +08:00
Jakub Kocka
13fea024e5 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:54:39 +01:00
Sarvesh Bodakhe
d2b674622c fix(esp_wifi): Fix regression caused by 02d6704a when supplicant logs enabled 2024-03-20 11:03:20 +05:30
Tomáš Rohlínek
bd1fb233f7 fix(storage/fatfs): make wl_fatfsgen.py safe mode aware 2024-03-19 09:30:14 +01:00
morris
8bacd5aab3 feat(parlio_tx): support non-blocking transaction queue 2024-03-19 13:15:15 +08:00
Jiang Jiang Jian
9f7eacb089 Merge branch 'fix/ci_flash_counter_v5.1' into 'release/v5.1'
fix(spi_flash): Fix spi_flash counter test on CI (backport v5.1)

See merge request espressif/esp-idf!29710
2024-03-19 11:54:42 +08:00
Jiang Jiang Jian
29f78cea74 Merge branch 'feature/refactor_ftm_code_v5.1' into 'release/v5.1'
Refactor and improve FTM code (Backport v5.1)

See merge request espressif/esp-idf!29713
2024-03-19 11:39:48 +08:00
Nachiket Kukade
16a80db4d0 feat(esp_wifi): Refactor and improve FTM code
Enable FTM Responder mode for ESP32C6. 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-03-18 21:33:02 +05:30
Jiang Jiang Jian
aead2f3205 Merge branch 'bugfix/wps_crash_issue_v5.1' into 'release/v5.1'
fix(wpa_supplicant): Avoid dereferencing a dangling function pointer in WPS (Backport v5.1)

See merge request espressif/esp-idf!29701
2024-03-18 21:23:26 +08:00
Cao Sen Miao
9afa5e53c0 fix(spi_flash): Fix spi_flash counter test on CI 2024-03-18 20:23:55 +08:00
Jiang Jiang Jian
4bdbb79b34 Merge branch 'bugfix/add_authmode_wpa_wpa2_wpa3_psk_v5.1' into 'release/v5.1'
esp_wifi: Handle case when AP advertises WPA, WPA2 and WPA3 securities simultaneously and other bugfixes (Backport v5.1)

See merge request espressif/esp-idf!29689
2024-03-18 19:49:15 +08:00
Jiang Jiang Jian
f12d65357f Merge branch 'bugfix/flash_enc_write_ram_v5.1' into 'release/v5.1'
fix(spi_flash): Fix that internal RAM has no enough space to put all stuff inside (backport v5.1)

See merge request espressif/esp-idf!29657
2024-03-18 19:41:32 +08:00
Alexey Lapshin
4325d5c9c5 fix(bt): fix gcc 13.1.0 warnings 2024-03-18 14:55:22 +05:30
jgujarathi
aef69dffb3 fix(wpa_supplicant): Cancel offchannel listen operations before sending dpp fail
- Ensure that offchannel listening operations are cancelled before sending dpp
  fail events
2024-03-18 14:37:33 +05:30
jgujarathi
36f3cbf369 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-03-18 14:37:30 +05:30
Sarvesh Bodakhe
02d6704a30 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-03-18 12:44:59 +05:30
Sarvesh Bodakhe
e1502fb99e 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-03-18 12:44:53 +05:30
Li Shuai
a02adef4f6 fix(example): fixed app partition is too small for binary size 2024-03-18 14:15:45 +08:00
Sarvesh Bodakhe
d9b42232bd 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-03-18 14:15:45 +08:00
Jiang Jiang Jian
7d16878564 Merge branch 'bugfix/make_coexist_callback_safe_v5.1' into 'release/v5.1'
fix(bt/controller): Fixed some bugs in esp32 bt controller (v5.1)

See merge request espressif/esp-idf!29683
2024-03-18 11:30:57 +08:00
Kapil Gupta
819fbf9a68 Merge branch 'bugfix/cve-2023-52160_v5.1' into 'release/v5.1'
fix(wpa_supplicant): (PEAP client) Update Phase 2 auth requirements (v5.1)

See merge request espressif/esp-idf!29676
2024-03-17 19:24:44 +08:00
Shu Chen
19dd33854b Merge branch 'backport5.1/openthread_2024_3_14' into 'release/v5.1'
openthread modifications backport to 5.1

See merge request espressif/esp-idf!29653
2024-03-17 08:21:12 +08:00
Jiang Jiang Jian
8af8f5840c Merge branch 'bugfix/fix_the_spiram_malloc_issue_in_wifi_mesh_v5.1' into 'release/v5.1'
fix(wifi): fixed the spiram malloc issue in wifi mesh (v5.1)

See merge request espressif/esp-idf!29630
2024-03-15 20:11:20 +08:00
linruihao
c90f4fce9c 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:51 +08:00
Xu Si Yu
88cd813311 feat(openthread): support configuring indicator color of openthread device 2024-03-15 17:38:44 +08:00
Xu Si Yu
7155146f9c fix(vfs): fix eventfd select 2024-03-15 17:38:28 +08:00
Jiang Jiang Jian
089113c6db Merge branch 'doc/update_espnow_doc_v5.1' into 'release/v5.1'
docs(wifi): Updated the LMK description in ESP-NOW (v5.1)

See merge request espressif/esp-idf!29670
2024-03-15 17:23:56 +08:00
Kapil Gupta
6f9cc06b30 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:10 +05:30
zhangyanjiao
30d070ea72 docs(wifi): Updated the LMK description in ESP-NOW
Closes https://github.com/espressif/esp-idf/issues/12976
2024-03-15 15:10:09 +08:00
Jiang Jiang Jian
0bef269ac0 Merge branch 'fix/fix_curses_py312_v5.1' into 'release/v5.1'
Fix Access Violation Error on Windows with Python 3.12 (v5.1)

See merge request espressif/esp-idf!29510
2024-03-15 13:45:00 +08:00
Jiang Jiang Jian
b2123cc7ff Merge branch 'bugfix/sdspi_acmd41_arg_v5.1' into 'release/v5.1'
fix(sdmmc): fixes for card initialization (ACMD41) (v5.1)

See merge request espressif/esp-idf!29377
2024-03-15 13:44:39 +08:00
Jiang Jiang Jian
59d686ed3c Merge branch 'bugfix/fix_maximum_value_of_config_rtc_clk_cal_cycles_bug_v5.1' into 'release/v5.1'
ESP All Chip: fixed the maximum value of config RTC_CLK_CAL_SYCLES bug (v5.1)

See merge request espressif/esp-idf!29649
2024-03-15 13:44:18 +08:00
Jiang Jiang Jian
8d3b3dfefa Merge branch 'bugfix/fix_some_wifi_coexist_issue_v5.1' into 'release/v5.1'
fix(coex): fix some wifi coexist issue v5.1

See merge request espressif/esp-idf!29660
2024-03-15 12:27:58 +08:00
Jiang Jiang Jian
9eb22e688c Merge branch 'bugfix/fix_fastmem_slowmem_lost_data_bug_v5.1' into 'release/v5.1'
[C3/S3]Fix sleep fast_mem & slow_mem may lost bug (v5.1)

See merge request espressif/esp-idf!29641
2024-03-15 11:30:44 +08:00
Jiang Jiang Jian
4885b77b47 Merge branch 'bugfix/fix_s3_bbpll_cali_fail_bug_v5.1' into 'release/v5.1'
fix: fix s3 bbpll calibration fail bug (v5.1)

See merge request espressif/esp-idf!29645
2024-03-15 11:30:22 +08:00
zhangyanjiao
7f2dfdb38e fix(wifi): fixed the spiram malloc issue in wifi mesh
Closes https://github.com/espressif/esp-idf/issues/13285
2024-03-15 11:12:44 +08:00
liuning
583c8665f4 feat(coex): support to scan long time on channel, fix coexist sync issue 2024-03-15 10:49:18 +08:00
liuning
c8901276b7 example: add custom partition table for mesh manual networking 2024-03-15 10:49:18 +08:00
liuning
dfebf6cbbe feat(coex): improve Wi-Fi connecting compatibility at coexistence 2024-03-15 10:49:18 +08:00
liuning
cb0fd9010b fix(clk): clear all lpclk source at clk init 2024-03-15 10:49:18 +08:00
Jiang Jiang Jian
3e526ef774 Merge branch 'bugfix/supplicant_disconnect_process_v5.1' into 'release/v5.1'
esp_wifi: Fix bug in esp_wifi_deauthenticate_internal() & wpa_supplicant: Add parameter to configure reason code of deauth frame  (Backport v5.1)

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

See merge request espressif/esp-idf!29632
2024-03-14 21:10:26 +08:00
Cao Sen Miao
723519cf67 fix(spi_flash): Fix that internal RAM has no enough space to put all stuff inside 2024-03-14 19:40:14 +08:00
Cao Sen Miao
5340a56af1 fix(spi_flash): Improve encryption write performance, Closes https://github.com/espressif/esp-idf/issues/12553 2024-03-14 19:38:11 +08:00
zwx
85ae8bfd5a fix(openthread): using atomic variable for buffer count 2024-03-14 17:18:16 +08:00
zwx
65b652ad34 feat(openthread): enable RCP uart configuration for BR by default 2024-03-14 17:18:05 +08:00
Xu Si Yu
9f8e6dff24 feat(openthread): add different led color for openthread devices 2024-03-14 17:17:22 +08:00
hongshuqing
d50b336afd fix: fix_maximum_value_of_config_rtc_clk_cal_cycle_bug 2024-03-14 16:12:17 +08:00
hongshuqing
3b7a934498 fix: fix s3 bbpll cali fail bug 2024-03-14 15:45:37 +08:00
chaijie@espressif.com
9680d3fa81 fix: fix sleep fast_mem & slow_mem may lost bug 2024-03-14 15:03:49 +08:00
Jiang Jiang Jian
7be8274b3a Merge branch 'fix/support_gcm_soft_fallback_for_non_aes_ciphers_v5.1' into 'release/v5.1'
fix(mbedtls/gcm): Add support for software fallback for non-AES ciphers in a GCM operation (v5.1)

See merge request espressif/esp-idf!29251
2024-03-14 14:02:11 +08:00
Sarvesh Bodakhe
344c5d1fce fix(wifi): fix bug in 'esp_wifi_deauthenticate_internal' and other improvements 2024-03-14 11:24:27 +05:30
Sarvesh Bodakhe
e5059dffec 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-03-14 11:23:05 +05:30
Jiang Jiang Jian
f21038666a Merge branch 'update/littlefs_demo_example_v5.1_v2' into 'release/v5.1'
LittleFS demo example added & Update/littlefs demo example (v5.1) v2

See merge request espressif/esp-idf!29450
2024-03-14 13:49:53 +08:00
Ivan Grokhotkov
7c20d54953 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-14 13:49:23 +08:00
Ivan Grokhotkov
7ff2886c84 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-14 13:49:23 +08:00
Jiang Jiang Jian
5059908d08 Merge branch 'fix/fatfs_sdmmc_triming_v5.1' into 'release/v5.1'
fix(storage/fatfs): check whether sdcard supports trimming (v5.1)

See merge request espressif/esp-idf!28336
2024-03-14 13:47:00 +08:00
Jiang Jiang Jian
2d900158ce Merge branch 'ci/create_esp-dockerfile_MR_after_tools.json_updated_v5.1' into 'release/v5.1'
CI: created job and script for creating MR to esp-dockerfiles, added script execution to CI pipeline (v5.1)

See merge request espressif/esp-idf!28130
2024-03-14 13:46:24 +08:00
Jin Cheng
0fcd6a7c73 feat(bt/bluedroid): Moved the memory allocation of HF AG control blocks to BTC module 2024-03-14 10:53:11 +08:00
Jiang Jiang Jian
8b48f33304 Merge branch 'bugfix/reduce_memory_footprint_of_sae_pk_v5.1' into 'release/v5.1'
fix(wifi): Reduce memory footprint for scan when SAE-PK is enabled (v5.1)

See merge request espressif/esp-idf!27654
2024-03-14 10:52:50 +08:00
morris
96888a9ad6 Merge branch 'bugfix/flash_mxic_chip_v5.1' into 'release/v5.1'
fix(spi_flash): Fix MXIC chip flash size detected wrong (backport v5.1)

See merge request espressif/esp-idf!29611
2024-03-14 10:46:13 +08:00
morris
374e54ca78 Merge branch 'bugfix/workaround_reset_eof_counter_c3_v5.1' into 'release/v5.1'
fix(adc): workaround to fix adc continuous get less results on c3 (v5.1)

See merge request espressif/esp-idf!29137
2024-03-14 10:44:23 +08:00
Rahul Tank
077a966fb0 Merge branch 'contrib/github_pr_13034_v5.1' into 'release/v5.1'
docs(nimble): Fixed typo in examples/bluetooth/nimble/blehr/README (GitHub PR) (v5.1)

See merge request espressif/esp-idf!29616
2024-03-13 23:47:08 +08:00
Martin Vychodil
9706e5a274 Merge branch 'bugfix/nvs_lock_initi_and_multipage_blob_v5.1' into 'release/v5.1'
Bugfix/nvs Improved handling of BLOB during unreliable power environment and concurrent data access scenarios (v5.1)

See merge request espressif/esp-idf!29321
2024-03-13 23:10:02 +08:00
Rahul Tank
0c26579d2b Merge branch 'feature/add_doc_for_p4_v5.1' into 'release/v5.1'
docs(nimble): Added gpio configuration table for esp32p4 (v5.1)

See merge request espressif/esp-idf!29600
2024-03-13 20:37:42 +08:00
Aditya Patwardhan
b884b3788e Merge branch 'bugfix/update_disabling_hmac_jtag_method_v5.1' into 'release/v5.1'
fix(esp_hw_support): update hmac toggle method due to discrepency in ROM code (v5.1)

See merge request espressif/esp-idf!29531
2024-03-13 20:20:52 +08:00
Jiang Jiang Jian
db2a037329 Merge branch 'bugfix/hpm_dc_default_disabled_v5.1' into 'release/v5.1'
spi_flash: fixed issue that enabling HPM-DC by default may cause app unable to restart (v5.1)

See merge request espressif/esp-idf!26656
2024-03-13 19:50:59 +08:00
Jiang Jiang Jian
9bada8c1da Merge branch 'save_twdt_to_coredump_v5.1' into 'release/v5.1'
feat(coredump): save twdt panic output to coredump elf file (v5.1)

See merge request espressif/esp-idf!29509
2024-03-13 19:50:17 +08:00
Alex Verschoot
ed4d8752c1 Update README.md
Fix typo
2024-03-13 17:09:31 +05:30
Cao Sen Miao
4af88f7458 fix(spi_flash): Fix MXIC chip flash size detected wrong,
Closes https://github.com/espressif/esp-idf/issues/12222
2024-03-13 18:51:36 +08:00
Marius Vikhammer
663d42f5be Merge branch 'feat/newlib-add-aligned-alloc_v5.1' into 'release/v5.1'
feat(newlib): Add definition of aligned_alloc to heap.c (backport v5.1)

See merge request espressif/esp-idf!29471
2024-03-13 17:52:51 +08:00
Marius Vikhammer
a8a178a480 Merge branch 'docs/esp_event_doc_fix_v5.1' into 'release/v5.1'
docs(esp_event): Fixed mistake in API docs (v5.1)

See merge request espressif/esp-idf!29564
2024-03-13 17:51:50 +08:00
Marius Vikhammer
c045e98092 Merge branch 'contrib/github_pr_12785_v5.1' into 'release/v5.1'
Provide ulp_adc_deinit() API to fix ADC1 handle leakage (GitHub PR) (v5.1)

See merge request espressif/esp-idf!28456
2024-03-13 17:31:19 +08:00
Roshan Bangar
d6105439b7 docs(nimble): Added gpio configuration table for esp32p4 2024-03-13 14:02:49 +05:30
xiaqilin
8507136b58 feat(openthread): add cli in openthread sleep example 2024-03-13 14:53:43 +08:00
harshal.patil
b1586cc041 fix(tcp_transport): Fix coverity report regarding tcp_transport 2024-03-13 11:25:12 +05:30
Sarvesh Bodakhe
1d8b484cce fix(esp_wifi): Reduce memory footprint for scan when SAE-PK is enabled
Use bss information cached in wifi library to get RSNXE capabilities
instead of storing bss information again in supplicant and accessing it.
2024-03-13 10:48:07 +05:30
Rahul Tank
5710425216 Merge branch 'bugfix/reconnect_host_based_v5.1' into 'release/v5.1'
fix(nimble): Added ble_host_rpa_enabled flag for address resoultion for esp32 (v5.1)

See merge request espressif/esp-idf!29570
2024-03-13 12:55:07 +08:00
Marius Vikhammer
9ceabe7959 Merge branch 'docs/fix_spiram_mistake_v5.1' into 'release/v5.1'
docs(heap): Fixed mistake in the heap allocator docs (v5.1)

See merge request espressif/esp-idf!29589
2024-03-13 11:32:06 +08:00
Jiang Jiang Jian
1a50f0863b Merge branch 'bugfix/fix_modbus_tcp_slave_examples_use_events_v51' into 'release/v5.1'
fix(examples/modbus): fix modbus slave examples may process event flags incorrectly (Backport v5.1)

See merge request espressif/esp-idf!28248
2024-03-13 10:56:26 +08:00
Alex Lisitsyn
123f8e6714 fix(examples/modbus): fix modbus slave examples may process event flags incorrectly (Backport v5.1) 2024-03-13 10:56:26 +08:00
Island
9fe40d424d Merge branch 'bugfix/ble_update_lib_20240306_v5.1' into 'release/v5.1'
update lib on release/v5.1

See merge request espressif/esp-idf!29436
2024-03-13 10:18:33 +08:00
Jakob Hasse
0a0c74ae1b docs(heap): Fixed mistake in the heap allocator docs
Closes https://github.com/espressif/esp-idf/issues/13353
2024-03-13 09:46:54 +08:00
Marius Vikhammer
1794471b57 Merge branch 'docs/remove_ulp_deep_sleep_example_v5.1' into 'release/v5.1'
docs(deep_sleep): removed mentions of ULP in deep sleep example readme (v5.1)

See merge request espressif/esp-idf!29575
2024-03-13 09:26:01 +08:00
radek.tandler
c3f335817b 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-12 16:27:36 +01:00
radek.tandler
2acac6b848 fix(nvs): Adopted CMakeLists for host test if IDF v5.1 2024-03-12 16:27:36 +01:00
radek.tandler
0d3bbed981 fix(nvs): Improved lockig mechanism for initialization phase 2024-03-12 16:27:36 +01:00
radek.tandler
a1750801f6 fix(nvs): eraseMultiPageBlob to robustly delete all related BLOB_DATA records and respect VER_ANY 2024-03-12 16:27:36 +01:00
radek.tandler
66b2a50066 fix(nvs): corrected findItem to return BLOB_DATA when chunkIndex = CHUNK_ANY 2024-03-12 16:27:36 +01:00
radek.tandler
9a9ef9d843 fix(nvs): added check and erase of mismatched BLOB_DATA on init 2024-03-12 16:27:36 +01:00
Ivan Grokhotkov
ee836d236f fix(nvs): prevent out of bounds write if blob data is inconsistent 2024-03-12 16:27:36 +01:00
Darshan Dobariya
86ec111525 fix(nimble): Added ble_host_rpa_enabled flag for address resoultion for esp32 2024-03-12 20:53:43 +05:30
Rahul Tank
a4916eb8a6 Merge branch 'bugfix/fix_strict_prototype_hid_v5.1' into 'release/v5.1'
fix(nimble): Address compilation errors when strict-prototype is enabled (v5.1)

See merge request espressif/esp-idf!29541
2024-03-12 23:00:59 +08:00
Jiang Jiang Jian
3991a987f1 Merge branch 'bugfix/fix_some_wifi_bugs_240311_v5.1' into 'release/v5.1'
fix(wifi): fix some wifi issues(Backport v5.1)

See merge request espressif/esp-idf!29565
2024-03-12 22:44:19 +08:00
Adam Múdry
7a235d5bae feat: LittleFS bump version to 1.14.2 2024-03-12 20:58:14 +08:00
Adam Múdry
61b5121c38 feat: LittleFS bump version to 1.13.0 2024-03-12 20:58:14 +08:00
sonika.rathi
0bec1976b1 feat(example/storage/littlefs): add LittleFS demo example 2024-03-12 20:58:14 +08:00
muhaidong
ec16fa7dd5 fix(wifi): fix some amsdu issue
1. fix qos encapsulated eapol issue
2. fix qos eapol eb data length issue
3. eapol arp and dhcp add flag PP_F_PER_PKT_RATE
4. fix lmac_stop_hw_txq issue
5. limit the number of sub amsdu
6. fix recycle cache sub amsdu eb issue
2024-03-12 19:01:09 +08:00
muhaidong
4ae8d2179d fix(wifi): fix lmac_stop_hw_txq issue 2024-03-12 19:01:09 +08:00
muhaidong
0aadc3ec2a fix(wifi): fix some wifi issues
1. fix qos encapsulated eapol issue
2. fixed dhcp offer and dhcp ack data rates
2024-03-12 19:01:09 +08:00
muhaidong
becd279fd7 fix(example): fixed app partion is too small for binary size 2024-03-12 19:01:09 +08:00
muhaidong
b7e382e0a5 fix(wifi): fix smart config bssid set issue 2024-03-12 19:01:09 +08:00
Erhan Kurubas
5d1b6b7b99 feat(coredump): save twdt panic output to coredump elf file 2024-03-12 10:40:29 +01:00
Jiang Jiang Jian
7b04776d13 Merge branch 'fix/bbpll_usb_link_error_backport5.1' into 'release/v5.1'
fix(esp_phy): Allow WiFi/USB interference workaround option only on supported targets (backport v5.1)

See merge request espressif/esp-idf!29480
2024-03-12 16:28:51 +08:00
Marius Vikhammer
af31783225 docs(deep_sleep): removed mentions of ULP in deep sleep example readme
Updated readme to reflect that ULP is no longer a part of this examples
functionality.

Closes https://github.com/espressif/esp-idf/issues/13340
2024-03-12 16:12:15 +08:00
harshal.patil
77ffead00a ci(mbedtls/gcm): Added test to verify software fallback for non-AES cipher GCM operations 2024-03-12 13:35:54 +05:30
harshal.patil
2c85399da0 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:35:49 +05:30
Roland Dobai
46ba89c8be Merge branch 'feature/export_bat_exit_codes_v5.1' into 'release/v5.1'
feat(tools): produce correct err code in install/export .bat scripts (v5.1)

See merge request espressif/esp-idf!29545
2024-03-12 15:12:15 +08:00
nilesh.kale
8cb2aa4fd3 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 ets_hmac_disable() API.
2024-03-12 12:27:39 +05:30
Guillaume Souchere
7c82811e70 feat(newlib): Add definition of aligned_alloc to heap.c
Add the definition of aligned_alloc to the list of
definitions provided by heap.c.

Note that memalign (strictly equivalent) to aligned_alloc
is already defined in heap.c.
2024-03-12 14:07:53 +08:00
Rahul Tank
f93025b7f9 Merge branch 'feat/exposed_gap_service_macros_to_menuconfig_v5.1' into 'release/v5.1'
feat(nimble): Exposed macros used by GAP service to menuconfig (v5.1)

See merge request espressif/esp-idf!29505
2024-03-12 12:22:23 +08:00
Shu Chen
fcd6cfdde5 Merge branch 'backport5.1/openthread_example_configurations' into 'release/v5.1'
fix(openthread): configurations for openthread examples(backport 5.1)

See merge request espressif/esp-idf!29533
2024-03-12 11:18:40 +08:00
Jiang Jiang Jian
e524ab1ede Merge branch 'bugfix/fix_task_wdt_in_mplen_clear_v5.1' into 'release/v5.1'
fix(wifi):fix issues that in mplen clear and esp_wifi_set_mode(Backport v5.1)

See merge request espressif/esp-idf!29530
2024-03-12 10:56:54 +08:00
Jiang Jiang Jian
b0fb3bbe01 Merge branch 'bugfix/fix_some_ble_bugs_240310_v5.1' into 'release/v5.1'
Bugfix/fix some ble bugs 240310 v5.1(backport v5.1)

See merge request espressif/esp-idf!29518
2024-03-12 10:56:25 +08:00
Jiang Jiang Jian
635ab30377 Merge branch 'coredump_refactoring_v5.1' into 'release/v5.1'
Coredump refactoring (v5.1)

See merge request espressif/esp-idf!29502
2024-03-12 10:54:35 +08:00
Jiang Jiang Jian
8519d3c509 Merge branch 'bugfix/fix_some_ble_bugs_cjh_v5.1' into 'release/v5.1'
Fixed some BLE bugs 2403 (backport v5.1)

See merge request espressif/esp-idf!29466
2024-03-12 10:54:06 +08:00
Marius Vikhammer
d7649cbc4d change(ulp): added test for ulp adc init/deinit 2024-03-12 10:52:06 +08:00
paul
39a5f73a75 fix(ulp_adc): Provide ulp_adc_deinit() API to fix ADC1 handle leakage 2024-03-12 10:52:06 +08:00
Xiao Xufeng
6ab8948502 doc(spi_flash): hide unsupported optional features 2024-03-12 10:48:08 +08:00
Xiao Xufeng
194ea85ee8 spi_flash: fixed issue that enabling HPM-DC by default may cause app unable to restart 2024-03-12 10:48:08 +08:00
Jakob Hasse
311c899bee docs(esp_event): Fixed mistake in API docs
Closes https://github.com/espressif/esp-idf/issues/13346
2024-03-12 10:33:10 +08:00
Rahul Tank
dc384fcb4d Merge branch 'bugfix/gap_connect_failed_with_0x0d_v5.1' into 'release/v5.1'
fix(nimble): Revise the help section for the Kconfig macro BLE_RPA_TIMEOUT (v5.1)

See merge request espressif/esp-idf!29493
2024-03-11 23:10:55 +08:00
Rahul Tank
9ddaaca46d Merge branch 'bugfix/add_esp_timer_get_expiry_time_v5.1' into 'release/v5.1'
fix(nimble): Add support for esp_timer_get_expiry_time to nimble porting layer (v5.1)

See merge request espressif/esp-idf!29463
2024-03-11 22:36:26 +08:00
morris
bdfa644d5f Merge branch 'feature/usb_hs_periodic_scheduler_v5.1' into 'release/v5.1'
feat(usb/host): Update ISOC scheduler for HS endpoints (backport 5.1)

See merge request espressif/esp-idf!29398
2024-03-11 21:20:35 +08:00
Tomas Rezucha
2f89804e5c fix(esp_phy): Allow WiFi/USB interference workaround option only on supported targets
"Enable USB when phy init" Kconfig option would call esp_phy function
`phy_bbpll_en_usb()` that is not implemented for all targets.
Selecting this option for unsupported target results in linking error.

The necessity of this workaround is now defined soc_caps.h rather than
in the Kconfig.

Closes https://github.com/espressif/esp-idf/issues/12185
2024-03-11 20:21:54 +08:00
Rahul Tank
e78e9a9558 Merge branch 'bugfix/expose_baud_rate_in_menu_v5.1' into 'release/v5.1'
fix(nimble): Exposed the baud rate for hci uart in menuconfig (v5.1)

See merge request espressif/esp-idf!29489
2024-03-11 20:09:45 +08:00
Sumeet Singh
74e3970cfe feat(nimble): Exposed macros used by GAP service to menuconfig (v5.1) 2024-03-11 17:25:30 +05:30
Rahul Tank
ab7708bdee fix(nimble): Address compilation errors when strict-prototype is enabled 2024-03-11 17:22:13 +05:30
Rahul Tank
cac867d92e Merge branch 'feat/read_multiple_variable_length_v5.1' into 'release/v5.1'
feat(nimble): read multiple variable length characteristics (v5.1)

See merge request espressif/esp-idf!29129
2024-03-11 19:50:03 +08:00
chenjianhua
b5425ffa5c feat(bt/bluedroid): Add ext adv and privacy status check 2024-03-11 18:03:26 +08:00
thekurtovic
2fc2876109 fix(bt/bluedroid): Fixed "reprot" typo in esp_ble_gap_ext_adv_reprot_t 2024-03-11 18:03:26 +08:00
Raghu Saxena
01cd47c663 fix(bt/example): Use correct struct type 2024-03-11 18:03:26 +08:00
Joshua
dc63404d06 fix(bt/blufi): Fixed BluFi module link error(C++ hybrid compilation) 2024-03-11 18:03:26 +08:00
chenjianhua
7d197cfd0d fix(bt/bluedroid): Fixed crash when calculating GATTS database hash 2024-03-11 18:03:26 +08:00
chenjianhua
c2528a0eff 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-11 18:03:26 +08:00
Jin Cheng
91589676fc 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-11 18:03:26 +08:00
chenjianhua
b098010c1e fix(bt): Update bt lib for ESP32(2de69f3)
- Fixed HCI command status event send when LLCP busy
2024-03-11 18:03:26 +08:00
zhanghaipeng
672775bc17 fix(ble/bluedroid): Fixed BLE BLE periodic advertising parameter check 2024-03-11 18:01:27 +08:00
zhanghaipeng
2e34e6c02c fix(ble/bluedroid): Fixed BLE crash when repeatedly initialize and deinitialize host 2024-03-11 18:01:27 +08:00
Erhan Kurubas
7ec19d4268 refactor(espcoredump): simplify uart/flash write flow 2024-03-11 17:12:41 +08:00
Erhan Kurubas
210d06e7e4 refactor(espcoredump): replace uart and flash callbacks with aliases 2024-03-11 17:12:41 +08:00
Erhan Kurubas
25e69d8f01 refactor(espcoredump): keep checksum context in coredump stack 2024-03-11 17:12:41 +08:00
Marek Fiala
b3b87e1b47 feat(tools): produce correct err code in export/install .bat scripts
Plus unify labels to begin with underscore
2024-03-11 10:02:50 +01:00
zwl
78c72ca62b ble(update):
Update h2 lib to d0218de8
Update c6 lib to d0218de8
2024-03-11 15:49:59 +08:00
Rahul Tank
9b32ce4903 fix(nimble): Add support for esp_timer_get_expiry_time to nimble porting layer 2024-03-11 12:58:27 +05:30
Jiang Jiang Jian
4febc6ef70 Merge branch 'bugfix/fix_esp_wifi_scan_start_memory_leakage_issue_v5.1' into 'release/v5.1'
fix(wifi): fix esp_wifi_scan_start memory leakage issue(Backport v5.1)

See merge request espressif/esp-idf!29476
2024-03-11 15:27:54 +08:00
Xu Si Yu
1b5ada37a8 fix(openthread): configurations for openthread examples 2024-03-11 14:09:38 +08:00
Jiang Jiang Jian
e9fcccf271 Merge branch 'bugfix/mbo_api_flag_v5.1' into 'release/v5.1'
fix(wpa_supplicant):Add MBO config flag for mbo apis(v5.1)

See merge request espressif/esp-idf!28697
2024-03-11 14:04:45 +08:00
Abhinav Kudnar
0a3407f379 fix(nimble): Revise the help section for the Kconfig macro BLE_RPA_TIMEOUT 2024-03-11 10:22:02 +05:30
Rahul Tank
13141a060b Merge branch 'features/uart_host_only_tut_v5.1' into 'release/v5.1'
docs(nimble): Improved documentation for uart host only example (v5.1)

See merge request espressif/esp-idf!29491
2024-03-11 12:51:09 +08:00
Roshan Bangar
88605c0ae0 fix(nimble): Exposed the baud rate for hci uart in menuconfig 2024-03-11 10:20:43 +05:30
Sumeet Singh
e5058945ea feat(nimble): read multiple variable length characteristics (v5.1) 2024-03-11 10:19:31 +05:30
yinqingzhao
52224d1d32 fix(wifi):fix issues that in mplen clear and esp_wifi_set_mode 2024-03-11 12:18:39 +08:00
xuxiao
02d5b43f4c feat(example): modify iperf sdkconfig to imporve iperf performance 2024-03-11 12:16:58 +08:00
muhaidong
3a2f9feec3 fix(wifi): fix esp_wifi_scan_start memory leakage issue
Closes https://github.com/espressif/esp-idf/issues/10693
2024-03-11 10:49:18 +08:00
Jiang Jiang Jian
181e305b52 Merge branch 'ci/fix_lwip_default_test_app_v5.1' into 'release/v5.1'
ci: build default app for lwip test app

See merge request espressif/esp-idf!29506
2024-03-11 10:45:04 +08:00
aditi_lonkar
b5c19506d1 fix(wpa_supplicant):Add MBO config flag for mbo apis 2024-03-11 10:43:49 +08:00
Mahavir Jain
590c650fc0 Merge branch 'fix/pmp_idcache_reg_prot_v5.1' into 'release/v5.1'
fix(esp_hw_support): Fix the I/DCACHE region PMP protection (v5.1)

See merge request espressif/esp-idf!29357
2024-03-08 22:50:10 +08:00
Jan Beran
c19dfc68d9 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:35 +01:00
Fu Hanxi
bddf56e3d0 ci: build default app for lwip test app 2024-03-08 11:06:21 +01:00
Island
50a2d34be6 Merge branch 'feature/ble_mesh_example_light_driver_v5.1' into 'release/v5.1'
feat: replace lightdriver, and support more chips in ble mesh examples(backport v5.1)

See merge request espressif/esp-idf!29456
2024-03-08 14:57:51 +08:00
Roshan Bangar
d6f6f8117c docs(nimble): Improved documentation for uart host only example 2024-03-08 10:32:45 +05:30
YuanMingFu
2365871f18 feat: replace lightdriver, and support more chips in ble mesh examples 2024-03-07 10:22:00 +08:00
Martin Vychodil
4d26988f72 Merge branch 'revert-2374a0c0' into 'release/v5.1'
Revert "Merge branch 'update/littlefs_demo_example_v5.1' into 'release/v5.1'"

See merge request espressif/esp-idf!29445
2024-03-07 04:30:18 +08:00
Martin Vychodil
0cbe0e0e5f Revert "Merge branch 'update/littlefs_demo_example_v5.1' into 'release/v5.1'"
This reverts merge request !28452
2024-03-06 18:34:14 +01:00
Roland Dobai
10a0dd5322 Merge branch 'enable_flash_elf_sha_tests_v5.1' into 'release/v5.1'
Enable SHA256 coredump flash integrity verification for all targets (v5.1)

See merge request espressif/esp-idf!29039
2024-03-06 22:48:52 +08:00
Island
37c5d1a6cf Merge branch 'feature/ble_mesh_example_light_driver_v5.1' into 'release/v5.1'
feat: replace lightdriver, and support more chips in ble mesh examples(backport v5.1)

See merge request espressif/esp-idf!28920
2024-03-06 20:14:48 +08:00
MinZai97
e994071089 feat: replace lightdriver, and support more chips in ble mesh examples 2024-03-06 14:18:53 +08:00
Island
7452f30907 Merge branch 'bugfix/struct_init_order_blemesh_v5.1' into 'release/v5.1'
ble_mesh: example: fix the structure init order to meet C++ requirements(backport v5.1)

See merge request espressif/esp-idf!28927
2024-03-06 14:09:50 +08:00
Marius Vikhammer
9f1922d59e Merge branch 'bugfix/heap_task_includes_v5.1' into 'release/v5.1'
fix(heap): fixed missing include in esp_heap_task_info.h (v5.1)

See merge request espressif/esp-idf!29117
2024-03-06 10:20:04 +08:00
Jiang Jiang Jian
43956831c2 Merge branch 'bugfix/fix_phy_pll_track_corner_case_backport_51' into 'release/v5.1'
fix(phy): fix pll track when enabling and disabling PHY frequently(Backport V5.1)

See merge request espressif/esp-idf!29387
2024-03-05 12:36:37 +08:00
morris
19022e0904 Merge branch 'contrib/github_pr_13025_v5.1' into 'release/v5.1'
Missing include for rom/uart.h (GitHub PR) (v5.1)

See merge request espressif/esp-idf!29361
2024-03-05 12:02:36 +08:00
Shu Chen
1f1d252e76 Merge branch 'fix/openthread_alarm_timer_overflow_v5.1' into 'release/v5.1'
fix(openthread): fix openthread alarm timer calculation remaining_us overflow issue (backport v5.1)

See merge request espressif/esp-idf!29391
2024-03-05 11:10:12 +08:00
Jiang Jiang Jian
1f1d2b0559 Merge branch 'fix/idf_tools_diff_python_dir_v5.1' into 'release/v5.1'
fix(tools): Add additional Python environment checks (v5.1)

See merge request espressif/esp-idf!29383
2024-03-05 11:00:43 +08:00
Jiang Jiang Jian
8aa5610689 Merge branch 'bugfix/fix_flash_encryption_rom_c3_v5.1' into 'release/v5.1'
fix(spi_flash): Fix issue that flash encryption failed while rom_impl config is enabled (backport v5.1)

See merge request espressif/esp-idf!29351
2024-03-05 11:00:07 +08:00
Jiang Jiang Jian
44fa82c7c3 Merge branch 'feature/support_gdma_retention_v5.1' into 'release/v5.1'
feature: support gdma retention in pd_top lightsleep (v5.1)

See merge request espressif/esp-idf!29089
2024-03-05 10:59:30 +08:00
Jiang Jiang Jian
f87ee9c4ec Merge branch 'bugfix/fix_c6_wakeup_access_flash_v5.1' into 'release/v5.1'
fix(hal): fix esp32c6 clock bug workaround access flash in wakeup process (v5.1)

See merge request espressif/esp-idf!29245
2024-03-05 10:58:14 +08:00
Jiang Jiang Jian
3052c5a461 Merge branch 'fix/segger_sysview_build_v5.1' into 'release/v5.1'
fix(app_trace): Fix SystemView build (v5.1)

See merge request espressif/esp-idf!24709
2024-03-05 10:52:35 +08:00
Jiang Jiang Jian
603268efe1 Merge branch 'bugfix/update_spp_doc_v5.1' into 'release/v5.1'
docs(bt/bluedroid): update API documents of SPP (v5.1)

See merge request espressif/esp-idf!29171
2024-03-05 10:49:24 +08:00
Jiang Jiang Jian
2d2bfc1962 Merge branch 'feat/reduce_usage_of_iram_when_bt_in_single_mode_v5.1' into 'release/v5.1'
change(bt/bluedroid): Redirect app functions in controller based on the bluetooth mode(backport v5.1)

See merge request espressif/esp-idf!29305
2024-03-05 10:48:17 +08:00
Jiang Jiang Jian
69c8490537 Merge branch 'bugfix/fix_issues_in_mesh_and_scan_v5.1' into 'release/v5.1'
fix issues in wifi and lwip (v5.1)

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

See merge request espressif/esp-idf!29394
2024-03-05 10:45:40 +08:00
Michael (XIAO Xufeng)
005e6656be Merge branch 'feature/add_new_pkg_and_flash_psram_efuses_v5.1' into 'release/v5.1'
feat(efuse): Add flash&psram efuses for S3 (v5.1)

See merge request espressif/esp-idf!29143
2024-03-05 10:34:18 +08:00
morris
66e6e7c925 Merge branch 'feat/usb_host_set_device_config_v5.1' into 'release/v5.1'
USB Host: Add enumeration callback filter (backport v5.1)

See merge request espressif/esp-idf!28548
2024-03-05 09:47:56 +08:00
Erhan Kurubas
a8bd637e73 feat(coredump): use SHA ROM functions for all targets except ESP32
For ESP32, continue using mbedtls due to a required ROM patch for the SHA implementation.
For other targets, we can now leverage the ROM functions.
2024-03-04 15:21:58 +01:00
Martin Vychodil
e3e112e612 Merge branch 'fix/examples_format_sd_card_disable_v5.1' into 'release/v5.1'
fix(examples): Disable formatting SD cards in storage examples by default (v5.1)

See merge request espressif/esp-idf!29004
2024-03-04 20:48:45 +08:00
Rahul Tank
c1f26cca62 Merge branch 'bugfix/increase_reattempt_conn_count_v5.1' into 'release/v5.1'
fix(nimble): Increase range of reattempt connection count (v5.1)

See merge request espressif/esp-idf!29341
2024-03-04 19:44:11 +08:00
Martin Vychodil
2374a0c04e Merge branch 'update/littlefs_demo_example_v5.1' into 'release/v5.1'
LittleFS demo example added (v5.1)

See merge request espressif/esp-idf!28452
2024-03-04 19:42:31 +08:00
Marius Vikhammer
0417eec03e Merge branch 'fix/console_none_build_issues_v5.1' into 'release/v5.1'
fix(console): Fix build issues when CONFIG_ESP_CONSOLE_NONE is enabled (v5.1)

See merge request espressif/esp-idf!29339
2024-03-04 18:04:10 +08:00
Markus Ebner
afc3ee80e1 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:39:22 +08:00
Tomas Rezucha
c64d0be428 feat(usb/host): Update ISOC scheduler for HS endpoints
USB-OTG uses 'sched_info' field of HCTSIZ register to schedule transactions
in USB microframes.
2024-03-04 09:59:50 +01:00
xiaqilin
6c9a7da5db fix(openthread): fix openthread alarm timer calculation remaining_us overflow issue 2024-03-04 15:12:15 +08:00
zwx
006c058df5 fix(phy): fix pll track when enabling and disabling PHY frequently 2024-03-04 14:49:32 +08:00
morris
975a86bf8a Merge branch 'bugfix/usb_host_usbh_callback_misses_action_v5.1' into 'release/v5.1'
fix(usb): Fix bug where usbh_process() misses an event (v5.1)

See merge request espressif/esp-idf!29365
2024-03-04 11:37:55 +08:00
Marius Vikhammer
cbfdec3e6d Merge branch 'staging/espcoredump_move_strings_flash_v5.1' into 'release/v5.1'
change(espcoredump): save RAM space by placing constants in flash (backport v5.1)

See merge request espressif/esp-idf!29191
2024-03-04 11:21:27 +08:00
zhangyanjiao
594c61add4 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-03-04 10:25:04 +08:00
Abhik Roy
aefc33b2ce 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-03-04 10:25:04 +08:00
xueyunfei
dc39b40145 feat(lwip): add fall back dns config in menuconfig 2024-03-04 10:25:04 +08:00
Roland Dobai
4a21a629c6 fix(tools): Add additional Python installation checks
Warn if IDF_PYTHON_ENV_PATH set to a suspicious path with
different ESP-IDF version and/or Python version.

Fail if the virtual environment was created for a different ESP-IDF
version.

Closes https://github.com/espressif/esp-idf/issues/13196
2024-03-01 16:01:03 +01:00
Mahavir Jain
d22c95a3a8 Merge branch 'refactor/protocomm_public_hdr_v5.1' into 'release/v5.1'
refactor(protocomm): Make the protocomm `proto-c` headers public (v5.1)

See merge request espressif/esp-idf!29359
2024-03-01 21:42:08 +08:00
Laukik Hase
9ed7c8b426 feat(tools/test_apps): Add violation tests for the flash I/DROM region
- For SoCs supporting PMP
2024-03-01 17:57:17 +05:30
Rahul Tank
67c4eac799 Merge branch 'bugfix/backport_ble_fixes_v5.1' into 'release/v5.1'
Bugfix/backport ble fixes v5.1

See merge request espressif/esp-idf!29291
2024-03-01 20:24:41 +08:00
Peter Marcisovsky
54f22f7c43 feat(docs): added usb host enumeration filter description
- CN and EN docs
2024-03-01 10:15:09 +01:00
Peter Marcisovsky
e87bb08216 feat(us/host): set device cfg during enumeration
- user callback funciton to set device configuration
      as a part of usb_host_install
    - callback provides device descriptor of a device being enumerated
    - user can set which cfg descriptor the USB device will be set with
    - user can filter device enumeration
    - Kconfig menu to enable callback function
    - usb_host_lib example demonstration
2024-03-01 10:15:02 +01:00
mofeifei
e8c901b144 docs: update cn trans usb_host.rst 2024-03-01 09:04:20 +01:00
Roman Leonov
4236416774 feat(docs): added USB Host Stack Configuration description 2024-03-01 09:04:20 +01:00
Roshan Bangar
86aaec48a0 fix(nimble): fixed missing controller disabled guard in esp_nimble_deinit 2024-03-01 12:54:53 +05:30
Rahul Tank
fbbf6d2708 fix(nimble): Merge hci_common.h file for all chips 2024-03-01 12:54:53 +05:30
Roshan Bangar
e7302b533c fix(nimble): Corrected acl data handling code in bleprph_host_only 2024-03-01 12:54:53 +05:30
Roshan Bangar
39c27275c8 feat(nimble): Nimble Host only mode over uart 2024-03-01 12:54:53 +05:30
SumeetSingh19
85befcc45d feat(nimble): client presentation and aggregate format descriptor support 2024-03-01 12:54:53 +05:30
SumeetSingh19
90c029494f feat(nimble): signed write support 2024-03-01 12:54:53 +05:30
SumeetSingh19
0dbfe37505 feat(nimble): additional AD types for advertisements 2024-03-01 12:54:53 +05:30
SumeetSingh19
5b0c32e37f feat(nimble): authorization permission on gatt read and write 2024-03-01 12:54:53 +05:30
SumeetSingh19
b62d94b2a4 fix(nimble): allow auto connection and observer role 2024-03-01 12:54:53 +05:30
Marius Vikhammer
39624549e8 Merge branch 'ci/new-known_failure_cases_workflow(v5.1)' into 'release/v5.1'
ci: change known_failure_cases workflow(v5.1)

See merge request espressif/esp-idf!27966
2024-03-01 15:03:48 +08:00
Ricardo Quesada
f21a43b622 fix(uart): add missing include for rom/uart.h
Without this include it fails to compile with this error:

```
esp/esp-idf-v5.2/components/esp_rom/include/esp32/rom/uart.h:262:32: error: implicit declaration of function 'UART_STATUS_REG' [-Werror=implicit-function-declaration]
  262 |         status = READ_PERI_REG(UART_STATUS_REG(uart_no));
```

Merges https://github.com/espressif/esp-idf/pull/13025
2024-03-01 14:36:50 +08:00
Laukik Hase
bda0a44eaf refactor(protocomm): Make the protocomm proto-c headers public 2024-03-01 10:26:42 +05:30
Laukik Hase
5fcd908d26 refactor(esp_hw_support): Remove redundant PMP entry for ROM region
- The ROM text and data sections share the address range
    (see SOC_I/DROM_MASK_LOW - SOC_I/DROM_MASK_HIGH).
  - Initially, we had two PMP entries for this address range - one marking the
    region as RX and the other as R.
  - However, the latter entry is redundant as the former locks the PMP settings.
  - We can divide the ROM region into text and data sections later when we
    define boundaries marking these regions from the ROM.
2024-03-01 10:25:25 +05:30
Laukik Hase
5173ba1777 fix(esp_hw_support): Fix the I/DCACHE region PMP protection 2024-03-01 10:25:25 +05:30
Cao Sen Miao
9df0678421 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-01 10:51:31 +08:00
Darian Leung
ef698857d1 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 09:42:57 +08:00
Marius Vikhammer
929a8449bd Merge branch 'feature/usb_host_collective_backport_v5.1' into 'release/v5.1'
USB Host: Collective backport to v5.1

See merge request espressif/esp-idf!28096
2024-03-01 09:28:23 +08:00
Mahavir Jain
8fb370f38b Merge branch 'bugfix/fix_http_client_error_v5.1' into 'release/v5.1'
esp_http_client: Fix reset errno to 0 before call esp_transport_read(backport v5.1)

See merge request espressif/esp-idf!28328
2024-02-29 21:57:43 +08:00
David Čermák
00d9861a08 Merge branch 'feature/mmd_access_v5.1' into 'release/v5.1'
esp_eth: Add functions to access PHY using MDIO (v5.1)

See merge request espressif/esp-idf!28840
2024-02-29 20:29:57 +08:00
David Čermák
bf23680ac1 Merge branch 'bugfix/eth_link_reset_v5.1' into 'release/v5.1'
fix(esp_eth): Fixed Ethernet link reset when Ethernet is stopped (v5.1)

See merge request espressif/esp-idf!29329
2024-02-29 19:25:31 +08:00
Rahul Tank
d771840189 fix(nimble): Increase range of reattempt connection count 2024-02-29 15:57:46 +05:30
Darian Leung
08079631eb change(console): Add build test for no console output
This commit adds a build test to test the scenario where both the primary and
secondary console outputs are disabled by Kconfig.
2024-02-29 17:48:08 +08:00
Darian Leung
e82ae7787d fix(console): Fix build issues when CONFIG_ESP_CONSOLE_NONE is enabled
This commit fixes the following build issues when CONFIG_ESP_CONSOLE_NONE is
enabled:

- esp_console_repl.c will have 'defined but unused' warnings on various console
functions.
- esp_console_repl.c does not use "TAG" when CONFIG_ESP_CONSOLE_NONE is
enabled, leading to a "defined by not used" warning.

Closes https://github.com/espressif/esp-idf/issues/12984
2024-02-29 17:48:07 +08:00
Marius Vikhammer
b65563f7f7 Merge branch 'bugfix/esp_intr_free_v5.1' into 'release/v5.1'
fix(esp_hw_support): Fix esp_intr_free when task has no core affinity (v5.1)

See merge request espressif/esp-idf!29194
2024-02-29 12:44:38 +08:00
Harshit Malpani
fd859d8931 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-02-29 12:00:58 +08:00
jim
2060f3a645 esp_http_client: Fix reset errno to 0 before call esp_transport_read
Closes https://github.com/espressif/esp-idf/issues/9020
2024-02-29 12:00:58 +08:00
morris
ba14fc20d3 Merge branch 'bugfix/fix_adc_reset_issue_on_legacy_v5.1' into 'release/v5.1'
fix(adc): fix adc continuous get less results beacuse do not reset apb clk(legacy) (v5.1)

See merge request espressif/esp-idf!28333
2024-02-29 10:25:28 +08:00
morris
c4f114d671 Merge branch 'bugfix/bunch_tsens_v5.1' into 'release/v5.1'
fix(temperature_sensor): Fix the value is incorrect if disable and enable again (backport v5.1)

See merge request espressif/esp-idf!28625
2024-02-29 10:24:17 +08:00
morris
226a4d39cf Merge branch 'bugfix/cannot_jump_range_v5.1' into 'release/v5.1'
fix(temperature_sensor): Cannot switch the range smmothly on esp32h2(backport v5.1)

See merge request espressif/esp-idf!29153
2024-02-29 10:20:52 +08:00
David Čermák
e9ab9f3c38 Merge branch 'bugfix/ip101_reset_timing_v5.1' into 'release/v5.1'
fix(esp_eth): ip101-specific reset_hw to match reset timings from datasheet (v5.1)

See merge request espressif/esp-idf!29012
2024-02-28 23:11:03 +08:00
Ondrej Kosta
746fd01aea fix(esp_eth): Fixed Ethernet link reset when Ethernet is stopped 2024-02-28 15:49:26 +01:00
Rahul Tank
2b07dbf875 Merge branch 'bugfix/fix_blufi_deinit_v5.1' into 'release/v5.1'
Blufi : Corrected blufi host deinit API (v5.1)

See merge request espressif/esp-idf!29000
2024-02-28 17:51:57 +08:00
Marius Vikhammer
48777e7983 Merge branch 'change/usb_host_minor_optimizations_v5.1' into 'release/v5.1'
change(usb/host): Remove unecessary features (v5.1)

See merge request espressif/esp-idf!27594
2024-02-28 17:20:18 +08:00
Island
b0107bdbd7 Merge branch 'bugfix/ble_update_lib_20240223_v5.1' into 'release/v5.1'
update lib on release/v5.1

See merge request espressif/esp-idf!29209
2024-02-28 16:54:19 +08:00
Jin Cheng
cc9932c7ef docs(bt/bluedroid): update API documents of SPP 2024-02-28 16:22:15 +08:00
Tomas Rezucha
58606027da feat(usb/host): Calculate FIFO sizes based on USB configuration 2024-02-28 16:09:53 +08:00
Darian Leung
2ba1790ef6 refactor(usb): Deprecate CONFIG_USB_OTG_SUPPORTED, use SOC_USB_OTG_SUPPORTED instead
Previously, USB build dependencies used the CONFIG_USB_OTG_SUPPORTED. However,
they could depend on `soc_caps.h` instead.
2024-02-28 16:09:53 +08:00
Darian Leung
d837836f84 refactor(hal/usb): Rename usb_fsls_phy API to match header/source names
Note: Also fixed some formatting issues in usb_wrap_struct.h
2024-02-28 16:09:52 +08:00
Darian Leung
148cc6e75d refactor(hal/usb): Rename usb_phy files to usb_fsls_phy
This commit renames USB PHY related HAL files from "usb_phy_xxx" to
"usb_fsls_phy_xxx" since they are only designed to support Full-Speed/Low-Speed
Serial USB PHYs. This renmaing is done to accommodate future USB PHYs that use
other PHY interfaces (e.g., UTMI, ULPI etc).
2024-02-28 16:09:52 +08:00
Darian Leung
f524a59875 refactor(hal/usb): Remove usage of old USB OTG config macros 2024-02-28 16:09:51 +08:00
Darian Leung
b32a735bb0 refactor(soc/host): Update USB OTG struct fields
This commit updates the "*_struct.h" files for the USB OTG peripheral:

- Added/removed some missing/non-existing register fields
- Added "reserved" place holders for registers that are missing due to IP
configuration.
- Added "usb_dwc_cfg.h" listing the USB OTG IP configuration for each target.
- Updated LL/HAL according to register field updates. Also tidied up the include
directives in those headers.
2024-02-28 16:09:51 +08:00
Darian Leung
177eb9f6c6 refactor(hal/usb): Fix USB OTG compilation dependency
Update "hal/CMakeLists.txt" so that USB OTG related HAL files depend on
the "SOC_USB_OTG_SUPPORTED" capability.
2024-02-28 16:09:51 +08:00
Darian Leung
dc27d5456f refactor(usb/host): reformat code with astyle 2024-02-28 16:09:50 +08:00
Tomas Rezucha
d26320d8a1 fix(usb/host): Correctly parse bInterval field in HighSpeed EP descriptors
For LS and FS interrupt endpoint: interval = bInterval
For isochronous and HS interrupt endpoint: interval = 2^(bInterval-1)
2024-02-28 16:09:50 +08:00
Tomas Rezucha
388360cc5a fix(usb/host): Correctly parse MPS fields in HighSpeed EP descriptors
Bits [11,12] in HighSpeed periodic endpoints specify
the number of additional transaction opportunities per microframe
2024-02-28 16:09:49 +08:00
Island
7cfe2274d2 Merge branch 'bugfix/fix_ble_max_reconnect_v5.1' into 'release/v5.1'
fix(ble/bluedroid): Update maximum BLE reconnection attempts configuration(backport v5.1)

See merge request espressif/esp-idf!29223
2024-02-28 15:41:08 +08:00
Marius Vikhammer
73654741c3 Merge branch 'contrib/github_pr_12867_v5.1' into 'release/v5.1'
fix(esp32): Removed rogue semicolon in #define in esp_smartconfig.h (GitHub PR) (v5.1)

See merge request espressif/esp-idf!29112
2024-02-28 15:32:04 +08:00
Cao Sen Miao
9025e440ae fix(temperature_sensor): Cannot switch the range smmothly on esp32h2 2024-02-28 12:39:07 +08:00
Cao Sen Miao
30095494be fix(tsens): 300us delay in phy cause extra power consumption 2024-02-28 12:36:04 +08:00
Cao Sen Miao
6932e5958b fix(tsens,adc): Fix issue that disable adc will make temperature sensor crash,
Closes https://github.com/espressif/esp-idf/issues/12921
2024-02-28 12:35:59 +08:00
Cao Sen Miao
c205bbf90f fix(temperature_sensor): Fix the value is incorrect if disable and enable again
Closes https://github.com/espressif/esp-idf/issues/12864
2024-02-28 12:35:53 +08:00
morris
bbb7c4c756 Merge branch 'feature/usb_hs_support_v5.1' into 'release/v5.1'
feat(usb/host): Add High Speed enumeration types (backport v5.1)

See merge request espressif/esp-idf!28059
2024-02-28 11:46:17 +08:00
morris
37e0e8ab53 Merge branch 'bugfix/soft_uart_send_dummy_byte_v5.1' into 'release/v5.1'
fix(peripheral_drivers/dedicated_gpio): Remove dummy byte from the emulate_uart_send routine (backport v5.1)

See merge request espressif/esp-idf!28687
2024-02-28 11:43:38 +08:00
morris
92b25c06b3 Merge branch 'bugfix/fix_incorrect_regbase_name_of_i2s_v5.1' into 'release/v5.1'
fix(i2s): fixed incorrect reg base name on C3 (v5.1)

See merge request espressif/esp-idf!28630
2024-02-28 11:41:58 +08:00
morris
c48ddea0f6 Merge branch 'contrib/github_pr_13020_v5.1' into 'release/v5.1'
fix (esp_lcd): Don't assume panels are 16bit in VSYNC restart logic (GitHub PR) (v5.1)

See merge request espressif/esp-idf!28812
2024-02-28 11:40:46 +08:00
morris
bfd1cfd382 Merge branch 'feature/rmt_encoder_memory_allocator_v5.1' into 'release/v5.1'
feat(rmt): added a help function for allocating encoder memory (v5.1)

See merge request espressif/esp-idf!28791
2024-02-28 11:39:58 +08:00
morris
6e44d4ebfc Merge branch 'bugfix/mcpwm_reset_generator_gpio_v5.1' into 'release/v5.1'
fix(mcpwm): reset GPIO used by generator after delete (v5.1)

See merge request espressif/esp-idf!28832
2024-02-28 11:39:02 +08:00
morris
bb66e97518 Merge branch 'feature/bytes_encoder_config_update_v5.1' into 'release/v5.1'
feat(rmt): support update bytes encoder configurations at runtime (v5.1)

See merge request espressif/esp-idf!28382
2024-02-28 11:38:29 +08:00
morris
a74edb7bbb Merge branch 'contrib/github_pr_12963_v5.1' into 'release/v5.1'
fix misformatted link (GitHub PR) (v5.1)

See merge request espressif/esp-idf!28755
2024-02-28 11:38:16 +08:00
Aditya Patwardhan
55c5c8367b Merge branch 'bugfix/soc_cpu_subsys_region_v5.1' into 'release/v5.1'
fix(soc): change debug addr range to CPU subsystem range (v5.1)

See merge request espressif/esp-idf!28672
2024-02-28 11:16:48 +08:00
Jiang Jiang Jian
467780474f Merge branch 'bugfix/fix_double_free_coc_v5.1' into 'release/v5.1'
fix(nimble): Removed double free of packet (v5.1)

See merge request espressif/esp-idf!29032
2024-02-28 11:14:40 +08:00
Jiang Jiang Jian
2e9916bf7c Merge branch 'feat/support_get_bluedroid_status_v5.1' into 'release/v5.1'
Support get status of bluedroid host (backport v5.1)

See merge request espressif/esp-idf!28882
2024-02-28 11:14:10 +08:00
Jiang Jiang Jian
d1ad4b57de Merge branch 'bugfix/ble_mesh_ble_advtype_v5.1' into 'release/v5.1'
ble_mesh: update ble mesh ble adv type(backport v5.1)

See merge request espressif/esp-idf!28917
2024-02-28 11:13:18 +08:00
Jiang Jiang Jian
eca249f41a Merge branch 'bugfix/ble_mesh_deinit_reinit_v5.1' into 'release/v5.1'
feat: ble mesh: improve ble mesh deinit when nimble enable(backport v5.1)

See merge request espressif/esp-idf!28925
2024-02-28 11:12:53 +08:00
Jiang Jiang Jian
0cc6903e15 Merge branch 'feature/spi_eth_no_int_v5.1' into 'release/v5.1'
feat(esp_eth): added SPI Ethernet module polling mode (v5.1)

See merge request espressif/esp-idf!29045
2024-02-28 11:11:01 +08:00
Jiang Jiang Jian
ab894a1086 Merge branch 'bugfix/spi_eth_recv_alloc_v5.1' into 'release/v5.1'
fix(esp_eth): improved SPI Ethernet _alloc_recv_buf error handling (v5.1)

See merge request espressif/esp-idf!29082
2024-02-28 11:10:38 +08:00
Jiang Jiang Jian
c404e951e3 Merge branch 'docs/rf_coexistence_api_guides_support_esp32c2_v5.1' into 'release/v5.1'
Docs: RF coexistence api guides support esp32c2 (v5.1)

See merge request espressif/esp-idf!29214
2024-02-28 11:09:29 +08:00
Mahavir Jain
8b7bd28549 Merge branch 'feat/flash_enc_encrypt_app_image_of_size_image_length_v5.1' into 'release/v5.1'
feat(bootloader_support): Encrypt only the app image instead of the whole partition (v5.1)

See merge request espressif/esp-idf!28266
2024-02-28 10:57:45 +08:00
Jiang Jiang Jian
76152c80a2 Merge branch 'c6_auto_dbias_master_hsq_v5.1' into 'release/v5.1'
ESP32C6: Active & sleep dbg and dbias get from efuse to fix the voltage (v5.1)

See merge request espressif/esp-idf!28722
2024-02-28 10:49:13 +08:00
Jiang Jiang Jian
2f6c902be8 Merge branch 'ci/enable_ip101_jobs_v5.1' into 'release/v5.1'
ci(esp_eth): enabled Ethernet ip101 jobs (v5.1)

See merge request espressif/esp-idf!28611
2024-02-28 10:45:11 +08:00
Jiang Jiang Jian
956797efbd Merge branch 'feature/gatt_caching_support_v5.1' into 'release/v5.1'
feat(nimble): Gatt caching support (v5.1)

See merge request espressif/esp-idf!28512
2024-02-28 10:44:38 +08:00
Jiang Jiang Jian
96f44688aa Merge branch 'bugfix/fix_wrong_dcache_0_size_issue_on_s2_v5.1' into 'release/v5.1'
fix(cache): fix wrong dcache size 0 configuration issue on s2 (v5.1)

See merge request espressif/esp-idf!28288
2024-02-28 10:43:55 +08:00
Jiang Jiang Jian
1553b5b1d1 Merge branch 'feature/case_for_ot_sleepy_ci' into 'release/v5.1'
ci(openthread): add a test case for openthread sleepy device

See merge request espressif/esp-idf!28280
2024-02-28 10:41:10 +08:00
Jiang Jiang Jian
88b8f533cd Merge branch 'bugfix/BLEQABR23-577' into 'release/v5.1'
Resolve BLEQABR23-577 "Bugfix/" Prevent the generation of link ID as 0.

See merge request espressif/esp-idf!28185
2024-02-28 10:40:26 +08:00
Mahavir Jain
1b5d4f8d3e Merge branch 'fix/build_failure_when_hardware_gcm_is_disabled_v5.1' into 'release/v5.1'
fix(mbedtls/gcm): Fix build failure when config `MBEDTLS_HARDWARE_GCM` is disabled (v5.1)

See merge request espressif/esp-idf!29068
2024-02-28 10:34:51 +08:00
gongyantao
82a36ee753 change(bt/bluedroid): Redirect app functions in controller based on the bluetooth mode 2024-02-28 09:40:15 +08:00
Roland Dobai
d8e82c3890 Merge branch 'register_gcov_tick_hook_once_v5.1' into 'release/v5.1'
fix(gcov): avoid multiple tick hook registration (v5.1)

See merge request espressif/esp-idf!29273
2024-02-27 22:16:55 +08:00
Jiang Jiang Jian
cfc893f125 Merge branch 'bugfix/fix_coex_lib_circular_dependency_v5.1' into 'release/v5.1'
fix(esp_coex): fix circular dependency issue on esp32 (v5.1)

See merge request espressif/esp-idf!29156
2024-02-27 20:01:45 +08:00
Jiang Jiang Jian
f9db462a46 Merge branch 'bugfix/fix_dangling_pointer_in_remove_bond_list_section_v5.1' into 'release/v5.1'
fix(bt/bluedroid): fix dangling pointer issue when logging removed section (backport v5.1)

See merge request espressif/esp-idf!28962
2024-02-27 20:01:11 +08:00
Jiang Jiang Jian
44da2b9fbd Merge branch 'bugfix/bootloader_custom_rtc_data_crc_v5.1' into 'release/v5.1'
fix(bootloader): add legacy retained memory CRC calculation (backport v5.1)

See merge request espressif/esp-idf!28936
2024-02-27 20:00:55 +08:00
Jiang Jiang Jian
69900de25d Merge branch 'bugfix/ble_bug_backport_20240205_v5.1' into 'release/v5.1'
Bugfix/ble bug backport 20240205 v5.1 (backport v5.1)

See merge request espressif/esp-idf!28900
2024-02-27 20:00:24 +08:00
Jiang Jiang Jian
6481fdf05e Merge branch 'bugfix/esp32c2_eap_auth_v5.1' into 'release/v5.1'
fix(wifi): Added low heap usage Kconfig option for eap enterprise (v5.1)

See merge request espressif/esp-idf!28825
2024-02-27 19:59:52 +08:00
Jiang Jiang Jian
f8a1cf930e Merge branch 'feature/supplicant_bss_extmem_v5.1' into 'release/v5.1'
WiFi: Add support to move supplicant BSS to external memory (v5.1)

See merge request espressif/esp-idf!28744
2024-02-27 19:59:38 +08:00
Jiang Jiang Jian
c8d47c167a Merge branch 'bugfix/no_wakeup_sleep_v5.1' into 'release/v5.1'
fix(ble): Fixed Bluetooth not waking up due to clock drift(v5.1)

See merge request espressif/esp-idf!28721
2024-02-27 19:59:26 +08:00
Jiang Jiang Jian
ffd34ba04a Merge branch 'bugfix/bod_threshold_v5.1' into 'release/v5.1'
fix(bod): Fix BOD threshold value on ESP32H2(backport v5.1)

See merge request espressif/esp-idf!28624
2024-02-27 19:58:51 +08:00
Jiang Jiang Jian
2817a67c94 Merge branch 'ble_dev/added_ble_power_save_pytest_v5.1' into 'release/v5.1'
Added pytest case for BLE power save example v5.1

See merge request espressif/esp-idf!28595
2024-02-27 19:58:17 +08:00
Jiang Jiang Jian
69695c23da Merge branch 'bugfix/spp_disc_connect_btqabr2023_156_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fixed SPP connection failure(v5.1)

See merge request espressif/esp-idf!28536
2024-02-27 19:57:55 +08:00
Island
00db642b52 Merge branch 'bugfix/fix_dtm_tx_count_v5.1' into 'release/v5.1'
Update bt lib for ESP32-C3 and ESP32-S3(30b57c45)(backport v5.1)

See merge request espressif/esp-idf!28879
2024-02-27 19:09:08 +08:00
Mahavir Jain
ebbacf49cf Merge branch 'bugfix/fix_esp_http_client_build_failure_with_wifi_v5.1' into 'release/v5.1'
fix: fix esp_http_client_example build failure (v5.1)

See merge request espressif/esp-idf!28761
2024-02-27 18:49:46 +08:00
Mahavir Jain
13e7052bd2 Merge branch 'bugfix/fix_http_auth_without_qop_v5.1' into 'release/v5.1'
fix(esp_http_client): Fix http digest auth without qop (v5.1)

See merge request espressif/esp-idf!28758
2024-02-27 18:49:40 +08:00
Mahavir Jain
35713b9e25 Merge branch 'bugfix/encrypted_flash_write_safe_addr_v5.1' into 'release/v5.1'
fix(spi_flash): check for safe write address in encrypted flash API (v5.1)

See merge request espressif/esp-idf!29205
2024-02-27 18:27:47 +08:00
harshal.patil
a24715d822 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-02-27 18:27:04 +08:00
harshal.patil
633b63d6fd 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-02-27 18:27:04 +08:00
Mahavir Jain
dcf187ff76 Merge branch 'feature/update_mbedtls_v5.1' into 'release/v5.1'
feat(mbedtls): updated mbedtls version from 3.5.0 to 3.5.2 (v5.1)

See merge request espressif/esp-idf!28893
2024-02-27 18:26:27 +08:00
Mahavir Jain
7003f1ef0d Merge branch 'bugfix/ota_anti_rollback_checks_2_v5.1' into 'release/v5.1'
feat(bootloader_support): Read secure_version under sha256 protection (v5.1)

See merge request espressif/esp-idf!29060
2024-02-27 18:26:03 +08:00
Mahavir Jain
fe5ccaf2cb Merge branch 'feature/conservative_key_revocation_in_secure_boot_v5.1' into 'release/v5.1'
feat: Add API to verify the bootloader and application image before revoking... (v5.1)

See merge request espressif/esp-idf!28489
2024-02-27 18:25:32 +08:00
Marius Vikhammer
b80a694abe Merge branch 'bugfix/rtc_i2c_not_in_od_mode_v5.1' into 'release/v5.1'
fix(ulp_riscv): Updated RTC I2C to use open-drain IOs (v5.1)

See merge request espressif/esp-idf!28932
2024-02-27 18:16:08 +08:00
Darian Leung
507880fa32 change(usb/host): Remove some handler function event flags
This commit removes internal event flags in the USB Host Library event handling
functions (i.e., usb_host_lib_handle_events() and usb_host_client_handle_events()).

Previously, these flags were added to reduce the number of times semaphores
were given. However, these flags were removed as the performance gain is
negligible and made the logic more complicated.

For usb_host_client_handle_events(), the following flags were removed:

- Remove 'events_pending' flag. The semaphore is now always given
- Remove 'blocked' flag. The 'handling_events' flag is already sufficient
- Critical sections are now shortened due to simplication of semaphore usage.

For usb_host_lib_handle_events(), the following flags were removed:

- Remove 'process_pending' flag. The semaphore is now always given
- Renamed 'blocked' flag to 'handling_events'
2024-02-27 18:16:00 +08:00
Darian Leung
bfc8c3a154 change(usb/host): Remove data buffer headers from URBs
This commit removes the ability to reserve a header in the data buffer of an
allocated URB. The header was required for a now defunct implementation of a
synchronous USB Host library API. Thus, headers are no longer required in
URB data buffers.
2024-02-27 18:15:59 +08:00
Simon H
ece4e4ec6d 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-27 18:15:04 +08:00
Fu Hanxi
900cf69513 Merge branch 'ci/limit_idf_build_apps_to_1.x' into 'release/v5.1'
ci: limit idf-build-apps version to 1.x in pre-commit config file (5.1)

See merge request espressif/esp-idf!28828
2024-02-27 18:10:22 +08:00
Marius Vikhammer
6c9b4e1b09 Merge branch 'docs/esp_event_minor_update_v5.1' into 'release/v5.1'
fix(docs): Minor update to esp_event.rst for improved user experience (v5.1)

See merge request espressif/esp-idf!29124
2024-02-27 17:55:21 +08:00
Marius Vikhammer
f62f2cf3a7 Merge branch 'docs/add_cannonical_url_v5.1' into 'release/v5.1'
docs(build): add cannonical stable url to all docs (v5.1)

See merge request espressif/esp-idf!28848
2024-02-27 17:55:08 +08:00
Marius Vikhammer
51b461e6b4 Merge branch 'bugfix_lp_i2c_not_in_od_mode_v5.1' into 'release/v5.1'
fix(lp_i2c): Fixed an issue where the LP_I2C IO lines were not in open-drain mode (v5.1)

See merge request espressif/esp-idf!28771
2024-02-27 17:51:37 +08:00
Marius Vikhammer
51c263bd8f Merge branch 'bugfix/linenoise_calculates_negative_prompt_len_v5.1' into 'release/v5.1'
fix(console): Fixed linenoise prompt length calculation (v5.1)

See merge request espressif/esp-idf!28527
2024-02-27 17:51:08 +08:00
Marius Vikhammer
ba155b0ebd Merge branch 'fix/esp_hw_support_remove_unused_include_dirs_v5.1' into 'release/v5.1'
fix(esp_hw_support): Removed nonexistent include directories from cmake (v5.1)

See merge request espressif/esp-idf!27608
2024-02-27 17:50:51 +08:00
Roland Dobai
acec4e2af2 Merge branch 'fix/gdbgui_py311_v5.1' into 'release/v5.1'
Tools: Fix support of gdbgui on Unix with Python 3.11 (v5.1)

See merge request espressif/esp-idf!28314
2024-02-27 17:47:15 +08:00
Marius Vikhammer
c2274f9ef3 Merge branch 'bugfix/reset_reasons_v5.1' into 'release/v5.1'
Update reset reasons for C6, H2, P4 and C5 (v5.1)

See merge request espressif/esp-idf!29181
2024-02-27 17:47:00 +08:00
Roland Dobai
47207b68ae Merge branch 'fix/gdbgui_py311_v5.1' into 'release/v5.1'
Tools: Fix support of gdbgui on Unix with Python 3.11 (v5.1)

See merge request espressif/esp-idf!28314
2024-02-27 17:46:48 +08:00
Roland Dobai
82563d3861 Merge branch 'fix/kconcheck_checks_v5.1' into 'release/v5.1'
fix(kconfcheck): Fixed false-positive indent errors and extended limits (backport v5.1)

See merge request espressif/esp-idf!28569
2024-02-27 17:46:13 +08:00
Roland Dobai
f85280f0ba Merge branch 'fix/runtool_crcrlf_v5.1' into 'release/v5.1'
fix: save RunTool command output with correct line endings (v5.1)

See merge request espressif/esp-idf!28678
2024-02-27 17:45:52 +08:00
Roland Dobai
b552d069a1 Merge branch 'fix/harden_hints_parsing_v5.1' into 'release/v5.1'
fix: harden input parsing in component_requirements hint module (v5.1)

See merge request espressif/esp-idf!28711
2024-02-27 17:45:31 +08:00
Roland Dobai
68debd061f Merge branch 'feature/python-reorder-imports-instead-isort_v5.1' into 'release/v5.1'
feat: Use python-reorder-imports instead of isort (v5.1)

See merge request espressif/esp-idf!28732
2024-02-27 17:45:15 +08:00
Roland Dobai
4f2de56e11 Merge branch 'fix/py_dep_check_v5.1' into 'release/v5.1'
fix(tools): catch more general errors in python dependency checker (v5.1)

See merge request espressif/esp-idf!29164
2024-02-27 17:44:49 +08:00
Roland Dobai
66ff0e9455 Merge branch 'feat/bump_up_pre_commit_hook_v5.1' into 'release/v5.1'
fix: Bump up pre-commit hooks version (v5.1)

See merge request espressif/esp-idf!29253
2024-02-27 17:43:10 +08:00
Marius Vikhammer
c361705ae7 Merge branch 'update/version_5_1_3' into 'release/v5.1'
Update version to 5.1.3

See merge request espressif/esp-idf!29236
2024-02-27 12:17:40 +08:00
Erhan Kurubas
4f26dcfdff fix(gcov): avoid multiple tick hook registration 2024-02-26 14:05:03 +01:00
KonstantinKondrashov
f185ac42e2 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:05:32 +02:00
Omar Chebib
8176a00282 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-02-26 17:35:57 +08:00
Jan Beran
a31bbd11a3 fix: Bump up pre-commit hooks version 2024-02-26 10:34:52 +01:00
wuzhenghui
54a15b81f9 feat: support cache safe assertion check in sleep process
- Add support for cache safe assertion check to ensure that code expected to be in RAM is in IRAM
2024-02-26 17:24:04 +08:00
wuzhenghui
12dca8d086 fix(hal): fix esp32c6 clock bug workaround access flash in wakeup process 2024-02-26 11:42:38 +08:00
Omar Chebib
6519b60c47 fix(peripheral_drivers/dedicated_gpio): Remove dummy byte from the emulate_uart_send routine
Let the user application decide for when to send the dummy byte instead of
hardcoding it from the assembly routine.
2024-02-26 11:42:03 +08:00
Marius Vikhammer
9765dd05d6 fix(heap): fixed missing include in esp_heap_task_info.h
Would fail to compile if esp_heap_task_info.h was included without/before freertos includes
2024-02-26 11:26:49 +08:00
Marius Vikhammer
e7771c75bd versions: Update version to 5.1.3 2024-02-26 11:09:16 +08:00
wuzhenghui
c97f5d79d9 ci: enable hardware crypto module for powersave tests 2024-02-23 18:30:22 +08:00
wuzhenghui
40a869935b feat(esp_hw_support): support gdma register context sleep retention
Closes https://github.com/espressif/esp-idf/issues/12528
2024-02-23 18:30:17 +08:00
zwl
95a2ad919f bugfix(ble) : fixed some ble issues on ESP32-C2 2024-02-23 18:03:24 +08:00
linruihao
c863eb27da 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 16:29:33 +08:00
linruihao
89881c7c59 fix(esp_coex): add support_coexistence soc_caps for esp32c2 and esp32h2 2024-02-23 16:26:10 +08:00
zhanghaipeng
12131f4b8a fix(ble/bluedroid): Update maximum BLE reconnection attempts configuration 2024-02-23 15:51:05 +08:00
zwl
82b34e3431 ble(update):
Update c2 lib to 79be7ec9
Update h2 lib to c6f7cb08
Update c6 lib to c6f7cb08
2024-02-23 14:07:54 +08:00
Mahavir Jain
f1ced5357f fix(spi_flash): check for safe write address in encrypted flash API 2024-02-23 12:42:37 +08:00
Peter Dragun
a17ec488d9 fix(tools): catch more general errors in python dependency checker 2024-02-22 15:51:47 +01:00
Omar Chebib
e7d5fee856 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-02-22 18:49:49 +08:00
hongshuqing
80378b809e feat(pmu): set fix voltage to different mode for esp32c6 2024-02-22 15:01:14 +08:00
Marius Vikhammer
d9a6158700 fix(system): update reset reasons for C6 and H2 2024-02-22 12:36:09 +08:00
linruihao
905a0d3d01 fix(esp_coex): fix circular dependency issue on esp32
Closes https://github.com/espressif/esp-idf/issues/13113
2024-02-21 19:15:10 +08:00
KonstantinKondrashov
24f6995fb5 feat(efuse): Add flash&psram efuses for S3 2024-02-21 09:36:49 +02:00
gaoxu
5101e52a36 fix(adc): workaround to fix adc continuous get less results on c3 2024-02-21 13:54:29 +08:00
Jakob Hasse
a66234b6de fix(esp_hw_support): Removed unused include directories from cmake
* Closes https://github.com/espressif/esp-idf/issues/12700
2024-02-21 11:41:11 +08:00
Island
d922d4178f Merge branch 'bugfix/fix_ble_free_all_crash_issue_5.1' into 'release/v5.1'
fix(ble): Fixed the free_all crash on esp32c6 and esp32h2

See merge request espressif/esp-idf!29108
2024-02-20 17:57:42 +08:00
Mahavir Jain
f047237aa5 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:16:56 +02:00
Sudeep Mohanty
57627f5883 fix(docs): Minor update to esp_event.rst for improved user experience
This commit adds semicolons in c-code blocks in esp_event.rst for
improved user experience when directly copying and pasting code.

Closes https://github.com/espressif/esp-idf/issues/13156
2024-02-20 08:45:38 +01:00
ShenWeilong
f05aef3ddf fix(ble): Fixed the free_all crash on esp32c6 and esp32h2 2024-02-19 20:17:17 +08:00
Island
931eaf7320 Merge branch 'bugfix/ble_update_lib_20240207_v5.1' into 'release/v5.1'
update lib on release/v5.1

See merge request espressif/esp-idf!28970
2024-02-19 18:12:41 +08:00
Ondrej Kosta
41b67e1031 fix(esp_eth): improved SPI Ethernet _alloc_recv_buf error handling 2024-02-16 16:03:59 +01:00
harshal.patil
85e18aa755 fix(mbedtls/gcm): Avoid using GCM hardware when config MBEDTLS_HARDWARE_GCM is disabled 2024-02-16 11:55:02 +05:30
harshal.patil
7e4d273e45 fix(mbedtls/gcm): Fix build failure when config MBEDTLS_HARDWARE_GCM is disabled 2024-02-16 11:55:01 +05:30
Ondrej Kosta
8d8fd2b765 feat(esp_eth): added SPI Ethernet module polling mode
Closes https://github.com/espressif/esp-idf/issues/12682
2024-02-15 14:27:45 +00:00
Mahavir Jain
83ec466b26 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:10:28 +02:00
Bogdan Kolendovskyy
5b9b27ff75 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:47:46 +01:00
Rahul Tank
0b0648eddb fix(nimble): Removed double free of packet 2024-02-13 14:40:51 +05:30
Bogdan Kolendovskyy
7cb91c19cd 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:04:12 +01:00
Adam Múdry
910c82b27c fix(examples): Disable formatting SD cards in storage examples by default 2024-02-08 14:22:45 +01:00
Roshan Bangar
52d36bee61 Blufi : fix blufi deinit 2024-02-08 17:14:00 +05:30
luomanruo
f5a0d5d0bc ble(update):
Update h2 lib to eb112893
Update c6 lib to eb112893
2024-02-07 17:29:32 +08:00
gongyantao
aad082a795 fix(bt/bluedroid): fix dangling pointer issue when logging remove section 2024-02-07 14:58:08 +08:00
InfiniteYuan
34b0450241 ble_mesh: example: fix the structure init order to meet C++ requirements
Closes https://github.com/espressif/esp-idf/issues/8110
2024-02-07 13:05:23 +08:00
InfiniteYuan
88fc51f107 ble_mesh: stack: fix the structure init order to meet C++ requirements 2024-02-07 10:21:31 +08:00
Sudeep Mohanty
746b8bf98f fix(ulp_riscv): Updated RTC I2C to use open-drain IOs
This commit updates the RTC I2C driver in the ULP RISC-V to initialize
all I2C IOs in open-drain mode.
2024-02-06 08:42:12 +01:00
InfiniteYuan
4a2290fce0 feat: ble mesh: improve ble mesh deinit when nimble enable 2024-02-06 14:44:32 +08:00
InfiniteYuan
31ca7c9a8c ble_mesh: update ble mesh ble adv type 2024-02-06 14:15:53 +08:00
morris
4ae845cd3e 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:35:11 +08:00
zhiweijian
add7c68104 feat(ble/controller): Add API to get BLE controller status on ESP32 2024-02-05 16:07:19 +08:00
zhiweijian
fd8bfba10a Fixed xQueueSemaphoreTask assert when deinit host during scan 2024-02-05 16:06:37 +08:00
nilesh.kale
fee1e43f09 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:43 +05:30
Jiang Jiang Jian
7380f96017 Merge branch 'bugfix/bugfix_for_radio_spinel' into 'release/v5.1'
fix(openthread): fix openthread configurations for radio spinle on 5.1

See merge request espressif/esp-idf!28872
2024-02-05 14:15:15 +08:00
Jiang Jiang Jian
eb4fa7234f Merge branch 'backport/openthread_related_mr_v51' into 'release/v5.1'
Backport openthread fix to v5.1

See merge request espressif/esp-idf!28819
2024-02-05 14:15:00 +08:00
chenjianhua
4e4f494ca7 feat(bt/bluedroid): Support get status of bluedroid host 2024-02-04 16:50:36 +08:00
chenjianhua
cf1008a064 fix(bt/example): Fixed UART HCI when flow control is off on ESP32C3 2024-02-04 16:50:27 +08:00
chenjianhua
ad7a2831b2 feat(bt/bluedroid): Make the max number of bond device to be configurable 2024-02-04 16:50:18 +08:00
zhanghaipeng
a95d480780 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:30:19 +08:00
chenjianhua
f86a5ffb2a 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:30:10 +08:00
Xu Si Yu
3c6ee5a957 fix(openthread): fix openthread configurations for radio spinle on 5.1 2024-02-04 11:50:41 +08:00
Marius Vikhammer
1e3c43297d docs(build): add cannonical stable url to all docs 2024-02-02 10:36:33 +08:00
morris
8ab2edda00 fix(mcpwm): reset GPIO used by generator after delete
Closes https://github.com/espressif/esp-idf/issues/12980
2024-02-01 17:49:18 +08:00
Fu Hanxi
d2b1e5b577 ci: limit idf-build-apps version to 1.x in pre-commit config file 2024-02-01 09:56:42 +01:00
zwx
5c74483fb6 feat(openthread): disable the rx on when idle in coex scenario 2024-02-01 14:53:57 +08:00
zwx
d117ae0d21 fix(openthread): fix RCP handle timeout crashing issue
* update openthread upstream
2024-02-01 14:17:04 +08:00
zwx
ff1fd81e2f fix(openthread): support uart ISR in IRAM 2024-02-01 14:16:00 +08:00
zwx
1cc34e69d7 fix(802154): fix pending tx will be delayed issue 2024-02-01 14:16:00 +08:00
Kapil Gupta
8a01702d65 fix(wifi): add low memory options for eap enterprise 2024-02-01 10:05:06 +05:30
Brian Whitman
6319f9ab2c 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:14 +08:00
Jan Beran
91b1a362ea feat: Use python-reorder-imports instead of isort 2024-01-31 09:27:47 +01:00
morris
dcf0d5b67c 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-01-30 17:03:54 +08:00
xiongweichao
05d196938d 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-30 15:42:39 +08:00
xiongweichao
2c9dccc64e fix(ble): Fixed macro definition error for 136K clock drift 2024-01-30 15:37:01 +08:00
xiongweichao
75dcda2750 fix(ble): Fixed Bluetooth not waking up due to clock drift 2024-01-30 15:36:53 +08:00
Sudeep Mohanty
300cd0c34f fix(lp_i2c): Fixed an issue where the LP_I2C IO lines were not in open-drain mode
This commit fixes an issue where in the LP I2C IO lines were not
initialized in open-drain mode.

Closes https://github.com/espressif/esp-idf/issues/12969
2024-01-29 09:48:39 +01:00
igor.udot
6cf7528125 ci: change known_failure_cases workflow 2024-01-29 16:26:28 +08:00
Jiang Jiang Jian
7cbee80fb9 Merge branch 'bugfix/fix_ble_tx_2m_problem_causing_by_phy_wifi_enable_set_v5.1' into 'release/v5.1'
fix(esp_phy): Fixed BLE TX 2M problem causing by phy_wifi_enable_set() (backport v5.1)

See merge request espressif/esp-idf!28679
2024-01-29 14:46:58 +08:00
Shu Chen
0b28bdb8f0 Merge branch 'backport/154_receive_handle_done_v5.1' into 'release/v5.1'
Backport/154 receive handle done v5.1

See merge request espressif/esp-idf!28718
2024-01-29 14:30:16 +08:00
Harshit Malpani
276ebe98a0 fix: fix esp_http_client_example build failure
Fixed the build failure of esp_http_client_example for ESP32-C6 when
build with Wi-Fi enabled
2024-01-29 11:36:26 +05:30
Harshit Malpani
3cfbbbd978 fix(esp_http_client): Fix http digest auth without qop
Closes https://github.com/espressif/esp-idf/issues/12962
2024-01-29 11:11:02 +05:30
morris
1daeac210b feat(rmt): support update bytes encoder configurations at runtime
Closes https://github.com/espressif/esp-idf/issues/12775
2024-01-29 13:28:53 +08:00
Gabor Kiss-Vamosi
4ef3261dd3 fix misformatted link 2024-01-29 13:16:01 +08:00
Michael (XIAO Xufeng)
7f39afb373 Merge branch 'h2_auto_dbias_master_hsq_v5.1' into 'release/v5.1'
ESP32H2: Active & sleep dbias get from efuse to fix the voltage (v5.1)

See merge request espressif/esp-idf!28715
2024-01-29 11:21:06 +08:00
Island
71dfc32a98 Merge branch 'bugfix/ble_update_lib_20240125_v5.1' into 'release/v5.1'
Bugfix/ble update lib 20240125 v5.1

See merge request espressif/esp-idf!28709
2024-01-29 10:40:21 +08:00
Kapil Gupta
0cd6a05fdf fix(wifi): Add support to move supplicant BSS to external memory 2024-01-27 10:54:26 +05:30
Jiang Jiang Jian
a5e3e0b90e Merge branch 'bugfix/fix_dynamic_mbedtls_crash_v5.1' into 'release/v5.1'
mbedtls: Fix enable dynamic mbedtls will occur heap corruption when server support TLS renegotiation(backport v5.1)

See merge request espressif/esp-idf!28325
2024-01-26 22:25:24 +08:00
Shu Chen
1b4837fb24 docs(ieee802154): add migration note for the receive done handler feature 2024-01-26 17:00:38 +08:00
Shu Chen
81ee463f54 feat(ieee802154): make the receive done handler feature mandatory 2024-01-26 17:00:38 +08:00
Shu Chen
fa544a6dff feat(ieee802154): remove the ieee802154 lib submodule 2024-01-26 17:00:38 +08:00
xieqinan
918705d6e0 feat(zigbee): Updated Zigbee examples to align with esp-zigbee-lib v1.0.9 2024-01-26 17:00:31 +08:00
Shu Chen
15a392cfd9 Merge branch 'backport5.1/openthread_backport' into 'release/v5.1'
some openthread changes backport to release/v5.1

See merge request espressif/esp-idf!28638
2024-01-26 13:37:02 +08:00
hongshuqing
9f5cd217a0 feat(pmu): set fix voltage to different mode for esp32h2
h2 remove include
2024-01-26 11:39:16 +08:00
KonstantinKondrashov
cce3c4a1d5 feat(efuse): Adds new efuses for esp32c6 2024-01-26 11:39:16 +08:00
KonstantinKondrashov
f7a920685a feat(efuse): Adds new efuse for esp32h2 2024-01-26 11:39:16 +08:00
luomanruo
9f405f2174 fix failure of pre-commit 2024-01-26 10:38:16 +08:00
Frantisek Hrbata
6133810392 fix: harden input parsing in component_requirements hint module
Currently we silently ignore when the original component is not found
in a hope we can provide at least some meaningful hint. As it turned
out it's not true. Instead of providing misleading hint, just return
error. This adds several checks for situations, which should not happen,
but when they do it should be easier to identify the root cause of the
problem.

For example when hint module received malformed output with extra new
lines, e.g. caused by a bug in RunTool, it wrongly reported the original
component as source component.

This should also fix the tests on Windows.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-01-25 14:20:22 +01:00
Frantisek Hrbata
0fc2e77017 feat(hints): use all_component_info from project_description.json
Currently the component_requirements hint module does not work
as expected if the component list for a project is trimmed down.
With the new "all_component_info" dictionary info in project_description.json,
the module can produce hints even if cmake's COMPONENTS variable is
set.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-01-25 14:20:22 +01:00
Frantisek Hrbata
87afd5e829 feat(tools): export information about all components in __COMPONENT_TARGETS
Add new "all_component_info" dictionary into the
project_description.json file. It contains information about all
registered components presented in the __COMPONENT_TARGETS list.
Since components in this list are not fully evaluated, because only the first
stage of cmakefiles processing is done, it does not contain the same information
as the "build_component_info" dictionary. The "type", "file" and "sources" variables
are missing.

Most of the properties are already attached to the component target, so
this only adds INCLUDE_DIRS property to the target during the first cmakefiles
processing stage.

The "all_component_info" dict is generated in a separate function, even
though the original function for "build_component_info" could be
adjusted. This introduces a little bit of boilerplate, but keeps it
logically separated and probably easier if we want to extend it in the
future.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-01-25 14:20:22 +01:00
Frantisek Hrbata
17aa60886c fix(hints): properly identify source component
If there is a component(child) within a component(parent), like for test_apps, the parent
component may be wrongly identified as source component for the failed include. This may
lead to a false bug report if the parent component has component, which provides the missing
header, in requirements.

Fix this by looking for the longest matching source component directory.

Suggested-by: Ivan Grokhotkov <ivan@espressif.com>
Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-01-25 14:20:22 +01:00
zwl
39ef366eed Update ble lib to eb473dda on ESP32-C6 and ESP32-H2 2024-01-25 20:37:28 +08:00
zwl
0b3649aa0e feat(ble): add ble controller version output on ESP32-C6 and ESP32-H2 2024-01-25 20:37:22 +08:00
zwl
d1e16cea67 feat(ble): add ble controller status check api on ESP32-C6 and ESP32-H2 2024-01-25 20:37:15 +08:00
zwl
b13a4e2d9c fix(ble): fixed build error when disable sm feature 2024-01-25 20:37:08 +08:00
luomanruo
e8f0906c11 Update C6 H2 lib to bb9d578e 2024-01-25 20:36:55 +08:00
zwx
e2e54312da feat(openthread): support openthread radio caps rx on when idle 2024-01-25 14:14:51 +08:00
xiaqilin
738145a65e fix(ieee802154): add next operation in ieee802154 test when rx abort by tx ack coex 2024-01-25 14:14:51 +08:00
zwx
2f988d08de feat(802.15.4): introduce pending tx while rx feature 2024-01-25 14:14:51 +08:00
zwx
08f462dc0e feat(openthread): integrate console command with ot command 2024-01-25 14:14:51 +08:00
Xu Si Yu
dd0eeaf7f3 feat(openthread): add menuconfig for openthread address query 2024-01-25 14:14:51 +08:00
Xu Si Yu
f86a39ad87 fix(openthread): set spinel frame buffer to member variables 2024-01-25 14:14:51 +08:00
Xu Si Yu
d339120bed feat(openthread): support esp openthread radio spinel 2024-01-25 14:14:51 +08:00
Roshan Bangar
30f01c33e1 feat(nimble): Gatt caching support 2024-01-25 09:59:03 +05:30
zhiweijian
4529a6ab6e 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 wifi boot bug at low temp on ESP32-C6
4. Fixed BLE and WIFI could not receive packets after entering light sleep for a long time on ESP32-C3, ESP32-S3, ESP32-C2 and ESP32-C6
2024-01-25 12:26:25 +08:00
Island
e4ae078224 Merge branch 'bugfix/ble_check_adv_data_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fix ble adv data check to avoid memory overflow(backport v5.1)

See merge request espressif/esp-idf!28406
2024-01-25 12:06:02 +08:00
Island
7d45bbef63 Merge branch 'bugfix/fix_ble_memory_leak_v5.1' into 'release/v5.1'
fix(ble/bluedroid): Fix ble memory leak when gattc config off(backport v5.1)

See merge request espressif/esp-idf!28496
2024-01-25 11:59:13 +08:00
Island
4fd3de1ce8 Merge branch 'bugfix/fix_some_ble_issue_v5.1' into 'release/v5.1'
Bugfix/fix some ble issue v5.1(backport v5.1)

See merge request espressif/esp-idf!28616
2024-01-25 11:59:02 +08:00
Island
9a85bb8426 Merge branch 'bugfix/address_resolution_v5.1' into 'release/v5.1'
fix(nimble): Added support for address resolution during inquiry (v5.1)

See merge request espressif/esp-idf!28519
2024-01-25 11:58:47 +08:00
Jiang Jiang Jian
26bbec86f2 Merge branch 'bugfix/fix_pmk_invalid_wpa_or_wpa2_connect_fail_issue_v5.1' into 'release/v5.1'
fix(wifi): fix pmk invalid lead same ssid wpa and wpa2 connect fail issue(Backport v5.1)

See merge request espressif/esp-idf!28668
2024-01-25 09:57:44 +08:00
Frantisek Hrbata
f3c6aa975d fix: save RunTool command output with correct line endings
Currently RunTool reads command's output with asyncio read, which
returns bytes. This is decoded into python's string and the output already
contains OS specific line endings, which on Windows is CRLF. Problem is
that the command output is saved by using python's text stream/file,
which replaces LF, native python's line ending, with OS specific line ending.
On Windows, and in this particular case, the CRLF from the command output is
translated into CRCRLF and saved in the commands output file. When this
file is read in again, e.g. for hint modules, the CRCRLF is replaced
with LFLF. Again the file is open as text file. Meaning a new emply line
is added.

Fix this by opening the output file with "newline=''", which prevents
this translation. We already have the OS specific line ending in the
command's output.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-01-24 13:15:03 +01:00
jim
35b4151fee mbedtls: Fix enable dynamic mbedtls will occur heap corruption when server support TLS renegotiation 2024-01-24 17:53:09 +08:00
Mahavir Jain
614ad494f6 fix(soc): change debug addr range to CPU subsystem range
For C6/H2/P4/C5, there is no SoC specific debug range. Instead the same
address range is part of CPU Subsystem range which contains debug mode
specific code and interrupt config registers (CLINT, PLIC etc.).

For now the PMP entry is provided with RWX permission for both machine
and user mode but we can save this entry and allow the access to only
machine mode for this range.

For P4/C5 case, this PMP entry can have RW permission as the debug mode
specific code is not present in this memory range.
2024-01-24 12:52:27 +05:30
Mahavir Jain
5dec348666 Merge branch 'feat/update_cjson_v1_7_17_v5.1' into 'release/v5.1'
feat(cJSON): update submodule to v1.7.17 (v5.1)

See merge request espressif/esp-idf!28349
2024-01-24 15:05:10 +08:00
Mahavir Jain
d7e275c408 Merge branch 'feat/add_ble_support_in_local_ctrl_example_v5.1' into 'release/v5.1'
fix(examples): Fix encoding issue in esp_local_ctrl's proto script (v5.1)

See merge request espressif/esp-idf!28128
2024-01-24 15:04:45 +08:00
Mahavir Jain
da47d4d632 Merge branch 'bugfix/update_jtag_disabling_api_v5.1' into 'release/v5.1'
fix(esp_hw_support): fix API esp_hmac_disable_jtag() to disable JTAG (v5.1)

See merge request espressif/esp-idf!28493
2024-01-24 15:04:33 +08:00
Jiang Jiang Jian
c9f2c512b6 Merge branch 'bugfix/change_default_value_for_ip_ttl_5.1' into 'release/v5.1'
Fix(lwip):bugfix for change default value for ip ttl 5.1

See merge request espressif/esp-idf!28400
2024-01-24 14:48:11 +08:00
Jiang Jiang Jian
01f6a7a5c7 Merge branch 'bugfix/revert_changes_a2dp_sink_example_v5.1' into 'release/v5.1'
Revert "fix(bt/bluedroid): corrected the strings of A2DP audio states" (v5.1)

See merge request espressif/esp-idf!28363
2024-01-24 14:47:49 +08:00
muhaidong
3fa5a76a00 fix(wifi): fix pmk invalid lead same ssid wpa and wpa2 connect fail issue 2024-01-24 12:03:14 +08:00
xueyunfei
8b16d9b8bc Fix(lwip):bugfix for change default value for ip ttl 2024-01-24 10:48:57 +08:00
Jin Cheng
bc3c3ac417 Revert "fix(bt/bluedroid): corrected the strings of A2DP audio states"
This reverts commit 00052aa208.
2024-01-24 10:48:10 +08:00
Xu Si Yu
abaa9f2bfe ci(openthread): Add a test case for openthread sleepy device 2024-01-23 16:11:29 +08:00
wuzhenghui
9a246bcbf1 feat: support dump last time sleep context 2024-01-23 16:11:29 +08:00
nilesh.kale
fa02eeeb97 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-23 12:20:06 +05:30
laokaiyao
d7b6ebe7df fix(i2s): fixed incorrect reg base name on C3
Closes https://github.com/espressif/esp-idf/issues/12643
2024-01-23 12:05:45 +08:00
Cao Sen Miao
bba56bc016 fix(bod): Fix BOD threshold value on ESP32H2 2024-01-23 10:13:33 +08:00
zhanghaipeng
2874c5e281 feat(bt/bluedroid): Support ext adv aux option 2024-01-22 20:56:26 +08:00
zhanghaipeng
d6d6963fea fix(bt/bluedroid): Fix BLE malloc internal wrapper fail 2024-01-22 20:56:14 +08:00
Zeke Gustafson
5fa653771f feat(ble/bluedroid): Add getter for BLE GAP callback 2024-01-22 20:56:03 +08:00
Zeke Gustafson
8dbfff100e feat(ble/bluedroid): Add getter for BLE GATTS callback 2024-01-22 20:55:56 +08:00
zhanghaipeng
77ca6c58c1 feat(ble/bluedroid): Add getter for BLE GATTC calllback 2024-01-22 20:55:49 +08:00
zhanghaipeng
cc78bb61b5 docs(ble/bluedroid): Optimize documentation for BLE duplicate scan 2024-01-22 20:55:42 +08:00
zhanghaipeng
9c93c54d81 fix(ble/bluedroid): Fix dangling pointer issue in deletion of bonded devices 2024-01-22 20:55:31 +08:00
zhanghaipeng
22bdd07668 fix(ble/bluedroid): Fix BLE background connection log level 2024-01-22 20:55:23 +08:00
Adam Múdry
8cd9f33235 feat: LittleFS bump version to 1.13.0 2024-01-22 20:23:28 +08:00
sonika.rathi
dbc3a2a80b feat(example/storage/littlefs): add LittleFS demo example 2024-01-22 20:23:28 +08:00
Ondrej Kosta
e9db535290 ci(esp_eth): enabled Ethernet ip101 jobs 2024-01-22 12:46:33 +01:00
Sudeep Mohanty
e2e1542378 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-22 16:22:28 +08:00
Jiang Jiang Jian
7011329b35 Merge branch 'bugfix/fix_scan_request_ifs_error_v5.1' into 'release/v5.1'
Fixed BLE scan request ifs time error in coexistence scenarios on ESP32(backport v5.1)

See merge request espressif/esp-idf!28575
2024-01-22 14:43:05 +08:00
Jiang Jiang Jian
766d26f1f3 Merge branch 'bugfix/fix_crash_issue_when_mesh_deinit_v5.1' into 'release/v5.1'
fix(wifi): fix the crash and malloc fail issue (v5.1)

See merge request espressif/esp-idf!28537
2024-01-22 11:02:46 +08:00
cjin
cdb421f08f feat(ble): added pytest for ble power save example 2024-01-22 10:56:52 +08:00
xiongweichao
22e6e5be06 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-22 10:49:00 +08:00
Island
899b216223 Merge branch 'bugfix/ble_update_lib_20231229_v5.1' into 'release/v5.1'
update lib on release/v5.1

See merge request espressif/esp-idf!28188
2024-01-22 10:39:06 +08:00
Darshan Dobariya
95e0a1d1b6 fix(nimble): Added support for address resolution during inquiry. 2024-01-22 09:42:22 +08:00
linruihao
2ec5d6b0f2 fix(esp_coex): Fixed potential BLE scan request ifs timer error bug 2024-01-20 11:28:20 +08:00
zhiweijian
bf322fbc4a Fixed BLE scan request ifs timer error in coexistence scenarios 2024-01-20 11:28:20 +08:00
Jiang Jiang Jian
47b44dfa71 Merge branch 'fix/esp32h2_phy_sleep_wakeup_issue_v5.1' into 'release/v5.1'
fix(esp_phy): fix esp32h2 sleep wakeup issue (backport v5.1)

See merge request espressif/esp-idf!28299
2024-01-19 16:47:58 +08:00
Jiang Jiang Jian
214a4d7a37 Merge branch 'bugfix/fix_mac_bb_pd_iwdt_timeout_v5.1' into 'release/v5.1'
fix(ble): fixed interrupt timeout in MAC_BB_PD callback (v5.1)

See merge request espressif/esp-idf!28465
2024-01-19 16:45:35 +08:00
Jiang Jiang Jian
e1b257934c Merge branch 'bugfix/fix_systick_lost_in_esp32_dfs_v5.1' into 'release/v5.1'
fix(esp_pm): safely check ccompare validity in DFS update_ccompare (v5.1)

See merge request espressif/esp-idf!28562
2024-01-19 16:44:39 +08:00
Harshit Malpani
7869e584ce feat(cjson): update submodule to v1.7.17
Changelog: https://github.com/DaveGamble/cJSON/releases/tag/v1.7.17
2024-01-19 14:06:11 +05:30
schottj
cada5533f2 fix(app_update): fixed undeclared variable 'ret' in esp_ota_ops.c 2024-01-19 14:04:06 +05:30
Harshit Malpani
a7f654fd64 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-19 14:04:06 +05:30
luomanruo
6c8fa646e4 change(ble): npl count is zero if nimble host is not used
change(ble): added npl eventq put to front

change(ble): added cache safe check in ble power save example

ble(update):
    Update c2 lib to 91b81332
    Update h2 lib to 620fbe79
    Update c6 lib to 620fbe79

fix(ble): fix stack overflow disable at sleep

Revert "change(ble): added ble cca en and thresh option"

This reverts commit 71901499b9.
2024-01-19 16:14:05 +08:00
wuzhenghui
ad9a195c3a fix(esp_pm): safely check ccompare validity in DFS update_ccompare 2024-01-19 11:14:28 +08:00
zhangyanjiao
1410699d88 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-19 11:11:34 +08:00
zhanghaipeng
b59aeaa192 fix(bt/bluedroid): Fix ble adv data check to avoid memory overflow 2024-01-19 10:52:34 +08:00
zhanghaipeng
6a81c1fcce fix(ble/bluedroid): Fix ble memory leak when gattc config off 2024-01-19 10:52:20 +08:00
linruihao
1091ce2106 fix(ble): fixed interrupt timeout in MAC_BB_PD callback 2024-01-19 10:50:09 +08:00
xiaqilin
ee68063b6a fix(esp_phy): fix esp32h2 sleep wakeup and i2c issue 2024-01-19 10:06:11 +08:00
Jakub Kocka
ade4d4d757 fix(kconfcheck): Fixed false-positive indent errors and extended limits 2024-01-18 11:38:41 +01:00
morris
6824abbdb3 Merge branch 'fix/i2c_test_app_change_gpio_v5.1' into 'release/v5.1'
fix(i2c): test app change gpio (v5.1)

See merge request espressif/esp-idf!28484
2024-01-18 17:43:09 +08:00
wanlei
e3532b522e fix(i2c): test app change gpio 2024-01-18 11:13:06 +08:00
morris
ea0c86e30a Merge branch 'ci/temp_disable_jobs_v5.1' into 'release/v5.1'
ci: remove ip101 jobs and twai_std jobs (v5.1)

See merge request espressif/esp-idf!28378
2024-01-18 11:08:33 +08:00
Jiang Jiang Jian
aa2793f3f1 Merge branch 'feature/support_hw_trigger_regdma_when_pu_top_v5.1' into 'release/v5.1'
fix(pm): trigger regdma retention by PMU when TOP is not power down on esp32H2 (backport v5.1)

See merge request espressif/esp-idf!28342
2024-01-18 11:06:51 +08:00
Michael (XIAO Xufeng)
89cc9084ab Merge branch 'bugfix/recalib_bbpll_before_tuning_v5.1' into 'release/v5.1'
fix(bbpll): fix bbpll may not lock or not stable bug for stop early (ESP32C2/S3/C6/H2) (v5.1)

See merge request espressif/esp-idf!28285
2024-01-17 21:24:10 +08:00
Lou Tianhao
1e43abfb57 change(pm): put pmu_hal to iram 2024-01-16 14:01:22 +08:00
Lou Tianhao
2ecbfecedf feat(pm): support PMU trigger regdma when PU TOP 2024-01-16 14:01:22 +08:00
Fu Hanxi
507541444b ci: remove ip101 jobs and twai_std jobs 2024-01-10 10:31:11 +01:00
Jiang Jiang Jian
9c4b89c6d2 Merge branch 'bugfix/fix_no_sleep_null_data_after_data_sent_v5.1' into 'release/v5.1'
fix(pm): fix no sleep null after data sent (e7243f1f)

See merge request espressif/esp-idf!28290
2024-01-10 11:20:56 +08:00
Island
276332f14c Merge branch 'bugfix/increase_btu_task_stack_size_v5.1' into 'release/v5.1'
fix(bt/bludroid): Increase BTU task stack size(backport v5.1)

See merge request espressif/esp-idf!28322
2024-01-08 19:51:40 +08:00
Tomáš Rohlínek
e5742d6f41 fix(storage/fatfs): check whether sdcard supports triming
Closes https://github.com/espressif/esp-idf/issues/12912
2024-01-08 09:35:01 +01:00
gaoxu
0ad58fe10e fix(adc): fix adc continuous get less results beacuse do not reset apb clk(legacy) 2024-01-08 16:11:53 +08:00
linruihao
2fa19aab7a fix(bt/bludroid): Increase BTU task stack size 2024-01-08 11:36:07 +08:00
Roland Dobai
74b20f3885 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:19 +01:00
liuning
4d509333ef fix(pm): fix no sleep null after data sent (e7243f1f) 2024-01-05 10:38:11 +08:00
Armando
5bdc38908b fix(cache): fix wrong dcache size 0 configuration issue on s2
Closes https://github.com/espressif/esp-idf/issues/12711
2024-01-05 10:37:59 +08:00
Xiao Xufeng
a055fcbda4 fix(rtc): fixed bbpll not calibrated from bootloader issue 2024-01-05 10:19:20 +08:00
Jiang Jiang Jian
db1e54a0c5 Merge branch 'fix/esp32h2_rssi_positive_issue_5.1' into 'release/v5.1'
Fix/esp32h2 rssi positive issue 5.1

See merge request espressif/esp-idf!28269
2024-01-05 07:32:39 +08:00
chaijie@espressif.com
630a8ff709 fix(bbpll): fix bbpll calibration may stop early bug(ESP32C2/S3/C6/H2) 2024-01-05 03:24:20 +08:00
Jiang Jiang Jian
efa71e8711 Merge branch 'feat/support_dump_ack_csi_v5.1' into 'release/v5.1'
feat(wifi): support dump 802.11 ACK frame for CSI (Backport v5.1)

See merge request espressif/esp-idf!28272
2024-01-04 23:41:19 +08:00
Jiang Jiang Jian
e57bf9a308 Merge branch 'bugfix/a2dp_sink_example_v5.1' into 'release/v5.1'
fix(bt/bluedroid): corrected the strings of A2DP audio states (v5.1)

See merge request espressif/esp-idf!28277
2024-01-04 23:35:01 +08:00
Michael (XIAO Xufeng)
b7834bd64d Merge branch 'feat/max_ver_c3_199_v5.1' into 'release/v5.1'
feat(soc): Increase max supported version of C3 to 1.99 (v5.1)

See merge request espressif/esp-idf!26823
2024-01-04 18:12:59 +08:00
Jin Cheng
00052aa208 fix(bt/bluedroid): corrected the strings of A2DP audio states 2024-01-04 17:53:51 +08:00
alanmaxwell
2cda3fc0c1 feat(wifi): support dump 802.11 ACK frame for CSI
1. fix beacon was unexpectedly freed issue
2. support dump ACK frame for CSI
2024-01-04 15:58:15 +08:00
zwl
5644fee5be fix(ble): fixed rssi inaccuracy issue on ESP32-H2 2024-01-04 15:09:50 +08:00
xiaqilin
a9679450b2 fix(ieee802154): fix the issue of not receiving packets when RSSI is positive in esp32h2 2024-01-04 15:09:42 +08:00
Jiang Jiang Jian
54bce56ae3 Merge branch 'bugfix/dpp_listen_bugs_v5.1' into 'release/v5.1'
fix(wpa_supplicant): Fix few bugs in dpp(v5.1)

See merge request espressif/esp-idf!26793
2024-01-04 13:47:29 +08:00
morris
f735330caa Merge branch 'refactor/uart_read_bytes_from_ringbuf_v5.1' into 'release/v5.1'
change(uart): improved the internal logic of uart_read_bytes (v5.1)

See merge request espressif/esp-idf!28225
2024-01-04 11:57:37 +08:00
morris
a66693cd63 Merge branch 'contrib/github_pr_12908_v5.1' into 'release/v5.1'
spi_lcd: add flag to control the DC level in cmd/param/data phase separately (GitHub PR) (v5.1)

See merge request espressif/esp-idf!28241
2024-01-04 10:25:33 +08:00
Rahul Tank
d2c1fcf56e Merge branch 'bugfix/enable_addr_resol_across_reboot_v5.1' into 'release/v5.1'
fix(nimble): Enable address resolution across reboot (v5.1)

See merge request espressif/esp-idf!28215
2024-01-03 20:10:00 +08:00
Roland Dobai
1dc2b953b0 Merge branch 'ci/pre_commit_sbom_validation_v5.1' into 'release/v5.1'
ci: add sbom validation using pre-commit's post-commit stage (v5.1)

See merge request espressif/esp-idf!28229
2024-01-03 18:36:59 +08:00
Michael (XIAO Xufeng)
67043f557f feat(soc): Increase max supported version of C3 to 1.99 2024-01-03 18:02:49 +08:00
Kit Sczudlo
3078210b26 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:01 +08:00
Mahavir Jain
24467ccc8a Merge branch 'contrib/github_pr_12177_v5.1' into 'release/v5.1'
mbedtls: define MBEDTLS_SSL_CID_TLS1_3_PAD_GRANULARITY for CID padding (GitHub PR) (v5.1)

See merge request espressif/esp-idf!28209
2024-01-03 16:51:57 +08:00
jgujarathi
f33c32dc05 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-03 13:46:41 +05:30
jgujarathi
078da4b2d2 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-03 13:46:41 +05:30
jgujarathi
a65cb7669c fix(wpa_supplicant): Add support for a dpp authentication timeout
- Adds support for a 1 second dpp authentication timeout.
2024-01-03 13:46:41 +05:30
jgujarathi
dcc14e8c15 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-03 13:46:40 +05:30
jgujarathi
5e20319831 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-03 13:46:40 +05:30
jgujarathi
c3518e0c87 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-03 13:46:40 +05:30
aditi_lonkar
4dd0805a6e fix(esp_wifi):Fix WDT when esp_supp_dpp_start_listen called multiple times 2024-01-03 13:46:38 +05:30
Island
04d624c50a Merge branch 'feat/ble_mesh_miscellaneous_update_v5.1' into 'release/v5.1'
feat(ble_mesh): Miscellaneous updates for mesh kconfig, relay related(v5.1)

See merge request espressif/esp-idf!28033
2024-01-03 15:42:15 +08:00
Shu Chen
575af15974 Merge branch 'backport5.1/fix_ot_br_pcb_ttl' into 'release/v5.1'
fix(openthread): update lib to set raw pcb ttl value (backport v5.1)

See merge request espressif/esp-idf!28218
2024-01-03 15:25:28 +08:00
Jiang Jiang Jian
453738c2ff Merge branch 'bugfix/nan_crash_sched_bcn_v5.1' into 'release/v5.1'
Fix crash while stopping NAN (Backport v5.1)

See merge request espressif/esp-idf!28181
2024-01-03 13:57:36 +08:00
Island
0aed680855 Merge branch 'bugfix/fix_ble_robost_cashing_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fix BLE robost cashing config(backport v5.1)

See merge request espressif/esp-idf!28200
2024-01-03 11:31:54 +08:00
Island
8d3170e044 Merge branch 'bugfix/BLEQABR23-35_v5.1' into 'release/v5.1'
fix(ble_mesh): avoid ble_mesh packet collision by using random adv interval(v5.1)

See merge request espressif/esp-idf!27487
2024-01-03 10:44:37 +08:00
Shyamal Khachane
6bc256adb7 fix(esp_wifi): Fix crash while stopping NAN
Also fix inconsistent NAN macro values
2024-01-03 10:35:56 +08:00
Frantisek Hrbata
62fd4abded 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:29:58 +01:00
Song Ruo Jing
0da4b0867b 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:21:39 +08:00
Krzysztof Budzynski
ccc8b274eb Merge branch 'docs/add_Chinese_translation_for_api-reference/peripherals/sdio_slave.rst_backport_v5.1' into 'release/v5.1'
docs: provide CN translation for api-reference/peripherals/sdio_slave.rst (Backport v5.1)

See merge request espressif/esp-idf!26109
2024-01-02 19:43:24 +08:00
Cai Xin Ying
8495a31f46 docs: provide CN translation for api-reference/peripherals/sdio_slave.rst (Backport v5.1) 2024-01-02 19:43:24 +08:00
Xu Si Yu
d2b8ddfb1f fix(openthread): update lib to set raw pcb ttl value 2024-01-02 16:56:52 +08:00
Rahul Tank
c6946cb2fd fix(nimble): Enable address resolution across reboot 2024-01-02 14:04:44 +05:30
Jiang Jiang Jian
29803d93b5 Merge branch 'bigfix/BLEQABR23-503_v51' into 'release/v5.1'
fix(ble_mesh): reject node-reseting when provision link is active (V5.1)

See merge request espressif/esp-idf!25849
2024-01-02 15:38:12 +08:00
Wu Meng Shi
53b013f041 fix(ble_mesh): reject node-reseting when provision link is active (V5.1) 2024-01-02 15:38:11 +08:00
luoxu
268fbf83c1 bugfix(ble_mesh): add duplicate scan config for esp32s3 2024-01-02 15:35:11 +08:00
luoxu
fa85443a44 feat(ble_mesh): Miscellaneous updates for mesh kconfig, relay related 2024-01-02 15:34:27 +08:00
luoxu
4fe0523a5f bugfix(ble_mesh): Prevent the generation of link ID as 0. 2024-01-02 15:24:15 +08:00
Daniel Mangum
f9569bde37 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:10 +05:30
zhanghaipeng
401653364d fix(bt/bluedroid): Optimize ble remove all bonded devices function 2023-12-30 20:39:57 +08:00
zhanghaipeng
9f478a8305 fix(bt/bluedroid): Update ble ibeacon example document 2023-12-30 20:39:47 +08:00
zhanghaipeng
a76b44602c fix(bt/bluedroid): Update ble gattc gatts coex example 2023-12-30 20:39:37 +08:00
zhanghaipeng
3241fd237b fix(bt/bluedroid): Fix BLE robost cashing config 2023-12-30 20:14:19 +08:00
Jiang Jiang Jian
bc2389029c Merge branch 'bugfix/fix_ble_app_unregister_no_event_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fix ble app unregister no event(backport v5.1)

See merge request espressif/esp-idf!28175
2023-12-29 16:03:39 +08:00
Jiang Jiang Jian
b929a149db Merge branch 'bugfix/fix_gatts_stop_race_condition_v5.1' into 'release/v5.1'
fix(nimble): Handled race condition for conn variables being set to NULL (v5.1)

See merge request espressif/esp-idf!28169
2023-12-29 16:02:17 +08:00
Jiang Jiang Jian
4e8b573481 Merge branch 'bugfix/fix_ble_phy_tx_ifs_v5.1' into 'release/v5.1'
Bugfix/fix ble phy tx ifs v5.1

See merge request espressif/esp-idf!28152
2023-12-29 14:14:00 +08:00
Jiang Jiang Jian
6e57f35873 Merge branch 'backport/add_dynamic_iram_check_for_ot_sleep_v51' into 'release/v5.1'
fix(pm): fix extra retention function to iram(Backportv5.1)

See merge request espressif/esp-idf!28134
2023-12-29 12:26:04 +08:00
Jiang Jiang Jian
2c7d68d17b Merge branch 'bugfix/clear_lp_sw_trigger_int_before_sleep_v5.1' into 'release/v5.1'
feat(ulp): add api to get lp_cpu wakeup cause and clear wakeup source at startup(v5.1)

See merge request espressif/esp-idf!28147
2023-12-29 12:20:58 +08:00
Jiang Jiang Jian
82bfc1de86 Merge branch 'bugfix/crash_in_btc_hf_init_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Avoided crash of LoadProhibited during HFP AG deinitialization (v5.1)

See merge request espressif/esp-idf!28117
2023-12-29 12:01:51 +08:00
Jiang Jiang Jian
8b84071f6a Merge branch 'backport/fix_ble_prepare_write_v5.1' into 'release/v5.1'
Backport/fix ble prepare write v5.1

See merge request espressif/esp-idf!27909
2023-12-29 12:01:01 +08:00
Jiang Jiang Jian
b938ef047c Merge branch 'bugfix/fix_fragment_bug_v5.1' into 'release/v5.1'
fix(wifi): fix the rate check error in fragment (v5.1)

See merge request espressif/esp-idf!28171
2023-12-29 11:48:49 +08:00
luoxu
5fd7c865c7 bugfix(ble_mesh): Supplementary configuration options that should be enabled. 2023-12-29 11:11:21 +08:00
Liu Linyan
a4635d75ca fix(ble_mesh): Support using random adv interval for mesh packets 2023-12-29 11:11:21 +08:00
zhangyanjiao
f4756fc21e fix(wifi): fix the rate check error in fragment 2023-12-28 19:13:00 +08:00
zhanghaipeng
7755e6190c fix(bt/bluedroid): Fix ble app unregister no event 2023-12-28 19:10:10 +08:00
Rahul Tank
aa2c91072d fix(nimble): Handled race condition for conn variables being set to NULL 2023-12-28 15:13:09 +05:30
Rahul Tank
bbd8d13f93 Merge branch 'bugfix/periodic_adv_enh_fixes_v5.1' into 'release/v5.1'
fix(nimble): Added periodic_adv_enh soc_caps for c2, h2 (v5.1)

See merge request espressif/esp-idf!28077
2023-12-28 17:24:05 +08:00
Jiang Jiang Jian
04895043f5 Merge branch 'feat/support_esp32c3_v1.1_wifi_v5.1' into 'release/v5.1'
feat(wifi): support esp32c3 v1.1 WiFi(v5.1)

See merge request espressif/esp-idf!27914
2023-12-28 16:56:49 +08:00
Alexey Lapshin
ddc3b14fdb fix(app_trace): Fix SystemView build 2023-12-28 12:08:57 +04:00
zhanghaipeng
17752f970a fix(phy): Fix ble tx ifs time for ESP32 2023-12-28 14:32:26 +08:00
wuzhenghui
53afab3850 feat(ulp): add api to get lp_cpu wakeup cause and clear wakeup source at startup
Closes https://github.com/espressif/esp-idf/issues/12651
2023-12-28 13:31:55 +08:00
Shu Chen
47c89441c1 Merge branch 'backport/ieee802154_receive_done_handler_v51' into 'release/v5.1'
fix(ieee802154): introduce a receive done handler feature(backportV5.1)

See merge request espressif/esp-idf!28133
2023-12-28 11:13:06 +08:00
Jiang Jiang Jian
9088450645 Merge branch 'bugfix/fix_establish_two_sco_fail_v5.1' into 'release/v5.1'
fix(bt/controller): Fixed establish two sco connections failed (Backport v5.1)

See merge request espressif/esp-idf!28101
2023-12-27 19:38:25 +08:00
Jiang Jiang Jian
61a11a7c1f Merge branch 'bugfix/wait_tvsl_after_non_pd_top_lightsleep_v5.1' into 'release/v5.1'
fix(esp_hw_support/sleep): wait flash ready after non-pd_top lightsleep for esp32c6 (v5.1)

See merge request espressif/esp-idf!28143
2023-12-27 19:37:42 +08:00
Roshan Bangar
dc9d9b41f2 fix(nimble): Added periodic_adv_enh soc_caps for c2, h2 2023-12-27 15:03:17 +05:30
Jiang Jiang Jian
48091104b6 Merge branch 'test/ctrl_acl_u_pkt_type_v5.1' into 'release/v5.1'
feat(bt/bluedroid): Added an API to specify data types for ACL-U traffic

See merge request espressif/esp-idf!27598
2023-12-27 16:53:43 +08:00
alanmaxwell
58de97b193 fix(wifi): change default flash freq from 40M to 80M for esp32 in iperf 2023-12-27 16:47:00 +08:00
muhaidong
e7b20b754f fix(wifi): fix beacon eb memory leak issue 2023-12-27 16:47:00 +08:00
liuning
afbe2d1165 fix(rom): fix rom ld for v5.1 2023-12-27 16:47:00 +08:00
liuning
e6efcc407e fix(rom): remove related rom funcs in c3 rom eco7 MR 2023-12-27 16:47:00 +08:00
alanmaxwell
36e082d6e2 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-12-27 16:47:00 +08:00
wuzhenghui
ecca6fb1c2 change(esp_hw_support/sleep): rename ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY
1. Rename ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY to ESP_SLEEP_WAIT_FLASH_READY_EXTRA_DELAY
2. Set ESP_SLEEP_WAIT_FLASH_READY_EXTRA_DELAY visible for all targets
2023-12-27 15:36:20 +08:00
wuzhenghui
c33dd0f4a2 fix(esp_hw_support/sleep): wait flash ready after non-pd_top lightsleep for esp32c6 2023-12-27 15:36:15 +08:00
Jiang Jiang Jian
ddd142e624 Merge branch 'bugfix/fix_ble_recorrect_enable_bug_v5.1' into 'release/v5.1'
fix(ble/controller): Fixed BLE recorrect enable bug and fixed BLE bb isr enable by default (backport v5.1)

See merge request espressif/esp-idf!28110
2023-12-27 12:03:47 +08:00
Jin Cheng
9d41ed6546 feat(bt/bluedroid): Added an API to specify data types for ACL-U traffic 2023-12-26 20:21:15 +08:00
zwx
81123259ff fix(pm): fix extra retention function to iram
* Also remove unused function on H2
2023-12-26 19:20:44 +08:00
zwx
66efe67609 fix(ieee802154): introduce a receive done handler feature 2023-12-26 19:12:11 +08:00
Daniel Paul
cf241fdaf1 CI: created script for creating MR to esp-dockerfiles, added script execution to CI pipeline 2023-12-26 16:51:05 +07:00
Shu Chen
f922e43625 Merge branch 'backport/some_openthread_related_features_v51' into 'release/v5.1'
Backport some openthread related features (backport v5.1)

See merge request espressif/esp-idf!28055
2023-12-26 17:27:27 +08:00
harshal.patil
d62f61dc47 fix(examples): Fix encoding issue in esp_local_ctrl's proto script 2023-12-26 14:03:09 +05:30
Jiang Jiang Jian
b7f0139dcb Merge branch 'bugfix/alarm_args_double_free_v5.1' into 'release/v5.1'
Bugfix/alarm args double free v5.1

See merge request espressif/esp-idf!27538
2023-12-26 16:16:58 +08:00
Jin Cheng
f7cfcebe69 fix(bt/bluedroid): Disabled Sniff Subrating temporarily as it did not work well 2023-12-26 11:51:32 +08:00
Jin Cheng
885c070eb8 fix(bt/bluedroid): Changed the default air mode to invalid value 2023-12-26 11:51:32 +08:00
Jin Cheng
5f621c33da fix(bt/bluedroid): Removed redundant operation of SCO clean up 2023-12-26 11:51:32 +08:00
Jin Cheng
bf7e27d126 fix(bt/bluedroid): Corrected the definitions of HF Client callback events 2023-12-26 11:51:32 +08:00
Jin Cheng
94faa4a112 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:51:32 +08:00
Jin Cheng
3c088db873 fix(bt/bluedroid): Added dynamic memory allocation for HFP control blocks 2023-12-26 11:51:32 +08:00
Jin Cheng
244a3f892e fix(bt/bluedroid): Set the alarm_arg to NULL after releasing to avoid double free in L2CAP layer 2023-12-26 11:04:46 +08:00
Jin Cheng
0d5d7cbff7 fix(bt/bluedroid): Set the alarm_arg to NULL after releasing to avoid double free in BTC layer 2023-12-26 11:04:46 +08:00
Island
d24b321eec Merge branch 'bugfix/fixed_stop_periodic_adv_assert_issue_v5.1' into 'release/v5.1'
fixed(ble): fixed an assertion issue when stopping periodic adv on ESP32C6 and ESP32H2

See merge request espressif/esp-idf!28084
2023-12-25 18:31:20 +08:00
zhiweijian
dd6e1b76fc fix(ble/controller): Fixed BLE recorrect enable bug and fixed BLE bb isr enable by default 2023-12-25 16:21:47 +08:00
linruihao
ddab5dbaa4 fix(bt/controller): Fixed establish two sco connections failed 2023-12-25 10:42:36 +08:00
Jiang Jiang Jian
df8cc9ad37 Merge branch 'fix/btc_config_lock_error_v5.1' into 'release/v5.1'
fix(bt/bluedroid): fixed btc_config_lock error (backport v5.1)

See merge request espressif/esp-idf!28070
2023-12-25 10:18:26 +08:00
morris
08545547d8 Merge branch 'bugfix/boot_flash_build_v5.1' into 'release/v5.1'
bugfix(spi_flash): Fix build error when octal flash is enabled (5.1)

See merge request espressif/esp-idf!28078
2023-12-25 10:02:08 +08:00
Rahul Tank
c57b352725 Merge branch 'feat/add_csa_selection_vsc_v5.1' into 'release/v5.1'
feat(nimble): Add VSC support for setting chan select algo (v5.1)

See merge request espressif/esp-idf!28028
2023-12-23 23:47:15 +08:00
zhanghaipeng
6ae956d81c fix(bt/bluedroid): Fix prepare write for BLE example 2023-12-23 20:19:37 +08:00
zhanghaipeng
6644bcc320 fix(bt/bluedroid): Fix BLE prepare write 2023-12-23 20:19:37 +08:00
Rahul Tank
0dc286db38 fix(nimble): Add VSC support for setting chan select algo 2023-12-22 18:31:52 +05:30
Rahul Tank
3629f070b6 Merge branch 'feature/hogp_example_support_v5.1' into 'release/v5.1'
feat(nimble): Added HID over Gatt Profile Support (v5.1)

See merge request espressif/esp-idf!28025
2023-12-22 20:52:17 +08:00
zwl
0fe3057529 fixed(ble): fixed an assertion issue when stopping periodic adv on ESP32C6 and ESP32H2 2023-12-22 15:35:28 +08:00
Island
6deb0ae743 Merge branch 'bugfix/ble_update_lib_20231219_v5.1' into 'release/v5.1'
update lib on release/v5.1

See merge request espressif/esp-idf!27999
2023-12-22 14:57:32 +08:00
Cao Sen Miao
8f6213c9f2 bugfix(spi_flash): Fix build error when octal flash is enabled,
Closes https://github.com/espressif/esp-idf/issues/12850
2023-12-22 14:11:28 +08:00
Roshan Bangar
a95bf9e0c3 feat(nimble): added HID over Gatt profile support 2023-12-22 11:23:05 +05:30
Rahul Tank
04b6feb1ad Merge branch 'bugfix/handle_all_zero_bdaddr_v5.1' into 'release/v5.1'
fix(nimble): Handle all 0s address of external controllers during IRK generation (v5.1)

See merge request espressif/esp-idf!27960
2023-12-22 11:53:07 +08:00
gongyantao
83a99d954d fix(bt/bluedroid): fixed btc_config_lock error 2023-12-22 11:30:39 +08:00
Island
b34ab72832 Merge branch 'bugfix/BLEQABR23-811_v5.1' into 'release/v5.1'
bugfix(ble_mesh): Enable CONFIG_BT_NIMBLE_VS_SUPPORT when using the duplicate...(v5.1)

See merge request espressif/esp-idf!27568
2023-12-21 20:22:26 +08:00
Tomas Rezucha
cb4e90ca6e refactor(usb/host): Move FIFO size configuration to HAL layer
The logic of calculating FIFO sizes is DWC OTG specific.
We move it to the HAL layer to provide better abstraction in the HDC layer.
2023-12-21 10:45:21 +01:00
Tomas Rezucha
325205faee refactor(usb/host): Make private hal types USB_DWC specific 2023-12-21 10:45:04 +01:00
Tomas Rezucha
d9223c6d91 feat(usb/host): Add High Speed enumeration types 2023-12-21 10:35:31 +01:00
Xu Si Yu
aa3a1efdd3 fix(openthread): allow setting netif_idx of udp pcb to no_index 2023-12-21 15:17:58 +08:00
Xu Si Yu
6eba71f171 fix(coex): 802.15.4 coex break notification 2023-12-21 15:17:58 +08:00
Xu Si Yu
866bc77246 feat(ieee802154): add tx/rx report for IEEE802.15.4 debug 2023-12-21 15:17:54 +08:00
Xu Si Yu
7e469f1330 feat(openthread): modification of uart and spi spinel based on openthread 41ef807 2023-12-21 15:16:29 +08:00
zwx
6221119c2f fix(openthread): fix openthread SPI tx timeout issue 2023-12-21 15:16:28 +08:00
zwx
d799d361ea fix(openthread): add netif check when call udp api for ot 2023-12-21 15:16:28 +08:00
zwx
abe36b97a5 fix(openthread): fix ot netif destroy netif order issue 2023-12-21 15:16:28 +08:00
Jiang Jiang Jian
925e3e2ed5 Merge branch 'fix/build_error_in_compiler_performance_mode_v5.1' into 'release/v5.1'
fix(bt/bluedroid): fixed build error when compiler in performace mode (backport v5.1)

See merge request espressif/esp-idf!27864
2023-12-21 11:30:38 +08:00
Jiang Jiang Jian
90435019a1 Merge branch 'bugfix/fix_memory_leak_in_c3_s3_controller_v5.1' into 'release/v5.1'
Fixed memory leak in ESP32C3 and ESP32S3 controller (Backport v5.1)

See merge request espressif/esp-idf!27892
2023-12-21 11:29:39 +08:00
Jiang Jiang Jian
a8a3adcfb8 Merge branch 'bugfix/put_extra_link_retention_in_iram_5.1' into 'release/v5.1'
fix(pm): place extra link opt in iram(Backport v5.1)

See merge request espressif/esp-idf!27898
2023-12-21 11:28:38 +08:00
Jiang Jiang Jian
d09d7bb646 Merge branch 'bugfix/ieee802154_deinit_v5.1' into 'release/v5.1'
Bugfix/ieee802154 deinit (Backport v5.1)

See merge request espressif/esp-idf!27973
2023-12-21 11:27:45 +08:00
Jiang Jiang Jian
487adc09f4 Merge branch 'change/change_regdma_power_issue_macro_v5.1' into 'release/v5.1'
change(pm): change macro SOC_PM_RETENTION_HAS_REGDMA_POWER_BUG (backport v5.1)

See merge request espressif/esp-idf!27991
2023-12-21 11:27:10 +08:00
Jiang Jiang Jian
503eccb261 Merge branch 'docs/Separate_low-power_documents_v5.1' into 'release/v5.1'
docs:separate low power documents (backport v5.1)

See merge request espressif/esp-idf!28021
2023-12-21 11:10:13 +08:00
Mahavir Jain
b38ee33b6d Merge branch 'bugfix/fix-clean-up-in-error-condition-in-http-example_v5.1' into 'release/v5.1'
fix(example/http): Fixed potential memory leak/crash in when handling error condition (v5.1)

See merge request espressif/esp-idf!27875
2023-12-20 16:41:29 +08:00
Jiang Jiang Jian
2c564d32db Merge branch 'bugfix/fix_some_wifi_bugs_231214_v5.1' into 'release/v5.1'
fix(wifi): fix some wifi bugs 231214 (Backport v5.1)

See merge request espressif/esp-idf!27943
2023-12-20 13:59:25 +08:00
luoxu
b37d4079ff bugfix(ble_mesh): Enable CONFIG_BT_NIMBLE_VS_SUPPORT when using the duplicate scan feature on the NimBLE host. 2023-12-20 11:18:36 +08:00
Krzysztof Budzynski
6360246a29 Apply 2 suggestion(s) to 2 file(s) 2023-12-20 11:08:12 +08:00
wangtao@espressif.com
a56b523822 docs:Separate low-power documents(backprot v5.1) 2023-12-20 11:07:28 +08:00
morris
acb84ca804 Merge branch 'bugfix/u32_reg_tsens_v5.1' into 'release/v5.1'
fix(tempertuer_sensor): Fix regs on temperature sensor is not volatile due to GCC bug(backport v5.1)

See merge request espressif/esp-idf!27948
2023-12-20 10:51:51 +08:00
Marius Vikhammer
40bea117e4 Merge branch 'bugfix/s3_irom_addr_v5.1' into 'release/v5.1'
soc: fix SOC_IROM_MASK_HIGH for esp32s3 (v5.1)

See merge request espressif/esp-idf!27136
2023-12-20 10:00:39 +08:00
Roland Dobai
b88e73f3ed Merge branch 'fix/sbom_validation_post_commit_v5.1' into 'release/v5.1'
fix: do sbom manifest validation in post-commit (v5.1)

See merge request espressif/esp-idf!28012
2023-12-20 00:03:18 +08:00
Frantisek Hrbata
a537dafa74 fix: do sbom manifest validation in post-commit
Following commit c3afbebf23 ("fix: bump esp-idf-sbom to v0.13.0 in pre-commit"),
the validation of submodule hash now relies solely on the information recorded
in the git-tree. Previously, the hash verification used submodule's
working tree hash if available. Since the new submodule hash is recorded
in git-tree only after the commit is created, we need to move the check
into post-commit, otherwise the hash validation checks the old value.

For example:

1. in .gitmodules

	[submodule "components/json/cJSON"]
	   sbom-hash = cb8693b058ba302f4829ec6d03f609ac6f848546

2. update the cJSON

	$ git -C components/json/cJSON checkout b45f48e600671feade0b6bd65d1c69de7899f2be

3. update cJSON hash in .gitmodules

	[submodule "components/json/cJSON"]
	   sbom-hash = b45f48e600671feade0b6bd65d1c69de7899f2be

4. commit the changes

	$ git commit -a -s

Step 4. will fail, because the validation is currently started in pre-commit stage,
where the hash for cJSON recorded in git-tree is still
cb8693b058ba302f4829ec6d03f609ac6f848546. The new hash b45f48e600671feade0b6bd65d1c69de7899f2be
will be stored in git-tree after the new commit is created.

Note that this means we cannot prevent the commit creation, but only
notify user about the hash inconsistency. If he/she still decides to
push it, it will fail in pre-commit checks in CI.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-12-19 12:30:37 +01:00
Vikram Dattu
b0493e0f6b fix(docs): fixed doxygen warnings in few headers
- non-matching arguments in `i2c_types.h` and `esp_wifi_crypto_types.h`
 - Fixed unended `@cond` macro in `esp_err.h`
2023-12-19 19:15:49 +08:00
Vikram Dattu
f841f0ae52 fix(esp_srp): Use @file for file documentation and missing doc
Using @brief for file description wrongly associates the documentation to an API.
Correct way to add file description is to use `@file` and then `@brief`. Corrected the same.

- Also added missing doc for esp_srp_handle_t
2023-12-19 19:15:49 +08:00
zhangyanjiao
24da38f63c fix(wifi): fix some wifi bugs 20231214
1. add support for espnow to seet dcm rate
2. bugfix: fix csi info is not correct
3. feature: add support for establishing over 4 rx ba sessions
4. sniffer: modified rx error dump in sniffer mode
5. fix(itwt): fix when receiving the twt setup response frame, twt tx cb has not yet been called
6. itwt: fix itwt information frame format is not correct when suspend time is 0
7. update esp_wifi_crypto_types.h
8. sta not pmf capable when ap requires should reject profile
9. fix softap set config issue
10. allow some special igtk keyindex to workaround faulty APs
11. fix psram enabled but initialized fail issue
12. add missing header files for wifi files
13. feat(wifi/vendor): get more wifi information in csi rx callback
2023-12-19 19:15:49 +08:00
zhangyanjiao
796f315f6b doc(Wi-Fi/Vendor): Update comments for wifi_csi_info_t 2023-12-19 19:15:49 +08:00
xueyunfei
23148a3138 Fix(esp_wifi): Add the missing header file to the wifi header files. 2023-12-19 19:15:49 +08:00
muhaidong
482ba2b909 fix(wifi): fix psram enabled but initialized fail issue
Closes https://github.com/espressif/esp-idf/issues/11971
2023-12-19 19:15:49 +08:00
muhaidong
1881900781 fix(wifi): allow some special igtk keyindx to workaround faulty APs 2023-12-19 19:15:49 +08:00
zhangyanjiao
61ae9bd8e2 fix(wifi/mesh): fix the IE crypto disable error and update doc 2023-12-19 19:15:49 +08:00
muhaidong
13094f2216 change(wifi): update esp_coexist_internal.h and esp_modem_wrapper.h 2023-12-19 19:15:49 +08:00
muhaidong
0573c44f32 docs(esp_mesh): update esp_mesh_internal.h 2023-12-19 19:15:49 +08:00
muhaidong
7d5eaa8b79 update(wifi): update esp_wifi_crypto_types.h 2023-12-19 19:15:49 +08:00
muhaidong
7b3cee0dd8 update(esp_coexist): update esp coexist header file 2023-12-19 19:15:49 +08:00
muhaidong
5960284022 esp_supplicant: remove wpa supplicant ROM source code copyrights 2023-12-19 19:15:49 +08:00
xuxiao
e321e8b640 fix(wifi): fix esp32c6 rxctrl info is not correct 2023-12-19 19:15:49 +08:00
muhaidong
baeed9fb6a fix(wifi): update scan example for scan get ap records 2023-12-19 19:15:49 +08:00
Roland Dobai
c61b2c4790 Merge branch 'feature/add_fatfs_sbom_v5.1' into 'release/v5.1'
feat(storage/fatfs): add sbom file manifest for FatFs (v5.1)

See merge request espressif/esp-idf!27480
2023-12-19 16:47:52 +08:00
Tomas Rohlinek
641ac3ee71 feat(storage/fatfs): add sbom file manifest for FatFs (v5.1) 2023-12-19 16:47:51 +08:00
cjin
d5bfb9b326 change(ble): added ble cca en and thresh option 2023-12-19 14:34:44 +08:00
luomanruo
c67710bacf 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:20:19 +08:00
Anton Maklakov
dbeb870635 Merge branch 'feature/update-gdb-to-12.1_20231023_v5.1' into 'release/v5.1'
feat(tools): update gdb version to 12.1_20231023 (v5.1)

See merge request espressif/esp-idf!27377
2023-12-19 14:11:20 +08:00
luomanruo
90497ae541 ble(update):
Update c2 lib to 7c6c9d53
Update h2 lib to 0ecb36f0
Update c6 lib to 0ecb36f0
2023-12-19 12:25:26 +08:00
Island
fae6ce0e7d Merge branch 'bugfix/ble_stack_disable_v5.1' into 'release/v5.1'
Bugfix/ble stack disable v5.1(backport v5.1)

See merge request espressif/esp-idf!27650
2023-12-19 12:00:04 +08:00
Island
08d54a6436 Merge branch 'backport/fix_ble_menuconfig_v5.1' into 'release/v5.1'
Backport/fix ble menuconfig v5.1(backport v5.1)

See merge request espressif/esp-idf!27497
2023-12-19 11:59:29 +08:00
Lou Tianhao
1419db4b91 change(pm): change macro SOC_PM_RETENTION_HAS_REGDMA_POWER_BUG 2023-12-19 11:44:23 +08:00
Jiang Jiang Jian
2abb36bc7f Merge branch 'optimize/When_psram_is_enable_the_number_of_ooseq_is_not_limited_5.1' into 'release/v5.1'
optimize(lwip):when psram is enable the number of ooseq is not limited 5.1

See merge request espressif/esp-idf!27945
2023-12-19 10:44:08 +08:00
Jiang Jiang Jian
9ed598aefe Merge branch 'backport/uart_select_malloc_5.1' into 'release/v5.1'
fix(vfs): fix uart malloc when locates ISR context in IRAM(Backport 5.1)

See merge request espressif/esp-idf!27382
2023-12-19 10:43:13 +08:00
Aditya Patwardhan
602cdf2fb4 Merge branch 'fix/cleanup_deleted_menuconfig_option_entries_v5.1' into 'release/v5.1'
fix(mbedtls): Fix menuconfig option entries (v5.1)

See merge request espressif/esp-idf!27464
2023-12-18 18:18:18 +08:00
Alexey Lapshin
8e11721c40 feat(tools): update gdb version to 12.1_20231023 2023-12-18 17:44:22 +08:00
zwx
2f49042b07 feat(ieee802154): rf enable and disable refactor 2023-12-18 15:57:42 +08:00
xiaqilin
00cbc1fad2 fix(ieee802154): fix ieee802154 mac deinit and config ieee802154_enable 2023-12-18 15:57:34 +08:00
zhanghaipeng
103656e7a2 feat(bt/bluedroid): Support ble create sync report disable and filter duplicate 2023-12-18 11:51:29 +08:00
zhanghaipeng
e0a0ee9ae9 fix(bt/bluedroid): Fix bluedroid menuconfig 2023-12-18 11:51:29 +08:00
zhanghaipeng
8d78433dea fix(bt/bluedroid): Fix BLE SMP register log level 2023-12-18 11:51:29 +08:00
zhanghaipeng
d0e9b33f5d docs(bt/bluedroid): Update ble example document 2023-12-18 11:51:29 +08:00
zhanghaipeng
55409e2395 fix(bt/bluedroid): Fix ble adv and scan status when deinit bluedroid 2023-12-18 11:47:50 +08:00
Aditya Patwardhan
25144125d6 fix(mbedtls): Removed redundant menuconfig entry 2023-12-18 11:19:00 +08:00
Mahavir Jain
fa7383162f Merge branch 'fix/esp32s3_soc_drom_high_addr_v5.1' into 'release/v5.1'
fix(soc): esp32s3/Fix the DROM_HIGH_ADDR (v5.1)

See merge request espressif/esp-idf!27822
2023-12-17 16:31:41 +08:00
Rahul Tank
c0cfdd9c46 fix(nimble): Handle all 0s address of external controllers during IRK generation 2023-12-16 17:31:57 +05:30
Rahul Tank
36ca229332 Merge branch 'bugfix/add_peer_null_check_v5.1' into 'release/v5.1'
fix(nimble): Added NULL peer addr check (v5.1)

See merge request espressif/esp-idf!27939
2023-12-16 15:55:00 +08:00
Rahul Tank
3c49099503 fix(nimble): Added NULL peer addr check 2023-12-15 18:06:40 +05:30
Rahul Tank
8a6d244a21 Merge branch 'bugfix/fix_sm_inject_return_value_v5.1' into 'release/v5.1'
fix(nimble): Added change to return success for API execution (v5.1)

See merge request espressif/esp-idf!27727
2023-12-15 19:33:16 +08:00
Cao Sen Miao
dfff867379 fix(tempertuer_sensor): Fix regs on temperature sensor is not volatile due to GCC bug 2023-12-15 16:41:16 +08:00
morris
7a32d046bd Merge branch 'fix/spi_lcd_example_fix_border_pixel_display_v5.1' into 'release/v5.1'
fix(spi_master): fixed lcd example block border pixel issue (v5.1)

See merge request espressif/esp-idf!27920
2023-12-15 16:03:30 +08:00
Xue yun fei
965c1da3e0 optimize(lwip):when psram is enable the number of ooseq is not limited 2023-12-15 14:11:38 +08:00
Rahul Tank
820d4a92d2 Merge branch 'feature/current_time_service_v5.1' into 'release/v5.1'
feat(nimble): Added Example support for Current Time Service (v5.1)

See merge request espressif/esp-idf!27262
2023-12-15 13:18:24 +08:00
Jiang Jiang Jian
e51e8a0948 Merge branch 'bugfix/fix_esp32h2_system_retention_restore_backup_v5.1' into 'release/v5.1'
fix(esp_hw_support): fix esp32h2 system link restore override cpu clk configuration(v5.1)

See merge request espressif/esp-idf!27814
2023-12-15 10:38:24 +08:00
Rahul Tank
4c288321cb fix(nimble): Added change to return success for API execution 2023-12-14 20:57:30 +05:30
Rahul Tank
694c9ccdf5 Merge branch 'bugfix/authcomplete_failure_v5.1' into 'release/v5.1'
fix(nimble): Fixed authcomplete failure caused by a mismatch in the c1 value (v5.1)

See merge request espressif/esp-idf!27620
2023-12-14 23:19:14 +08:00
Roshan Bangar
e8503d6efe feat(nimble): Added example support for Current Time Service 2023-12-14 20:24:20 +05:30
David Čermák
24e4b87925 Merge branch 'feature/eth_spi_abstraction_v5.1' into 'release/v5.1'
Abstraction of SPI driver for SPI Ethernet modules (v5.1)

See merge request espressif/esp-idf!27640
2023-12-14 21:49:00 +08:00
zhanghaipeng
bd1dc8dfaf fix(bt/bluedroid): Fix ble gattc deregister 2023-12-14 17:53:22 +08:00
wanlei
94fb5232ce fix(spi_master): fixed lcd example block border pixel issue 2023-12-14 17:17:36 +08:00
Darshan Dobariya
6bae5e5d6f fix(nimble): Fixed authcomplete failure caused by a mismatch in the c1 value (v5.1) 2023-12-14 14:13:45 +05:30
Rahul Tank
3ed9c70aa3 Merge branch 'bugfix/remove_rpa_rec_v5.1' into 'release/v5.1'
fix(nimble): Handled the deletion of RPA mapping(v5.1).

See merge request espressif/esp-idf!27319
2023-12-14 16:40:23 +08:00
Abhinav Kudnar
eef85a92f4 fix(nimble): Handled the deletion of RPA mapping. 2023-12-14 09:41:07 +05:30
Jiang Jiang Jian
87cd764d6c Merge branch 'bugfix/fix_issuse_in_scan_and_mesh_v5.1' into 'release/v5.1'
fix(wifi): fix issues in scan and wifi mesh (backport v5.1)

See merge request espressif/esp-idf!27844
2023-12-14 12:09:31 +08:00
Rahul Tank
0eec2b50be Merge branch 'bugfix/add_legacy_adv_clear_vsc_v5.1' into 'release/v5.1'
fix(nimble): Add support for VSC to clear legacy adv memory (v5.1)

See merge request espressif/esp-idf!27471
2023-12-14 12:01:09 +08:00
cjin
7d2ab4c14d fix(pm): place extra link opt in iram 2023-12-14 11:17:54 +08:00
morris
eb7022dd06 Merge branch 'contrib/github_pr_12559_v5.1' into 'release/v5.1'
fix(spi): Correct REG_SPI_BASE(i) macro for all targets (GitHub PR) (v5.1)

See merge request espressif/esp-idf!27714
2023-12-14 11:08:03 +08:00
morris
1b78d57496 Merge branch 'bugfix/bod_reset_c6_h2_v5.1' into 'release/v5.1'
fix(bod): Reset brownout in configuration to avoid RF cannot be enabled again(backport v5.1)

See merge request espressif/esp-idf!27723
2023-12-14 11:05:55 +08:00
linruihao
45e96ae1c3 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(9129dec) 2023-12-13 19:53:06 +08:00
Roland Dobai
e3ca11c83a Merge branch 'contrib/github_pr_12683_v5.1' into 'release/v5.1'
fix(tools): fix path delimiter in gdbinit for Windows (v5.1)

See merge request espressif/esp-idf!27575
2023-12-13 19:21:58 +08:00
Ondrej Kosta
51aad1d75b feat(esp_eth): abstraction of SPI driver for SPI Ethernet modules 2023-12-13 10:44:23 +01:00
GuyBrush
293bd9a0df 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:08 +00:00
Roland Dobai
6dc9cc81cc Merge branch 'bugfix/coredump_detect_v5.1' into 'release/v5.1'
tools: idf.py: fix detection of raw core dump file (v5.1)

See merge request espressif/esp-idf!27842
2023-12-13 17:25:19 +08:00
Roland Dobai
5bbb04ce46 Merge branch 'fix/bump_precommit_esp_idf_sbom_v5.1' into 'release/v5.1'
fix: bump esp-idf-sbom to v0.13.0 in pre-commit (v5.1)

See merge request espressif/esp-idf!27879
2023-12-13 17:03:03 +08:00
zhangyanjiao
ed2a5f0f0e 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
3. fix wifi mode error when mesh start after station has connected to router
2023-12-13 17:02:13 +08:00
zhangyanjiao
6e218ceefe feat(wifi): add new api to get one scan ap record 2023-12-13 16:49:04 +08:00
Roland Dobai
598a86e40a Merge branch 'tools/use_recommended_tool_priority_backport_v_5_1' into 'release/v5.1'
fix(idf_tools): Opt for the recommended tool in tools.json rather than the supported one (v5.1)

See merge request espressif/esp-idf!27795
2023-12-13 16:38:30 +08:00
Frantisek Hrbata
09ac0b47f9 fix: bump esp-idf-sbom to v0.13.0 in pre-commit
v0.13.0 contains fix for the submodule hash validation. Let's
bump its version in pre-commit, so the fix is used.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-12-13 07:31:22 +01:00
Zim Kalinowski
4c93085e4a fix(example/http): Fixed potential memory leak/crash in when handling error condition 2023-12-13 10:05:19 +05:30
Island
c6a9a06856 Merge branch 'bugfix/fix_some_ble_bugs_v5.1' into 'release/v5.1'
Fixed some BLE bugs (backport v5.1)

See merge request espressif/esp-idf!27695
2023-12-13 11:55:52 +08:00
Martin Vychodil
7a7d6aad41 Merge branch 'fix/esp_vfs_fat_sdcard_format_workbuf_leak_v5.1' into 'release/v5.1'
fix: esp_vfs_fat_sdcard_format workbuf memory leak (v5.1)

See merge request espressif/esp-idf!27504
2023-12-12 22:15:52 +08:00
gongyantao
407376b6e6 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:27 +08:00
Aleksei Apaseev
2ed73a0714 fix(idf_tools): Opt for the recommended tool in tools.json rather than the supported one 2023-12-12 14:21:55 +08:00
Jiang Jiang Jian
1a6a941521 Merge branch 'bugfix/connect_issue_for_zero_rssi_v5.1' into 'release/v5.1'
fix(esp_wifi): Fix issue of station disconnecting immediately after scanning  (Backport v5.1)

See merge request espressif/esp-idf!26743
2023-12-12 14:00:24 +08:00
Jiang Jiang Jian
9f76b1a57b Merge branch 'fix/wrong_order_of_includes_in_esp_tls_v5.1' into 'release/v5.1'
fix(esp-tls): Fix missing header files in esp_tls_errors.h header file (v5.1)

See merge request espressif/esp-idf!27704
2023-12-12 13:44:36 +08:00
Jiang Jiang Jian
7e47921f12 Merge branch 'bugfix/connect_after_scan_v5.1' into 'release/v5.1'
fix(conn): Change second connect delay time to 730 (v5.1)

See merge request espressif/esp-idf!27835
2023-12-12 13:43:34 +08:00
Jiang Jiang Jian
dbc13bc2ef Merge branch 'bugfix/fix_rtc_us_to_cycle_div_zero_in_deepsleep_v5.1' into 'release/v5.1'
fix(esp_hw_support/sleep): fix rtc_time_us_to_slowclk div zero in deepsleep process (backport v5.1)

See merge request espressif/esp-idf!27764
2023-12-12 13:43:25 +08:00
Jiang Jiang Jian
72ce0187c9 Merge branch 'contrib/github_pr_12460_v5.1' into 'release/v5.1'
fixing OTA write up to SPI_FLASH_SEC_SIZE margins (GitHub PR) (v5.1)

See merge request espressif/esp-idf!27644
2023-12-12 13:41:33 +08:00
Mahavir Jain
4aa464a4ea Merge branch 'fix/aes_mpi_interrupt_allocation_workflow_v5.1' into 'release/v5.1'
fix(mbedtls): move interrupt allocation during initialization phase (v5.1)

See merge request espressif/esp-idf!27204
2023-12-12 11:44:42 +08:00
Shu Chen
09c7104752 Merge branch 'fix/coexist_reg_esp32c6_set_default_value_v5.1' into 'release/v5.1'
fix(esp_coex): fix esp32c6 coex reg reset issue (backport v5.1)

See merge request espressif/esp-idf!27829
2023-12-12 11:35:56 +08:00
Rahul Tank
a0b2682e58 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-12 07:49:18 +05:30
Marius Vikhammer
9ad2c6f8df Merge branch 'docs/fix_dash_encoding_v5.1' into 'release/v5.1'
docs(programming_guide): turned off smartquotes (v5.1)

See merge request espressif/esp-idf!27819
2023-12-12 09:53:10 +08:00
Roland Dobai
e26de66065 Merge branch 'contrib/github_pr_12637_v5.1' into 'release/v5.1'
Dockerfile with variable depth parameter (GitHub PR) (v5.1)

See merge request espressif/esp-idf!27830
2023-12-11 23:09:50 +08:00
Anton Maklakov
e60b0235ad Merge branch 'feature/qemu-esp-develop-8.1.3-20231206_v5.1' into 'release/v5.1'
feat(tools): update qemu to esp-develop-8.1.3-20231206 (v5.1)

See merge request espressif/esp-idf!27812
2023-12-11 19:21:12 +08:00
Peter Dragun
62f3dddff7 fix(tools): idf.py: fix detection of raw core dump file
When idf.py coredump-debug is launched with '--core' argument, it
tries to determine the file format (raw, elf, b64). To detect the
'raw' core dump the code checked if the version word matched one of
the known values.
However, the version word also contains the chip ID in the high
half-word, so the check failed for anything other than the ESP32.
The detection of core file format has been moved to esp-coredump
package in version 1.9.0, including the fix for chip ID.

Reported in https://github.com/espressif/esp-idf/issues/10852
2023-12-11 11:26:58 +01:00
Sarvesh Bodakhe
d1e31a4194 fix(esp_wifi): Fix issue of station disconnecting immediately when AP RSSI is zero 2023-12-11 14:58:16 +05:30
Jiang Jiang Jian
70f1bd582f Merge branch 'bugfix/backport_wifi_fix_1208_v5.1' into 'release/v5.1'
fix(wifi): backport some wifi bugfix(v5.1)

See merge request espressif/esp-idf!27766
2023-12-11 17:26:06 +08:00
wuzhenghui
5dac3d9e03 fix(esp_hw_support/sleep): fix rtc_time_us_to_slowclk div zero in deepsleep process
Closes https://github.com/espressif/esp-idf/issues/12695
2023-12-11 09:24:07 +00:00
ding huan
f4e724a93b fix(conn): Change second connect delay time to 730 2023-12-11 16:57:09 +08:00
timoxd7
b2250f31b9 feat(docker): Add Dockerfile argument for variable clone depth
Closes https://github.com/espressif/esp-idf/pull/12637
2023-12-11 09:03:46 +01:00
xiaqilin
de2c208994 fix(esp_coex): fix esp32c6 coex reg reset issue 2023-12-11 15:57:36 +08:00
Jiang Jiang Jian
e91322891c Merge branch 'fix/esp32c6_sleep_pll_issue_v5.1' into 'release/v5.1'
fix(pm): add mac/bb power down/up prepare for fix esp32c6 pll issue (backport v5.1)

See merge request espressif/esp-idf!27339
2023-12-11 15:12:51 +08:00
Jiang Jiang Jian
cda441f47f Merge branch 'bugfix/cts_handle_invalid_year_val_v5.1' into 'release/v5.1'
fix(nimble): Handled invalid write on year value in Current Time Service (v5.1)

See merge request espressif/esp-idf!27462
2023-12-11 15:12:14 +08:00
Jiang Jiang Jian
6836ffd8c9 Merge branch 'fix/check_integrity_on_used_blocks_v5.1' into 'release/v5.1'
heap: fix integrity check on used blocks by the tlsf component (backport v5.1)

See merge request espressif/esp-idf!26563
2023-12-11 15:11:39 +08:00
Jiang Jiang Jian
e0cd5b7aa5 Merge branch 'backport/add_config_to_set_custom_mac_as_base_mac_v5_1' into 'release/v5.1'
feat(mac): Add a configuration to set custom MAC as base MAC(Backport V5.1)

See merge request espressif/esp-idf!27737
2023-12-11 15:11:19 +08:00
Jiang Jiang Jian
8a47b0776b Merge branch 'feature/refactor_some_coexist_sections_v5.1' into 'release/v5.1'
Feature/refactor some coexist sections v5.1

See merge request espressif/esp-idf!27367
2023-12-11 14:50:43 +08:00
Aditya Patwardhan
f62e7fd4e8 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:17:31 +05:30
harshal.patil
e8a5d9ef98 fix(mbedtls/aes): fix AES interrupt allocation for AES-GCM operations 2023-12-11 06:46:24 +00:00
harshal.patil
4c30f2a4a0 fix(mbedtls): move interrupt allocation during initialization phase 2023-12-11 06:46:24 +00:00
Marius Vikhammer
40241d4b68 docs(programming_guide): turned off smartquotes
Sphinx would "smartly" format e.g. double dashes into typographically correct entities,
i.e. a long dash unicode character.

This doesnt always work well for our docs were sometimes a double dash could be a python
argument, which when copied would no longer work.
2023-12-11 14:06:32 +08:00
wuzhenghui
3646b5d0c1 fix(esp_hw_support): fix esp32h2 system link restore override cpu clk configuration 2023-12-11 11:42:56 +08:00
Ivan Grokhotkov
850bf2b156 feat(tools): update qemu to esp-develop-8.1.3-20231206
https://github.com/espressif/qemu/releases/tag/esp-develop-8.1.3-20231206
2023-12-11 10:35:35 +07:00
Jiang Jiang Jian
05c5d04734 Merge branch 'feature/reinitialize_icg_map_in_modem_module_enable_v5.1' into 'release/v5.1'
fix(esp_hw_support): re-initialize icg map in modem_clock_module_enable (backport v5.1)

See merge request espressif/esp-idf!27767
2023-12-11 10:57:48 +08:00
Island
5bd0ae4dea Merge branch 'bugfix/ble_update_lib_20231201_v5.1' into 'release/v5.1'
update lib on release/v5.1

See merge request espressif/esp-idf!27587
2023-12-11 10:30:23 +08:00
Adam Múdry
6250af8ed1 fix: esp_vfs_fat_sdcard_format workbuf memory leak 2023-12-11 00:27:44 +00:00
liuning
ae07349ec4 feat(coex): apply struct for coex version 2023-12-08 13:06:55 +00:00
liuning
834968796a feat(coex): rename coexist sections 2023-12-08 13:06:55 +00:00
chenjianhua
15c8d7f65f fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(65db61f)
- Fixed remove and clear white list
2023-12-08 19:54:51 +08:00
chenjianhua
5f2c8edd27 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-08 19:54:39 +08:00
shangke
4d6be44b25 fix(bt/controller): Fixed some HCI commands parameter 2023-12-08 19:54:39 +08:00
chenjianhua
4d546878b7 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(b8f0db9)
- Fixed assert when llcp instant passed
2023-12-08 19:54:39 +08:00
chenjianhua
b1421ac4af 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-08 19:54:39 +08:00
chenjianhua
2dea0ef6ef fix(bt/bluedroid): Fixed add RPA to white list 2023-12-08 19:54:39 +08:00
luomanruo
3cdbb0406d ble(fix): Fixed crash issue when reset event queue 2023-12-08 17:21:19 +08:00
luomanruo
9b0e4ee24a ble(fix): clear event queue when init event queue
ble: update log module on ESP32C2, ESP32H2 and ESP32C6
2023-12-08 17:20:55 +08:00
luomanruo
4f27be7127 ble(update):
Update c2 lib to 47a787f0
Update h2 lib to 73452eac
Update c6 lib to 73452eac
2023-12-08 17:19:57 +08:00
Roland Dobai
bcf1645e44 Merge branch 'feat/manifest_check_v5.1' into 'release/v5.1'
feat: use esp-idf-sbom pre-commit plugin (v5.1)

See merge request espressif/esp-idf!27749
2023-12-08 16:55:54 +08:00
xiaqilin
ef4f420663 fix(pm): add mac/bb power down/up prepare for fix esp32c6 pll issue
* switch root clk src to PLL for modem reg opt and added callback
* register power_down/power_up callback in ieee802154 driver for esp32c6
* remove software regdma opt in bt
2023-12-08 08:03:32 +00:00
Anton Maklakov
ffeb545260 Merge branch 'ci/fix_test_case_name_while_setup_v5.1' into 'release/v5.1'
ci: assign the test_case_name attribute to the case item while setting up a pytest session (v5.1)

See merge request espressif/esp-idf!27668
2023-12-08 15:32:18 +08:00
Mahavir Jain
d15ef874a7 Merge branch 'bugfix/fix_http_client_async_mode_v5.1' into 'release/v5.1'
fix(esp_http_client): Fix esp_http_client async mode (v5.1)

See merge request espressif/esp-idf!27514
2023-12-08 14:25:55 +08:00
wuzhenghui
4a7d9dd387 fix(esp_hw_support): re-initialize icg map in modem_clock_module_enable 2023-12-08 14:22:36 +08:00
Kapil Gupta
b3c7123568 fix(esp_wifi): Drop fragmented AMPDU(fixCVE-2020-26142) 2023-12-08 14:17:02 +08:00
alanmaxwell
b7d599984b 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 ampdu duration issue
5.Fix rx fragment fail in Open mode.
2023-12-08 14:16:47 +08:00
Shu Chen
54f2536222 Merge branch 'backport/router_forwarding_flag_set_v51' into 'release/v5.1'
feat(lwip): support NA router farwording flag set(Backport V5.1)

See merge request espressif/esp-idf!27630
2023-12-08 12:24:38 +08:00
Mahavir Jain
ca02c6d274 Merge branch 'fix/rng_register_prefix_discrepency_newer_targets_v5.1' into 'release/v5.1'
Fix: RNG register prefix discrepancy for ESP32C6 and ESP32H2 (v5.1)

See merge request espressif/esp-idf!27684
2023-12-08 12:01:36 +08:00
Jiang Jiang Jian
d52d82ee83 Merge branch 'doc/change_deepsleep_example_readme_v5.1' into 'release/v5.1'
Doc/change deepsleep example readme v5.1

See merge request espressif/esp-idf!27447
2023-12-08 11:20:50 +08:00
Jiang Jiang Jian
4caaabec9e Merge branch 'bugfix/lwip_dns_docs_v5.1' into 'release/v5.1'
fix(lwip): Document DNS limitation in lwIP (v5.1)

See merge request espressif/esp-idf!27562
2023-12-08 11:20:13 +08:00
Guillaume Souchere
27a78278a6 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-12-08 03:19:04 +00:00
Guillaume Souchere
6ac25c9324 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-12-08 03:19:04 +00:00
Jiang Jiang Jian
bc3a75d5ba Merge branch 'fix/esp_netif_lock_v5.1' into 'release/v5.1'
fix(esp_netif): Lock netif list with TCPIP context (v5.1)

See merge request espressif/esp-idf!26710
2023-12-08 11:18:09 +08:00
Jiang Jiang Jian
c3de87083f Merge branch 'fix/remove_deprecated_bt_example_sdkfonfigs_v5.1' into 'release/v5.1'
ci(bt/bluedroid): remove configs that are not in effect (backport v5.1)

See merge request espressif/esp-idf!27282
2023-12-08 11:17:18 +08:00
morris
5e29bd5370 Merge branch 'bugfix/fix_adc_continuous_do_not_rst_apb_clk_v5.1' into 'release/v5.1'
fix(adc): fix adc continuous get less results beacuse do not reset apb clk (v5.1)

See merge request espressif/esp-idf!27604
2023-12-07 21:27:05 +08:00
Jiang Jiang Jian
fb511f4ec6 Merge branch 'bugfix/nan_sd_dp_timer_fixes_v5.1' into 'release/v5.1'
Fix NAN service discovery, datapath and timer bugs (Backport v5.1)

See merge request espressif/esp-idf!27522
2023-12-07 21:17:31 +08:00
Jiang Jiang Jian
493ecf59d4 Merge branch 'bugfix/fix_dhcp_subnet_option_api_dos_not_work_issue_5.1' into 'release/v5.1'
Fix(dhcps):fix dhcp subnet option api dos not work issue 5.1

See merge request espressif/esp-idf!27675
2023-12-07 21:09:38 +08:00
Jiang Jiang Jian
977098edca Merge branch 'feature/support_ext1_clear_spec_pins_v5.1' into 'release/v5.1'
fix(pm/ext1): fix c6 h2 lp_aon_ll_ext1_set_wakeup_pins func

See merge request espressif/esp-idf!27552
2023-12-07 21:07:54 +08:00
Frantisek Hrbata
db25ec2a37 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-07 13:36:00 +01:00
Harshit Malpani
1bce7d255d fix(esp-tls): Add headers in esp_tls_errors.h header file
Closes https://github.com/espressif/esp-idf/issues/12541
2023-12-07 10:13:43 +00:00
kohait00
b3d77e3ea5 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-07 10:08:08 +00:00
morris
8425cada28 Merge branch 'bugfix/fix_adc_cali_error_after_light_sleep_wake_on_h2_v5.1' into 'release/v5.1'
adc: fix calibration error when waking up from light sleep on H2 and enable test (v5.1)

See merge request espressif/esp-idf!27603
2023-12-07 17:49:06 +08:00
Marius Vikhammer
25507da236 Merge branch 'bugfix/import_lib_example_url_v5.1' into 'release/v5.1'
fix(build-system/example): Removed dead URL for downloading tinyxml2 (v5.1)

See merge request espressif/esp-idf!27661
2023-12-07 16:56:49 +08:00
Jiang Jiang Jian
817884eb31 Merge branch 'bugfix/fix_wifi_init_reentrant_issue_v5.1' into 'release/v5.1'
Bugfix/fix wifi init reentrant issue v5.1

See merge request espressif/esp-idf!27629
2023-12-07 16:22:57 +08:00
Harshit Malpani
19355c0fef fix(esp_http_client): Fix esp_http_client async mode
Closes https://github.com/espressif/esp-idf/issues/12358
2023-12-07 06:47:37 +00:00
zwx
923ce6a4b2 feat(mac): Add a configuration to set custom MAC as base MAC 2023-12-07 14:15:40 +08:00
harshal.patil
6a990a37ce fix(soc/esp32h2): Fix llperi_rng_data field discrepancy 2023-12-07 11:42:00 +05:30
Shyamal Khachane
9cdf839cf6 fix(esp_wifi): Fix NAN service discovery, datapath and timer bugs
1. Fix crash while cancelling NAN service
2. Avoid possible crash scenarios while forming datapath
3. Modify peer records structure thus fixing issues in datapath establishment
4. Fix timer out of bound issue causing "No timer handle" warning
5. Fix miscellaneous service discovery and datapath issues
2023-12-07 03:54:55 +00:00
Mu Hai Dong
e86ff640f8 fix(wifi): free beacon eb when softap destroy 2023-12-07 03:54:55 +00:00
Lou Tianhao
c1782faf0f fix(pm/ext1): fix c6 h2 lp_aon_ll_ext1_set_wakeup_pins func 2023-12-07 03:52:22 +00:00
liuning
46d4c6cc0a fix(wifi): fix wifi deinit s_wifi_modem_sleep_lock 2023-12-07 03:44:38 +00:00
liuning
3515b1d5c8 fix(wifi): fix wifi init reentrant issue 2023-12-07 03:44:38 +00:00
xueyunfei
97b9c24c62 fix(dhcp server):dhcp server can not restore address pool 2023-12-07 02:59:50 +00:00
xueyunfei
c69f3aec91 Fix(dhcps):fix dhcp subnet option api dos not work issue 2023-12-07 02:59:50 +00:00
zwx
5413b6b794 feat(lwip): support NA router farwording flag set
* Update submodule: git log --oneline
  4a8286ab8bcf983f22421e3d4be650837b5eb277..542ba2997f6cc14fe9c3d781bf9b0d890cd70bb1
- fix router forwarding flag set (espressif/esp-lwip@542ba299)
2023-12-07 10:52:10 +08:00
zwx
7f12a645ce fix(vfs): fix uart malloc when locates ISR context in IRAM 2023-12-07 10:43:58 +08:00
Cao Sen Miao
9dd90e2d9b fix(bod): Reset brownout in configuration to avoid RF cannot be enabled again 2023-12-07 10:33:58 +08:00
Shu Chen
5bdcaef8c9 Merge branch 'fix/ieee802154_sleep_config_v5.1' into 'release/v5.1'
fix(ieee802154): fix ieeee802154 sleep enable configuration dependency issue (backport v5.1)

See merge request espressif/esp-idf!27466
2023-12-07 10:05:17 +08:00
Roland Dobai
ca5c8deb7e Merge branch 'fix/fatfsgen_construct_v5.1' into 'release/v5.1'
fix(tools): Fix fatfsgen construct dependency (v5.1)

See merge request espressif/esp-idf!27655
2023-12-07 07:18:49 +08:00
Shu Chen
46d52c81f9 Merge branch 'backport5.1/ot_examples_config' into 'release/v5.1'
fix(openthread): openthread examples config (backport v5.1)

See merge request espressif/esp-idf!27553
2023-12-06 21:44:08 +08:00
xiaqilin
f38e56e685 fix(ieee802154): fix ieeee802154 sleep enable configuration dependency issue 2023-12-06 12:43:58 +00:00
Roshan Bangar
a496e87d73 fix(nimble): Handled invalid write on year value in Current Time Service 2023-12-06 18:03:59 +05:30
Alexey Gerenkov
c42c37aff7 Merge branch 'save_isr_ctx_to_coredump_v5.1' into 'release/v5.1'
feat(coredump): save isr context to coredump elf file (v5.1)

See merge request espressif/esp-idf!27454
2023-12-06 18:38:54 +08:00
gaoxu
6190b3f7c9 fix(adc): restore cali registers after light sleep wake up on H2 and enable test 2023-12-06 10:19:52 +00:00
gaoxu
98ec583690 ci(adc): add a test that adc continuous read after restarting 2023-12-06 10:19:45 +00:00
gaoxu
57a5c4684c fix(adc): fix adc continuous get less results beacuse do not reset apb clk 2023-12-06 10:19:45 +00:00
Roland Dobai
ccc75dd2da 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-06 08:50:01 +00:00
wanlei
3486cf1b60 fix(spi): correct some signals and dummy bits docs 2023-12-06 16:15:23 +08:00
TD-er
8e0d64e94c 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:13:01 +08:00
Anton Maklakov
4fe15460ab Merge branch 'ci/fix_build_linux_targets' into 'release/v5.1'
Ci/fix build linux targets (v5.1)

See merge request espressif/esp-idf!27519
2023-12-06 15:31:35 +08:00
morris
5cf65ce766 Merge branch 'fix/usb_host_soc_caps_backport_v5.1' into 'release/v5.1'
USB host soc caps (backport v5.1)

See merge request espressif/esp-idf!27399
2023-12-06 09:59:53 +08:00
harshal.patil
c040a614a9 fix(soc/esp32c6): Fix llperi_rng_data field discrepancy 2023-12-05 21:08:48 +05:30
Aleksei Apaseev
3ed6c9bed5 ci: assign the test_case_name attribute to the case item while setting up a pytest session 2023-12-05 09:06:01 +01:00
Marius Vikhammer
81ab5f7fb7 fix(build-system/example): Updated dead URL for downloading tinyxml2
The import_lib example contained a fallback mirror for downloading tinyxml2 sources
but this link was dead. If this mirror was used it would cause the build to fail.
2023-12-05 12:32:33 +08:00
Mahavir Jain
d083a0e313 Merge branch 'support/add_srp_salt_ver_gen_api_v5.1' into 'release/v5.1'
Generate Salt and verifier pair for given username and password (v5.1)

See merge request espressif/esp-idf!27351
2023-12-04 21:10:51 +08:00
Xu Si Yu
d13e47596b fix(openthread): add eventfd nums for spi interface 2023-12-04 17:51:25 +08:00
Shu Chen
c9babf8cb3 fix(openthread): remove invalid configs from ot examples 2023-12-04 17:51:25 +08:00
Lou Tianhao
9226c65c74 docs(pm):add uart wakeup description when pd top 2023-12-04 07:39:11 +00:00
Lou Tianhao
57787d1aae docs(pm):add gpio wakeup description when pd top 2023-12-04 07:39:11 +00:00
Lou Tianhao
5d4a786354 docs(pm):change_deepsleep_example_readme 2023-12-04 07:39:11 +00:00
Roland Dobai
b5289ed2ba Merge branch 'feature/docker_git_safe_dirs_v5.1' into 'release/v5.1'
feat(docker): allow to add dirs into git's safe.directory (v5.1)

See merge request espressif/esp-idf!27560
2023-12-01 20:02:53 +08:00
David Cermak
0f51b5da67 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 09:51:47 +01:00
Frantisek Hrbata
99f9dd4c07 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:23:16 +01:00
Island
9a05c9446f Merge branch 'fix/ble_mesh_example_relay_enable_v5.1' into 'release/v5.1'
fix(ble_mesh): Enable relay by default for the specific dev role (v5.1)

See merge request espressif/esp-idf!27512
2023-12-01 15:17:24 +08:00
Island
fae44bf123 Merge branch 'bugfix/ble_update_lib_20231124_v5.1' into 'release/v5.1'
ble(update):Update c2 lib to 79ed4e8a,Update h2 lib to 9a237426,Update c6 lib to 9a237426

See merge request espressif/esp-idf!27393
2023-12-01 13:58:21 +08:00
Roland Dobai
76d3d18fdd Merge branch 'fix/monitor_print_filter_v5.1' into 'release/v5.1'
fix(tools/monitor): fix PRINT_FILTER env variable usage (v5.1)

See merge request espressif/esp-idf!27418
2023-12-01 00:09:14 +08:00
Fu Hanxi
1f0f661979 ci: skip pytest cases in managed_components 2023-11-30 09:08:01 +01:00
Fu Hanxi
7df8574119 ci: fix missing linux related .build-test-rules.yml 2023-11-30 09:07:36 +01:00
Liu Linyan
1bfd5e35af fix(ble_mesh): Enable relay by default for the specific dev role 2023-11-30 12:29:37 +08:00
Ivan Grokhotkov
a803c846aa Merge branch 'bugfix/console_examples_reenable_v5.1' into 'release/v5.1'
examples: re-enable console examples for C2, C6, H2 (v5.1)

See merge request espressif/esp-idf!24336
2023-11-29 23:57:09 +08:00
Martin Vychodil
a165b5c1d5 Merge branch 'feature/expose_unload_partitions_v5.1' into 'release/v5.1'
refactor(esp_partition): Expose function for unloading partitions (v5.1)

See merge request espressif/esp-idf!27426
2023-11-29 16:35:19 +08:00
Martin Vychodil
958d98c8e7 Merge branch 'fix/fatfs_formatting_wrong_volume_v5.1' into 'release/v5.1'
Fix: FATFS formatting wrong partition (v5.1)

See merge request espressif/esp-idf!27373
2023-11-29 16:33:29 +08:00
Wang Meng Yang
d51b71260a Merge branch 'feature/support_ble_esp32c3_eco7_v5.1' into 'release/v5.1'
Feature/support ble esp32c3 eco7 (backport v5.1)

See merge request espressif/esp-idf!27326
2023-11-29 14:14:22 +08:00
Mahavir Jain
3b1d428501 Merge branch 'bugfix/preencrypted_ota_failed_with_partial_download_v5.1' into 'release/v5.1'
fix(esp_https_ota): fix preencrypted ota failed with pytest server and partial http enabled (v5.1)

See merge request espressif/esp-idf!27354
2023-11-29 14:05:39 +08:00
Mahavir Jain
4788804f6d Merge branch 'bugfix/wrong_ota_upgrade_size_log_v5.1' into 'release/v5.1'
fix(esp_https_ota): Fix wrong debug print for ota upgrade size (v5.1)

See merge request espressif/esp-idf!27352
2023-11-29 11:38:53 +08:00
morris
5f35f5ddb8 Merge branch 'bugfix/i80_lcd_tx_param_check_enhancement_v5.1' into 'release/v5.1'
fix(i80_lcd): enhance the check of a valid data phase (v5.1)

See merge request espressif/esp-idf!27428
2023-11-29 10:37:43 +08:00
Roman Leonov
e950cdf549 fix(usb/host): remove bInterval verification during pipe opening for INTR and ISOC EPs 2023-11-28 22:00:54 +01:00
Tomas Rezucha
609628e139 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-28 22:00:54 +01:00
Darian Leung
fdab2d0c32 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-28 22:00:54 +01:00
Darian Leung
411405355d 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-28 22:00:30 +01:00
Erhan Kurubas
4a32955f74 feat(coredump): save isr context to coredump elf file 2023-11-28 18:19:19 +01:00
Ivan Grokhotkov
be057f26dc ci(system): re-enable build test app for C2 and C6, clean up configs
Since we can use CONFIG_NAME now to specify build rules, we don't need
to have target-specific config files.
2023-11-28 18:09:06 +01:00
Ivan Grokhotkov
6e2dd2924a fix(esp_hw_support): fix build with CONFIG_ESP_CONSOLE_UART=n on C6
Closes https://github.com/espressif/esp-idf/issues/11924
2023-11-28 18:08:11 +01:00
Ivan Grokhotkov
b52607af71 examples: re-enable console examples for C2, C6, H2
- Split the sleep-related system commands into a separate file
- Don't compile that file and don't register sleep commands for H2 yet
- Exclude Wi-Fi commands if the chip doesn't have Wi-Fi
2023-11-28 18:08:11 +01:00
Rahul Tank
4f16f201af Merge branch 'bugfix/fix_duplicate_exception_vsc_5.1' into 'release/v5.1'
fix(nimble): Fix the parameters in duplicate exception list vsc command(v5.1)

See merge request espressif/esp-idf!27406
2023-11-28 15:49:37 +08:00
Fu Hanxi
3875e26b3b Merge branch 'test/idf-build-apps-1.0.0_v5.1' into 'release/v5.1'
CI: make master pipeline compatible with idf-build-apps 1.0.0 release (v5.1)

See merge request espressif/esp-idf!26247
2023-11-28 14:59:39 +08:00
morris
d8456e5767 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:11 +08:00
Adam Múdry
5e140f4228 refactor(esp_partition): Expose function for unloading partitions
Closes https://github.com/espressif/esp-idf/issues/12625
2023-11-27 19:50:16 +01:00
zhiweijian
a34d9774bf feat: support ble esp32c3 eco7 2023-11-27 11:32:50 +00:00
Jiang Guang Ming
03582a8cfe fix(esp32c3): Update esp32c3 chip revision 2023-11-27 11:32:50 +00:00
Jiang Guang Ming
5aa458a591 feat(esp32c3): Add rom ld with ROM tag esp32c3-eco7-20230720 2023-11-27 11:32:50 +00:00
Shang Zhou
c14d05ff61 docs: Update CN translation for api-guides/tools/idf-monitor.rst 2023-11-27 09:38:39 +01:00
Peter Dragun
c0e8969afa fix(tools/monitor): fix PRINT_FILTER env variable usage 2023-11-27 09:37:36 +01:00
Mahavir Jain
2c77ccda5e Merge branch 'check_debug_aware_config_v5.1' into 'release/v5.1'
fix(esp_hw_support): re-enable CONFIG_ESP_DEBUG_OCDAWARE functionality (v5.1)

See merge request espressif/esp-idf!27106
2023-11-27 14:12:05 +08:00
Rahul Tank
d300f91b4e fix(nimble): Fix the parameters in duplicate exception list vsc command 2023-11-27 09:22:07 +05:30
Rahul Tank
54a5d13a7a Merge branch 'bugfix/fix_dangling_pointer_compilation_warning_v5.1' into 'release/v5.1'
fix(nimble): Fix dangling pointer error during compilation (v5.1)

See merge request espressif/esp-idf!27161
2023-11-27 10:38:03 +08:00
Rahul Tank
40534e5ad6 fix(nimble): Fix dangling pointer error during compilation 2023-11-26 12:38:19 +05:30
luomanruo
e6602ced8e ble: update rom.ld file 2023-11-24 20:34:21 +08:00
luomanruo
8f37c22a0d ble: update sdkconfig_version on ESP32C2, ESP32H2 and ESP32C6 2023-11-24 20:19:50 +08:00
luomanruo
49d81c71a8 ble(fix): fix RX issue on ESP32-C2 2023-11-24 19:40:28 +08:00
luomanruo
ff0106345f ble:
Update c2 lib to 79ed4e8a
Update h2 lib to 9a237426
Update c6 lib to 9a237426
2023-11-24 19:21:04 +08:00
Erhan Kurubas
5e88ecfd02 fix(esp_hw_support): re-enable CONFIG_ESP_DEBUG_OCDAWARE functionality 2023-11-24 09:54:18 +00:00
Jiang Jiang Jian
3ba577165c Merge branch 'bugfix/esp32s3_usb_otg_console_v5.1' into 'release/v5.1'
system: support USB_OTG CDC console on ESP32-S3 (v5.1)

See merge request espressif/esp-idf!24337
2023-11-24 10:19:02 +08:00
Jiang Jiang Jian
9e863521c6 Merge branch 'bugfix/ble_gap_unpair_oldest_peer_fix_v5.1' into 'release/v5.1'
fix(nimble): Fixed ble_gap_unpair_oldest_peer to prevent writing to invalid memory (v5.1)

See merge request espressif/esp-idf!27316
2023-11-24 10:15:33 +08:00
Adam Múdry
ff8b0cf14b fix(storage): FATFS WL function formatting wrong partition
Closes https://github.com/espressif/esp-idf/issues/12542

Co-authored-by: Tony Stuart <anthonyfstuart@gmail.com>
2023-11-23 22:55:58 +01:00
David Čermák
3bcbbf13fe Merge branch 'feature/eth_loopback_test_v5.1' into 'release/v5.1'
esp_eth/test_apps: add loopback test (v5.1)

See merge request espressif/esp-idf!26806
2023-11-24 00:43:35 +08:00
Island
80b61281b9 Merge branch 'bugfix/ble_update_lib_1110_5.1' into 'release/v5.1'
Bugfix/ble update lib 1110 5.1

See merge request espressif/esp-idf!27061
2023-11-23 19:10:49 +08:00
Mahavir Jain
c1eae4b7be Merge branch 'bugfix/return_code_of_ota_finish_api_v5.1' into 'release/v5.1'
fix(esp_https_ota): fix return code of esp_https_ota_finish API (v5.1)

See merge request espressif/esp-idf!27335
2023-11-23 16:31:06 +08:00
nilesh.kale
0e214b776b fix: fix preencrypted ota failed with pytest server and partial http enabled 2023-11-23 12:50:18 +05:30
nilesh.kale
79704082c2 fix(component-esp_https_ota): Fix wrong debug print for ota upgrade size 2023-11-23 12:28:39 +05:30
Vikram Dattu
6b8ba332b8 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
2023-11-23 12:01:10 +05:30
Vikram Dattu
8857082585 refactor(esp_srp): Expose esp_srp.h and add API docs
- Also added missing `protocomm_security2` reference in `protocomm.rst`
2023-11-23 12:01:10 +05:30
Marius Vikhammer
0feef5f2f3 Merge branch 'backport/add_docs_for_coex_v51' into 'release/v5.1'
feat(docs) Add RF Coexist docs for H2(BackportV5.1)

See merge request espressif/esp-idf!27236
2023-11-23 13:57:42 +08:00
darshan7patel
2db80a8d3c fix(nimble): Fixed ble_gap_unpair_oldest_peer to prevent writing to invalid memory (v5.1) 2023-11-23 11:17:04 +05:30
Rahul Tank
e55ede5f94 Merge branch 'feature/get_whitelist_size_v5.1' into 'release/v5.1'
feat(nimble): Added API to retrieve the size of the controller's white list (v5.1)

See merge request espressif/esp-idf!26954
2023-11-23 12:34:19 +08:00
Roland Dobai
3e2dbfec47 Merge branch 'contrib/github_pr_12558_v5.1' into 'release/v5.1'
Fix: esptool_py incorrectly assumed target name equals binary name (GitHub PR) (v5.1)

See merge request espressif/esp-idf!27269
2023-11-22 22:41:47 +08:00
Martin Vychodil
3e04fba477 Merge branch 'bugfix/uart_vfs_select_in_iram_v5.1' into 'release/v5.1'
fix: add UART VFS select callback in IRAM when CONFIG_UART_ISR_IN_IRAM is enabled (v5.1)

See merge request espressif/esp-idf!27298
2023-11-22 22:41:18 +08:00
Ondrej
d23b41c7cb fix(esp_eth): fixed ETH_CMD_READ/WRITE_PHY_REG build issue 2023-11-22 15:28:01 +01:00
Ondrej Kosta
0df97644c4 ci(esp_eth): addressed LAN8720 errata in CI test 2023-11-22 15:28:01 +01:00
Ondrej Kosta
99d4c1d13c feat(esp_eth): added ioctl option to read/write PHY registers
LAN87xx: Added extra delay after setting PHY speed
2023-11-22 15:28:01 +01:00
Ondrej
1d3e466c61 ci(esp_eth): make additional Ethernet chips test as nightly run 2023-11-22 15:28:01 +01:00
Chen Yudong
50a54194b7 ci: fix pytest components ethernet rules 2023-11-22 15:28:01 +01:00
Ondrej
1215fca04e ci(esp_eth): added tests of all supported Etherent chips 2023-11-22 15:27:57 +01:00
Ondrej Kosta
6fda9fe207 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-22 15:23:52 +01:00
Bogdan Kolendovskyy
6bc957ee4f esp_eth: add loopback test, change chip drivers to reflect chip specific behaviour
In esp_eth_test_apps.c:
Add test of loopback functionality. Change speed/duplex/autonegotiation test - remove need to enable loopback (required
for it to work on some phys supported by ESP-IDF)

In Kconfig.projbuild:
Add parameters to select which configuration is used - standard or custom.
Add for custom configuration parameters to select MDC and MDIO pins (required to work with WESP-32 and other boards that
use non-standard pin assignments).

In esp_eth_test_common.c:
Add code to support changes made in Kconfig

In sdkconfig.ci.default_rtl8201:
Change config which is used. Now custom is used and MDC is gpio 16, MDIO is gpio 17. Reuqired to work with WESP-32

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-22 15:23:52 +01:00
Harshit Malpani
d778b07b22 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:08 +05:30
Rahul Tank
2a227b89d5 Merge branch 'feature/walkthrough_for_bleprph_v5.1' into 'release/v5.1'
doc (nimble): Added the tutorial for bleprph example. (v5.1)

See merge request espressif/esp-idf!26887
2023-11-22 18:21:49 +08:00
Rahul Tank
ad11452275 Merge branch 'bugfix/cleanup_nimble_sdkconfig_v5.1' into 'release/v5.1'
ci(nimble): Cleanup sdkconfig files for nimble examples (v5.1)

See merge request espressif/esp-idf!27289
2023-11-22 18:09:16 +08:00
David Cermak
5e07ffb444 fix(esp_netif): Mark esp_netif_next deprecated and fix usages
* Uses netif_find_if() in IPv6 examples
* Fixes esp_netif_next() usage in L2TAP
2023-11-22 09:59:37 +00:00
David Cermak
80cc7e8928 feat(esp_netif): Added new API to search in netif list 2023-11-22 09:59:37 +00:00
David Cermak
65917bb8c3 fix(esp_netif): Lock netif list with TCPIP context
This commit removes the lock from the list manipulation code in esp_netif_objects.c,
 because we already have another lock/task context for lwip.
So the list manipulation is unsafe and safety must be assured by the stack layer
(in esp_netif_lwip).
Problems with current locking:
* implementation of locking was wrong -- lazy init style of creating the mutex is not
  thread safe (and destroying it if we have no interface makes the problem exhibit very frequently)
* locking only the list won't solve issues when assessing interfaces atomically
* maintaining multiple locks is problematic, as we often switch between
lwip context and user context in internal implementation of esp_netif_lwip

Closes https://github.com/espressif/esp-idf/issues/12261
2023-11-22 09:59:37 +00:00
Jiang Jiang Jian
2cc61caf7b Merge branch 'bugfix/add_par_check_in_ag_cind_res_v5.1' into 'release/v5.1'
Bugfix/add par check in ag cind res v5.1

See merge request espressif/esp-idf!27257
2023-11-22 17:47:28 +08:00
Jiang Jiang Jian
d5e87fed74 Merge branch 'bugfix/spp_deinit_crash_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fix the crash of invalid access to released resources (v5.1)

See merge request espressif/esp-idf!27251
2023-11-22 17:45:48 +08:00
Jiang Jiang Jian
8b6977b883 Merge branch 'bugfix/coex_cfg_option_invisible_v5.1' into 'release/v5.1'
fix(esp_coex): Fix dependency errors in coexist configuration (Backport v5.1)

See merge request espressif/esp-idf!26577
2023-11-22 17:45:05 +08:00
Jiang Jiang Jian
b09e1d860d Merge branch 'bugfix/fix_psram_access_faild_after_pd_cpu_wakeup_v5.1' into 'release/v5.1'
fix(esp_pm): fix psram access failed after pd_cpu wakeup if uart driver driven console is used (backport v5.1)

See merge request espressif/esp-idf!27051
2023-11-22 17:44:32 +08:00
zwx
f710a49680 feat(docs) Add RF Coexist docs for H2 2023-11-22 17:04:55 +08:00
darshan
8dcd59f34f feat(nimble): Added API to retrieve the size of the controller's white list (v5.1) 2023-11-22 10:29:36 +05:30
Shu Chen
ecbbd3c3d9 Merge branch 'backport/add_ot_radio_stats_enable_config_5_1' into 'release/v5.1'
feat(openthread): backport some openthread features(BackportV5.1)

See merge request espressif/esp-idf!26885
2023-11-22 12:23:53 +08:00
Rahul Tank
3662303f31 Merge branch 'bugfix/generate_new_irk_across_reboot_v5.1' into 'release/v5.1'
fix(nimble): Generate a new unique IRK for every chip. (v5.1)

See merge request espressif/esp-idf!27117
2023-11-22 03:03:39 +08:00
Ivan Grokhotkov
6481b0161c ci: add build test for CONFIG_ESP_CONSOLE_USB_CDC_SUPPORT_ETS_PRINTF 2023-11-21 17:33:30 +01:00
Ivan Grokhotkov
e2f1327a5c examples: re-enable system/console/advanced_usb_cdc for ESP32-S3
Closes https://github.com/espressif/esp-idf/issues/9364
2023-11-21 17:33:30 +01:00
Ivan Grokhotkov
6ec4937cec 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-11-21 17:33:30 +01:00
Ivan Grokhotkov
22dd730a7c esp_rom: convert USB related headers to SPDX, update COPYRIGHTS.rst 2023-11-21 17:33:30 +01:00
Ivan Grokhotkov
6d1f573945 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-11-21 17:33:29 +01:00
Ivan Grokhotkov
228dbe103f esp_rom: add USB_OTG "port" number for S2 and S3 2023-11-21 17:33:29 +01:00
Ivan Grokhotkov
c7b409aa94 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-11-21 17:33:29 +01:00
Ivan Grokhotkov
2c341a8557 console: minor fixes
- wrong comment
- duplicated setvbuf
2023-11-21 17:33:29 +01:00
sonika.rathi
633a3b06db fix(vfs/uart): add UART VFS select callback in IRAM
UART VFS select callback is placed in IRAM when CONFIG_UART_ISR_IN_IRAM is enabled
2023-11-21 14:17:08 +01:00
luomanruo
d24f7d9f12 ble(fix): deinit crash issue 2023-11-21 15:05:22 +08:00
zwl
9cf6280eea fix(ble): fixed ble occasional rx exception issue 2023-11-21 15:03:38 +08:00
luomanruo
2cf6c185dc ci(ble/bluedroid): Add notes in sdkconfig.defaults 2023-11-21 15:03:38 +08:00
luomanruo
11f26f3319 ble: update controller log module 2023-11-21 15:03:38 +08:00
luomanruo
fcc8ce5de5 ble: update c6 h2 lib to 5b1dfd2b, c2 lib to db4e1fb2 2023-11-21 15:03:38 +08:00
luomanruo
2984e14eba 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-21 15:03:38 +08:00
Rahul Tank
9571780d5e ci(nimble): Cleanup sdkconfig files for nimble examples 2023-11-21 12:23:06 +05:30
Aditya Patwardhan
514cd783a3 Merge branch 'bugfix/esp32h2_ecdsa_hardware_k_v5.1' into 'release/v5.1'
fix(esp32h2): program use_hardware_k efuse bit for ECDSA key purpose (v5.1)

See merge request espressif/esp-idf!27271
2023-11-21 13:57:38 +08:00
Rahul Tank
6965a11570 fix(nimble): Generate a new unique Local IRK for each chip 2023-11-21 10:23:42 +05:30
Rahul Tank
4d88e7b9a7 Merge branch 'bugfix/remove_bond_v5.1' into 'release/v5.1'
fix(nimble):Handled IRK/LTK deletion based on key availability (v5.1)

See merge request espressif/esp-idf!26597
2023-11-21 12:47:54 +08:00
Jiang Jiang Jian
d578395041 Merge branch 'bugfix/secure_boot_v2_docs_v5.1' into 'release/v5.1'
fix(docs): correct the target specific macros for secure boot v2 guide (v5.1)

See merge request espressif/esp-idf!27170
2023-11-21 11:10:41 +08:00
morris
64e7343e40 Merge branch 'bugfix/fix_adc_read_zero_h2_v5.1' into 'release/v5.1'
ADC: fix adc raw data get 0 because of signal delay on ESP32H2(v5.1)

See merge request espressif/esp-idf!26976
2023-11-21 11:08:57 +08:00
Jiang Jiang Jian
0fa38244cb Merge branch 'bugfix/newlib_test_correct_assertions_v5.1' into 'release/v5.1'
fix(newlib,ci): wrong floating point number handling in tests (v5.1)

See merge request espressif/esp-idf!27090
2023-11-21 11:08:32 +08:00
Jiang Jiang Jian
de81da8b53 Merge branch 'bugfix/fix_espcoredump_compilation_warning_v5.1' into 'release/v5.1'
fix(espcoredump): fixed compilation warning (v5.1)

See merge request espressif/esp-idf!26591
2023-11-21 11:07:57 +08:00
Jiang Jiang Jian
b3479b3164 Merge branch 'bugfix/docs_hw_breakpoints_num_v5.1' into 'release/v5.1'
fix(docs/jtag): Fix hard-coded HW breakpoints/watchpoints number (v5.1)

See merge request espressif/esp-idf!26500
2023-11-21 11:07:13 +08:00
Jiang Jiang Jian
2277c3c9dd Merge branch 'feature/pseudo_exccause_to_openocd_v5.1' into 'release/v5.1'
Feature/pseudo exccause to openocd (v5.1)

See merge request espressif/esp-idf!26544
2023-11-21 11:06:41 +08:00
Jiang Jiang Jian
58344b1517 Merge branch 'backport-v5.1/gcov-write-fix' into 'release/v5.1'
fix(app_trace): fix host file write API return value

See merge request espressif/esp-idf!26421
2023-11-21 11:06:04 +08:00
morris
6bc8a025d5 Merge branch 'bugfix/ledc_max_duty_cycle_v5.1' into 'release/v5.1'
fix(ledc): fix ledc driver 100% duty cycle configuration (backport v5.1)

See merge request espressif/esp-idf!27179
2023-11-21 10:58:16 +08:00
Jiang Jiang Jian
e718b603e4 Merge branch 'bugfix/clear_ulp_wake_intr_in_wake_source_enable_v5.1' into 'release/v5.1'
fix(esp_hw_support): clear all type ULP wakeup intr status at ulp wakeup source enable (backport v5.1)

See merge request espressif/esp-idf!27188
2023-11-21 10:52:54 +08:00
Jiang Jiang Jian
0e1ec38785 Merge branch 'bugfix/fix_lightsleep_current_leakage_on_usj_pad_v5.1' into 'release/v5.1'
fix(esp_hw_support): fix lightsleep current leakage on usb pad (backport v5.1)

See merge request espressif/esp-idf!27205
2023-11-21 10:51:11 +08:00
gongyantao
1978b711f0 ci(bt/bluedroid): remove configs that are not in effect 2023-11-21 10:09:40 +08:00
Abhinav Kudnar
533b4a2e02 fix(nimble): Handled IRK/LTK deletion based on key availability 2023-11-21 07:15:56 +05:30
Rahul Tank
443a612a46 Merge branch 'bugfix/pairing_when_enc_with_no_key_fails_v5.1' into 'release/v5.1'
fix(nimble): Initate pairing if encryption fails with reason no pin or key missing (v5.1)

See merge request espressif/esp-idf!27017
2023-11-21 09:05:44 +08:00
Rahul Tank
c75bab8fcb fix(nimble): Initate pairing if encryption fails with reason no pin or key missing 2023-11-20 20:22:48 +05:30
Rahul Tank
3b30594eef Merge branch 'bugfix/ble_gap_unpair_oldest_peer_v5.1' into 'release/v5.1'
fix(nimble): Fixed incorrect handling of bonded devices (v5.1)

See merge request espressif/esp-idf!26939
2023-11-20 22:41:11 +08:00
Mahavir Jain
78453c8918 docs(ecdsa): add a note about TRNG dependency for ECDSA peripheral 2023-11-20 16:17:51 +05:30
Mahavir Jain
bb1376ff5d fix(api-docs): include in the ECDSA APIs for doxygen build 2023-11-20 16:17:11 +05:30
Mahavir Jain
d9abb44049 docs: add ECDSA peripheral chapter for H2/P4
- Add ECDSA peripheral chapter and instructions to program efuse key block
- Update security guide for ECDSA peripheral mention for device identity
- Link with ESP-TLS guide about using ECDSA peripheral in TLS connection
2023-11-20 16:13:35 +05:30
Mahavir Jain
2cd1635b86 fix(ecdsa): remove unused k_mode from the ECDSA HAL/LL API
For ESP32-H2 case, the hardware k mode is always enforced through
efuse settings (done in startup code).

For ESP32-P4 case, the software k mode is not supported in the peripheral
itself and code was redundant.
2023-11-20 16:05:15 +05:30
Mahavir Jain
0ccfa4b0c2 fix(esp32h2): program use_hardware_k efuse bit for ECDSA key purpose
In ESP32-H2, the ECDSA peripheral by default uses the TRNG (hardware)
generated k value but it can be overridden to software supplied k.
This can happen through by overriding the `ECDSA_SOFTWARE_SET_K` bit
in the configuration register. Even though the HAL API is not exposed
for this but still it could be achieved by direct register
programming. And for this scenario, if sufficiently random k is not
supplied by the software then it could posses a security risk.

In this change, we are unconditionally programming the efuse
`ESP_EFUSE_ECDSA_FORCE_USE_HARDWARE_K` bit during startup security
checks itself. Additionally, same is ensured in the `esp_efuse_write_key`
API as well. This always enforces the hardware k mode in the ECDSA
peripheral and ensures strongest possible security.
2023-11-20 16:03:29 +05:30
Frantisek Hrbata
4c3beef656 feat(ci): add test for custom cmake CMAKE_EXECUTABLE_SUFFIX
Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-11-20 11:03:28 +01:00
Mahavir Jain
ecd485be87 Merge branch 'feat/ecdsa_perph_while_mutual_auth_v5.1' into 'release/v5.1'
Feat/ecdsa perph while mutual auth v5.1

See merge request espressif/esp-idf!27245
2023-11-20 18:03:19 +08:00
Arno Moonen
c6913fa397 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-20 10:49:02 +01:00
Anton Maklakov
92ebdd9e16 Merge branch 'ci/fix_add_build_unit_test_jobs' into 'release/v5.1'
ci: add build unit test apps jobs (v5.1)

See merge request espressif/esp-idf!27156
2023-11-20 17:43:51 +08:00
Jiang Jiang Jian
5719d882d1 Merge branch 'bugfix/fix_onebyte_watchpoint_setting_v5.1' into 'release/v5.1'
fix(riscv): supports 1 byte and larger than 64byte range watchpoint setting (v5.1)

See merge request espressif/esp-idf!27215
2023-11-20 17:37:03 +08:00
Jiang Jiang Jian
ea081e04b9 Merge branch 'bugfix/dpp_config_memset_v5.1' into 'release/v5.1'
Wi-Fi: Fixed some DPP issues (v5.1)

See merge request espressif/esp-idf!27192
2023-11-20 16:52:20 +08:00
Jiang Jiang Jian
2348a0a61d Merge branch 'bufix/Backport_some_lwip_bugs_for_5.1_1115' into 'release/v5.1'
Bufix/backport some lwip bugs for 5.1 1115

See merge request espressif/esp-idf!27149
2023-11-20 16:09:30 +08:00
darshan
ca4ba28613 fix(nimble): Fixed incorrect handling of bonded devices 2023-11-20 12:27:18 +05:30
Rahul Tank
a08c557001 Merge branch 'bugfix/validate_random_address_v5.1' into 'release/v5.1'
fix(nimble): Added check to validate allowed random address (v5.1)

See merge request espressif/esp-idf!26928
2023-11-20 14:48:33 +08:00
Wang Meng Yang
00936f9434 Merge branch 'feature/support_for_32_and_128_bit_custom_uuids_v5.1' into 'release/v5.1'
feat(bt/bluedroid): Add new APIs for 32 and 128-bit UUIDs (backport v5.1)

See merge request espressif/esp-idf!27230
2023-11-20 14:07:56 +08:00
Jin Cheng
b9a0ca6feb fix(bt/bluedroid): corrected the API documents of profile HFP and A2DP 2023-11-20 11:59:05 +08:00
Jin Cheng
e4ab4499b0 fix(bt/bluedroid): Added some argument check in APIs of HFP AG 2023-11-20 11:59:01 +08:00
Mahavir Jain
fcd0b8b8e9 Merge branch 'fix/https_request_example_build_with_esp_wolfssl_v5.1' into 'release/v5.1'
fix(esp-tls): Fix the https_request example build for esp-wolfssl (v5.1)

See merge request espressif/esp-idf!26735
2023-11-20 11:07:36 +08:00
Rahul Tank
7e21aff12c fix(nimble): Added check to validate allowed random address 2023-11-20 08:19:38 +05:30
Rahul Tank
81a4a86196 Merge branch 'bugfix/ble_gap_connect_v5.1' into 'release/v5.1'
fix(nimble):Handled the Load access fault crash caused due to an invalid setting of index-variable 'reattempt_idx' (v5.1)

See merge request espressif/esp-idf!26944
2023-11-20 10:41:26 +08:00
Abhinav Kudnar
c91c8a1197 fix(nimble): Handled crash caused due to incorrect use of reattempt_idx 2023-11-18 17:16:17 +05:30
Rahul Tank
57090788ec Merge branch 'feature/walkthrough_for_coc_ble_prph_v5.1' into 'release/v5.1'
doc (nimble): Added the tutorial for coc_bleprph example. (v5.1)

See merge request espressif/esp-idf!26480
2023-11-18 16:21:42 +08:00
Rahul Tank
54e3737202 Merge branch 'feature/protocomm_update_params_v5.1' into 'release/v5.1'
fix(protocomm): added Protocomm BLE Event Structure and Event Handling (v5.1)

See merge request espressif/esp-idf!26899
2023-11-18 16:16:48 +08:00
Island
4023a22512 Merge branch 'bugfix/fix_some_ble_bugs_v5.1' into 'release/v5.1'
Fixed some BLE bugs (backport v5.1)

See merge request espressif/esp-idf!27196
2023-11-17 20:21:57 +08:00
Harshit Malpani
7d6ef329d7 docs: Add documentation for using ECDSA peripheral with TLS 2023-11-17 16:25:58 +05:30
Harshit Malpani
37836b3c62 feat: ECDSA peripheral while performing http connection with mutual auth 2023-11-17 16:24:10 +05:30
Island
7f63951872 Merge branch 'backport/fix_ble_scan_rsp_v5.1' into 'release/v5.1'
Backport/fix ble scan rsp v5.1(backport v5.1)

See merge request espressif/esp-idf!27007
2023-11-17 18:18:29 +08:00
morris
1b3713f7cd Merge branch 'feature/support_adc_calibration_on_h2_v5.1' into 'release/v5.1'
adc_cali: supported adc calibration v1 on ESP32H2 (v5.1)

See merge request espressif/esp-idf!26963
2023-11-17 16:41:00 +08:00
morris
ddb6d22468 Merge branch 'feature/gpio_dump_io_info_v5.1' into 'release/v5.1'
feat(gpio): add a dump API to dump IO configurations (v5.1)

See merge request espressif/esp-idf!26870
2023-11-17 16:30:22 +08:00
morris
ceb0aec0cc Merge branch 'bugfix/rmt_stop_issue_v5.1' into 'release/v5.1'
fix(rmt): a disabled channel may pick up a pending transaction (v5.1)

See merge request espressif/esp-idf!26779
2023-11-17 16:27:21 +08:00
morris
a32f0cf11e Merge branch 'feature/mcpwm_trigger_driver_v5.1' into 'release/v5.1'
feature(MCPWM): Add MCPWM trigger driver (v5.1)

See merge request espressif/esp-idf!26787
2023-11-17 16:17:34 +08:00
Ilia Lutchenko
71d08e38db 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-17 15:57:28 +08:00
Song Ruo Jing
03299962f6 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-17 12:38:32 +08:00
Wang Meng Yang
472718d2cd Merge branch 'bugfix/fix_ble_bond_error_after_reboot_v5.1' into 'release/v5.1'
fix(ble/bluedroid): fixed BLE bond error after reboot (backport v5.1)

See merge request espressif/esp-idf!27120
2023-11-17 10:43:08 +08:00
Jin Cheng
ac4ee1d2d6 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-17 10:38:55 +08:00
gaoxu
95d24edd3e ci(adc): add a test that adc read zero after getting done signal 2023-11-17 02:16:21 +00:00
gaoxu
1179d9859f fix(adc): fix h2 adc oneshot read zero and add delay after getting done signal v5.1 2023-11-17 02:16:21 +00:00
wuzhenghui
6b14ca55d5 fix(riscv): supports 1 byte and larger than 64byte range watchpoint setting 2023-11-16 20:40:04 +08:00
wuzhenghui
eb45eec5db change(soc): rename SOC_CPU_WATCHPOINT_SIZE to SOC_CPU_WATCHPOINT_MAX_REGION_SIZE 2023-11-16 20:40:03 +08:00
Alexey Lapshin
ff3ca9300a riscv: remove outdated macros 2023-11-16 20:37:09 +08:00
Alexey Lapshin
b6b8b0bd1f riscv: fix trigger add from trap handlers 2023-11-16 20:37:08 +08:00
Alexey Lapshin
a5091276e4 riscv: fix & refactor triggers add/delete 2023-11-16 20:37:08 +08:00
wuzhenghui
6ae596c764 fix(esp_hw_support): fix lightsleep current leakage on usb-phy controlled pad 2023-11-16 20:03:30 +08:00
Ivan Grokhotkov
4db9dbb3e8 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-16 19:05:26 +08:00
Roland Dobai
6edb9982fd Merge branch 'coredump-info-offset_v5.1' into 'release/v5.1'
Tools: coredump-info - fix non-default partition table offset issues (v5.1)

See merge request espressif/esp-idf!26802
2023-11-16 18:56:55 +08:00
Roland Dobai
36cb0b29b2 Merge branch 'bugfix/docker_safe_repo_v5.1' into 'release/v5.1'
fix(docker): set esp-idf repo as safe directory (v5.1)

See merge request espressif/esp-idf!26804
2023-11-16 18:55:32 +08:00
Roland Dobai
53aaf3462f Merge branch 'feature/add_qemu_to_tools-json_v5.1' into 'release/v5.1'
Add QEMU to tools.json (v5.1)

See merge request espressif/esp-idf!26407
2023-11-16 18:54:46 +08:00
morris
27751a7693 Merge branch 'ci/fix_c6_adc_std_performance_ci_fail_v5.1' into 'release/v5.1'
ci(adc): increase adc performance test threshold on c6 (v5.1)

See merge request espressif/esp-idf!27148
2023-11-16 18:47:04 +08:00
chenjianhua
b862072372 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(2758518)
- Fixed power state setting when entering modem sleep
2023-11-16 16:40:31 +08:00
chenjianhua
981d3d2336 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-16 16:40:18 +08:00
zhanghaipeng
a6de577573 fix(ble/controller): Fix bugs in setting adv data and scan response data 2023-11-16 16:40:04 +08:00
chenjianhua
565c2e9d92 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-16 16:39:46 +08:00
chenjianhua
aaf6f7433d feat(bt/bluedroid): support clear legacy advertising 2023-11-16 16:39:33 +08:00
Kapil Gupta
0c3440a5bc fix(wifi): Disallow DPP and WPS concurrency 2023-11-16 12:35:19 +05:30
Kapil Gupta
5d5dac7754 fix(wpa_supplicant): memzero wifi config before sending config event 2023-11-16 12:35:15 +05:30
wuzhenghui
4e73c23e98 ci(ulp_test): fix fake sleep of the maincore in ulp pytest cases 2023-11-16 11:49:40 +08:00
wuzhenghui
61bb3fb67f fix(esp_hw_support): clear all type ULP wakeup intr status at ulp wakeup source enable 2023-11-16 11:49:40 +08:00
wuzhenghui
46dae91a39 fix(esp_pm): fix psram access faild after pd_cpu wakeup 2023-11-16 03:20:27 +00:00
wuzhenghui
e6bc722b38 change(esp_pm): improve POWER_DOWN_TAGMEM_IN_LIGHT_SLEEP description 2023-11-16 03:20:27 +00:00
linruihao
11d32279a0 fix(esp_coex): Fix deprecated configuration options not rename to new one 2023-11-16 03:16:15 +00:00
linruihao
f57826e239 fix(esp_coex): Fix dependency errors in coexist configuration 2023-11-16 03:16:15 +00:00
xueyunfei
989e0371db Fix(lwip):bugfix for add config for tcp ooseq bufs 2023-11-15 20:35:25 +08:00
Mahavir Jain
5f9f8ac068 fix(docs): correct the target specific macros for secure boot v2 guide
It appears that target specific or'ing is not supported through the
docs build. Actual text rendering on the docs site was still using
"default" field from the custom macro, rather than using target
specific.
2023-11-15 15:37:59 +05:30
zhanghaipeng
fd478346fb fix(bt/bluedroid): Fix BLE remove bond list status 2023-11-15 07:18:04 +00:00
zhiweijian
e01f4c4d24 fix(ble/bluedroid): fixed BLE bond error after reboot 2023-11-15 07:18:04 +00:00
Jiang Jiang Jian
5c61c89308 Merge branch 'fix/exception_was_unhandled_for_bt_spp_vfs_acceptor_v5.1' into 'release/v5.1'
fix(bt/bluedroid): fix LoadProhibited error in spp vfs acceptor example (backport v5.1)

See merge request espressif/esp-idf!26861
2023-11-15 14:45:04 +08:00
morris
bfeae3857c feat(rmt): support calling rmt_receive in ISR callback 2023-11-15 05:57:45 +00:00
morris
d260d43168 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-15 05:57:45 +00:00
Chen Jichang
0ce2683d81 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.
2023-11-15 05:57:37 +00:00
gaoxu
dd9da56dfe ci(adc): increase adc performance test threshold on c6 v5.1 2023-11-15 05:53:31 +00:00
Chen Yudong
6b1a846678 ci: add build unit test apps jobs 2023-11-15 13:43:16 +08:00
Mahavir Jain
b7db75e845 Merge branch 'fix/wifi_prov_mgr_retry_auth_expire_v5.1' into 'release/v5.1'
fix (wifi_prov): Retry provisioning on `WIFI_AUTH_EXPIRE` event (v5.1)

See merge request espressif/esp-idf!26901
2023-11-15 12:32:35 +08:00
Anton Maklakov
230119a9fb Merge branch 'ci/fix_assign_test' into 'release/v5.1'
ci: fix assign test jobs (v5.1)

See merge request espressif/esp-idf!27118
2023-11-15 11:40:25 +08:00
xueyunfei
6b4c560d7d Fix(tcp):optimize tcp connection 2023-11-15 11:39:28 +08:00
David Čermák
cc7c93cfaa Merge branch 'fix/netif_sntp_examples_v5.1' into 'release/v5.1'
fix(examples): Fix usage of SNTP netif API in examples (v5.1)

See merge request espressif/esp-idf!26917
2023-11-14 21:57:12 +08:00
Ivan Grokhotkov
c43b66cd35 fix(soc): update SOC_IROM_MASK_HIGH for esp32, c6, h2 for consistency 2023-11-14 14:27:24 +01:00
Ivan Grokhotkov
6fa2080706 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-14 14:27:23 +01:00
Ivan Grokhotkov
684a0936df Merge branch 'contrib/github_pr_12052_v5.1' into 'release/v5.1'
Two small patches for build system and fatfs (GitHub PR) (v5.1)

See merge request espressif/esp-idf!26431
2023-11-14 17:16:43 +08:00
Marius Vikhammer
3d296723f3 Merge branch 'bugfix/fix_freertos_system_task_names_v5.1' into 'release/v5.1'
fix(freertos): Updated IDLE task names for each core to have the coreID as a suffix (v5.1)

See merge request espressif/esp-idf!26118
2023-11-14 16:35:25 +08:00
Jiang Jiang Jian
0f61bd25a2 Merge branch 'bugfix/iperf_improvements_v5.1' into 'release/v5.1'
fix(examples/iperf): Update and rename default TCP/UDP buffer sizes (Backport v5.1)

See merge request espressif/esp-idf!26680
2023-11-14 15:38:23 +08:00
Jiang Jiang Jian
55f5b427ee Merge branch 'bugfix/build_error_when_enable_ag_and_hf_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fix build error when both of the HFP roles are enabled (v5.1)

See merge request espressif/esp-idf!27077
2023-11-14 15:36:42 +08:00
Jiang Jiang Jian
87f58d5cd6 Merge branch 'bugfix/move_fe_32m_to_adc_fe_common_clock_v5.1' into 'release/v5.1'
fix(esp_hw_support): move fe_32m to fe/adc common clock (backport v5.1)

See merge request espressif/esp-idf!27058
2023-11-14 15:36:04 +08:00
Wang Meng Yang
c46775031e Merge branch 'bugfix/backport_some_ble_bugs_20231020_v5.1' into 'release/v5.1'
Fixed some BLE bugs 20231020 (backport v5.1)

See merge request espressif/esp-idf!26604
2023-11-14 15:35:55 +08:00
Jiang Jiang Jian
5a128c169c Merge branch 'doc/update_espnow_example_v5.1' into 'release/v5.1'
doc(WiFi/Vendor): Update the ESPNOW example for the recv callback function (backport v5.1)

See merge request espressif/esp-idf!26685
2023-11-14 15:35:37 +08:00
Jiang Jiang Jian
9c5b538f05 Merge branch 'bugfix/remove_iram_attr_from_ceva_files_v5.1' into 'release/v5.1'
fix(nimble): remove IRAM_ATTR from npl_os_freertos.c file (v5.1)

See merge request espressif/esp-idf!26839
2023-11-14 15:34:26 +08:00
Jiang Jiang Jian
d1842fa99b Merge branch 'bugfix/ota_fail_on_octal_flash_v5.1' into 'release/v5.1'
fix(ota): Fixed OTA fail on octal flash with 32MB memory (backport v5.1)

See merge request espressif/esp-idf!26811
2023-11-14 15:34:06 +08:00
Jiang Jiang Jian
c21d2b254b Merge branch 'bugfix/increase_esp32h2_slow_clock_calibration_wdt_threshold_v5.1' into 'release/v5.1'
fix(esp_system): increase esp32h2 slow clock calibration timeout watchdog threshold (backport v5.1)

See merge request espressif/esp-idf!26920
2023-11-14 15:33:43 +08:00
Jiang Jiang Jian
cee24a6ce1 Merge branch 'bringup/support_callback_mechanism_in_lightsleep_flow_v5.1' into 'release/v5.1'
feat(pm): support callback mechanism in lightsleep flow(backport v5.1)

See merge request espressif/esp-idf!26365
2023-11-14 15:33:19 +08:00
Jiang Jiang Jian
0172c33818 Merge branch 'bugfix/fix_deinit_init_wifi_scan_fail_issue_v5.1' into 'release/v5.1'
Bugfix/fix deinit init wifi scan fail issue v5.1(Backport v5.1)

See merge request espressif/esp-idf!27064
2023-11-14 15:25:54 +08:00
Jiang Jiang Jian
8f4c9bdc03 Merge branch 'backport/fix_ble_bugs_v5.1' into 'release/v5.1'
Backport/fix ble bugs v5.1(backport v5.1)

See merge request espressif/esp-idf!26762
2023-11-14 15:15:40 +08:00
Jiang Jiang Jian
93a6cb9ddf Merge branch 'bugfix/spi_master_fifo_use_dma_v5.1' into 'release/v5.1'
fix(spi): fixed undesired touching to DMA (v5.1)

See merge request espressif/esp-idf!26769
2023-11-14 15:13:35 +08:00
Jiang Jiang Jian
894cf042f9 Merge branch 'fix/remove_esp_hf_ag_devices_status_indchage_in_example_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Send device status of AG to HF with a different api (backport v5.1)

See merge request espressif/esp-idf!26587
2023-11-14 15:10:50 +08:00
Jiang Jiang Jian
378bb1f0d1 Merge branch 'bugfix/unable_to_load_bonded_ble_devices_from_nvs_v5.1' into 'release/v5.1'
fix(bt&ble): fix BLE unable to load bonded device info after reboot. (backport v5.1)

See merge request espressif/esp-idf!26465
2023-11-14 15:10:38 +08:00
Jiang Jiang Jian
822aa69a4b Merge branch 'feature/support_esp32c2_rom_mbedtls_v5.1' into 'release/v5.1'
feat(mbedtls): support c2 mbedtls can use crypto algorithm in ROM (backport v5.1)

See merge request espressif/esp-idf!26698
2023-11-14 15:10:20 +08:00
Jiang Jiang Jian
84cd6e8691 Merge branch 'bugfix/napt_updatesV5.1' into 'release/v5.1'
feat(lwip): Fixes and Improvements for NAPT and SBOM Support (v5.1)

See merge request espressif/esp-idf!26334
2023-11-14 15:09:57 +08:00
Jiang Jiang Jian
1ed40720d6 Merge branch 'bugfix/lp_active_slow_clock_domain_default_power_down_v5.1' into 'release/v5.1'
backport v5.1: In the LP ACTIVE state, the slow clock power domain is by default in a powered-off state

See merge request espressif/esp-idf!26601
2023-11-14 15:09:02 +08:00
Wang Meng Yang
0f15eecd2c Merge branch 'feature/include_hf_and_ag_in_single_build_v5.1' into 'release/v5.1'
Feature/include hf and ag in single build v5.1

See merge request espressif/esp-idf!26841
2023-11-14 15:05:52 +08:00
Chen Yudong
09310415d4 ci: fix assign test jobs 2023-11-14 14:05:44 +08:00
Roland Dobai
305e781d0c Merge branch 'fix/ci_autocomplete_v5.1' into 'release/v5.1'
Tools, CI: Improve autocomplete tests (v5.1)

See merge request espressif/esp-idf!27037
2023-11-14 02:44:10 +08:00
Roland Dobai
e100ffa6c1 Merge branch 'coredump-gdb-timeout_v5.1' into 'release/v5.1'
fix(coredump-info): set default gdb timeout as 3 seconds (v5.1)

See merge request espressif/esp-idf!27105
2023-11-14 01:15:06 +08:00
Erhan Kurubas
14241aeb2e fix(coredump-info): set default gdb timeout as 3 seconds 2023-11-13 15:34:52 +01:00
Jiang Jiang Jian
3515fb4eaa Merge branch 'feat/dynamic_integration_pipeline_v5.1' into 'release/v5.1'
CI: dynamic integration pipeline v5.1

See merge request espressif/esp-idf!26654
2023-11-13 19:41:31 +08:00
morris
efafacae40 Merge branch 'feature/mcpwm_timer_change_freq_v5.1' into 'release/v5.1'
feat(mcpwm): support update timer period dynamically (v5.1)

See merge request espressif/esp-idf!26624
2023-11-13 17:55:52 +08:00
morris
d0f84285b7 Merge branch 'bugfix/fix_wrong_adc_attenuation_name_v5.1' into 'release/v5.1'
fix(adc): rename ADC_ATTEN_DB_11 to ADC_ATTEN_DB_12 (v5.1)

See merge request espressif/esp-idf!26967
2023-11-13 16:50:11 +08:00
morris
37fd9f4050 Merge branch 'bugfix/fix_adc_oneshot_do_not_spilt_clk' into 'release/v5.1'
fix(adc): fix ADC oneshot mod don't divide clk (v5.1)

See merge request espressif/esp-idf!26675
2023-11-13 15:18:18 +08:00
Jakob Hasse
0da35bffbc fix(newlib,ci): wrong floating point number handling in tests 2023-11-13 13:51:53 +08:00
gaoxu
df46426321 docs(adc): added adc calibration doc on h2 2023-11-13 03:04:03 +00:00
gaoxu
c5e107c53d feat(adc_cali): Add ADC calibration support for ESP32H2 2023-11-13 03:04:03 +00:00
Marius Vikhammer
afd53b0b16 Merge branch 'feature/esp32h2_adds_adc_calib_efuses_v5.1' into 'release/v5.1'
feat(efuse): Adds efuse ADC calibration data for ESP32H2 (v5.1)

See merge request espressif/esp-idf!26977
2023-11-13 11:03:18 +08:00
Wang Mengyang
8f24e2731f 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:08 +08:00
Aditya Patwardhan
73e5a4cf44 Merge branch 'update/version_5_1_2' into 'release/v5.1'
Update version to 5.1.2

See merge request espressif/esp-idf!27044
2023-11-10 20:17:02 +08:00
wuzhenghui
51b03d3812 fix(esp_hw_support): move fe_32m to fe/adc common clock 2023-11-10 15:39:08 +08:00
muhaidong
abfd0cbebc change(hal): remove useless code from periph_ll_wifi_bt_module_enable_clk 2023-11-10 11:15:49 +08:00
muhaidong
666ba33829 fix(wifi): fix deinit init wifi scan fail issue 2023-11-10 11:15:38 +08:00
Roland Dobai
d3b403ff90 ci(fix): Improve the stability of the autocomplete tests 2023-11-09 14:09:47 +01:00
zhanghaipeng
e8dc62913b fix(bt/bluedroid): Fix ble keysize check 2023-11-08 19:46:23 +08:00
zhanghaipeng
253d19bfde fix(bt/bluedroid): Fix ble adv report evt type 2023-11-08 19:46:19 +08:00
KonstantinKondrashov
d9b776c59a feat(efuse): Adds efuse ADC calibration data for ESP32H2 2023-11-07 15:41:59 +08:00
Armando
6de9757a4b 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:09:21 +08:00
Cao Sen Miao
bb7544e65a fix(ota): Fixed OTA fail on octal flash with 32MB memory,
Closes https://github.com/espressif/esp-idf/issues/11903
2023-11-06 10:49:06 +08:00
Chen Yudong
acd503c067 ci: add label rules for integration test
fix typo
2023-11-03 20:48:52 +08:00
Chen Yudong
d4af3af853 ci: remove unused integration test rules 2023-11-03 20:48:33 +08:00
Chen Yudong
655ff32ae9 ci: add qa-test-tag rules 2023-11-03 20:48:33 +08:00
Chen Yudong
537bea27f5 ci: dynamic integration test child pipeline 2023-11-03 20:48:33 +08:00
wuzhenghui
b31a07bc67 fix(esp_system): increase esp32h2 slow clock calibration timeout watchdog threshold 2023-11-03 19:03:48 +08:00
David Cermak
cda65b73f4 fix(examples): Fix usage of SNTP netif API in examples 2023-11-03 11:23:17 +01:00
Song Ruo Jing
4892c481b5 feat(gpio): add a dump API to dump IO configurations
Merges https://github.com/espressif/esp-idf/pull/12511
2023-11-03 16:21:31 +08:00
Laukik Hase
6dce3d79d6 fix (wifi_prov): Retry provisioning on WIFI_AUTH_EXPIRE event
- Closes https://github.com/espressif/esp-idf/issues/11749
2023-11-03 11:50:13 +05:30
darshan
b9528ba4c9 fix(protocomm): added Protocomm BLE Event Structure and Event Handling 2023-11-03 11:42:40 +05:30
zwx
9f8655cdef feat(openthread): Add deep sleep support for SED 2023-11-03 11:02:56 +08:00
zwx
a1ceb251a0 feat(openthread): add config for radio statistic feature 2023-11-03 11:02:56 +08:00
Lou Tianhao
b27b124898 docs(pm): add ext1 wakeup per pin description 2023-11-03 11:02:56 +08:00
Lou Tianhao
9b3e40c9d1 feat(pm/deepsleep): Support EXT1_WAKEUP_MODE_PER_PIN 2023-11-03 11:02:56 +08:00
Abhinav Kudnar
9ff25a94d9 doc (nimble): Added the tutorial for bleprph example. 2023-11-02 17:57:22 +05:30
Abhinav Kudnar
7ac37cccef doc (nimble): Added the tutorial for coc_bleprph example. 2023-11-02 17:53:33 +05:30
Lou Tianhao
42ec7a5e37 change(pm): Change sleep callback implement 2023-11-02 11:05:38 +00:00
Lou Tianhao
925da11115 feat(PowerManagement/lightsleep): Support ESP_SLEEP_EVENT_CALLBACKS 2023-11-02 11:05:38 +00:00
Lou Tianhao
15f66392d3 feat(PowerManagement/lightsleep): Support PM_LIGHT_SLEEP_CALLBACKS 2023-11-02 11:05:38 +00:00
Lou Tianhao
dce3b64411 feat(PowerManagement/lightsleep): Define and export a strong symbol of rv_core_critical_regs_restore 2023-11-02 11:05:38 +00:00
gongyantao
70aedc85a4 fix(bt/bluedroid): fix loadprohibited error in spp vfs acceptor example 2023-11-02 11:47:28 +08:00
Rahul Tank
9c44a4e1ec fix(nimble): remove IRAM_ATTR from npl_os_freertos.c file 2023-11-01 17:36:54 +05:30
Jin Cheng
716a47074a feat(bt/bluedroid): Support to build HID Host and HID Device in single binary 2023-11-01 19:32:13 +08:00
Wang Mengyang
8d9035c202 feat(bt/bluedroid): Support to build HFP Audio Gateway and Hands Free Unit in single binary 2023-11-01 19:31:18 +08:00
Frantisek Hrbata
6f256958d1 fix(tools/docker): set esp-idf repo as safe directory
In our docker docs[1] we recommend to start docker as a non-root user. This has
a side effect, because the esp-idf repo in docker image is owned by
root. Git by default refuses even to parse a config file if the repo is
owned by other than current user. As a result the version detection in
cmake fails[2] and the app version is set to "HEAD-HASH-NOTFOUND".
This adds esp-idf repo to the system git config as a safe one.

[1] https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/
    tools/idf-docker-image.html#building-a-project-with-cmake
[2] https://github.com/espressif/esp-idf/issues/12389#issuecomment-1764268773

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

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-10-31 16:24:10 +01:00
Peter Dragun
5fe418e733 fix(tools/coredump-info): pass non-default partition table offset to esp-coredump
Closes https://github.com/espressif/esp-idf/issues/11564
2023-10-31 15:57:47 +01:00
Xiao Xufeng
653008f4c7 fix(spi): fixed undesired touching to DMA
Closes https://github.com/espressif/esp-idf/issues/12241
2023-10-31 15:52:26 +08:00
zhanghaipeng
4aa8a733ad feat(bt/bluedroid): Display BLE permission check handle in error trace 2023-10-31 14:38:42 +08:00
zhanghaipeng
c7e82194a4 fix(bt/bluedroid): Fix max BLE gattc notify number to improve compatibility 2023-10-31 14:38:42 +08:00
zhanghaipeng
568919e1c3 feat(bt/bluedroid): Support BLE gattc notify registration number 2023-10-31 14:38:42 +08:00
zhanghaipeng
bb587cd763 fix(bt/bluedroid): Fix key size check in BLE smp 2023-10-31 14:38:42 +08:00
zhanghaipeng
b35c41aee0 fix(bt/bluedroid): Optimize compatibility with Android 10 and later devices 2023-10-31 14:38:42 +08:00
zhanghaipeng
6a94399233 feat(bt/bluedroid): Support hid device control point 2023-10-31 14:38:42 +08:00
zhanghaipeng
35afc37f1a fix(bt/bluedroid): Optimize compatibility with IOS and MACOS devices 2023-10-31 14:38:42 +08:00
Aditya Patwardhan
2276b07b39 fix(esp-tls): Fix the https_request example build for esp-wolfssl 2023-10-29 19:18:05 +05:30
Jiang Guang Ming
76bd3ab832 docs: Update COPYRIGHT.rst since mbedtls supported in C2 ROM 2023-10-26 20:28:03 +08:00
Jiang Guang Ming
e3a6001284 docs: add the description of CONFIG_MBEDTLS_USE_CRYPTO_ROM_IMPL 2023-10-26 20:26:19 +08:00
Jiang Guang Ming
336bb85806 feat(mbedtls): add new option CONFIG_MBEDTLS_USE_CRYPTO_ROM_IMPL for mbedtls pytest 2023-10-26 20:26:08 +08:00
Jiang Guang Ming
92b9474a71 feat(mbedtls): support C2 mbedtls can use crypto algorithm in ROM 2023-10-26 20:25:53 +08:00
zhangyanjiao
3a436b0eb2 doc(WiFi/Vendor): Update the ESPNOW example for the recv callback function 2023-10-26 14:14:00 +08:00
Nachiket Kukade
d64a29c3b4 fix(examples/iperf): Update and rename default TCP/UDP buffer sizes 2023-10-26 10:35:57 +05:30
gaoxu
b9cdadc5c6 fix(adc): fix adc oneshot mod do not split clk 2023-10-26 11:17:12 +08:00
Li Shuai
9d97513147 change(Power Management): the xpd_xtal32k value depends on system slow clock source config option when pmu initialize 2023-10-24 17:15:10 +08:00
morris
9b4a42e728 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:11:47 +08:00
zhiweijian
1d1939a1e4 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 16:49:15 +08:00
zhiweijian
5677692187 feat: add config to disable ble hci uart flow control 2023-10-20 16:48:33 +08:00
zhiweijian
51ebdfcbfa change: enable pll track by default on ESP32 2023-10-20 16:47:18 +08:00
zhiweijian
95e3dbcffe Add mesh adv type for exception list 2023-10-20 16:43:25 +08:00
chenjianhua
74a64755eb 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 16:24:38 +08:00
chenjianhua
0a57fb4183 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 16:24:09 +08:00
zhiweijian
567bf57805 Add new mesh types for exception list on ESP32-C3 and ESP32-S3 2023-10-20 16:23:15 +08:00
zhiweijian
15f8e677a2 Fixed bluedroid host build warning when log is disabled 2023-10-20 16:18:00 +08:00
gongyantao
f54e3ebea4 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-20 14:44:54 +08:00
Rahul Tank
4675e34f7e 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:33 +05:30
gongyantao
ae04d7b61d 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:24 +08:00
Erhan Kurubas
b07702b6ad feat(panic): send pseudo exccause to openocd 2023-10-18 10:31:42 +02:00
Nic Ballinger
235c82b6ee fix(docs/jtag): Fix hard-coded HW breakpoints/watchpoints number
Closes https://github.com/espressif/esp-idf/pull/11986
2023-10-16 17:30:36 +03:00
gongyantao
d4b6952328 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-10-13 19:20:20 +08:00
Michal Jenikovsky
1f6f5396f4 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-10-12 04:48:47 +02:00
Michal Jenikovsky
31b4b0a8d4 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-10-12 04:48:47 +02:00
Alexey Lapshin
fa1924f09b fix(app_trace): fix host file write API return value 2023-10-11 15:23:56 +04:00
Anton Maklakov
be79c75b64 feat(tools): Add QEMU 8.0.0_20230522 to tools.json
Process wildcards in the install and download lists of idf_tools
    Fix the install and download handlers to get common behaviour
2023-10-11 12:28:47 +07:00
Abhik Roy
94730db3d4 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:32:25 +11:00
Fu Hanxi
be8339215a ci: fix breaking change in idf-build-apps 1.0.0 2023-09-29 09:24:23 +02:00
Sudeep Mohanty
77492f3bc5 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:07:34 +02:00
2682 changed files with 157384 additions and 320495 deletions

2
.gitignore vendored
View File

@@ -96,4 +96,6 @@ dependencies.lock
managed_components
# pytest log
pytest-embedded/
# legacy one
pytest_embedded_log/

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"
@@ -72,9 +68,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"
@@ -98,6 +91,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.1.txt"
IDF_CI_BUILD: 1
cache:
@@ -131,8 +127,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
@@ -202,6 +198,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}"
@@ -236,6 +236,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/
@@ -66,34 +67,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

@@ -451,66 +451,6 @@ fast_template_app:
variables:
BUILD_COMMAND_ARGS: "-p"
#------------------------------------------------------------------------------
.build_ssc_template:
extends:
- .build_template
- .rules:build:integration_test
needs:
- job: fast_template_app
artifacts: false
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_ssc_esp32c6:
extends: .build_ssc_template
parallel: 3
variables:
TARGET_NAME: "ESP32C6"
build_ssc_esp32h2:
extends: .build_ssc_template
parallel: 2
variables:
TARGET_NAME: "ESP32H2"
.build_esp_idf_tests_cmake_template:
extends:
- .build_cmake_template
@@ -722,6 +662,7 @@ build_clang_test_apps_esp32c6:
needs:
- job: fast_template_app
artifacts: false
optional: true
script:
- ${IDF_PATH}/tools/ci/test_configure_ci_environment.sh
- rm -rf test_build_system
@@ -743,6 +684,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

@@ -75,16 +75,6 @@
- "build:{0}"
- build:target_test
build:integration_test:
labels:
- build
patterns:
- build_components
- build_system
included_in:
- build:target_test
####################
# Target Test Jobs #
####################
@@ -182,21 +172,18 @@ build:integration_test:
- "build:example_test"
- build:target_test
"test:integration_test_{0}":
matrix:
- - wifi
- ble
labels:
- integration_test_{0}
- integration_test
- target_test
# For openthread sleepy
"test:example_test-otsleepy":
patterns:
- integration_test-{0}
- target_test-{0}
# - maybe others
- "example_test-otsleepy"
- "target_test-i154"
labels:
- target_test
- example_test
included_in:
- test:integration_test
- build:integration_test
- "build:example_test-esp32c6"
- "build:example_test-esp32h2"
- "build:example_test"
- build:target_test
"test:host_test":
@@ -217,13 +204,3 @@ build:integration_test:
"labels:nvs_coverage": # host_test
labels:
- nvs_coverage
"labels-protected:lan8720": # UT # FIXME: IDFCI-1176 temporary run this on master/release or with label
labels:
- lan8720
included_in:
- build:unit_test
- build:unit_test-esp32
- build:target_test
- build:component_ut
- build:component_ut-esp32

View File

@@ -32,50 +32,25 @@ 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:
deploy_update_SHA_in_esp-dockerfiles:
extends:
- .deploy_job_template
- .before_script_minimal
- .rules:ref:master-always
image: $CI_DOCKER_REGISTRY/bot-env:1
- .rules:protected-no_label-always
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"
GIT_DEPTH: 2
tags: [ shiny, build ]
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
- 'curl --header "PRIVATE-TOKEN: ${ESPCI_SCRIPTS_TOKEN}" -o create_MR_in_esp_dockerfile.sh $GITLAB_HTTP_SERVER/api/v4/projects/1260/repository/files/create_MR_in_esp_dockerfile%2Fcreate_MR_in_esp_dockerfile.sh/raw\?ref\=master'
- chmod +x create_MR_in_esp_dockerfile.sh
- ./create_MR_in_esp_dockerfile.sh

View File

@@ -25,6 +25,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'
@@ -32,10 +35,12 @@
if: '$BOT_LABEL_DOCS_FULL || $CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*docs_full(?:,[^,\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-full:
rules:
- <<: *if-qa-test-tag
when: never
- <<: *if-protected
- <<: *if-label-build_docs
- <<: *if-label-docs_full
@@ -44,6 +49,8 @@
.doc-rules:build:docs-partial:
rules:
- <<: *if-qa-test-tag
when: never
- <<: *if-dev-push
changes: *patterns-docs-full
when: never

View File

@@ -135,10 +135,10 @@ test_idf_tools:
entrypoint: [""] # use system python3. no extra pip package installed
script:
# Tools must be downloaded for testing
- python3 ${IDF_PATH}/tools/idf_tools.py download
- python3 ${IDF_PATH}/tools/idf_tools.py download required qemu-riscv32 qemu-xtensa
- cd ${IDF_PATH}/tools/test_idf_tools
- python3 -m pip install jsonschema
- python3 ./test_idf_tools.py
- python3 ./test_idf_tools.py -v
- python3 ./test_idf_tools_python_env.py
.test_efuse_table_on_host_template:
@@ -223,14 +223,6 @@ test_mkuf2:
- cd ${IDF_PATH}/tools/test_mkuf2
- ./test_mkuf2.py
test_sbom:
extends:
- .host_test_template
- .rules:patterns:sbom
script:
- cd ${IDF_PATH}/tools/test_sbom
- pytest
test_autocomplete:
extends:
- .host_test_template
@@ -315,7 +307,7 @@ test_pytest_qemu:
when: always
paths:
- XUNIT_RESULT.xml
- pytest_embedded_log/
- pytest-embedded/
reports:
junit: XUNIT_RESULT.xml
expire_in: 1 week
@@ -324,13 +316,13 @@ test_pytest_qemu:
--target esp32
--pytest-apps
-m qemu
- retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cases
- python tools/ci/get_known_failure_cases_file.py
- pytest
--target esp32
-m qemu
--embedded-services idf,qemu
--junitxml=XUNIT_RESULT.xml
--known-failure-cases-file known_failure_cases/known_failure_cases.txt
--known-failure-cases-file ${KNOWN_FAILURE_CASES_FILE_NAME}
test_pytest_linux:
extends:
@@ -340,7 +332,7 @@ test_pytest_linux:
when: always
paths:
- XUNIT_RESULT.xml
- pytest_embedded_log/
- pytest-embedded/
reports:
junit: XUNIT_RESULT.xml
expire_in: 1 week
@@ -349,6 +341,6 @@ test_pytest_linux:
--target linux
--pytest-apps
-m host_test
- retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cases
- python tools/ci/get_known_failure_cases_file.py
- run_cmd pytest --target linux -m host_test --junitxml=XUNIT_RESULT.xml
--known-failure-cases-file known_failure_cases/known_failure_cases.txt
--known-failure-cases-file ${KNOWN_FAILURE_CASES_FILE_NAME}

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_MR_style_dangerjs:
extends:
@@ -42,6 +44,8 @@ check_MR_style_dangerjs:
- danger ci --dangerfile=".gitlab/dangerjs/dangerfile.js" --failOnErrors -v
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
tags:
- dangerjs
check_version:
# Don't run this for feature/bugfix branches, so that it is possible to modify

View File

@@ -54,9 +54,6 @@
- "tools/ci/ci_build_apps.py"
- "tools/test_build_system/**/*"
.patterns-sbom: &patterns-sbom
- "tools/test_sbom/*"
.patterns-custom_test: &patterns-custom_test
- "tools/ci/python_packages/gitlab_api.py"
- "tools/ci/python_packages/tiny_test_fw/**/*"
@@ -96,6 +93,13 @@
- "examples/common_components/iperf/**/*"
- "examples/openthread/**/*"
.patterns-example_test-otsleepy: &patterns-example_test-otsleepy
- "components/esp_hw_support/**/*"
- "components/esp_netif/**/*"
- "components/lwip/**/*"
- "components/openthread/**/*"
- "examples/openthread/**/*"
.patterns-target_test-wifi: &patterns-target_test-wifi
- "components/esp_netif/**/*"
- "components/lwip/**/*"
@@ -104,20 +108,6 @@
- "components/wpa_supplicant/**/*"
- "components/esp_coex/**/*"
.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"
- "components/esp_coex/**/*"
.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"
@@ -169,6 +159,8 @@
- "tools/split_paths_by_spaces.py"
- "tools/check_python_dependencies.py"
.patterns-windows: &patterns-windows
- "tools/windows/**/*"
@@ -186,7 +178,6 @@
- "components/esp_phy/lib"
- "components/esp_wifi/lib"
- "components/esp_coex/lib"
- "components/ieee802154/lib"
- "components/json/cJSON"
- "components/lwip/lwip"
- "components/mbedtls/mbedtls"
@@ -330,13 +321,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"'
@@ -369,10 +366,24 @@
rules:
- <<: *if-protected
.rules:protected-no_label:
.rules:push_to_github:
rules:
- <<: *if-qa-test-tag
when: never
- <<: *if-protected-no_label
.rules:protected-no_label-always:
rules:
- <<: *if-qa-test-tag
when: never
- <<: *if-protected-no_label
when: always
.rules:mr:
rules:
- <<: *if-merge_request
### Patterns ###
.rules:patterns:python-cache:
rules:
- *if-schedule
@@ -419,23 +430,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
.rules:patterns:sbom:
rules:
- <<: *if-protected
- <<: *if-dev-push
changes: *patterns-sbom
- <<: *if-dev-push
changes: *patterns-submodule
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# DO NOT place comments or maintain any code from this line
#
@@ -529,18 +523,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-lan8720: &if-label-lan8720
if: '$BOT_LABEL_LAN8720 || $CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*lan8720(?:,[^,\n\r]+)*$/i'
.if-label-macos: &if-label-macos
if: '$BOT_LABEL_MACOS || $CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*macos(?:,[^,\n\r]+)*$/i'
@@ -610,7 +592,6 @@
- <<: *if-label-component_ut_esp32h2
- <<: *if-label-component_ut_esp32s2
- <<: *if-label-component_ut_esp32s3
- <<: *if-label-lan8720
- <<: *if-label-target_test
- <<: *if-label-unit_test
- <<: *if-label-unit_test_esp32
@@ -651,7 +632,6 @@
- <<: *if-label-build
- <<: *if-label-component_ut
- <<: *if-label-component_ut_esp32
- <<: *if-label-lan8720
- <<: *if-label-target_test
- <<: *if-label-unit_test
- <<: *if-label-unit_test_esp32
@@ -1146,6 +1126,8 @@
changes: *patterns-example_test-ethernet
- <<: *if-dev-push
changes: *patterns-example_test-i154
- <<: *if-dev-push
changes: *patterns-example_test-otsleepy
- <<: *if-dev-push
changes: *patterns-example_test-sdio
- <<: *if-dev-push
@@ -1316,6 +1298,8 @@
changes: *patterns-example_test-ethernet
- <<: *if-dev-push
changes: *patterns-example_test-i154
- <<: *if-dev-push
changes: *patterns-example_test-otsleepy
- <<: *if-dev-push
changes: *patterns-example_test-sdio
- <<: *if-dev-push
@@ -1358,6 +1342,8 @@
changes: *patterns-example_test-ethernet
- <<: *if-dev-push
changes: *patterns-example_test-i154
- <<: *if-dev-push
changes: *patterns-example_test-otsleepy
- <<: *if-dev-push
changes: *patterns-example_test-sdio
- <<: *if-dev-push
@@ -1457,27 +1443,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
@@ -1522,10 +1487,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-lan8720
- <<: *if-label-target_test
- <<: *if-label-unit_test
- <<: *if-label-unit_test_esp32
@@ -1563,16 +1524,14 @@
changes: *patterns-example_test-ethernet
- <<: *if-dev-push
changes: *patterns-example_test-i154
- <<: *if-dev-push
changes: *patterns-example_test-otsleepy
- <<: *if-dev-push
changes: *patterns-example_test-sdio
- <<: *if-dev-push
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
@@ -1594,7 +1553,6 @@
when: never
- <<: *if-protected
- <<: *if-label-build
- <<: *if-label-lan8720
- <<: *if-label-target_test
- <<: *if-label-unit_test
- <<: *if-label-unit_test_esp32
@@ -1631,7 +1589,6 @@
when: never
- <<: *if-protected
- <<: *if-label-build
- <<: *if-label-lan8720
- <<: *if-label-target_test
- <<: *if-label-unit_test
- <<: *if-label-unit_test_esp32
@@ -1836,13 +1793,6 @@
- <<: *if-dev-push
changes: *patterns-unit_test-sdio
.rules:labels-protected:lan8720:
rules:
- <<: *if-revert-branch
when: never
- <<: *if-protected
- <<: *if-label-lan8720
.rules:labels:nvs_coverage:
rules:
- <<: *if-revert-branch
@@ -2697,6 +2647,20 @@
- <<: *if-dev-push
changes: *patterns-target_test-i154
.rules:test:example_test-otsleepy:
rules:
- <<: *if-revert-branch
when: never
- <<: *if-protected
- <<: *if-label-build-only
when: never
- <<: *if-label-example_test
- <<: *if-label-target_test
- <<: *if-dev-push
changes: *patterns-example_test-otsleepy
- <<: *if-dev-push
changes: *patterns-target_test-i154
.rules:test:host_test:
rules:
- <<: *if-revert-branch
@@ -2708,52 +2672,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

@@ -5,23 +5,16 @@ clang_tidy_check:
- .rules:patterns:clang_tidy
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
check_pylint:
extends:
@@ -43,85 +36,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
extends: .pre_check_template
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
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

@@ -19,12 +19,12 @@
when: always
paths:
- XUNIT_RESULT.xml
- pytest_embedded_log/
- pytest-embedded/
reports:
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
@@ -35,7 +35,7 @@
- run_cmd pytest $TEST_DIR
-m \"${markers}\"
--junitxml=XUNIT_RESULT.xml
--known-failure-cases-file known_failure_cases/known_failure_cases.txt
--known-failure-cases-file ${KNOWN_FAILURE_CASES_FILE_NAME}
--parallel-count ${CI_NODE_TOTAL:-1}
--parallel-index ${CI_NODE_INDEX:-1}
${PYTEST_EXTRA_FLAGS}
@@ -217,6 +217,14 @@ pytest_examples_esp32c6_generic:
- build_pytest_examples_esp32c6
tags: [ esp32c6, generic ]
pytest_examples_esp32c6_usj_device:
extends:
- .pytest_examples_dir_template
- .rules:test:example_test-esp32c6
needs:
- job: build_pytest_examples_esp32c6
tags: [ esp32c6, usj_device ]
pytest_examples_esp32h2_generic:
extends:
- .pytest_examples_dir_template
@@ -358,7 +366,7 @@ pytest_examples_esp32_ethernet_ip101:
- .rules:test:example_test-esp32
needs:
- build_pytest_examples_esp32
tags: [ esp32, ip101 ]
tags: [ esp32, eth_ip101 ]
pytest_examples_esp32_flash_encryption:
extends:
@@ -572,15 +580,63 @@ pytest_components_esp32_ip101:
- .rules:test:component_ut-esp32
needs:
- build_pytest_components_esp32
tags: [ esp32, ip101 ]
tags: [ esp32, eth_ip101 ]
pytest_components_esp32_lan8720:
extends:
- .pytest_components_dir_template
- .rules:labels-protected:lan8720 # FIXME: IDFCI-1176
- .rules:test:component_ut-esp32
needs:
- build_pytest_components_esp32
tags: [ esp32, lan8720 ]
tags: [ esp32, eth_lan8720 ]
pytest_components_esp32_rtl8201:
extends:
- .pytest_components_dir_template
- .rules:test:component_ut-esp32
needs:
- build_pytest_components_esp32
tags: [ esp32, eth_rtl8201 ]
pytest_components_esp32_w5500:
extends:
- .pytest_components_dir_template
- .rules:test:component_ut-esp32
needs:
- build_pytest_components_esp32
tags: [ esp32, eth_w5500 ]
pytest_components_esp32_ksz8851snl:
extends:
- .pytest_components_dir_template
- .rules:test:component_ut-esp32
needs:
- build_pytest_components_esp32
tags: [ esp32, eth_ksz8851snl ]
pytest_components_esp32_dm9051:
extends:
- .pytest_components_dir_template
- .rules:test:component_ut-esp32
needs:
- build_pytest_components_esp32
tags: [ esp32, eth_dm9051 ]
pytest_components_esp32_ksz8041:
extends:
- .pytest_components_dir_template
- .rules:test:component_ut-esp32
needs:
- build_pytest_components_esp32
tags: [ esp32, eth_ksz8041 ]
pytest_components_esp32_dp83848:
extends:
- .pytest_components_dir_template
- .rules:test:component_ut-esp32
needs:
- build_pytest_components_esp32
tags: [ esp32, eth_dp83848 ]
pytest_components_esp32_ethernet:
extends:
@@ -960,6 +1016,17 @@ pytest_examples_openthread_br:
- esp32c6
- openthread_br
pytest_examples_openthread_sleep:
extends:
- .pytest_examples_dir_template
- .rules:test:example_test-otsleepy
needs:
- build_pytest_examples_esp32c6
- build_pytest_examples_esp32h2
tags:
- esp32c6
- openthread_sleep
pytest_components_esp32s3_usb_host:
extends:
- .pytest_components_dir_template
@@ -1101,10 +1168,10 @@ pytest_test_apps_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
@@ -1352,301 +1419,3 @@ UT_S3_QUAD_PSRAM:
- ESP32S3_IDF
- UT_T1_1
- quad_psram
.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

9
.gitmodules vendored
View File

@@ -49,12 +49,13 @@
[submodule "components/json/cJSON"]
path = components/json/cJSON
url = ../../DaveGamble/cJSON.git
sbom-version = 1.7.16
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 = cb8693b058ba302f4829ec6d03f609ac6f848546
sbom-hash = acc76239bee01d8e9c858ae2cab296704e52d916
sbom-cve-exclude-list = CVE-2024-31755 Resolved in v1.7.18
[submodule "components/mbedtls/mbedtls"]
path = components/mbedtls/mbedtls
@@ -120,10 +121,6 @@
path = components/openthread/lib
url = ../../espressif/esp-thread-lib.git
[submodule "components/ieee802154/lib"]
path = components/ieee802154/lib
url = ../../espressif/esp-ieee802154-lib.git
[submodule "components/bt/controller/lib_esp32h2/esp32h2-bt-lib"]
path = components/bt/controller/lib_esp32h2/esp32h2-bt-lib
url = ../../espressif/esp32h2-bt-lib.git

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
@@ -33,11 +35,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
@@ -101,10 +104,10 @@ repos:
name: Check type annotations in python files
entry: tools/ci/check_type_comments.py
additional_dependencies:
- 'mypy==0.940'
- 'mypy-extensions==0.4.3'
- 'types-setuptools==57.4.14'
- 'types-PyYAML==0.1.9'
- 'mypy'
- 'mypy-extensions'
- 'types-setuptools'
- 'types-PyYAML'
exclude: >
(?x)^(
.*_pb2.py
@@ -143,7 +146,7 @@ repos:
require_serial: true
additional_dependencies:
- PyYAML == 5.3.1
- 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
@@ -162,3 +165,8 @@ repos:
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

@@ -198,8 +198,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

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2017-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -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"
@@ -80,11 +81,11 @@ void gcov_create_task(void *arg)
(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;
}
}
@@ -106,12 +107,16 @@ static int esp_dbg_stub_gcov_entry(void)
void gcov_rtio_init(void)
{
uint32_t capabilities = 0;
uint32_t stub_entry = 0;
ESP_EARLY_LOGV(TAG, "%s", __FUNCTION__);
esp_dbg_stub_entry_set(ESP_DBG_STUB_ENTRY_GCOV, (uint32_t)&esp_dbg_stub_gcov_entry);
if (esp_dbg_stub_entry_get(ESP_DBG_STUB_ENTRY_CAPABILITIES, &capabilities) == ESP_OK) {
esp_dbg_stub_entry_set(ESP_DBG_STUB_ENTRY_CAPABILITIES, capabilities | ESP_DBG_STUB_CAP_GCOV_TASK);
assert(esp_dbg_stub_entry_get(ESP_DBG_STUB_ENTRY_GCOV, &stub_entry) == ESP_OK);
if (stub_entry != 0) {
/* "__gcov_init()" can be called several times. We must avoid multiple tick hook registration */
return;
}
esp_dbg_stub_entry_set(ESP_DBG_STUB_ENTRY_GCOV, (uint32_t)&esp_dbg_stub_gcov_entry);
assert(esp_dbg_stub_entry_get(ESP_DBG_STUB_ENTRY_CAPABILITIES, &stub_entry) == ESP_OK);
esp_dbg_stub_entry_set(ESP_DBG_STUB_ENTRY_CAPABILITIES, stub_entry | ESP_DBG_STUB_CAP_GCOV_TASK);
esp_register_freertos_tick_hook(gcov_create_task_tick_hook);
}

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2017-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -228,8 +228,11 @@ size_t esp_apptrace_fwrite(esp_apptrace_dest_t dest, const void *ptr, size_t siz
ESP_EARLY_LOGE(TAG, "Failed to read response (%d)!", ret);
return 0;
}
return resp/size; // return the number of items written
/* OpenOCD writes it like that:
* fwrite(buf, size, 1, file);
* So, if 1 was returned that means fwrite succeed
*/
return resp == 1 ? nmemb : 0;
}
static void esp_apptrace_fread_args_prepare(uint8_t *buf, void *priv)
@@ -275,6 +278,10 @@ size_t esp_apptrace_fread(esp_apptrace_dest_t dest, void *ptr, size_t size, size
ESP_EARLY_LOGE(TAG, "Failed to read file data (%d)!", ret);
return 0;
}
/* OpenOCD reads it like that:
* fread(buf, 1 ,size, file);
* So, total read bytes count returns
*/
return resp/size; // return the number of items read
}

View File

@@ -167,8 +167,8 @@ unsigned SEGGER_RTT_WriteSkipNoLock(unsigned BufferIndex, const void* pBuffer, u
(event_id == SYSVIEW_EVTID_TASK_STOP_EXEC) ||
(event_id == SYSVIEW_EVTID_TASK_START_READY) ||
(event_id == SYSVIEW_EVTID_TASK_STOP_READY) ||
(event_id == SYSVIEW_EVTID_USER_START) ||
(event_id == SYSVIEW_EVTID_USER_STOP) ||
(event_id == SYSVIEW_EVTID_MARK_START) ||
(event_id == SYSVIEW_EVTID_MARK_STOP) ||
(event_id == SYSVIEW_EVTID_TIMER_ENTER) ||
(event_id == SYSVIEW_EVTID_TIMER_EXIT) ||
(event_id == SYSVIEW_EVTID_STACK_INFO) ||

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
*/
@@ -195,13 +195,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) {
@@ -896,9 +901,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;
@@ -911,14 +934,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) {
@@ -927,55 +957,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-C6, 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

@@ -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"
@@ -405,6 +437,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
@@ -424,15 +471,6 @@ menu "Bootloader config"
- "Reserve RTC FAST memory for custom purposes"
- "GPIO triggers factory reset"
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
@@ -1007,6 +1045,22 @@ menu "Security features"
DIS_DOWNLOAD_MANUAL_ENCRYPT, DIS_USB_JTAG, DIS_USB_SERIAL_JTAG, STRAP_JTAG_SEL, USB_PHY_SEL.
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
@@ -1019,6 +1073,44 @@ menu "Security features"
If not set, the app does not care if the flash encryption eFuse bit is set or not.
config SECURE_FLASH_PSEUDO_ROUND_FUNC
bool "Permanently enable XTS-AES's pseudo rounds function"
default y
depends on SECURE_FLASH_ENCRYPTION_MODE_RELEASE && SOC_FLASH_ENCRYPTION_XTS_AES_SUPPORT_PSEUDO_ROUND
help
If set (default), the bootloader will permanently enable the XTS-AES peripheral's pseudo rounds function.
Note: Enabling this config would burn an efuse.
choice SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH
prompt "Strength of the pseudo rounds function"
depends on SECURE_FLASH_PSEUDO_ROUND_FUNC
default SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH_LOW
help
The strength of the pseudo rounds functions can be configured to low, medium and high,
each denoting the values that would be stored in the efuses field.
By default the value to set to low.
You can configure the strength of the pseudo rounds functions according to your use cases,
for example, increasing the strength would provide higher security but would slow down the
flash encryption/decryption operations.
For more info regarding the performance impact, please checkout the pseudo round function section of the
security guide documentation.
config SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH_LOW
bool "Low"
config SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH_MEDIUM
bool "Medium"
config SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH_HIGH
bool "High"
endchoice
config SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH
int
default 1 if SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH_LOW
default 2 if SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH_MEDIUM
default 3 if SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH_HIGH
config SECURE_ROM_DL_MODE_ENABLED
bool
default y if SOC_SUPPORTS_SECURE_DL_MODE && !SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT

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

@@ -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
*/
@@ -54,6 +54,13 @@ esp_err_t bootloader_flash_reset_chip(void);
*/
bool bootloader_flash_is_octal_mode_enabled(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

@@ -52,6 +52,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
*/
@@ -124,6 +124,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
@@ -410,6 +413,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
@@ -613,7 +643,7 @@ void bootloader_spi_flash_reset(void)
******************************************************************************/
#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_EARLY_LOG##level(TAG, ##__VA_ARGS__)
@@ -630,7 +660,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;
}
@@ -663,7 +693,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;
}
@@ -695,7 +725,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)
@@ -756,3 +786,40 @@ bool IRAM_ATTR bootloader_flash_is_octal_mode_enabled(void)
return false;
#endif
}
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

@@ -260,7 +260,7 @@ 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
@@ -272,7 +272,9 @@ esp_err_t bootloader_init_spi_flash(void)
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

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

@@ -122,7 +122,7 @@ int bootloader_common_select_otadata(const esp_ota_select_entry_t *two_otadata,
#if CONFIG_BOOTLOADER_RESERVE_RTC_MEM
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` */

View File

@@ -1,11 +1,12 @@
/*
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2020-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "sdkconfig.h"
#include "bootloader_console.h"
#include "soc/soc_caps.h"
#include "soc/uart_periph.h"
#include "soc/uart_channel.h"
#include "soc/io_mux_reg.h"
@@ -18,6 +19,9 @@
#include "esp32s2/rom/usb/cdc_acm.h"
#include "esp32s2/rom/usb/usb_common.h"
#endif
#if CONFIG_ESP_CONSOLE_USB_CDC
#include "hal/usb_wrap_ll.h"
#endif
#include "esp_rom_gpio.h"
#include "esp_rom_uart.h"
#include "esp_rom_sys.h"
@@ -95,8 +99,11 @@ 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);
// Ensure that the USB FSLS PHY is mapped to the USB WRAP
usb_wrap_ll_phy_enable_pad(&USB_WRAP, true);
usb_wrap_ll_phy_enable_external(&USB_WRAP, false);
}
#endif //CONFIG_ESP_CONSOLE_USB_CDC

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

@@ -53,7 +53,7 @@ void bootloader_random_enable(void)
// create patterns and set them in pattern table
uint32_t pattern_one = (SAR2_CHANNEL << 2) | SAR2_ATTEN; // we want channel 9 with max attenuation
uint32_t pattern_two = SAR1_ATTEN; // we want channel 0 with max attenuation, channel doesn't really matter here
uint32_t pattern_two = (SAR2_CHANNEL << 2) | SAR1_ATTEN; // we want channel 9 with max attenuation
uint32_t pattern_table = 0 | (pattern_two << 3 * PATTERN_BIT_WIDTH) | pattern_one << 2 * PATTERN_BIT_WIDTH;
REG_WRITE(APB_SARADC_SAR_PATT_TAB1_REG, pattern_table);
@@ -88,9 +88,6 @@ void bootloader_random_disable(void)
REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SARADC1_ENCAL_REF_ADDR, 0);
REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SARADC2_ENCAL_REF_ADDR, 0);
// Revert PMU_RF_PWC_REG to it's initial value
CLEAR_PERI_REG_MASK(PMU_RF_PWC_REG, PMU_PERIF_I2C_RSTB);
// disable ADC_CTRL_CLK (SAR ADC function clock)
REG_WRITE(PCR_SARADC_CLKM_CONF_REG, 0x00404000);

View File

@@ -88,6 +88,8 @@ static inline void bootloader_hardware_init(void)
{
/* Enable analog i2c master clock */
SET_PERI_REG_MASK(MODEM_LPCON_CLK_CONF_REG, MODEM_LPCON_CLK_I2C_MST_EN);
REGI2C_WRITE_MASK(I2C_BIAS, I2C_BIAS_DREG_0P8, 8); // fix low temp issue, need to increase this internal voltage
}
static inline void bootloader_ana_reset_config(void)

View File

@@ -1,15 +1,18 @@
/*
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdint.h>
#include <strings.h>
#include "esp_flash_encrypt.h"
#include "esp_secure_boot.h"
#include "esp_efuse.h"
#include "esp_efuse_table.h"
#include "esp_log.h"
#include "hal/spi_flash_encrypted_ll.h"
#include "soc/soc_caps.h"
#include "sdkconfig.h"
static __attribute__((unused)) const char *TAG = "flash_encrypt";
@@ -33,6 +36,14 @@ esp_err_t esp_flash_encryption_enable_secure_features(void)
esp_efuse_write_field_bit(ESP_EFUSE_DIS_DIRECT_BOOT);
#if defined(CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE) && defined(SOC_FLASH_ENCRYPTION_XTS_AES_SUPPORT_PSEUDO_ROUND)
if (spi_flash_encrypt_ll_is_pseudo_rounds_function_supported()) {
ESP_LOGI(TAG, "Enable XTS-AES pseudo rounds function...");
uint8_t xts_pseudo_level = CONFIG_SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH;
esp_efuse_write_field_blob(ESP_EFUSE_XTS_DPA_PSEUDO_LEVEL, &xts_pseudo_level, ESP_EFUSE_XTS_DPA_PSEUDO_LEVEL[0]->bit_count);
}
#endif
#if defined(CONFIG_SECURE_BOOT_V2_ENABLED) && !defined(CONFIG_SECURE_BOOT_V2_ALLOW_EFUSE_RD_DIS)
// This bit is set when enabling Secure Boot V2, but we can't enable it until this later point in the first boot
// otherwise the Flash Encryption key cannot be read protected

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2023 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
@@ -85,10 +87,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);
@@ -233,6 +235,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!
@@ -509,7 +526,7 @@ static esp_err_t process_segments(esp_image_metadata_t *data, bool silent, bool
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%"PRIx32, i, next_addr);
CHECK_ERR(process_segment(i, next_addr, header, silent, do_load, sha_handle, checksum));
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;
@@ -530,7 +547,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;
@@ -588,7 +605,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;
}
@@ -603,7 +620,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
@@ -636,10 +688,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];
@@ -914,9 +980,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

@@ -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
*/
@@ -12,6 +12,9 @@
#include "esp_flash_encrypt.h"
#include "esp_secure_boot.h"
#include "hal/efuse_hal.h"
#include "hal/spi_flash_encrypted_ll.h"
#include "hal/spi_flash_encrypt_hal.h"
#include "soc/soc_caps.h"
#if CONFIG_IDF_TARGET_ESP32
#define CRYPT_CNT ESP_EFUSE_FLASH_CRYPT_CNT
@@ -201,6 +204,13 @@ void esp_flash_encryption_set_release_mode(void)
#endif // CONFIG_SOC_FLASH_ENCRYPTION_XTS_AES_128_DERIVED
#endif // !CONFIG_IDF_TARGET_ESP32
#ifdef SOC_FLASH_ENCRYPTION_XTS_AES_SUPPORT_PSEUDO_ROUND
if (spi_flash_encrypt_ll_is_pseudo_rounds_function_supported()) {
uint8_t xts_pseudo_level = ESP_XTS_AES_PSEUDO_ROUNDS_LOW;
esp_efuse_write_field_blob(ESP_EFUSE_XTS_DPA_PSEUDO_LEVEL, &xts_pseudo_level, ESP_EFUSE_XTS_DPA_PSEUDO_LEVEL[0]->bit_count);
}
#endif
#ifdef CONFIG_IDF_TARGET_ESP32
esp_efuse_write_field_bit(ESP_EFUSE_WR_DIS_DIS_CACHE);
#else
@@ -438,6 +448,17 @@ bool esp_flash_encryption_cfg_verify_release_mode(void)
}
result &= secure;
#if SOC_FLASH_ENCRYPTION_XTS_AES_SUPPORT_PSEUDO_ROUND
if (spi_flash_encrypt_ll_is_pseudo_rounds_function_supported()) {
uint8_t xts_pseudo_level = 0;
esp_efuse_read_field_blob(ESP_EFUSE_XTS_DPA_PSEUDO_LEVEL, &xts_pseudo_level, ESP_EFUSE_XTS_DPA_PSEUDO_LEVEL[0]->bit_count);
if (!xts_pseudo_level) {
result &= false;
ESP_LOGW(TAG, "Not enabled XTS-AES pseudo rounds function (set XTS_DPA_PSEUDO_LEVEL->1 or more)");
}
}
#endif
return result;
}
#endif // not CONFIG_IDF_TARGET_ESP32

View File

@@ -393,14 +393,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 */
@@ -411,9 +418,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

@@ -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%"PRIx32" 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,34 +2,45 @@ if(CONFIG_BT_ENABLED)
set(srcs "")
set(include_dirs "")
set(ldfragments "linker.lf")
set(ldscripts "linker_common.lf")
if(CONFIG_BT_CONTROLLER_ENABLED)
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")
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)
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_ESP32C3)
list(APPEND srcs "controller/esp32c3/bt.c")
list(APPEND include_dirs include/esp32c3/include)
elseif(CONFIG_IDF_TARGET_ESP32S3)
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/esp32c3/bt.c")
list(APPEND include_dirs include/esp32c3/include)
elseif(CONFIG_IDF_TARGET_ESP32C2)
list(APPEND srcs "controller/esp32c2/bt.c")
list(APPEND include_dirs include/esp32c2/include)
if(CONFIG_BT_CTRL_RUN_IN_FLASH_ONLY)
list(APPEND srcs "controller/esp32c2/dummy.c")
endif()
set(ldscripts "linker_esp32c2.lf")
elseif(CONFIG_IDF_TARGET_ESP32C2)
set(ldfragments "linker.lf.esp32c2")
list(APPEND srcs "controller/esp32c2/bt.c")
list(APPEND include_dirs include/esp32c2/include)
elseif(CONFIG_IDF_TARGET_ESP32C6)
list(APPEND srcs "controller/esp32c6/bt.c")
list(APPEND include_dirs include/esp32c6/include)
list(APPEND ldscripts "linker_esp_ble_controller.lf")
elseif(CONFIG_IDF_TARGET_ESP32C6)
list(APPEND srcs "controller/esp32c6/bt.c")
list(APPEND include_dirs include/esp32c6/include)
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")
endif()
elseif(CONFIG_IDF_TARGET_ESP32H2)
list(APPEND srcs "controller/esp32h2/bt.c")
list(APPEND include_dirs include/esp32h2/include)
endif()
@@ -40,16 +51,19 @@ if(CONFIG_BT_ENABLED)
common/btc/include
common/include
porting/mem/
porting/include
)
list(APPEND include_dirs
common/api/include/api
common/btc/profile/esp/blufi/include
common/btc/profile/esp/include
common/hci_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"
@@ -478,25 +492,51 @@ 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/mem/os_msys_init.c"
"porting/transport/src/hci_transport.c"
)
if(CONFIG_BT_CONTROLLER_DISABLED)
list(APPEND srcs
"porting/npl/freertos/src/npl_os_freertos.c"
"porting/nimble/src/os_msys_init.c"
"host/nimble/nimble/porting/nimble/src/hal_uart.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)
elseif(CONFIG_BT_LE_HCI_INTERFACE_USE_RAM)
if(CONFIG_BT_NIMBLE_ENABLED)
list(APPEND srcs
"porting/transport/uart/hci_uart.c"
)
"porting/transport/driver/vhci/hci_driver_nimble.c"
"host/nimble/nimble/nimble/transport/esp_ipc/src/hci_esp_ipc.c"
)
else()
list(APPEND srcs
"porting/transport/driver/vhci/hci_driver_standard.c"
)
endif()
endif()
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"
)
if(CONFIG_BT_LE_UART_HCI_DMA_MODE)
list(APPEND srcs
"porting/transport/driver/uart/hci_driver_uart_dma.c"
)
else()
list(APPEND srcs
"porting/transport/driver/uart/hci_driver_uart.c"
)
endif()
endif()
list(APPEND include_dirs
porting/include
porting/npl/freertos/include
porting/transport/include
)
endif()
if(NOT (CONFIG_BT_LE_CRYPTO_STACK_MBEDTLS OR CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS))
list(APPEND include_dirs
@@ -522,8 +562,8 @@ if(CONFIG_BT_ENABLED)
if(CONFIG_BT_NIMBLE_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
@@ -535,7 +575,10 @@ if(CONFIG_BT_ENABLED)
host/nimble/nimble/nimble/host/services/ipss/include
host/nimble/nimble/nimble/host/services/lls/include
host/nimble/nimble/nimble/host/services/prox/include
host/nimble/nimble/nimble/host/services/cts/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
@@ -555,6 +598,9 @@ if(CONFIG_BT_ENABLED)
"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/prox/src/ble_svc_prox.c"
"host/nimble/nimble/nimble/host/services/cts/src/ble_svc_cts.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"
@@ -603,19 +649,37 @@ 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"
)
if(CONFIG_BT_CONTROLLER_DISABLED AND CONFIG_BT_NIMBLE_TRANSPORT_UART)
list(APPEND srcs
"host/nimble/nimble/nimble/transport/uart_ll/src/hci_uart.c"
"host/nimble/nimble/nimble/transport/common/hci_h4/src/hci_h4.c"
)
endif()
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
host/nimble/nimble/nimble/transport/include
host/nimble/nimble/nimble/include
)
if(CONFIG_BT_CONTROLLER_DISABLED)
list(APPEND include_dirs
host/nimble/nimble/nimble/transport/common/hci_h4/include
)
endif()
if(NOT CONFIG_BT_LE_CONTROLLER_NPL_OS_PORTING_SUPPORT)
list(APPEND srcs
"host/nimble/nimble/porting/nimble/src/endian.c"
@@ -625,16 +689,23 @@ if(CONFIG_BT_ENABLED)
"host/nimble/nimble/porting/nimble/src/os_msys_init.c"
"host/nimble/nimble/porting/npl/freertos/src/npl_os_freertos.c"
)
if(CONFIG_BT_CONTROLLER_DISABLED AND CONFIG_BT_NIMBLE_TRANSPORT_UART)
list(APPEND srcs
"host/nimble/nimble/porting/nimble/src/hal_uart.c"
)
endif()
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()
if(CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE)
if(CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE AND CONFIG_BT_CONTROLLER_ENABLED)
list(APPEND srcs
"host/nimble/esp-hci/src/esp_nimble_hci.c"
"host/nimble/nimble/nimble/transport/esp_ipc_legacy/src/hci_esp_ipc_legacy.c"
)
list(APPEND include_dirs
host/nimble/esp-hci/include
@@ -702,7 +773,7 @@ idf_component_register(SRCS "${srcs}"
PRIV_INCLUDE_DIRS "${priv_include_dirs}"
REQUIRES esp_timer esp_wifi
PRIV_REQUIRES nvs_flash soc esp_pm esp_phy esp_coex mbedtls driver vfs
LDFRAGMENTS "${ldfragments}")
LDFRAGMENTS "${ldscripts}")
if(CONFIG_BT_ENABLED)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-implicit-fallthrough -Wno-unused-const-variable)
@@ -714,19 +785,29 @@ if(CONFIG_BT_ENABLED)
elseif(CONFIG_IDF_TARGET_ESP32C3)
target_link_directories(${COMPONENT_LIB} INTERFACE
"${CMAKE_CURRENT_LIST_DIR}/controller/lib_esp32c3_family/esp32c3")
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app)
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_ESP32S3)
target_link_directories(${COMPONENT_LIB} INTERFACE
"${CMAKE_CURRENT_LIST_DIR}/controller/lib_esp32c3_family/esp32s3")
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app)
elseif(CONFIG_IDF_TARGET_ESP32C2)
add_prebuilt_library(libble_app "controller/lib_esp32c2/esp32c2-bt-lib/libble_app.a")
target_link_libraries(${COMPONENT_LIB} PRIVATE libble_app)
elseif(CONFIG_IDF_TARGET_ESP32C6)
add_prebuilt_library(libble_app "controller/lib_esp32c6/esp32c6-bt-lib/libble_app.a")
target_link_libraries(${COMPONENT_LIB} PRIVATE libble_app)
elseif(CONFIG_IDF_TARGET_ESP32H2)
add_prebuilt_library(libble_app "controller/lib_esp32h2/esp32h2-bt-lib/libble_app.a")
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_BT_CONTROLLER_ENABLED)
if(CONFIG_IDF_TARGET_ESP32C6)
add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/esp32c6/libble_app.a")
else()
if(CONFIG_BT_CTRL_RUN_IN_FLASH_ONLY AND CONFIG_IDF_TARGET_ESP32C2)
add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/libble_app_flash.a")
else()
add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/libble_app.a")
endif()
endif()
target_link_libraries(${COMPONENT_LIB} PRIVATE libble_app)
endif()

View File

@@ -1,9 +1,8 @@
menu "Bluetooth"
visible if SOC_BT_SUPPORTED
config BT_ENABLED
bool "Bluetooth"
depends on SOC_BT_SUPPORTED && !APP_NO_BLOBS
depends on !APP_NO_BLOBS
help
Select this option to enable Bluetooth and show the submenu with Bluetooth configuration choices.
@@ -15,6 +14,7 @@ menu "Bluetooth"
This helps to choose Bluetooth host stack
config BT_BLUEDROID_ENABLED
depends on BT_CONTROLLER_ENABLED
bool "Bluedroid - Dual-mode"
help
This option is recommended for classic Bluetooth or for dual-mode
@@ -26,6 +26,7 @@ menu "Bluetooth"
This option is recommended for BLE only usecases to save on memory
config BT_CONTROLLER_ONLY
depends on SOC_BT_SUPPORTED
bool "Disabled"
help
This option is recommended when you want to communicate directly with the
@@ -42,6 +43,7 @@ menu "Bluetooth"
This helps to choose Bluetooth controller stack
config BT_CONTROLLER_ENABLED
depends on SOC_BT_SUPPORTED
bool "Enabled"
help
This option is recommended for Bluetooth controller usecases
@@ -79,6 +81,37 @@ menu "Bluetooth"
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,6 @@
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.

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-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -124,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) {
@@ -216,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;
@@ -236,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)
{
@@ -418,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;

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-2024 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,37 @@
#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
#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-2024 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,42 @@
#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
#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

@@ -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

@@ -172,7 +172,7 @@ config BTDM_CTRL_PINNED_TO_CORE
choice BTDM_CTRL_HCI_MODE_CHOICE
prompt "HCI mode"
help
Speicify HCI mode as VHCI or UART(H4)
Specify HCI mode as VHCI or UART(H4)
config BTDM_CTRL_HCI_MODE_VHCI
bool "VHCI"
@@ -205,6 +205,11 @@ menu "HCI UART(H4) Options"
help
UART Baudrate for HCI. Please use standard baudrate.
config BTDM_CTRL_HCI_UART_FLOW_CTRL_EN
bool "Enable UART flow control"
depends on BTDM_CTRL_HCI_MODE_UART_H4
default y
endmenu
menu "MODEM SLEEP Options"
@@ -257,10 +262,10 @@ menu "MODEM SLEEP Options"
the bluetooth low power clock source.
config BTDM_CTRL_LPCLK_SEL_EXT_32K_XTAL
bool "External 32kHz crystal"
depends on RTC_CLK_SRC_EXT_CRYS
bool "External 32kHz crystal/oscillator"
depends on RTC_CLK_SRC_EXT_CRYS || RTC_CLK_SRC_EXT_OSC
help
External 32kHz crystal has a nominal frequency of 32.768kHz and provides good frequency
External 32kHz crystal/oscillator has a nominal frequency of 32.768kHz and provides good frequency
stability. If used as Bluetooth low power clock, External 32kHz can support Bluetooth
modem sleep to be used with both DFS and light sleep.
endchoice
@@ -351,7 +356,7 @@ config BTDM_SCAN_DUPL_CACHE_SIZE
default 100
help
Maximum number of devices which can be recorded in scan duplicate filter.
When the maximum amount of device in the filter is reached, the cache will be refreshed.
When the maximum amount of device in the filter is reached, the oldest device will be refreshed.
config BTDM_SCAN_DUPL_CACHE_REFRESH_PERIOD
int "Duplicate scan list refresh period (seconds)"
@@ -393,6 +398,23 @@ config BTDM_CTRL_FULL_SCAN_SUPPORTED
The full scan function is mainly used to provide BLE scan performance.
This is required for scenes with high scan performance requirements, such as BLE Mesh scenes.
config BTDM_CTRL_SCAN_BACKOFF_UPPERLIMITMAX
bool "Disable active scan backoff"
default n
help
Disable active scan backoff. The bluetooth spec requires that scanners should run a backoff procedure to
minimize collision of scan request PDUs from nultiple scanners. If scan backoff is disabled, in active
scanning, scan request PDU will be sent every time when HW receives scannable ADV PDU.
config BTDM_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS
bool "Enable enhanced Access Address check in CONNECT_IND"
default n
help
Enabling this option will add stricter verification of the Access Address in the CONNECT_IND PDU.
This improves security by ensuring that only connection requests with valid Access Addresses are accepted.
If disabled, only basic checks are applied, improving compatibility.
config BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP
bool "BLE adv report flow control supported"
depends on (BTDM_CTRL_MODE_BTDM || BTDM_CTRL_MODE_BLE_ONLY)
@@ -427,6 +449,46 @@ config BTDM_BLE_ADV_REPORT_DISCARD_THRSHOLD
If you set `BTDM_BLE_ADV_REPORT_DISCARD_THRSHOLD` to a small value or printf every adv lost event, it
may cause adv packets lost more.
menu "BLE disconnect when instant passed"
config BTDM_BLE_LLCP_CONN_UPDATE
bool "BLE ACL connection update procedure"
depends on (BTDM_CTRL_MODE_BLE_ONLY || BTDM_CTRL_MODE_BTDM)
default n
help
If this option is enabled, Controller will terminate the connection
when instant passed during connection update procedure.
config BTDM_BLE_LLCP_CHAN_MAP_UPDATE
bool "BLE ACL channel map update procedure"
depends on (BTDM_CTRL_MODE_BLE_ONLY || BTDM_CTRL_MODE_BTDM)
default n
help
If this option is enabled, Controller will terminate the connection
when instant passed in channel map update procedure.
endmenu
config BTDM_BLE_CHAN_ASS_EN
bool "Enable channel assessment"
depends on (BTDM_CTRL_MODE_BLE_ONLY || BTDM_CTRL_MODE_BTDM)
default y
help
If this option is enabled, The Controller will records the communication quality
for each channel and then start a timer to check and update the channel map every 4 seconds.
config BTDM_BLE_PING_EN
bool "Enable LE Ping procedure"
depends on (BTDM_CTRL_MODE_BTDM || BTDM_CTRL_MODE_BLE_ONLY)
default y
help
If this option is disabled, The Controller will not start the LE authenticated payload timer.
This option is used for some compatibility problems related to LE ping procedure.
config BTDM_BLE_VS_QA_SUPPORT
bool "BLE vendor HCI QA support"
depends on (BTDM_CTRL_MODE_BTDM || BTDM_CTRL_MODE_BLE_ONLY)
default n
help
This enables BLE vendor HCI command and event for QA.
config BTDM_RESERVE_DRAM
hex

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -35,7 +35,7 @@
#include "soc/rtc.h"
#include "soc/soc_memory_layout.h"
#include "soc/dport_reg.h"
#include "esp_coexist_internal.h"
#include "private/esp_coexist_internal.h"
#include "esp_timer.h"
#if !CONFIG_FREERTOS_UNICORE
#include "esp_ipc.h"
@@ -89,9 +89,10 @@ do{\
} while(0)
#define OSI_FUNCS_TIME_BLOCKING 0xffffffff
#define OSI_VERSION 0x00010004
#define OSI_VERSION 0x00010005
#define OSI_MAGIC_VALUE 0xFADEBEAD
#define BLE_CONTROLLER_MALLOC_CAPS (MALLOC_CAP_8BIT|MALLOC_CAP_DMA|MALLOC_CAP_INTERNAL)
/* Types definition
************************************************************************
*/
@@ -176,6 +177,7 @@ struct osi_funcs_t {
void (*_interrupt_l3_restore)(void);
void *(* _customer_queue_create)(uint32_t queue_len, uint32_t item_size);
int (* _coex_version_get)(unsigned int *major, unsigned int *minor, unsigned int *patch);
void (* _patch_apply)(void);
uint32_t _magic;
};
@@ -220,6 +222,8 @@ extern void bredr_sco_datapath_set(uint8_t data_path);
extern void btdm_controller_scan_duplicate_list_clear(void);
/* Shutdown */
extern void esp_bt_controller_shutdown(void);
extern void sdk_config_set_bt_pll_track_enable(bool enable);
extern void sdk_config_set_uart_flow_ctrl_enable(bool enable);
extern char _bss_start_btdm;
extern char _bss_end_btdm;
@@ -230,16 +234,17 @@ extern uint32_t _data_end_btdm_rom;
extern uint32_t _bt_bss_start;
extern uint32_t _bt_bss_end;
extern uint32_t _nimble_bss_start;
extern uint32_t _nimble_bss_end;
extern uint32_t _btdm_bss_start;
extern uint32_t _btdm_bss_end;
extern uint32_t _bt_controller_bss_start;
extern uint32_t _bt_controller_bss_end;
extern uint32_t _bt_data_start;
extern uint32_t _bt_data_end;
extern uint32_t _nimble_data_start;
extern uint32_t _nimble_data_end;
extern uint32_t _btdm_data_start;
extern uint32_t _btdm_data_end;
extern uint32_t _bt_controller_data_start;
extern uint32_t _bt_controller_data_end;
extern void config_bt_funcs_reset(void);
extern void config_ble_funcs_reset(void);
extern void config_btdm_funcs_reset(void);
extern void config_ble_vs_qa_funcs_reset(void);
/* Local Function Declare
*********************************************************************
@@ -313,6 +318,7 @@ static void *customer_queue_create_hlevel_wrapper(uint32_t queue_len, uint32_t i
static void interrupt_l3_disable(void);
static void interrupt_l3_restore(void);
static void bt_controller_deinit_internal(void);
static void patch_apply(void);
/* Local variable definition
***************************************************************************
@@ -400,6 +406,7 @@ static const struct osi_funcs_t osi_funcs_ro = {
._customer_queue_create = NULL,
#endif /* CONFIG_BTDM_CTRL_HLI */
._coex_version_get = coex_version_get_wrapper,
._patch_apply = patch_apply,
._magic = OSI_MAGIC_VALUE,
};
@@ -751,7 +758,7 @@ static int32_t queue_send_hlevel_wrapper(void *queue, void *item, uint32_t block
* @param item The message which will be send
* @param hptw need do task yield or not
* @return send success or not
* There is an issue here: When the queue is full, it may reture true but it send fail to the queue, sometimes.
* There is an issue here: When the queue is full, it may return true but it send fail to the queue, sometimes.
* But in Bluetooth controller's isr, We don't care about the return value.
* It only required tp send success when the queue is empty all the time.
* So, this function meets the requirement.
@@ -859,7 +866,21 @@ static int IRAM_ATTR cause_sw_intr_to_core_wrapper(int core_id, int intr_no)
static void *malloc_internal_wrapper(size_t size)
{
return heap_caps_malloc(size, MALLOC_CAP_8BIT|MALLOC_CAP_DMA|MALLOC_CAP_INTERNAL);
return heap_caps_malloc(size, BLE_CONTROLLER_MALLOC_CAPS);
}
void *malloc_ble_controller_mem(size_t size)
{
void *p = heap_caps_malloc(size, BLE_CONTROLLER_MALLOC_CAPS);
if(p == NULL) {
ESP_LOGE(BTDM_LOG_TAG, "Malloc failed");
}
return p;
}
uint32_t get_ble_controller_free_heap_size(void)
{
return heap_caps_get_free_size(BLE_CONTROLLER_MALLOC_CAPS);
}
static int32_t IRAM_ATTR read_mac_wrapper(uint8_t mac[6])
@@ -1195,23 +1216,12 @@ static int coex_register_wifi_channel_change_callback_wrapper(void *cb)
static int coex_version_get_wrapper(unsigned int *major, unsigned int *minor, unsigned int *patch)
{
#if CONFIG_SW_COEXIST_ENABLE
const char *ver_str = esp_coex_version_get();
if (ver_str != NULL) {
unsigned int _major = 0, _minor = 0, _patch = 0;
if (sscanf(ver_str, "%u.%u.%u", &_major, &_minor, &_patch) != 3) {
return -1;
}
if (major != NULL) {
*major = _major;
}
if (minor != NULL) {
*minor = _minor;
}
if (patch != NULL) {
*patch = _patch;
}
return 0;
}
coex_version_t version;
ESP_ERROR_CHECK(coex_version_get_value(&version));
*major = (unsigned int)version.major;
*minor = (unsigned int)version.minor;
*patch = (unsigned int)version.patch;
return 0;
#endif
return -1;
}
@@ -1283,7 +1293,45 @@ static esp_err_t try_heap_caps_add_region(intptr_t start, intptr_t end)
return ret;
}
esp_err_t esp_bt_controller_mem_release(esp_bt_mode_t mode)
typedef struct {
intptr_t start;
intptr_t end;
const char* name;
} bt_area_t;
static esp_err_t esp_bt_mem_release_area(const bt_area_t *area)
{
esp_err_t ret = ESP_OK;
intptr_t mem_start = area->start;
intptr_t mem_end = area->end;
if (mem_start != mem_end) {
ESP_LOGD(BTDM_LOG_TAG, "Release %s [0x%08x] - [0x%08x], len %d", area->name, mem_start, mem_end, mem_end - mem_start);
ret = try_heap_caps_add_region(mem_start, mem_end);
}
return ret;
}
static esp_err_t esp_bt_mem_release_areas(const bt_area_t *area1, const bt_area_t *area2)
{
esp_err_t ret = ESP_OK;
if (area1->end == area2->start) {
bt_area_t merged_area = {
.start = area1->start,
.end = area2->end,
.name = area1->name
};
ret = esp_bt_mem_release_area(&merged_area);
} else {
esp_bt_mem_release_area(area1);
ret = esp_bt_mem_release_area(area2);
}
return ret;
}
static esp_err_t esp_bt_controller_rom_mem_release(esp_bt_mode_t mode)
{
bool update = true;
intptr_t mem_start=(intptr_t) NULL, mem_end=(intptr_t) NULL;
@@ -1294,7 +1342,8 @@ esp_err_t esp_bt_controller_mem_release(esp_bt_mode_t mode)
//already released
if (!(mode & btdm_dram_available_region[0].mode)) {
return ESP_ERR_INVALID_STATE;
ESP_LOGW(BTDM_LOG_TAG, "%s already released, mode %d",__func__, mode);
return ESP_OK;
}
for (int i = 0; i < sizeof(btdm_dram_available_region)/sizeof(btdm_dram_available_region_t); i++) {
@@ -1334,61 +1383,89 @@ esp_err_t esp_bt_controller_mem_release(esp_bt_mode_t mode)
}
}
if (mode == ESP_BT_MODE_BTDM) {
mem_start = (intptr_t)&_btdm_bss_start;
mem_end = (intptr_t)&_btdm_bss_end;
if (mem_start != mem_end) {
ESP_LOGD(BTDM_LOG_TAG, "Release BTDM BSS [0x%08x] - [0x%08x]", mem_start, mem_end);
ESP_ERROR_CHECK(try_heap_caps_add_region(mem_start, mem_end));
}
mem_start = (intptr_t)&_btdm_data_start;
mem_end = (intptr_t)&_btdm_data_end;
if (mem_start != mem_end) {
ESP_LOGD(BTDM_LOG_TAG, "Release BTDM Data [0x%08x] - [0x%08x]", mem_start, mem_end);
ESP_ERROR_CHECK(try_heap_caps_add_region(mem_start, mem_end));
}
}
return ESP_OK;
}
esp_err_t esp_bt_controller_mem_release(esp_bt_mode_t mode)
{
esp_err_t ret = ESP_OK;
if (btdm_controller_status != ESP_BT_CONTROLLER_STATUS_IDLE) {
return ESP_ERR_INVALID_STATE;
}
if (mode == ESP_BT_MODE_BTDM) {
bt_area_t cont_bss = {
.start = (intptr_t)&_bt_controller_bss_start,
.end = (intptr_t)&_bt_controller_bss_end,
.name = "BT Controller BSS",
};
bt_area_t cont_data = {
.start = (intptr_t)&_bt_controller_data_start,
.end = (intptr_t)&_bt_controller_data_end,
.name = "BT Controller Data"
};
ret = esp_bt_mem_release_areas(&cont_data, &cont_bss);
}
if (ret == ESP_OK) {
ret = esp_bt_controller_rom_mem_release(mode);
}
return ret;
}
esp_err_t esp_bt_mem_release(esp_bt_mode_t mode)
{
int ret;
intptr_t mem_start, mem_end;
esp_err_t ret = ESP_OK;
ret = esp_bt_controller_mem_release(mode);
if (ret != ESP_OK) {
return ret;
if (btdm_controller_status != ESP_BT_CONTROLLER_STATUS_IDLE) {
return ESP_ERR_INVALID_STATE;
}
bt_area_t bss = {
.start = (intptr_t)&_bt_bss_start,
.end = (intptr_t)&_bt_bss_end,
.name = "BT BSS",
};
bt_area_t cont_bss = {
.start = (intptr_t)&_bt_controller_bss_start,
.end = (intptr_t)&_bt_controller_bss_end,
.name = "BT Controller BSS",
};
bt_area_t data = {
.start = (intptr_t)&_bt_data_start,
.end = (intptr_t)&_bt_data_end,
.name = "BT Data",
};
bt_area_t cont_data = {
.start = (intptr_t)&_bt_controller_data_start,
.end = (intptr_t)&_bt_controller_data_end,
.name = "BT Controller Data"
};
/*
* Free data and BSS section for Bluetooth controller ROM code.
* Note that rom mem release must be performed before section _bt_data_start to _bt_data_end is released,
* otherwise `btdm_dram_available_region` will no longer be available when performing rom mem release and
* thus causing heap corruption.
*/
ret = esp_bt_controller_rom_mem_release(mode);
if (mode == ESP_BT_MODE_BTDM) {
mem_start = (intptr_t)&_bt_bss_start;
mem_end = (intptr_t)&_bt_bss_end;
if (mem_start != mem_end) {
ESP_LOGD(BTDM_LOG_TAG, "Release BT BSS [0x%08x] - [0x%08x]", mem_start, mem_end);
ESP_ERROR_CHECK(try_heap_caps_add_region(mem_start, mem_end));
}
mem_start = (intptr_t)&_bt_data_start;
mem_end = (intptr_t)&_bt_data_end;
if (mem_start != mem_end) {
ESP_LOGD(BTDM_LOG_TAG, "Release BT Data [0x%08x] - [0x%08x]", mem_start, mem_end);
ESP_ERROR_CHECK(try_heap_caps_add_region(mem_start, mem_end));
/* Start by freeing Bluetooth BSS section */
if (ret == ESP_OK) {
ret = esp_bt_mem_release_areas(&bss, &cont_bss);
}
mem_start = (intptr_t)&_nimble_bss_start;
mem_end = (intptr_t)&_nimble_bss_end;
if (mem_start != mem_end) {
ESP_LOGD(BTDM_LOG_TAG, "Release NimBLE BSS [0x%08x] - [0x%08x]", mem_start, mem_end);
ESP_ERROR_CHECK(try_heap_caps_add_region(mem_start, mem_end));
}
mem_start = (intptr_t)&_nimble_data_start;
mem_end = (intptr_t)&_nimble_data_end;
if (mem_start != mem_end) {
ESP_LOGD(BTDM_LOG_TAG, "Release NimBLE Data [0x%08x] - [0x%08x]", mem_start, mem_end);
ESP_ERROR_CHECK(try_heap_caps_add_region(mem_start, mem_end));
/* Do the same thing with the Bluetooth data section */
if (ret == ESP_OK) {
ret = esp_bt_mem_release_areas(&data, &cont_data);
}
}
return ESP_OK;
return ret;
}
#if CONFIG_BTDM_CTRL_HLI
@@ -1473,6 +1550,7 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
btdm_controller_mem_init();
periph_module_enable(PERIPH_BT_MODULE);
periph_module_reset(PERIPH_BT_MODULE);
#ifdef CONFIG_PM_ENABLE
s_btdm_allow_light_sleep = false;
@@ -1526,6 +1604,12 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
btdm_controller_set_sleep_mode(BTDM_MODEM_SLEEP_MODE_NONE);
#endif
#if CONFIG_BTDM_CTRL_HCI_UART_FLOW_CTRL_EN
sdk_config_set_uart_flow_ctrl_enable(true);
#else
sdk_config_set_uart_flow_ctrl_enable(false);
#endif
#ifdef CONFIG_PM_ENABLE
if (!s_btdm_allow_light_sleep) {
if ((err = esp_pm_lock_create(ESP_PM_NO_LIGHT_SLEEP, 0, "btLS", &s_light_sleep_pm_lock)) != ESP_OK) {
@@ -1553,7 +1637,10 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
btdm_cfg_mask = btdm_config_mask_load();
if (btdm_controller_init(btdm_cfg_mask, cfg) != 0) {
err = btdm_controller_init(btdm_cfg_mask, cfg);
if (err != 0) {
ESP_LOGE(BTDM_LOG_TAG, "%s %d\n",__func__,err);
err = ESP_ERR_NO_MEM;
goto error;
}
@@ -1646,6 +1733,22 @@ static void bt_shutdown(void)
return;
}
static void patch_apply(void)
{
config_btdm_funcs_reset();
#ifndef CONFIG_BTDM_CTRL_MODE_BLE_ONLY
config_bt_funcs_reset();
#endif
#ifndef CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY
config_ble_funcs_reset();
#endif
#ifdef CONFIG_BTDM_BLE_VS_QA_SUPPORT
config_ble_vs_qa_funcs_reset();
#endif
}
esp_err_t esp_bt_controller_enable(esp_bt_mode_t mode)
{
@@ -1677,7 +1780,9 @@ esp_err_t esp_bt_controller_enable(esp_bt_mode_t mode)
btdm_controller_enable_sleep(true);
}
// inititalize bluetooth baseband
sdk_config_set_bt_pll_track_enable(true);
// initialize bluetooth baseband
btdm_check_and_init_bb();
ret = btdm_controller_enable(mode);
@@ -1829,7 +1934,7 @@ esp_err_t esp_bredr_sco_datapath_set(esp_sco_data_path_t data_path)
return ESP_OK;
}
esp_err_t esp_ble_scan_dupilcate_list_flush(void)
esp_err_t esp_ble_scan_duplicate_list_flush(void)
{
if (btdm_controller_status != ESP_BT_CONTROLLER_STATUS_ENABLED) {
return ESP_ERR_INVALID_STATE;
@@ -1838,9 +1943,14 @@ esp_err_t esp_ble_scan_dupilcate_list_flush(void)
return ESP_OK;
}
esp_err_t esp_ble_scan_dupilcate_list_flush(void)
{
return esp_ble_scan_duplicate_list_flush();
}
/**
* This function re-write controller's function,
* As coredump can not show paramerters in function which is in a .a file.
* As coredump can not show parameters in function which is in a .a file.
*
* After coredump fixing this issue, just delete this function.
*/

View File

@@ -2,15 +2,15 @@
menu "HCI Config"
choice BT_LE_HCI_INTERFACE
prompt "Select HCI interface"
prompt "HCI mode"
default BT_LE_HCI_INTERFACE_USE_RAM
config BT_LE_HCI_INTERFACE_USE_RAM
bool "ram"
bool "VHCI"
help
Use RAM as HCI interface
config BT_LE_HCI_INTERFACE_USE_UART
bool "uart"
bool "UART(H4)"
help
Use UART as HCI interface
endchoice
@@ -73,12 +73,26 @@ menu "HCI Config"
UART_PARITY_ODD
endchoice
config BT_LE_HCI_UART_TASK_STACK_SIZE
int "HCI uart task stack size"
depends on BT_LE_HCI_INTERFACE_USE_UART
default 1000
config BT_LE_HCI_UART_RX_BUFFER_SIZE
int "The size of rx ring buffer memory"
depends on !BT_LE_HCI_INTERFACE_USE_RAM
default 512
help
Set the size of uart task stack
The size of rx ring buffer memory
config BT_LE_HCI_UART_TX_BUFFER_SIZE
int "The size of tx ring buffer memory"
depends on !BT_LE_HCI_INTERFACE_USE_RAM
default 256
help
The size of tx ring buffer memory
config BT_LE_HCI_TRANS_TASK_STACK_SIZE
int "HCI transport task stack size"
depends on !BT_LE_HCI_INTERFACE_USE_RAM
default 1024
help
This configures stack size of hci transport task
endmenu
config BT_LE_CONTROLLER_NPL_OS_PORTING_SUPPORT
@@ -95,86 +109,100 @@ menuconfig BT_LE_50_FEATURE_SUPPORT
help
Enable BLE 5 feature
config BT_LE_LL_CFG_FEAT_LE_2M_PHY
bool "Enable 2M Phy"
depends on BT_LE_50_FEATURE_SUPPORT
default y
help
Enable 2M-PHY
config BT_LE_LL_CFG_FEAT_LE_CODED_PHY
bool "Enable coded Phy"
depends on BT_LE_50_FEATURE_SUPPORT
default y
help
Enable coded-PHY
config BT_LE_EXT_ADV
bool "Enable extended advertising"
depends on BT_LE_50_FEATURE_SUPPORT
default y
help
Enable this option to do extended advertising. Extended advertising
will be supported from BLE 5.0 onwards.
if BT_LE_EXT_ADV
config BT_LE_MAX_EXT_ADV_INSTANCES
int "Maximum number of extended advertising instances."
range 0 4
default 1
depends on BT_LE_EXT_ADV
help
Change this option to set maximum number of extended advertising
instances. Minimum there is always one instance of
advertising. Enter how many more advertising instances you
want.
Each extended advertising instance will take about 0.5k DRAM.
config BT_LE_EXT_ADV_MAX_SIZE
int "Maximum length of the advertising data."
range 0 1650
default 1650
depends on BT_LE_EXT_ADV
help
Defines the length of the extended adv data. The value should not
exceed 1650.
config BT_LE_ENABLE_PERIODIC_ADV
bool "Enable periodic advertisement."
default y
depends on BT_LE_EXT_ADV
help
Enable this option to start periodic advertisement.
config BT_LE_PERIODIC_ADV_SYNC_TRANSFER
bool "Enable Transer Sync Events"
depends on BT_LE_ENABLE_PERIODIC_ADV
if BT_LE_50_FEATURE_SUPPORT
config BT_LE_LL_CFG_FEAT_LE_2M_PHY
bool "Enable 2M Phy"
depends on BT_LE_50_FEATURE_SUPPORT
default y
help
This enables controller transfer periodic sync events to host
Enable 2M-PHY
config BT_LE_LL_CFG_FEAT_LE_CODED_PHY
bool "Enable coded Phy"
depends on BT_LE_50_FEATURE_SUPPORT
default y
help
Enable coded-PHY
config BT_LE_EXT_ADV
bool "Enable extended advertising"
depends on BT_LE_50_FEATURE_SUPPORT
default y
help
Enable this option to do extended advertising. Extended advertising
will be supported from BLE 5.0 onwards.
if BT_LE_EXT_ADV
config BT_LE_MAX_EXT_ADV_INSTANCES
int "Maximum number of extended advertising instances."
range 0 4
default 1
depends on BT_LE_EXT_ADV
help
Change this option to set maximum number of extended advertising
instances. Minimum there is always one instance of
advertising. Enter how many more advertising instances you
want.
Each extended advertising instance will take about 0.5k DRAM.
config BT_LE_EXT_ADV_MAX_SIZE
int "Maximum length of the advertising data."
range 0 1650
default 1650
depends on BT_LE_EXT_ADV
help
Defines the length of the extended adv data. The value should not
exceed 1650.
config BT_LE_ENABLE_PERIODIC_ADV
bool "Enable periodic advertisement."
default y
depends on BT_LE_EXT_ADV
help
Enable this option to start periodic advertisement.
config BT_LE_PERIODIC_ADV_SYNC_TRANSFER
bool "Enable Transfer Sync Events"
depends on BT_LE_ENABLE_PERIODIC_ADV
default y
help
This enables controller transfer periodic sync events to host
endif
config BT_LE_EXT_SCAN
bool "Enable extended scanning"
depends on BT_LE_50_FEATURE_SUPPORT && BT_LE_ROLE_OBSERVER_ENABLE
default y
help
Enable this option to do extended scanning.
config BT_LE_ENABLE_PERIODIC_SYNC
bool "Enable periodic sync"
default y
depends on BT_LE_EXT_SCAN
help
Enable this option to receive periodic advertisement.
if BT_LE_ENABLE_PERIODIC_SYNC
config BT_LE_MAX_PERIODIC_SYNCS
int "Maximum number of periodic advertising syncs"
range 0 3
default 1 if BT_LE_ENABLE_PERIODIC_ADV
default 0
help
Set this option to set the upper limit for number of periodic sync
connections. This should be less than maximum connections allowed by
controller.
config BT_LE_MAX_PERIODIC_ADVERTISER_LIST
int "Maximum number of periodic advertiser list"
range 1 5
default 5
help
Set this option to set the upper limit for number of periodic advertiser list.
endif
endif
config BT_LE_MAX_PERIODIC_SYNCS
int "Maximum number of periodic advertising syncs"
depends on BT_LE_50_FEATURE_SUPPORT && !BT_NIMBLE_ENABLED
range 0 3
default 1 if BT_LE_ENABLE_PERIODIC_ADV
default 0
help
Set this option to set the upper limit for number of periodic sync
connections. This should be less than maximum connections allowed by
controller.
config BT_LE_MAX_PERIODIC_ADVERTISER_LIST
int "Maximum number of periodic advertiser list"
depends on BT_LE_50_FEATURE_SUPPORT && !BT_NIMBLE_ENABLED
range 1 5
default 5
help
Set this option to set the upper limit for number of periodic advertiser list.
menu "Memory Settings"
depends on !BT_NIMBLE_ENABLED
@@ -253,7 +281,7 @@ config BT_LE_CONTROLLER_TASK_STACK_SIZE
help
This configures stack size of NimBLE controller task
config BT_LE_CONTROLLER_LOG_ENABLED
menuconfig BT_LE_CONTROLLER_LOG_ENABLED
bool "Controller log enable"
default n
help
@@ -264,21 +292,60 @@ config BT_LE_CONTROLLER_LOG_CTRL_ENABLED
depends on BT_LE_CONTROLLER_LOG_ENABLED
default y
help
Enable controller log module
Enable controller log module
config BT_LE_CONTROLLER_LOG_HCI_ENABLED
bool "enable HCI log module"
depends on BT_LE_CONTROLLER_LOG_ENABLED
default y
help
Enable hci log module
Enable hci log module
config BT_LE_CONTROLLER_LOG_DUMP_ONLY
bool "Controller log dump mode only"
depends on BT_LE_CONTROLLER_LOG_ENABLED
default y
help
Only operate in dump mode
Only operate in dump mode
config BT_LE_CONTROLLER_LOG_STORAGE_ENABLE
bool "Store ble controller logs to flash(Experimental)"
depends on !BT_LE_CONTROLLER_LOG_DUMP_ONLY
depends on BT_LE_CONTROLLER_LOG_ENABLED
default n
help
Store ble controller logs to flash memory.
config BT_LE_CONTROLLER_LOG_PARTITION_SIZE
int "size of ble controller log partition(Multiples of 4K)"
depends on BT_LE_CONTROLLER_LOG_STORAGE_ENABLE
default 65536
help
The size of ble controller log partition shall be a multiples of 4K.
The name of log partition shall be "bt_ctrl_log".
The partition type shall be ESP_PARTITION_TYPE_DATA.
The partition sub_type shall be ESP_PARTITION_SUBTYPE_ANY.
config BT_LE_LOG_CTRL_BUF1_SIZE
int "size of the first BLE controller LOG buffer"
depends on BT_LE_CONTROLLER_LOG_ENABLED
default 4096
help
Configure the size of the first BLE controller LOG buffer.
config BT_LE_LOG_CTRL_BUF2_SIZE
int "size of the second BLE controller LOG buffer"
depends on BT_LE_CONTROLLER_LOG_ENABLED
default 1024
help
Configure the size of the second BLE controller LOG buffer.
config BT_LE_LOG_HCI_BUF_SIZE
int "size of the BLE HCI LOG buffer"
depends on BT_LE_CONTROLLER_LOG_ENABLED
default 4096
help
Configure the size of the BLE HCI LOG buffer.
config BT_LE_LL_RESOLV_LIST_SIZE
int "BLE LL Resolving list size"
@@ -328,7 +395,6 @@ config BT_LE_CRYPTO_STACK_MBEDTLS
bool "Override TinyCrypt with mbedTLS for crypto computations"
default y
depends on !BT_NIMBLE_ENABLED
select MBEDTLS_ECP_RESTARTABLE
select MBEDTLS_CMAC_C
help
Enable this option to choose mbedTLS instead of TinyCrypt for crypto
@@ -372,7 +438,7 @@ config BT_LE_MAX_CONNECTIONS
choice BT_LE_COEX_PHY_CODED_TX_RX_TLIM
prompt "Coexistence: limit on MAX Tx/Rx time for coded-PHY connection"
default BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS
depends on !BT_NIMBLE_ENABLED
depends on ESP_COEX_SW_COEXIST_ENABLE
help
When using PHY-Coded in BLE connection, limitation on max tx/rx time can be applied to
better avoid dramatic performance deterioration of Wi-Fi.
@@ -390,7 +456,7 @@ endchoice
config BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF
int
depends on !BT_NIMBLE_ENABLED
default 0 if !ESP_COEX_SW_COEXIST_ENABLE
default 1 if BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EN
default 0 if BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS
@@ -400,6 +466,26 @@ config BT_LE_SLEEP_ENABLE
help
Enable BLE sleep
choice BT_LE_LP_CLK_SRC
prompt "BLE low power clock source"
default BT_LE_LP_CLK_SRC_MAIN_XTAL
config BT_LE_LP_CLK_SRC_MAIN_XTAL
bool "Use main XTAL as RTC clock source"
help
User main XTAL as RTC clock source.
This option is recommended if external 32.768k XTAL is not available.
Using the external 32.768 kHz XTAL will have lower current consumption
in light sleep compared to using the main XTAL.
config BT_LE_LP_CLK_SRC_DEFAULT
bool "Use system RTC slow clock source"
help
Use the same slow clock source as system RTC
Using any clock source other than external 32.768 kHz XTAL at pin0 supports only
legacy ADV and SCAN due to low clock accuracy.
endchoice
config BT_LE_USE_ESP_TIMER
bool "Use Esp Timer for callout"
depends on !BT_NIMBLE_ENABLED
@@ -409,6 +495,7 @@ config BT_LE_USE_ESP_TIMER
config BT_CTRL_BLE_ADV_REPORT_FLOW_CTRL_SUPP
bool "BLE adv report flow control supported"
depends on BT_LE_ROLE_OBSERVER_ENABLE
default y
help
The function is mainly used to enable flow control for advertising reports. When it is enabled,
@@ -442,3 +529,140 @@ config BT_CTRL_BLE_ADV_REPORT_DISCARD_THRSHOLD
config BT_LE_RELEASE_IRAM_SUPPORTED
bool
default y
config BT_LE_TX_CCA_ENABLED
bool "Enable TX CCA feature"
default n
help
Enable CCA feature to cancel sending the packet if the signal power is stronger than CCA threshold.
config BT_LE_DTM_ENABLED
bool "Enable Direct Test Mode (DTM) feature"
default n
config BT_LE_CCA_RSSI_THRESH
int "CCA RSSI threshold value"
depends on BT_LE_TX_CCA_ENABLED
range 20 100
default 20
help
Power threshold of CCA in unit of -1 dBm.
config BT_LE_FEAT_LL_ENCRYPTION
bool "Enable controller ACL encryption"
default y
config BT_LE_ROLE_CENTROL_ENABLE
bool "Enable BLE Centrol role function"
depends on !BT_NIMBLE_ENABLED
default y
help
Enable centrol role function.
config BT_LE_ROLE_PERIPHERAL_ENABLE
bool "Enable BLE Peripheral role function"
depends on !BT_NIMBLE_ENABLED
default y
help
Enable Peripheral role function.
config BT_LE_ROLE_BROADCASTER_ENABLE
bool "Enable BLE Broadcaster role function"
depends on !BT_NIMBLE_ENABLED
default y
help
Enable broadcaster role function.
config BT_LE_ROLE_OBSERVER_ENABLE
bool "Enable BLE Observer role function"
depends on !BT_NIMBLE_ENABLED
default y
help
Enable observer role function.
choice BT_LE_DFT_TX_POWER_LEVEL_DBM
prompt "BLE default Tx power level(dBm)"
default BT_LE_DFT_TX_POWER_LEVEL_P9
help
Specify default Tx power level(dBm).
config BT_LE_DFT_TX_POWER_LEVEL_N24
bool "-24dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N21
bool "-21dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N18
bool "-18dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N15
bool "-15dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N12
bool "-12dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N9
bool "-9dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N6
bool "-6dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N3
bool "-3dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N0
bool "0dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P3
bool "+3dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P6
bool "+6dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P9
bool "+9dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P12
bool "+12dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P15
bool "+15dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P18
bool "+18dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P20
bool "+20dBm"
endchoice
config BT_LE_DFT_TX_POWER_LEVEL_DBM_EFF
int
default -24 if BT_LE_DFT_TX_POWER_LEVEL_N24
default -21 if BT_LE_DFT_TX_POWER_LEVEL_N21
default -18 if BT_LE_DFT_TX_POWER_LEVEL_N18
default -15 if BT_LE_DFT_TX_POWER_LEVEL_N15
default -12 if BT_LE_DFT_TX_POWER_LEVEL_N12
default -9 if BT_LE_DFT_TX_POWER_LEVEL_N9
default -6 if BT_LE_DFT_TX_POWER_LEVEL_N6
default -3 if BT_LE_DFT_TX_POWER_LEVEL_N3
default 0 if BT_LE_DFT_TX_POWER_LEVEL_N0
default 3 if BT_LE_DFT_TX_POWER_LEVEL_P3
default 6 if BT_LE_DFT_TX_POWER_LEVEL_P6
default 9 if BT_LE_DFT_TX_POWER_LEVEL_P9
default 12 if BT_LE_DFT_TX_POWER_LEVEL_P12
default 15 if BT_LE_DFT_TX_POWER_LEVEL_P15
default 18 if BT_LE_DFT_TX_POWER_LEVEL_P18
default 20 if BT_LE_DFT_TX_POWER_LEVEL_P20
default 0
config BT_CTRL_RUN_IN_FLASH_ONLY
bool "Reduce BLE IRAM usage (READ DOCS FIRST) (EXPERIMENTAL)"
default n
help
Move most IRAM into flash. This will increase the usage of flash and reduce ble performance.
Because the code is moved to the flash, the execution speed of the code is reduced.
To have a small impact on performance, you need to enable flash suspend (SPI_FLASH_AUTO_SUSPEND).
- Only one Tx-Rx can be performed in each connection interval. Therefore, reduce the connection interval
as much as possible to improve the throughput. If you want higher connection performance, you can
enable BT_LE_PLACE_CONN_RELATED_INTO_IRAM to put the connection-related code into iram.
- For HCI_LE_Extended_Create_Connection command, only 1M phy's connection parameters will be applied.
Other phys' will be ignored.
- For extended scanning, we may be unable to receive the extended adv with 300us MAFS.
config BT_LE_PLACE_CONN_RELATED_INTO_IRAM
bool "Place the connection-related code into IRAM"
depends on BT_CTRL_RUN_IN_FLASH_ONLY
default n
config BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS
bool "Enable enhanced Access Address check in CONNECT_IND"
default n
help
Enabling this option will add stricter verification of the Access Address in the CONNECT_IND PDU.
This improves security by ensuring that only connection requests with valid Access Addresses are accepted.
If disabled, only basic checks are applied, improving compatibility.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,320 @@
/*
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "esp_bt_cfg.h"
#define BLE_ERR_UNKNOWN_HCI_CMD (0x01)
/* LL Features */
#define BLE_LL_FEAT_LE_ENCRYPTION (0x0000000001)
#define BLE_LL_FEAT_CONN_PARM_REQ (0x0000000002)
#define BLE_LL_FEAT_EXTENDED_REJ (0x0000000004)
#define BLE_LL_FEAT_PERIPH_INIT (0x0000000008)
#define BLE_LL_FEAT_LE_PING (0x0000000010)
#define BLE_LL_FEAT_DATA_LEN_EXT (0x0000000020)
#define BLE_LL_FEAT_LL_PRIVACY (0x0000000040)
#define BLE_LL_FEAT_EXT_SCAN_FILT (0x0000000080)
#define BLE_LL_FEAT_LE_2M_PHY (0x0000000100)
#define BLE_LL_FEAT_STABLE_MOD_ID_TX (0x0000000200)
#define BLE_LL_FEAT_STABLE_MOD_ID_RX (0x0000000400)
#define BLE_LL_FEAT_LE_CODED_PHY (0x0000000800)
#define BLE_LL_FEAT_EXT_ADV (0x0000001000)
#define BLE_LL_FEAT_PERIODIC_ADV (0x0000002000)
#define BLE_LL_FEAT_CSA2 (0x0000004000)
#define BLE_LL_FEAT_LE_POWER_CLASS_1 (0x0000008000)
#define BLE_LL_FEAT_MIN_USED_CHAN (0x0000010000)
#define BLE_LL_FEAT_CTE_REQ (0x0000020000)
#define BLE_LL_FEAT_CTE_RSP (0x0000040000)
#define BLE_LL_FEAT_CTE_TX (0x0000080000)
#define BLE_LL_FEAT_CTE_RX (0x0000100000)
#define BLE_LL_FEAT_CTE_AOD (0x0000200000)
#define BLE_LL_FEAT_CTE_AOA (0x0000400000)
#define BLE_LL_FEAT_CTE_RECV (0x0000800000)
#define BLE_LL_FEAT_SYNC_TRANS_SEND (0x0001000000)
#define BLE_LL_FEAT_SYNC_TRANS_RECV (0x0002000000)
#define BLE_LL_FEAT_SCA_UPDATE (0x0004000000)
#define BLE_LL_FEAT_REM_PKEY (0x0008000000)
#define BLE_LL_FEAT_CIS_CENTRAL (0x0010000000)
#define BLE_LL_FEAT_CIS_PERIPH (0x0020000000)
#define BLE_LL_FEAT_ISO_BROADCASTER (0x0040000000)
#define BLE_LL_FEAT_SYNC_RECV (0x0080000000)
#define BLE_LL_FEAT_CIS_HOST (0x0100000000)
#define BLE_LL_FEAT_POWER_CTRL_REQ (0x0200000000)
#define BLE_LL_FEAT_POWER_CHANGE_IND (0x0400000000)
#define BLE_LL_FEAT_PATH_LOSS_MON (0x0800000000)
#define BLE_LL_FEAT_PERIODIC_ADV_ADI (0x1000000000)
#define BLE_LL_FEAT_CONN_SUBRATING (0x2000000000)
#define BLE_LL_FEAT_CONN_SUBRATING_HOST (0x4000000000)
#define BLE_LL_FEAT_CHANNEL_CLASS (0x8000000000)
uint64_t ble_ll_supported_features;
void
ble_ll_supported_features_init(void)
{
ble_ll_supported_features = BLE_LL_FEAT_EXTENDED_REJ;
ble_ll_supported_features |= BLE_LL_FEAT_DATA_LEN_EXT;
#if DEFAULT_BT_LE_ROLE_CENTROL || DEFAULT_BT_LE_ROLE_PERIPHERAL
ble_ll_supported_features |= BLE_LL_FEAT_PERIPH_INIT;
ble_ll_supported_features |= BLE_LL_FEAT_CONN_PARM_REQ;
#endif
#if CONFIG_BT_LE_FEAT_LL_ENCRYPTION
ble_ll_supported_features |= BLE_LL_FEAT_LE_ENCRYPTION;
#endif
ble_ll_supported_features |= (BLE_LL_FEAT_LL_PRIVACY | BLE_LL_FEAT_EXT_SCAN_FILT);
ble_ll_supported_features |= BLE_LL_FEAT_LE_PING;
#if DEFAULT_BT_LE_EXT_ADV
ble_ll_supported_features |= BLE_LL_FEAT_EXT_ADV;
#endif
#if DEFAULT_BT_LE_PERIODIC_ADV
ble_ll_supported_features |= BLE_LL_FEAT_PERIODIC_ADV;
ble_ll_supported_features |= BLE_LL_FEAT_PERIODIC_ADV_ADI;
#endif
#if DEFAULT_BT_LE_PAST
ble_ll_supported_features |= BLE_LL_FEAT_SYNC_TRANS_RECV;
ble_ll_supported_features |= BLE_LL_FEAT_SYNC_TRANS_SEND;
#endif
#if DEGAULT_BT_LE_2M_PHY
ble_ll_supported_features |= BLE_LL_FEAT_LE_2M_PHY;
#endif
#if DEGAULT_BT_LE_CODED_PHY
ble_ll_supported_features |= BLE_LL_FEAT_LE_CODED_PHY;
#endif
#if DEFAULT_BT_LE_50_FEATURE_SUPPORT
ble_ll_supported_features |= BLE_LL_FEAT_CSA2;
ble_ll_supported_features |= BLE_LL_FEAT_SCA_UPDATE;
ble_ll_supported_features |= BLE_LL_FEAT_REM_PKEY;
ble_ll_supported_features |= BLE_LL_FEAT_CHANNEL_CLASS;
#endif
}
#if !DEFAULT_BT_LE_ROLE_BROADCASTER
void r_ble_ll_adv_rpa_timeout(void) { }
void r_ble_lll_adv_halt(void) { }
void r_ble_lll_adv_event_rmvd_from_sched(void) { }
void r_ble_lll_adv_ext_event_rmvd_from_sched(void) { }
int r_ble_ll_adv_enabled(void) { return 0; }
int r_ble_ll_adv_can_chg_whitelist(void) { return 1; }
int r_ble_ll_adv_set_random_addr(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
void r_ble_ll_adv_reset(void) { }
void r_ble_ll_adv_init(void) { }
void r_ble_ll_adv_deinit(void) { }
int r_ble_ll_adv_env_init(void) { return 0; }
void r_ble_ll_adv_env_deinit(void) { }
int r_ble_lll_adv_rx_pkt_isr(void) { return -1; }
void r_ble_ll_adv_rx_pkt_in(void) { }
int r_ble_ll_adv_set_adv_params(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_adv_read_txpwr(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_hci_set_adv_data(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_hci_set_scan_rsp_data(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_hci_adv_set_enable(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_adv_vendor_hci_legacy_adv_clear(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_adv_set_data_related_addr_change(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif // !DEFAULT_BT_LE_ROLE_BROADCASTER
#if !DEFAULT_BT_LE_EXT_ADV
bool r_ble_ll_adv_ext_check_data_itvl(void) { return true; }
void r_ble_lll_adv_coex_dpc_update_on_aux_scheduled(void) { }
void r_ble_lll_adv_coex_dpc_calc_pti_update_itvl(void) { }
void r_ble_lll_adv_sec_done(void) { }
int r_ble_lll_adv_sec_schedule_next_aux(void) { return 0; }
void r_ble_lll_adv_sec_event_done(void) { }
int r_ble_lll_adv_secondary_tx_start_cb(void) { return 0; }
void r_ble_lll_adv_aux_schedule(void) { }
void r_ble_lll_adv_update_rsp_offset(void) { }
int r_ble_ll_adv_hci_set_random_addr(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_adv_ext_set_param(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_adv_ext_set_adv_data(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_adv_ext_set_scan_rsp(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_adv_ext_set_enable(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_adv_rd_max_adv_data_len(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_adv_rd_sup_adv_sets(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_adv_remove(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_adv_clear_all(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif //!DEFAULT_BT_LE_EXT_ADV
#if !DEFAULT_BT_LE_PERIODIC_ADV
void r_ble_ll_adv_sm_stop_periodic(void) { }
void r_ble_lll_adv_periodic_event_done(void) { }
int r_ble_lll_adv_sync_tx_start_cb(void) { return 0; }
void r_ble_lll_adv_sync_tx_end(void) { }
int r_ble_lll_adv_periodic_start(void) { return 0; }
void r_ble_lll_adv_periodic_rmvd_from_sched(void) { }
int r_ble_ll_adv_periodic_set_param(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_adv_periodic_set_data(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_adv_periodic_enable(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif //!DEFAULT_BT_LE_PERIODIC_ADV
#if !DEFAULT_BT_LE_ROLE_OBSERVER
void r_ble_lll_scan_halt(void) { }
void r_ble_ll_scan_end_adv_evt(void) { }
void r_ble_ll_scan_rx_pkt_in(void) { }
int r_ble_lll_scan_rx_pkt_isr(void) { return -1; }
int r_ble_ll_scan_env_init(void) { return 0; }
void r_ble_ll_scan_env_deinit(void) { }
void r_ble_ll_scan_init(void) { }
void r_ble_ll_scan_deinit(void) { }
void r_ble_ll_scan_reset(void) { }
int r_ble_ll_scan_can_chg_whitelist(void) { return 1; }
int r_ble_ll_scan_enabled(void) { return false; }
int r_ble_lll_scan_chk_resume(void) { return -1; }
int r_ble_ll_scan_set_scan_params(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_hci_scan_set_enable(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_scan_hci_update_adv_report_flow_ctrl(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_scan_hci_set_adv_report_flow_ctrl(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif //!DEFAULT_BT_LE_ROLE_OBSERVER
#if !DEFAULT_BT_LE_EXT_SCAN
void r_ble_lll_scan_duration_period_timers_restart(void) { }
void r_ble_lll_scan_duration_period_timers_stop(void) { }
int r_ble_ll_hci_send_legacy_ext_adv_report(void) { return -1; }
void r_ble_lll_sched_rmv_elem_type(void) { }
void r_ble_ll_scan_send_truncated(void) { }
void r_ble_ll_scan_aux_data_unref(void) { }
void r_ble_lll_scan_sched_remove(void) { }
void r_ble_lll_scan_aux_data_free(void) { }
void r_ble_lll_aux_scan_drop(void) { }
int r_ble_lll_sched_aux_scan(void) { return -1; }
int r_ble_lll_scan_rx_isr_on_aux(void) { return -1; }
void r_ble_lll_scan_period_timer_cb(void) { }
void r_ble_lll_scan_duration_timer_cb(void) { }
void r_ble_ll_scan_rx_pkt_in_on_aux(void) { }
int r_ble_ll_set_ext_scan_params(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_hci_ext_scan_set_enable(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif //!DEFAULT_BT_LE_EXT_SCAN
#if !DEFAULT_BT_LE_ROLE_CENTROL
void r_ble_ll_init_rx_pkt_in(void) { }
int r_ble_lll_init_rx_pkt_isr(void) { return -1; }
int r_ble_ll_conn_create(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_conn_create_cancel(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif //!DEFAULT_BT_LE_ROLE_CENTROL
#if !DEFAULT_BT_LE_ROLE_CENTROL || !DEFAULT_BT_LE_EXT_SCAN
int r_ble_ll_ext_conn_create(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif //!DEFAULT_BT_LE_ROLE_CENTROL || !DEFAULT_BT_LE_EXT_SCAN
#if !DEFAULT_BT_LE_ROLE_PERIPHERAL
int r_ble_ll_conn_slave_start(void) { return 0; }
#endif //!DEFAULT_BT_LE_ROLE_PERIPHERAL
#if !DEFAULT_BT_LE_ROLE_CENTROL && !DEFAULT_BT_LE_ROLE_PERIPHERAL
void r_ble_ll_conn_rx_data_pdu(void) { }
int r_ble_lll_conn_rx_pkt_isr(void) { return -1; }
int r_ble_ll_hci_disconnect(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_conn_hci_rd_rem_ver_cmd(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_conn_hci_update(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_conn_hci_rd_chan_map(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_conn_hci_read_rem_features(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_conn_hci_param_rr(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_conn_hci_param_nrr(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif //!DEFAULT_BT_LE_ROLE_CENTROL && !DEFAULT_BT_LE_ROLE_PERIPHERAL
#if !CONFIG_BT_LE_FEAT_LL_ENCRYPTION
int r_ble_ll_conn_chk_phy_upd_start(void) { return -1; }
void r_ble_ll_hci_ev_encrypt_chg(void) { }
int r_ble_ll_ctrl_enc_allowed_pdu_rx(void) { return 1; }
int r_ble_ll_ctrl_enc_allowed_pdu_tx(void) { return 1; }
uint8_t r_ble_ll_ctrl_rx_start_enc_rsp(void) { return 0x07; }
uint8_t r_ble_ll_ctrl_rx_pause_enc_rsp(void) { return 0x07; }
int r_ble_ll_hci_le_encrypt(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif //!CONFIG_BT_LE_FEAT_LL_ENCRYPTION
#if !DEFAULT_BT_LE_ROLE_PERIPHERAL || !CONFIG_BT_LE_FEAT_LL_ENCRYPTION
uint8_t r_ble_ll_ctrl_rx_pause_enc_req(void) { return 0x07; }
uint8_t r_ble_ll_ctrl_rx_enc_req(void) { return 0x07; }
int r_ble_ll_conn_hci_le_ltk_reply(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_conn_hci_le_ltk_neg_reply(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif //!DEFAULT_BT_LE_ROLE_PERIPHERAL || !CONFIG_BT_LE_FEAT_LL_ENCRYPTION
#if !DEFAULT_BT_LE_ROLE_CENTROL || !CONFIG_BT_LE_FEAT_LL_ENCRYPTION
uint8_t r_ble_ll_ctrl_rx_start_enc_req(void) { return 0x07; }
void r_ble_ll_ctrl_rx_enc_rsp(void) { }
void r_ble_ll_ctrl_enc_req_make(void) { }
int r_ble_ll_conn_hci_le_start_encrypt(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif //!DEFAULT_BT_LE_ROLE_CENTROL || !CONFIG_BT_LE_FEAT_LL_ENCRYPTION
#if !DEGAULT_BT_LE_2M_PHY && !DEGAULT_BT_LE_CODED_PHY
void r_ble_ll_ctrl_phy_update_proc_complete(void) { }
void r_ble_ll_ctrl_phy_update_cancel(void) { }
uint8_t r_ble_ll_ctrl_rx_phy_update_ind(void) { return 0x07; }
uint8_t r_ble_ll_ctrl_rx_phy_rsp(void) { return 0x07; }
uint8_t r_ble_ll_ctrl_rx_phy_req(void) { return 0x07; }
void r_ble_ll_ctrl_phy_req_rsp_make(void) { }
#endif //DEGAULT_BT_LE_2M_PHY && DEGAULT_BT_LE_CODED_PHY
#if !DEFAULT_BT_LE_PERIODIC_SYNC
void r_ble_lll_sync_halt(void) { }
void r_ble_lll_sync_rmvd_from_sched(void) { }
int r_ble_ll_sync_list_search(void) { return -1; }
uint8_t r_ble_ll_ctrl_rx_periodic_sync_ind(void) { return 0x07; }
void r_ble_ll_sync_rx_pkt_in(void) { }
int r_ble_lll_sync_rx_pkt_isr(void) { return -1; }
int r_ble_ll_sync_env_init(void) { return 0; }
void r_ble_ll_sync_env_deinit(void) { }
void r_ble_ll_sync_init(void) { }
void r_ble_ll_sync_deinit(void) { }
void r_ble_ll_sync_reset(void) { }
bool r_ble_ll_sync_enabled(void) { return false; }
int r_ble_ll_sync_create(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_sync_cancel(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_sync_terminate(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_sync_list_add(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_sync_list_remove(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_sync_list_clear(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_sync_list_size(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_sync_receive_enable(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif //!DEFAULT_BT_LE_PERIODIC_SYNC
#if !DEFAULT_BT_LE_PAST || !DEFAULT_BT_LE_PERIODIC_ADV
int r_ble_ll_adv_periodic_set_info_transfer(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif //!DEFAULT_BT_LE_PAST || !DEFAULT_BT_LE_PERIODIC_ADV
#if !DEFAULT_BT_LE_PAST || !DEFAULT_BT_LE_PERIODIC_SYNC
int r_ble_ll_sync_transfer(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_set_sync_transfer_params(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_set_default_sync_transfer_params(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif //!DEFAULT_BT_LE_PAST || !DEFAULT_BT_LE_PERIODIC_SYNC
#if !DEFAULT_BT_LE_50_FEATURE_SUPPORT
uint8_t r_ble_ll_ctrl_rx_channel_reporting_ind(void) { return 0x07; }
uint8_t r_ble_ll_ctrl_rx_channel_status_ind(void) { return 0x07; }
uint8_t r_ble_ll_ctrl_rx_sca_req(void) { return 0x07; }
uint8_t r_ble_ll_ctrl_rx_sca_rsp(void) { return 0x07; }
void r_ble_ll_ctrl_channel_class_reporting_make(void) { }
void r_ble_ll_ctrl_channel_class_enable_make(void) { }
void r_ble_ll_ctrl_sca_req_rsp_make(void) { }
int r_ble_ll_modify_sca(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_conn_req_peer_sca(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif //!DEFAULT_BT_LE_50_FEATURE_SUPPORT
#if !DEFAULT_BT_LE_50_FEATURE_SUPPORT
int r_ble_ll_conn_hci_le_rd_phy(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_hci_le_set_def_phy(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_ll_conn_hci_le_set_phy(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif //!DEFAULT_BT_LE_50_FEATURE_SUPPORT
#if !CONFIG_BT_LE_DTM_ENABLED
void r_ble_lll_dtm_rx_pkt_in(void) { }
int r_ble_lll_dtm_rx_isr_end(void) { return -1; }
void r_ble_lll_dtm_reset(void) { }
void r_ble_lll_dtm_init(void) { }
void r_ble_lll_dtm_deinit(void) { }
int r_ble_lll_dtm_env_init(void) { return 0; }
void r_ble_lll_dtm_env_deinit(void) { }
int r_ble_lll_hci_dtm_tx_test(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_lll_hci_dtm_rx_test(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_lll_dtm_end_test(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_lll_hci_dtm_rx_test_v2(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
int r_ble_lll_hci_dtm_tx_test_v2(void) { return BLE_ERR_UNKNOWN_HCI_CMD; }
#endif //!CONFIG_BT_LE_DTM_ENABLED

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
*/
@@ -28,7 +28,6 @@ extern "C" {
#else
#define BLE_LL_SCAN_PHY_NUMBER_N (1)
#endif
#define DEFAULT_BT_LE_MAX_PERIODIC_ADVERTISER_LIST MYNEWT_VAL(BLE_MAX_PERIODIC_ADVERTISER_LIST)
#define DEFAULT_BT_LE_MAX_PERIODIC_SYNCS MYNEWT_VAL(BLE_MAX_PERIODIC_SYNCS)
#define DEFAULT_BT_LE_MAX_CONNECTIONS MYNEWT_VAL(BLE_MAX_CONNECTIONS)
@@ -40,8 +39,24 @@ extern "C" {
#define DEFAULT_BT_NIMBLE_WHITELIST_SIZE MYNEWT_VAL(BLE_LL_WHITELIST_SIZE)
#define DEFAULT_BT_LE_HCI_EVT_HI_BUF_COUNT MYNEWT_VAL(BLE_TRANSPORT_EVT_COUNT)
#define DEFAULT_BT_LE_HCI_EVT_LO_BUF_COUNT MYNEWT_VAL(BLE_TRANSPORT_EVT_DISCARDABLE_COUNT)
#define DEFAULT_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF CONFIG_BT_NIMBLE_COEX_PHY_CODED_TX_RX_TLIM_EFF
#if defined(CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT)
#define DEFAULT_BT_LE_50_FEATURE_SUPPORT (1)
#else
#define DEFAULT_BT_LE_50_FEATURE_SUPPORT (0)
#endif
#define DEGAULT_BT_LE_2M_PHY (CONFIG_BT_NIMBLE_LL_CFG_FEAT_LE_2M_PHY)
#define DEGAULT_BT_LE_CODED_PHY (CONFIG_BT_NIMBLE_LL_CFG_FEAT_LE_CODED_PHY)
#define DEFAULT_BT_LE_EXT_ADV (CONFIG_BT_NIMBLE_EXT_ADV)
#define DEFAULT_BT_LE_PERIODIC_ADV (CONFIG_BT_NIMBLE_ENABLE_PERIODIC_ADV)
#define DEFAULT_BT_LE_EXT_SCAN (CONFIG_BT_NIMBLE_EXT_SCAN)
#define DEFAULT_BT_LE_PERIODIC_SYNC (CONFIG_BT_NIMBLE_ENABLE_PERIODIC_SYNC)
#define DEFAULT_BT_LE_PAST (CONFIG_BT_NIMBLE_PERIODIC_ADV_SYNC_TRANSFER)
#define DEFAULT_BT_LE_ROLE_OBSERVER MYNEWT_VAL(BLE_ROLE_OBSERVER)
#define DEFAULT_BT_LE_ROLE_CENTROL MYNEWT_VAL(BLE_ROLE_CENTRAL)
#define DEFAULT_BT_LE_ROLE_PERIPHERAL MYNEWT_VAL(BLE_ROLE_PERIPHERAL)
#define DEFAULT_BT_LE_ROLE_BROADCASTER MYNEWT_VAL(BLE_ROLE_BROADCASTER)
#else
#if CONFIG_BT_LE_LL_CFG_FEAT_LE_CODED_PHY
@@ -53,13 +68,13 @@ extern "C" {
#if defined(CONFIG_BT_LE_MAX_PERIODIC_ADVERTISER_LIST)
#define DEFAULT_BT_LE_MAX_PERIODIC_ADVERTISER_LIST (CONFIG_BT_LE_MAX_PERIODIC_ADVERTISER_LIST)
#else
#define DEFAULT_BT_LE_MAX_PERIODIC_ADVERTISER_LIST (5)
#define DEFAULT_BT_LE_MAX_PERIODIC_ADVERTISER_LIST (0)
#endif
#if defined(CONFIG_BT_LE_MAX_PERIODIC_SYNCS)
#define DEFAULT_BT_LE_MAX_PERIODIC_SYNCS (CONFIG_BT_LE_MAX_PERIODIC_SYNCS)
#else
#define DEFAULT_BT_LE_MAX_PERIODIC_SYNCS (1)
#define DEFAULT_BT_LE_MAX_PERIODIC_SYNCS (0)
#endif
#if defined(CONFIG_BT_LE_MAX_CONNECTIONS)
@@ -116,11 +131,100 @@ extern "C" {
#define DEFAULT_BT_LE_HCI_EVT_LO_BUF_COUNT (8)
#endif
#define DEFAULT_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF CONFIG_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF
#if defined(CONFIG_BT_LE_50_FEATURE_SUPPORT)
#define DEFAULT_BT_LE_50_FEATURE_SUPPORT (1)
#else
#define DEFAULT_BT_LE_50_FEATURE_SUPPORT (0)
#endif
#if defined(CONFIG_BT_LE_LL_CFG_FEAT_LE_2M_PHY)
#define DEGAULT_BT_LE_2M_PHY (CONFIG_BT_LE_LL_CFG_FEAT_LE_2M_PHY)
#else
#define DEGAULT_BT_LE_2M_PHY (0)
#endif
#if defined(CONFIG_BT_LE_LL_CFG_FEAT_LE_CODED_PHY)
#define DEGAULT_BT_LE_CODED_PHY (CONFIG_BT_LE_LL_CFG_FEAT_LE_CODED_PHY)
#else
#define DEGAULT_BT_LE_CODED_PHY (0)
#endif
#if defined(CONFIG_BT_LE_EXT_ADV)
#define DEFAULT_BT_LE_EXT_ADV (CONFIG_BT_LE_EXT_ADV)
#else
#define DEFAULT_BT_LE_EXT_ADV (0)
#endif
#if defined(CONFIG_BT_LE_ENABLE_PERIODIC_ADV)
#define DEFAULT_BT_LE_PERIODIC_ADV (CONFIG_BT_LE_ENABLE_PERIODIC_ADV)
#else
#define DEFAULT_BT_LE_PERIODIC_ADV (0)
#endif
#if defined(CONFIG_BT_LE_EXT_SCAN)
#define DEFAULT_BT_LE_EXT_SCAN (CONFIG_BT_LE_EXT_SCAN)
#else
#define DEFAULT_BT_LE_EXT_SCAN (0)
#endif
#if defined(CONFIG_BT_LE_ENABLE_PERIODIC_SYNC)
#define DEFAULT_BT_LE_PERIODIC_SYNC (CONFIG_BT_LE_ENABLE_PERIODIC_SYNC)
#else
#define DEFAULT_BT_LE_PERIODIC_SYNC (0)
#endif
#if defined(BT_LE_PERIODIC_ADV_SYNC_TRANSFER)
#define DEFAULT_BT_LE_PAST (BT_LE_PERIODIC_ADV_SYNC_TRANSFER)
#else
#define DEFAULT_BT_LE_PAST (0)
#endif
#if defined(CONFIG_BT_LE_ROLE_CENTROL_ENABLE)
#define DEFAULT_BT_LE_ROLE_CENTROL (1)
#else
#define DEFAULT_BT_LE_ROLE_CENTROL (0)
#endif
#if defined(CONFIG_BT_LE_ROLE_PERIPHERAL_ENABLE)
#define DEFAULT_BT_LE_ROLE_PERIPHERAL (1)
#else
#define DEFAULT_BT_LE_ROLE_PERIPHERAL (0)
#endif
#if defined(CONFIG_BT_LE_ROLE_BROADCASTER_ENABLE)
#define DEFAULT_BT_LE_ROLE_BROADCASTER (1)
#else
#define DEFAULT_BT_LE_ROLE_BROADCASTER (0)
#endif
#if defined(CONFIG_BT_LE_ROLE_OBSERVER_ENABLE)
#define DEFAULT_BT_LE_ROLE_OBSERVER (1)
#else
#define DEFAULT_BT_LE_ROLE_OBSERVER (0)
#endif
#if defined (CONFIG_BT_LE_HCI_UART_FLOWCTRL)
#define DEFAULT_BT_LE_HCI_UART_FLOW_CTRL (CONFIG_BT_LE_HCI_UART_FLOWCTRL)
#if DEFAULT_BT_LE_HCI_UART_FLOW_CTRL
#define DEFAULT_BT_LE_HCI_UART_CTS_PIN (CONFIG_BT_LE_HCI_UART_CTS_PIN)
#define DEFAULT_BT_LE_HCI_UART_RTS_PIN (CONFIG_BT_LE_HCI_UART_RTS_PIN)
#else
#define DEFAULT_BT_LE_HCI_UART_CTS_PIN (-1)
#define DEFAULT_BT_LE_HCI_UART_RTS_PIN (-1)
#endif
#else
#define DEFAULT_BT_LE_HCI_UART_FLOW_CTRL (0)
#define DEFAULT_BT_LE_HCI_UART_CTS_PIN (-1)
#define DEFAULT_BT_LE_HCI_UART_RTS_PIN (-1)
#endif
#endif
#define DEFAULT_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF CONFIG_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF
#ifdef CONFIG_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS
#define DEFAULT_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS (CONFIG_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS)
#else
#define DEFAULT_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS (0)
#endif
#ifdef CONFIG_BT_LE_HCI_INTERFACE_USE_UART
#define HCI_UART_EN CONFIG_BT_LE_HCI_INTERFACE_USE_UART
@@ -158,8 +262,6 @@ extern "C" {
#define DEFAULT_BT_LE_HCI_UART_DATA_BITS (UART_DATA_8_BITS)
#define DEFAULT_BT_LE_HCI_UART_STOP_BITS (UART_STOP_BITS_1)
#define DEFAULT_BT_LE_HCI_UART_PARITY (0)
#define DEFAULT_BT_LE_HCI_UART_TASK_STACK_SIZE (CONFIG_BT_LE_HCI_UART_TASK_STACK_SIZE)
#define DEFAULT_BT_LE_HCI_UART_FLOW_CTRL (0)
#else
#define DEFAULT_BT_LE_HCI_UART_TX_PIN (0)
#define DEFAULT_BT_LE_HCI_UART_RX_PIN (0)
@@ -168,8 +270,6 @@ extern "C" {
#define DEFAULT_BT_LE_HCI_UART_DATA_BITS (0)
#define DEFAULT_BT_LE_HCI_UART_STOP_BITS (0)
#define DEFAULT_BT_LE_HCI_UART_PARITY (0)
#define DEFAULT_BT_LE_HCI_UART_TASK_STACK_SIZE (0)
#define DEFAULT_BT_LE_HCI_UART_FLOW_CTRL (0)
#endif
/* Unchanged configuration */
@@ -198,7 +298,7 @@ extern "C" {
#define RTC_FREQ_N (32000) /* in Hz */
#endif // CONFIG_XTAL_FREQ_26
#define BLE_LL_TX_PWR_DBM_N (9)
#define BLE_LL_TX_PWR_DBM_N (CONFIG_BT_LE_DFT_TX_POWER_LEVEL_DBM_EFF)
#define RUN_BQB_TEST (0)

View File

@@ -23,7 +23,7 @@ config BT_CTRL_BLE_STATIC_ACL_TX_BUF_NB
default 0
help
BLE ACL buffer have two methods to be allocated. One is persistent allocating
(alloate when controller initialise, never free until controller de-initialise)
(allocate when controller initialise, never free until controller de-initialise)
another is dynamically allocating (allocate before TX and free after TX).
choice BT_CTRL_PINNED_TO_CORE_CHOICE
@@ -72,11 +72,11 @@ config BT_CTRL_HCI_TL
HCI mode as VHCI or UART(H4)
config BT_CTRL_ADV_DUP_FILT_MAX
int "The maxinum number of 5.0 extend duplicate scan filter"
int "The maximum number of 5.0 extend duplicate scan filter"
range 1 500
default 30
help
The maxinum number of suplicate scan filter
The maximum number of suplicate scan filter
choice BT_BLE_CCA_MODE
prompt "BLE CCA mode"
@@ -200,8 +200,8 @@ choice BT_CTRL_DFT_TX_POWER_LEVEL
bool "+15dBm"
config BT_CTRL_DFT_TX_POWER_LEVEL_P18
bool "+18dBm"
config BT_CTRL_DFT_TX_POWER_LEVEL_P21
bool "+21dBm"
config BT_CTRL_DFT_TX_POWER_LEVEL_P20
bool "+20dBm"
endchoice
config BT_CTRL_DFT_TX_POWER_LEVEL_EFF
@@ -221,11 +221,12 @@ config BT_CTRL_DFT_TX_POWER_LEVEL_EFF
default 12 if BT_CTRL_DFT_TX_POWER_LEVEL_P12
default 13 if BT_CTRL_DFT_TX_POWER_LEVEL_P15
default 14 if BT_CTRL_DFT_TX_POWER_LEVEL_P18
default 15 if BT_CTRL_DFT_TX_POWER_LEVEL_P21
default 15 if BT_CTRL_DFT_TX_POWER_LEVEL_P20
default 0
config BT_CTRL_BLE_ADV_REPORT_FLOW_CTRL_SUPP
bool "BLE adv report flow control supported"
depends on (!BT_CTRL_RUN_IN_FLASH_ONLY) || (BT_CTRL_RUN_IN_FLASH_ONLY && BT_CTRL_BLE_SCAN)
default y
help
The function is mainly used to enable flow control for advertising reports. When it is enabled,
@@ -346,7 +347,7 @@ config BT_CTRL_MESH_DUPL_SCAN_CACHE_SIZE
choice BT_CTRL_COEX_PHY_CODED_TX_RX_TLIM
prompt "Coexistence: limit on MAX Tx/Rx time for coded-PHY connection"
default BT_CTRL_COEX_PHY_CODED_TX_RX_TLIM_DIS
depends on ESP_WIFI_SW_COEXIST_ENABLE
depends on ESP_COEX_SW_COEXIST_ENABLE
help
When using PHY-Coded in BLE connection, limitation on max tx/rx time can be applied to
better avoid dramatic performance deterioration of Wi-Fi.
@@ -364,7 +365,7 @@ endchoice
config BT_CTRL_COEX_PHY_CODED_TX_RX_TLIM_EFF
int
default 0 if (!ESP_WIFI_SW_COEXIST_ENABLE)
default 0 if !ESP_COEX_SW_COEXIST_ENABLE
default 1 if BT_CTRL_COEX_PHY_CODED_TX_RX_TLIM_EN
default 0 if BT_CTRL_COEX_PHY_CODED_TX_RX_TLIM_DIS
@@ -402,10 +403,10 @@ menu "MODEM SLEEP Options"
bluetooth can work under light sleep enabled. Main crystal has a relatively better performance
than other bluetooth low power clock sources.
config BT_CTRL_LPCLK_SEL_EXT_32K_XTAL
bool "External 32kHz crystal"
depends on RTC_CLK_SRC_EXT_CRYS
bool "External 32kHz crystal/oscillator"
depends on RTC_CLK_SRC_EXT_CRYS || RTC_CLK_SRC_EXT_OSC
help
External 32kHz crystal has a nominal frequency of 32.768kHz and provides good frequency
External 32kHz crystal/oscillator has a nominal frequency of 32.768kHz and provides good frequency
stability. If used as Bluetooth low power clock, External 32kHz can support Bluetooth
modem sleep to be used with both DFS and light sleep.
@@ -467,3 +468,85 @@ config BT_CTRL_SCAN_BACKOFF_UPPERLIMITMAX
Disable active scan backoff. The bluetooth spec requires that scanners should run a backoff procedure to
minimize collision of scan request PDUs from nultiple scanners. If scan backoff is disabled, in active
scanning, scan request PDU will be sent every time when HW receives scannable ADV PDU.
config BT_BLE_ADV_DATA_LENGTH_ZERO_AUX
bool "Enable aux packet when ext adv data length is zero"
default n
help
When this option is enabled, auxiliary packets will be present in the events of
'Non-Connectable and Non-Scannable' regardless of whether the advertising length is 0.
If this option is not enabled, auxiliary packets will only be present when the advertising length is not 0.
config BT_CTRL_CHAN_ASS_EN
bool "Enable channel assessment"
default y
help
If this option is enabled, The Controller will records the communication quality
for each channel and then start a timer to check and update the channel map every 4 seconds.
config BT_CTRL_LE_PING_EN
bool "Enable LE Ping procedure"
default y
help
If this option is disabled, The Controller will not start the LE authenticated payload timer.
This option is used for some compatibility problems related to LE ping procedure.
menu "BLE disconnect when instant passed"
config BT_CTRL_BLE_LLCP_CONN_UPDATE
bool "BLE ACL connection update procedure"
default n
help
If this option is enabled, Controller will terminate the connection
when instant passed during connection update procedure.
config BT_CTRL_BLE_LLCP_CHAN_MAP_UPDATE
bool "BLE ACL channel map update procedure"
default n
help
If this option is enabled, Controller will terminate the connection
when instant passed in channel map update procedure.
config BT_CTRL_BLE_LLCP_PHY_UPDATE
bool "BLE ACL PHY update procedure"
default n
help
If this option is enabled, Controller will terminate the connection
when instant passed in PHY update procedure.
endmenu
config BT_CTRL_RUN_IN_FLASH_ONLY
bool "Put all BLE Controller code in flash"
default n
help
If this option is enabled, all code for the Bluetooth controller will be moved from ROM and IRAM
to flash, saving over 20K bytes of memory. However, it will require more flash resources and the
performance of Bluetooth will decrease If this option is enabled, Bluetooth may not work properly
during erasing flash. It is recommended to turn on the auto suspend function of flash. After auto
suspend is turned on, Bluetooth interrupts can be executed normally during erasing flash, with less
impact on Bluetooth performance.
config BT_CTRL_DTM_ENABLE
depends on BT_CTRL_RUN_IN_FLASH_ONLY
bool "Enable direct test mode feature"
default n
config BT_CTRL_BLE_MASTER
depends on BT_CTRL_RUN_IN_FLASH_ONLY
bool "Enable BLE master role feature"
default y
config BT_CTRL_BLE_TEST
depends on BT_CTRL_RUN_IN_FLASH_ONLY
bool "Enable BLE QA test feature"
default n
config BT_CTRL_BLE_SCAN
depends on BT_CTRL_RUN_IN_FLASH_ONLY
bool "Enable BLE scan feature"
default y
config BT_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS
bool "Enable enhanced Access Address check in CONNECT_IND"
default n
help
Enabling this option will add stricter verification of the Access Address in the CONNECT_IND PDU.
This improves security by ensuring that only connection requests with valid Access Addresses are accepted.
If disabled, only basic checks are applied, improving compatibility.

File diff suppressed because it is too large Load Diff

View File

@@ -2,19 +2,37 @@
menu "HCI Config"
choice BT_LE_HCI_INTERFACE
prompt "Select HCI interface"
prompt "HCI mode"
default BT_LE_HCI_INTERFACE_USE_RAM
config BT_LE_HCI_INTERFACE_USE_RAM
bool "ram"
bool "VHCI"
help
Use RAM as HCI interface
config BT_LE_HCI_INTERFACE_USE_UART
bool "uart"
bool "UART(H4)"
help
Use UART as HCI interface
endchoice
choice BT_LE_UART_HCI_MODE_CHOICE
prompt "UART HCI mode"
depends on BT_LE_HCI_INTERFACE_USE_UART
default BT_LE_UART_HCI_NO_DMA_MODE
help
Specify UART HCI mode: DMA or No DMA
config BT_LE_UART_HCI_DMA_MODE
bool "UHCI(UART with DMA)(EXPERIMENTAL)"
help
UART HCI Mode with DMA functionality.
config BT_LE_UART_HCI_NO_DMA_MODE
bool "UART(NO DMA)"
help
UART HCI Mode without DMA functionality.
endchoice
config BT_LE_HCI_UART_PORT
int "HCI UART port"
depends on BT_LE_HCI_INTERFACE_USE_UART
@@ -73,12 +91,40 @@ menu "HCI Config"
UART_PARITY_ODD
endchoice
config BT_LE_HCI_UART_TASK_STACK_SIZE
int "HCI uart task stack size"
depends on BT_LE_HCI_INTERFACE_USE_UART
default 1000
config BT_LE_HCI_UART_RX_BUFFER_SIZE
int "The size of rx ring buffer memory"
depends on BT_LE_UART_HCI_NO_DMA_MODE
default 512
help
Set the size of uart task stack
The size of rx ring buffer memory
config BT_LE_HCI_UART_TX_BUFFER_SIZE
int "The size of tx ring buffer memory"
depends on BT_LE_UART_HCI_NO_DMA_MODE
default 256
help
The size of tx ring buffer memory
config BT_LE_HCI_TRANS_TASK_STACK_SIZE
int "HCI transport task stack size"
depends on !BT_LE_HCI_INTERFACE_USE_RAM
default 1024
help
This configures stack size of hci transport task
config BT_LE_HCI_TRANS_RX_MEM_NUM
int "The amount of rx memory received at the same time"
depends on BT_LE_UART_HCI_DMA_MODE
default 3
help
The amount of rx memory received at the same time
config BT_LE_HCI_LLDESCS_POOL_NUM
int "The amount of lldecs memory for driver dma mode"
depends on BT_LE_UART_HCI_DMA_MODE
default 20
help
The amount of lldecs memory for driver dma mode
endmenu
config BT_LE_CONTROLLER_NPL_OS_PORTING_SUPPORT
@@ -147,7 +193,7 @@ if BT_LE_EXT_ADV
Enable this option to start periodic advertisement.
config BT_LE_PERIODIC_ADV_SYNC_TRANSFER
bool "Enable Transer Sync Events"
bool "Enable Transfer Sync Events"
depends on BT_LE_ENABLE_PERIODIC_ADV
default y
help
@@ -269,7 +315,7 @@ config BT_LE_CONTROLLER_TASK_STACK_SIZE
help
This configures stack size of NimBLE controller task
config BT_LE_CONTROLLER_LOG_ENABLED
menuconfig BT_LE_CONTROLLER_LOG_ENABLED
bool "Controller log enable"
default n
help
@@ -280,21 +326,60 @@ config BT_LE_CONTROLLER_LOG_CTRL_ENABLED
depends on BT_LE_CONTROLLER_LOG_ENABLED
default y
help
Enable controller log module
Enable controller log module
config BT_LE_CONTROLLER_LOG_HCI_ENABLED
bool "enable HCI log module"
depends on BT_LE_CONTROLLER_LOG_ENABLED
default y
help
Enable hci log module
Enable hci log module
config BT_LE_CONTROLLER_LOG_DUMP_ONLY
bool "Controller log dump mode only"
depends on BT_LE_CONTROLLER_LOG_ENABLED
default y
help
Only operate in dump mode
Only operate in dump mode
config BT_LE_CONTROLLER_LOG_STORAGE_ENABLE
bool "Store ble controller logs to flash(Experimental)"
depends on !BT_LE_CONTROLLER_LOG_DUMP_ONLY
depends on BT_LE_CONTROLLER_LOG_ENABLED
default n
help
Store ble controller logs to flash memory.
config BT_LE_CONTROLLER_LOG_PARTITION_SIZE
int "size of ble controller log partition(Multiples of 4K)"
depends on BT_LE_CONTROLLER_LOG_STORAGE_ENABLE
default 65536
help
The size of ble controller log partition shall be a multiples of 4K.
The name of log partition shall be "bt_ctrl_log".
The partition type shall be ESP_PARTITION_TYPE_DATA.
The partition sub_type shall be ESP_PARTITION_SUBTYPE_ANY.
config BT_LE_LOG_CTRL_BUF1_SIZE
int "size of the first BLE controller LOG buffer"
depends on BT_LE_CONTROLLER_LOG_ENABLED
default 4096
help
Configure the size of the first BLE controller LOG buffer.
config BT_LE_LOG_CTRL_BUF2_SIZE
int "size of the second BLE controller LOG buffer"
depends on BT_LE_CONTROLLER_LOG_ENABLED
default 1024
help
Configure the size of the second BLE controller LOG buffer.
config BT_LE_LOG_HCI_BUF_SIZE
int "size of the BLE HCI LOG buffer"
depends on BT_LE_CONTROLLER_LOG_ENABLED
default 4096
help
Configure the size of the BLE HCI LOG buffer.
config BT_LE_LL_RESOLV_LIST_SIZE
int "BLE LL Resolving list size"
@@ -344,7 +429,6 @@ config BT_LE_CRYPTO_STACK_MBEDTLS
bool "Override TinyCrypt with mbedTLS for crypto computations"
default y
depends on !BT_NIMBLE_ENABLED
select MBEDTLS_ECP_RESTARTABLE
select MBEDTLS_CMAC_C
help
Enable this option to choose mbedTLS instead of TinyCrypt for crypto
@@ -361,7 +445,7 @@ config BT_LE_WHITELIST_SIZE
config BT_LE_LL_DUP_SCAN_LIST_COUNT
int "BLE duplicate scan list count"
range 1 100
range 5 100
default 20
help
config the max count of duplicate scan list
@@ -388,7 +472,7 @@ config BT_LE_MAX_CONNECTIONS
choice BT_LE_COEX_PHY_CODED_TX_RX_TLIM
prompt "Coexistence: limit on MAX Tx/Rx time for coded-PHY connection"
default BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS
depends on !BT_NIMBLE_ENABLED
depends on ESP_COEX_SW_COEXIST_ENABLE
help
When using PHY-Coded in BLE connection, limitation on max tx/rx time can be applied to
better avoid dramatic performance deterioration of Wi-Fi.
@@ -406,7 +490,7 @@ endchoice
config BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF
int
depends on !BT_NIMBLE_ENABLED
default 0 if !ESP_COEX_SW_COEXIST_ENABLE
default 1 if BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EN
default 0 if BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS
@@ -522,15 +606,6 @@ config BT_LE_SCAN_DUPL_TYPE
default 2 if BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE
default 0
config BT_LE_SCAN_DUPL_CACHE_SIZE
int "Maximum number of devices in scan duplicate filter"
depends on BT_LE_SCAN_DUPL
range 10 1000
default 100
help
Maximum number of devices which can be recorded in scan duplicate filter.
When the maximum amount of device in the filter is reached, the cache will be refreshed.
config BT_LE_SCAN_DUPL_CACHE_REFRESH_PERIOD
int "Duplicate scan list refresh period (seconds)"
depends on BT_LE_SCAN_DUPL
@@ -550,3 +625,83 @@ config BT_LE_SCAN_DUPL_CACHE_REFRESH_PERIOD
config BT_LE_MSYS_INIT_IN_CONTROLLER
bool "Msys Mbuf Init in Controller"
default y
config BT_LE_TX_CCA_ENABLED
bool "Enable TX CCA feature"
default n
help
Enable CCA feature to cancel sending the packet if the signal power is stronger than CCA threshold.
config BT_LE_CCA_RSSI_THRESH
int "CCA RSSI threshold value"
depends on BT_LE_TX_CCA_ENABLED
range 20 100
default 20
help
Power threshold of CCA in unit of -1 dBm.
choice BT_LE_DFT_TX_POWER_LEVEL_DBM
prompt "BLE default Tx power level(dBm)"
default BT_LE_DFT_TX_POWER_LEVEL_P9
help
Specify default Tx power level(dBm).
config BT_LE_DFT_TX_POWER_LEVEL_N15
bool "-15dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N12
bool "-12dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N9
bool "-9dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N6
bool "-6dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N3
bool "-3dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N0
bool "0dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P3
bool "+3dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P6
bool "+6dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P9
bool "+9dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P12
bool "+12dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P15
bool "+15dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P18
bool "+18dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P20
bool "+20dBm"
endchoice
config BT_LE_DFT_TX_POWER_LEVEL_DBM_EFF
int
default -15 if BT_LE_DFT_TX_POWER_LEVEL_N15
default -12 if BT_LE_DFT_TX_POWER_LEVEL_N12
default -9 if BT_LE_DFT_TX_POWER_LEVEL_N9
default -6 if BT_LE_DFT_TX_POWER_LEVEL_N6
default -3 if BT_LE_DFT_TX_POWER_LEVEL_N3
default 0 if BT_LE_DFT_TX_POWER_LEVEL_N0
default 3 if BT_LE_DFT_TX_POWER_LEVEL_P3
default 6 if BT_LE_DFT_TX_POWER_LEVEL_P6
default 9 if BT_LE_DFT_TX_POWER_LEVEL_P9
default 12 if BT_LE_DFT_TX_POWER_LEVEL_P12
default 15 if BT_LE_DFT_TX_POWER_LEVEL_P15
default 18 if BT_LE_DFT_TX_POWER_LEVEL_P18
default 20 if BT_LE_DFT_TX_POWER_LEVEL_P20
default 0
config BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS
bool "Enable enhanced Access Address check in CONNECT_IND"
default n
help
Enabling this option will add stricter verification of the Access Address in the CONNECT_IND PDU.
This improves security by ensuring that only connection requests with valid Access Addresses are accepted.
If disabled, only basic checks are applied, improving compatibility.
config BT_CTRL_RUN_IN_FLASH_ONLY
bool "Reduce BLE IRAM usage (READ DOCS FIRST) (EXPERIMENTAL)"
default n
help
Move most IRAM into flash. This will increase the usage of flash and reduce ble performance.
Because the code is moved to the flash, the execution speed of the code is reduced.
To have a small impact on performance, you need to enable flash suspend (SPI_FLASH_AUTO_SUSPEND).

File diff suppressed because it is too large Load Diff

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
*/
@@ -39,8 +39,12 @@ extern "C" {
#define DEFAULT_BT_NIMBLE_WHITELIST_SIZE MYNEWT_VAL(BLE_LL_WHITELIST_SIZE)
#define DEFAULT_BT_LE_HCI_EVT_HI_BUF_COUNT MYNEWT_VAL(BLE_TRANSPORT_EVT_COUNT)
#define DEFAULT_BT_LE_HCI_EVT_LO_BUF_COUNT MYNEWT_VAL(BLE_TRANSPORT_EVT_DISCARDABLE_COUNT)
#define DEFAULT_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF CONFIG_BT_NIMBLE_COEX_PHY_CODED_TX_RX_TLIM_EFF
#define DEFAULT_BT_LE_POWER_CONTROL_ENABLED MYNEWT_VAL(BLE_POWER_CONTROL)
#if defined(CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT)
#define DEFAULT_BT_LE_50_FEATURE_SUPPORT (1)
#else
#define DEFAULT_BT_LE_50_FEATURE_SUPPORT (0)
#endif
#else
#if CONFIG_BT_LE_LL_CFG_FEAT_LE_CODED_PHY
@@ -115,16 +119,40 @@ extern "C" {
#define DEFAULT_BT_LE_HCI_EVT_LO_BUF_COUNT (8)
#endif
#define DEFAULT_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF CONFIG_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF
#if defined(CONFIG_BT_LE_POWER_CONTROL_ENABLED)
#define DEFAULT_BT_LE_POWER_CONTROL_ENABLED (CONFIG_BT_LE_POWER_CONTROL_ENABLED)
#else
#define DEFAULT_BT_LE_POWER_CONTROL_ENABLED (0)
#endif
#if defined(CONFIG_BT_LE_50_FEATURE_SUPPORT)
#define DEFAULT_BT_LE_50_FEATURE_SUPPORT (1)
#else
#define DEFAULT_BT_LE_50_FEATURE_SUPPORT (0)
#endif
#if defined (CONFIG_BT_LE_HCI_UART_FLOWCTRL)
#define DEFAULT_BT_LE_HCI_UART_FLOW_CTRL (CONFIG_BT_LE_HCI_UART_FLOWCTRL)
#if DEFAULT_BT_LE_HCI_UART_FLOW_CTRL
#define DEFAULT_BT_LE_HCI_UART_CTS_PIN (CONFIG_BT_LE_HCI_UART_CTS_PIN)
#define DEFAULT_BT_LE_HCI_UART_RTS_PIN (CONFIG_BT_LE_HCI_UART_RTS_PIN)
#else
#define DEFAULT_BT_LE_HCI_UART_CTS_PIN (-1)
#define DEFAULT_BT_LE_HCI_UART_RTS_PIN (-1)
#endif
#else
#define DEFAULT_BT_LE_HCI_UART_FLOW_CTRL (0)
#define DEFAULT_BT_LE_HCI_UART_CTS_PIN (-1)
#define DEFAULT_BT_LE_HCI_UART_RTS_PIN (-1)
#endif
#endif
#define DEFAULT_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF CONFIG_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF
#ifdef CONFIG_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS
#define DEFAULT_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS (CONFIG_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS)
#else
#define DEFAULT_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS (0)
#endif
#ifdef CONFIG_BT_LE_HCI_INTERFACE_USE_UART
#define HCI_UART_EN CONFIG_BT_LE_HCI_INTERFACE_USE_UART
@@ -162,8 +190,6 @@ extern "C" {
#define DEFAULT_BT_LE_HCI_UART_DATA_BITS (UART_DATA_8_BITS)
#define DEFAULT_BT_LE_HCI_UART_STOP_BITS (UART_STOP_BITS_1)
#define DEFAULT_BT_LE_HCI_UART_PARITY (0)
#define DEFAULT_BT_LE_HCI_UART_TASK_STACK_SIZE (CONFIG_BT_LE_HCI_UART_TASK_STACK_SIZE)
#define DEFAULT_BT_LE_HCI_UART_FLOW_CTRL (0)
#else
#define DEFAULT_BT_LE_HCI_UART_TX_PIN (0)
#define DEFAULT_BT_LE_HCI_UART_RX_PIN (0)
@@ -172,8 +198,6 @@ extern "C" {
#define DEFAULT_BT_LE_HCI_UART_DATA_BITS (0)
#define DEFAULT_BT_LE_HCI_UART_STOP_BITS (0)
#define DEFAULT_BT_LE_HCI_UART_PARITY (0)
#define DEFAULT_BT_LE_HCI_UART_TASK_STACK_SIZE (0)
#define DEFAULT_BT_LE_HCI_UART_FLOW_CTRL (0)
#endif
/* Unchanged configuration */
@@ -198,8 +222,7 @@ extern "C" {
#define RTC_FREQ_N (32768) /* in Hz */
#define BLE_LL_TX_PWR_DBM_N (9)
#define BLE_LL_TX_PWR_DBM_N (CONFIG_BT_LE_DFT_TX_POWER_LEVEL_DBM_EFF)
#define RUN_BQB_TEST (0)
#define RUN_QA_TEST (0)

View File

@@ -2,19 +2,37 @@
menu "HCI Config"
choice BT_LE_HCI_INTERFACE
prompt "Select HCI interface"
prompt "HCI mode"
default BT_LE_HCI_INTERFACE_USE_RAM
config BT_LE_HCI_INTERFACE_USE_RAM
bool "ram"
bool "VHCI"
help
Use RAM as HCI interface
config BT_LE_HCI_INTERFACE_USE_UART
bool "uart"
bool "UART(H4)"
help
Use UART as HCI interface
endchoice
choice BT_LE_UART_HCI_MODE_CHOICE
prompt "UART HCI mode"
depends on BT_LE_HCI_INTERFACE_USE_UART
default BT_LE_UART_HCI_NO_DMA_MODE
help
Specify UART HCI mode: DMA or No DMA
config BT_LE_UART_HCI_DMA_MODE
bool "UHCI(UART with DMA)(EXPERIMENTAL)"
help
UART HCI Mode with DMA functionality.
config BT_LE_UART_HCI_NO_DMA_MODE
bool "UART(NO DMA)"
help
UART HCI Mode without DMA functionality.
endchoice
config BT_LE_HCI_UART_PORT
int "HCI UART port"
depends on BT_LE_HCI_INTERFACE_USE_UART
@@ -73,12 +91,40 @@ menu "HCI Config"
UART_PARITY_ODD
endchoice
config BT_LE_HCI_UART_TASK_STACK_SIZE
int "HCI uart task stack size"
depends on BT_LE_HCI_INTERFACE_USE_UART
default 1000
config BT_LE_HCI_UART_RX_BUFFER_SIZE
int "The size of rx ring buffer memory"
depends on BT_LE_UART_HCI_NO_DMA_MODE
default 512
help
Set the size of uart task stack
The size of rx ring buffer memory
config BT_LE_HCI_UART_TX_BUFFER_SIZE
int "The size of tx ring buffer memory"
depends on BT_LE_UART_HCI_NO_DMA_MODE
default 256
help
The size of tx ring buffer memory
config BT_LE_HCI_TRANS_TASK_STACK_SIZE
int "HCI transport task stack size"
depends on !BT_LE_HCI_INTERFACE_USE_RAM
default 1024
help
This configures stack size of hci transport task
config BT_LE_HCI_TRANS_RX_MEM_NUM
int "The amount of rx memory received at the same time"
depends on BT_LE_UART_HCI_DMA_MODE
default 3
help
The amount of rx memory received at the same time
config BT_LE_HCI_LLDESCS_POOL_NUM
int "The amount of lldecs memory for driver dma mode"
depends on BT_LE_UART_HCI_DMA_MODE
default 20
help
The amount of lldecs memory for driver dma mode
endmenu
config BT_LE_CONTROLLER_NPL_OS_PORTING_SUPPORT
@@ -147,7 +193,7 @@ if BT_LE_EXT_ADV
Enable this option to start periodic advertisement.
config BT_LE_PERIODIC_ADV_SYNC_TRANSFER
bool "Enable Transer Sync Events"
bool "Enable Transfer Sync Events"
depends on BT_LE_ENABLE_PERIODIC_ADV
default y
help
@@ -260,7 +306,7 @@ config BT_LE_CONTROLLER_TASK_STACK_SIZE
help
This configures stack size of NimBLE controller task
config BT_LE_CONTROLLER_LOG_ENABLED
menuconfig BT_LE_CONTROLLER_LOG_ENABLED
bool "Controller log enable"
default n
help
@@ -271,21 +317,60 @@ config BT_LE_CONTROLLER_LOG_CTRL_ENABLED
depends on BT_LE_CONTROLLER_LOG_ENABLED
default y
help
Enable controller log module
Enable controller log module
config BT_LE_CONTROLLER_LOG_HCI_ENABLED
bool "enable HCI log module"
depends on BT_LE_CONTROLLER_LOG_ENABLED
default y
help
Enable hci log module
Enable hci log module
config BT_LE_CONTROLLER_LOG_DUMP_ONLY
bool "Controller log dump mode only"
depends on BT_LE_CONTROLLER_LOG_ENABLED
default y
help
Only operate in dump mode
Only operate in dump mode
config BT_LE_CONTROLLER_LOG_STORAGE_ENABLE
bool "Store ble controller logs to flash(Experimental)"
depends on !BT_LE_CONTROLLER_LOG_DUMP_ONLY
depends on BT_LE_CONTROLLER_LOG_ENABLED
default n
help
Store ble controller logs to flash memory.
config BT_LE_CONTROLLER_LOG_PARTITION_SIZE
int "size of ble controller log partition(Multiples of 4K)"
depends on BT_LE_CONTROLLER_LOG_STORAGE_ENABLE
default 65536
help
The size of ble controller log partition shall be a multiples of 4K.
The name of log partition shall be "bt_ctrl_log".
The partition type shall be ESP_PARTITION_TYPE_DATA.
The partition sub_type shall be ESP_PARTITION_SUBTYPE_ANY.
config BT_LE_LOG_CTRL_BUF1_SIZE
int "size of the first BLE controller LOG buffer"
depends on BT_LE_CONTROLLER_LOG_ENABLED
default 4096
help
Configure the size of the first BLE controller LOG buffer.
config BT_LE_LOG_CTRL_BUF2_SIZE
int "size of the second BLE controller LOG buffer"
depends on BT_LE_CONTROLLER_LOG_ENABLED
default 1024
help
Configure the size of the second BLE controller LOG buffer.
config BT_LE_LOG_HCI_BUF_SIZE
int "size of the BLE HCI LOG buffer"
depends on BT_LE_CONTROLLER_LOG_ENABLED
default 4096
help
Configure the size of the BLE HCI LOG buffer.
config BT_LE_LL_RESOLV_LIST_SIZE
int "BLE LL Resolving list size"
@@ -335,7 +420,6 @@ config BT_LE_CRYPTO_STACK_MBEDTLS
bool "Override TinyCrypt with mbedTLS for crypto computations"
default y
depends on !BT_NIMBLE_ENABLED
select MBEDTLS_ECP_RESTARTABLE
select MBEDTLS_CMAC_C
help
Enable this option to choose mbedTLS instead of TinyCrypt for crypto
@@ -352,7 +436,7 @@ config BT_LE_WHITELIST_SIZE
config BT_LE_LL_DUP_SCAN_LIST_COUNT
int "BLE duplicate scan list count"
range 1 100
range 5 100
default 20
help
config the max count of duplicate scan list
@@ -379,7 +463,7 @@ config BT_LE_MAX_CONNECTIONS
choice BT_LE_COEX_PHY_CODED_TX_RX_TLIM
prompt "Coexistence: limit on MAX Tx/Rx time for coded-PHY connection"
default BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS
depends on !BT_NIMBLE_ENABLED
depends on ESP_COEX_SW_COEXIST_ENABLE
help
When using PHY-Coded in BLE connection, limitation on max tx/rx time can be applied to
better avoid dramatic performance deterioration of Wi-Fi.
@@ -397,7 +481,7 @@ endchoice
config BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF
int
depends on !BT_NIMBLE_ENABLED
default 0 if !ESP_COEX_SW_COEXIST_ENABLE
default 1 if BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EN
default 0 if BT_LE_COEX_PHY_CODED_TX_RX_TLIM_DIS
@@ -514,16 +598,6 @@ config BT_LE_SCAN_DUPL_TYPE
default 2 if BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE
default 0
config BT_LE_SCAN_DUPL_CACHE_SIZE
int "Maximum number of devices in scan duplicate filter"
depends on BT_LE_SCAN_DUPL
range 10 1000
default 100
help
Maximum number of devices which can be recorded in scan duplicate filter.
When the maximum amount of device in the filter is reached, the cache will be refreshed.
config BT_LE_SCAN_DUPL_CACHE_REFRESH_PERIOD
int "Duplicate scan list refresh period (seconds)"
depends on BT_LE_SCAN_DUPL
@@ -543,3 +617,92 @@ config BT_LE_SCAN_DUPL_CACHE_REFRESH_PERIOD
config BT_LE_MSYS_INIT_IN_CONTROLLER
bool
default y
config BT_LE_TX_CCA_ENABLED
bool "Enable TX CCA feature"
default n
help
Enable CCA feature to cancel sending the packet if the signal power is stronger than CCA threshold.
config BT_LE_CCA_RSSI_THRESH
int "CCA RSSI threshold value"
depends on BT_LE_TX_CCA_ENABLED
range 20 100
default 20
help
Power threshold of CCA in unit of -1 dBm.
choice BT_LE_DFT_TX_POWER_LEVEL_DBM
prompt "BLE default Tx power level(dBm)"
default BT_LE_DFT_TX_POWER_LEVEL_P9
help
Specify default Tx power level(dBm).
config BT_LE_DFT_TX_POWER_LEVEL_N24
bool "-24dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N21
bool "-21dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N18
bool "-18dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N15
bool "-15dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N12
bool "-12dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N9
bool "-9dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N6
bool "-6dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N3
bool "-3dBm"
config BT_LE_DFT_TX_POWER_LEVEL_N0
bool "0dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P3
bool "+3dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P6
bool "+6dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P9
bool "+9dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P12
bool "+12dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P15
bool "+15dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P18
bool "+18dBm"
config BT_LE_DFT_TX_POWER_LEVEL_P20
bool "+20dBm"
endchoice
config BT_LE_DFT_TX_POWER_LEVEL_DBM_EFF
int
default -24 if BT_LE_DFT_TX_POWER_LEVEL_N24
default -21 if BT_LE_DFT_TX_POWER_LEVEL_N21
default -18 if BT_LE_DFT_TX_POWER_LEVEL_N18
default -15 if BT_LE_DFT_TX_POWER_LEVEL_N15
default -12 if BT_LE_DFT_TX_POWER_LEVEL_N12
default -9 if BT_LE_DFT_TX_POWER_LEVEL_N9
default -6 if BT_LE_DFT_TX_POWER_LEVEL_N6
default -3 if BT_LE_DFT_TX_POWER_LEVEL_N3
default 0 if BT_LE_DFT_TX_POWER_LEVEL_N0
default 3 if BT_LE_DFT_TX_POWER_LEVEL_P3
default 6 if BT_LE_DFT_TX_POWER_LEVEL_P6
default 9 if BT_LE_DFT_TX_POWER_LEVEL_P9
default 12 if BT_LE_DFT_TX_POWER_LEVEL_P12
default 15 if BT_LE_DFT_TX_POWER_LEVEL_P15
default 18 if BT_LE_DFT_TX_POWER_LEVEL_P18
default 20 if BT_LE_DFT_TX_POWER_LEVEL_P20
default 0
config BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS
bool "Enable enhanced Access Address check in CONNECT_IND"
default n
help
Enabling this option will add stricter verification of the Access Address in the CONNECT_IND PDU.
This improves security by ensuring that only connection requests with valid Access Addresses are accepted.
If disabled, only basic checks are applied, improving compatibility.
config BT_CTRL_RUN_IN_FLASH_ONLY
bool "Reduce BLE IRAM usage (READ DOCS FIRST) (EXPERIMENTAL)"
default n
help
Move most IRAM into flash. This will increase the usage of flash and reduce ble performance.
Because the code is moved to the flash, the execution speed of the code is reduced.
To have a small impact on performance, you need to enable flash suspend (SPI_FLASH_AUTO_SUSPEND).

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -39,8 +39,12 @@ extern "C" {
#define DEFAULT_BT_NIMBLE_WHITELIST_SIZE MYNEWT_VAL(BLE_LL_WHITELIST_SIZE)
#define DEFAULT_BT_LE_HCI_EVT_HI_BUF_COUNT MYNEWT_VAL(BLE_TRANSPORT_EVT_COUNT)
#define DEFAULT_BT_LE_HCI_EVT_LO_BUF_COUNT MYNEWT_VAL(BLE_TRANSPORT_EVT_DISCARDABLE_COUNT)
#define DEFAULT_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF CONFIG_BT_NIMBLE_COEX_PHY_CODED_TX_RX_TLIM_EFF
#define DEFAULT_BT_LE_POWER_CONTROL_ENABLED MYNEWT_VAL(BLE_POWER_CONTROL)
#if defined(CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT)
#define DEFAULT_BT_LE_50_FEATURE_SUPPORT (1)
#else
#define DEFAULT_BT_LE_50_FEATURE_SUPPORT (0)
#endif
#else
#if CONFIG_BT_LE_LL_CFG_FEAT_LE_CODED_PHY
@@ -115,16 +119,40 @@ extern "C" {
#define DEFAULT_BT_LE_HCI_EVT_LO_BUF_COUNT (8)
#endif
#define DEFAULT_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF CONFIG_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF
#if defined(CONFIG_BT_LE_POWER_CONTROL_ENABLED)
#define DEFAULT_BT_LE_POWER_CONTROL_ENABLED (CONFIG_BT_LE_POWER_CONTROL_ENABLED)
#else
#define DEFAULT_BT_LE_POWER_CONTROL_ENABLED (0)
#endif
#if defined(CONFIG_BT_LE_50_FEATURE_SUPPORT)
#define DEFAULT_BT_LE_50_FEATURE_SUPPORT (1)
#else
#define DEFAULT_BT_LE_50_FEATURE_SUPPORT (0)
#endif
#if defined (CONFIG_BT_LE_HCI_UART_FLOWCTRL)
#define DEFAULT_BT_LE_HCI_UART_FLOW_CTRL (CONFIG_BT_LE_HCI_UART_FLOWCTRL)
#if DEFAULT_BT_LE_HCI_UART_FLOW_CTRL
#define DEFAULT_BT_LE_HCI_UART_CTS_PIN (CONFIG_BT_LE_HCI_UART_CTS_PIN)
#define DEFAULT_BT_LE_HCI_UART_RTS_PIN (CONFIG_BT_LE_HCI_UART_RTS_PIN)
#else
#define DEFAULT_BT_LE_HCI_UART_CTS_PIN (-1)
#define DEFAULT_BT_LE_HCI_UART_RTS_PIN (-1)
#endif
#else
#define DEFAULT_BT_LE_HCI_UART_FLOW_CTRL (0)
#define DEFAULT_BT_LE_HCI_UART_CTS_PIN (-1)
#define DEFAULT_BT_LE_HCI_UART_RTS_PIN (-1)
#endif
#endif
#define DEFAULT_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF CONFIG_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF
#ifdef CONFIG_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS
#define DEFAULT_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS (CONFIG_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS)
#else
#define DEFAULT_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS (0)
#endif
#ifdef CONFIG_BT_LE_HCI_INTERFACE_USE_UART
#define HCI_UART_EN CONFIG_BT_LE_HCI_INTERFACE_USE_UART
@@ -162,8 +190,6 @@ extern "C" {
#define DEFAULT_BT_LE_HCI_UART_DATA_BITS (UART_DATA_8_BITS)
#define DEFAULT_BT_LE_HCI_UART_STOP_BITS (UART_STOP_BITS_1)
#define DEFAULT_BT_LE_HCI_UART_PARITY (0)
#define DEFAULT_BT_LE_HCI_UART_TASK_STACK_SIZE (CONFIG_BT_LE_HCI_UART_TASK_STACK_SIZE)
#define DEFAULT_BT_LE_HCI_UART_FLOW_CTRL (0)
#else
#define DEFAULT_BT_LE_HCI_UART_TX_PIN (0)
#define DEFAULT_BT_LE_HCI_UART_RX_PIN (0)
@@ -172,8 +198,6 @@ extern "C" {
#define DEFAULT_BT_LE_HCI_UART_DATA_BITS (0)
#define DEFAULT_BT_LE_HCI_UART_STOP_BITS (0)
#define DEFAULT_BT_LE_HCI_UART_PARITY (0)
#define DEFAULT_BT_LE_HCI_UART_TASK_STACK_SIZE (0)
#define DEFAULT_BT_LE_HCI_UART_FLOW_CTRL (0)
#endif
/* Unchanged configuration */
@@ -198,8 +222,7 @@ extern "C" {
#define RTC_FREQ_N (32768) /* in Hz */
#define BLE_LL_TX_PWR_DBM_N (9)
#define BLE_LL_TX_PWR_DBM_N (CONFIG_BT_LE_DFT_TX_POWER_LEVEL_DBM_EFF)
#define RUN_BQB_TEST (0)
#define RUN_QA_TEST (0)

View File

@@ -6,14 +6,24 @@ if BLE_MESH
help
It is a temporary solution and needs further modifications.
config BLE_MESH_RANDOM_ADV_INTERVAL
bool "Support using random adv interval for mesh packets"
select BT_BLE_HIGH_DUTY_ADV_INTERVAL if BT_BLUEDROID_ENABLED
select BT_NIMBLE_HIGH_DUTY_ADV_ITVL if BT_NIMBLE_ENABLED
default n
help
Enable this option to allow using random advertising interval
for mesh packets. And this could help avoid collision of
advertising packets.
config BLE_MESH_USE_DUPLICATE_SCAN
bool "Support Duplicate Scan in BLE Mesh"
select BTDM_BLE_SCAN_DUPL if IDF_TARGET_ESP32
select BTDM_BLE_MESH_SCAN_DUPL_EN if IDF_TARGET_ESP32
select BT_CTRL_BLE_SCAN_DUPL if IDF_TARGET_ESP32C3
select BT_CTRL_BLE_MESH_SCAN_DUPL_EN if IDF_TARGET_ESP32C3
select BT_LE_SCAN_DUPL if IDF_TARGET_ESP32C6
select BT_LE_SCAN_DUPL if IDF_TARGET_ESP32H2
select BT_CTRL_BLE_SCAN_DUPL if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
select BT_CTRL_BLE_MESH_SCAN_DUPL_EN if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
select BT_LE_SCAN_DUPL if IDF_TARGET_ESP32C6 || IDF_TARGET_ESP32H2
select BT_NIMBLE_VS_SUPPORT if BT_NIMBLE_ENABLED
default y
help
Enable this option to allow using specific duplicate scan filter
@@ -537,6 +547,20 @@ if BLE_MESH
Provisioner can provision up to 20 nodes and each node contains two elements,
then the replay protection list size of Provisioner should be at least 40.
config BLE_MESH_NOT_RELAY_REPLAY_MSG
bool "Not relay replayed messages in a mesh network"
depends on BLE_MESH_EXPERIMENTAL
default n
help
There may be many expired messages in a complex mesh network that would be
considered replayed messages.
Enable this option will refuse to relay such messages, which could help to
reduce invalid packets in the mesh network.
However, it should be noted that enabling this option may result in packet
loss in certain environments.
Therefore, users need to decide whether to enable this option according to
the actual usage situation.
config BLE_MESH_MSG_CACHE_SIZE
int "Network message cache size"
default 10
@@ -1240,4 +1264,12 @@ if BLE_MESH
endmenu
config BLE_MESH_EXPERIMENTAL
bool "Make BLE Mesh experimental features visible"
default n
help
Make BLE Mesh Experimental features visible.
Experimental features list:
- CONFIG_BLE_MESH_NOT_RELAY_REPLAY_MSG
endif # BLE_MESH

View File

@@ -15,7 +15,7 @@ The ESP-BLE-MESH networking enables many-to-many (m:m) device communications and
- [FAQ](https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/esp_ble_mesh/ble_mesh_faq.html)
- [API Reference](https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/bluetooth/ble_mesh.html)
### [ESP-BLE-MESH Examples](https://github.com/espressif/esp-idf/tree/master/examples/bluetooth/esp_ble_mesh)
### [ESP-BLE-MESH Examples](../../../examples/bluetooth/esp_ble_mesh)
- Refer to **ESP-BLE-MESH Examples** of [Getting Started](https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/esp_ble_mesh/index.html##getting-started-with-ble-mesh) for the tutorials of ESP BLE Mesh examples.

View File

@@ -65,7 +65,9 @@ esp_err_t esp_ble_mesh_init(esp_ble_mesh_prov_t *prov, esp_ble_mesh_comp_t *comp
esp_err_t esp_ble_mesh_deinit(esp_ble_mesh_deinit_param_t *param)
{
btc_ble_mesh_prov_args_t arg = {0};
SemaphoreHandle_t semaphore = NULL;
btc_msg_t msg = {0};
esp_err_t ret = ESP_OK;
if (param == NULL) {
return ESP_ERR_INVALID_ARG;
@@ -73,13 +75,36 @@ esp_err_t esp_ble_mesh_deinit(esp_ble_mesh_deinit_param_t *param)
ESP_BLE_HOST_STATUS_CHECK(ESP_BLE_HOST_STATUS_ENABLED);
// Create a semaphore
if ((semaphore = xSemaphoreCreateCounting(1, 0)) == NULL) {
BT_ERR("Failed to create semaphore");
return ESP_ERR_NO_MEM;
}
arg.mesh_deinit.param.erase_flash = param->erase_flash;
/* Transport semaphore pointer to BTC layer, and will give the semaphore in the BTC task */
arg.mesh_deinit.semaphore = semaphore;
msg.sig = BTC_SIG_API_CALL;
msg.pid = BTC_PID_PROV;
msg.act = BTC_BLE_MESH_ACT_DEINIT_MESH;
return (btc_transfer_context(&msg, &arg, sizeof(btc_ble_mesh_prov_args_t), NULL, NULL)
== BT_STATUS_SUCCESS ? ESP_OK : ESP_FAIL);
if (btc_transfer_context(&msg, &arg, sizeof(btc_ble_mesh_prov_args_t), NULL, NULL) != BT_STATUS_SUCCESS) {
vSemaphoreDelete(semaphore);
BT_ERR("Failed to start mesh deinit");
return ESP_FAIL;
}
/* Take the Semaphore, wait BLE Mesh de-initialization to finish. */
__ASSERT(xSemaphoreTake(semaphore, 3000 / portTICK_PERIOD_MS) == pdTRUE, "BLE Mesh deinit take semaphore failed");
/* Don't forget to delete the semaphore at the end. */
vSemaphoreDelete(semaphore);
ret = bt_mesh_host_deinit();
if (ret != ESP_OK) {
return ret;
}
return ESP_OK;
}
#endif /* CONFIG_BLE_MESH_DEINIT */

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2017-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -569,9 +569,9 @@ esp_err_t esp_ble_mesh_provisioner_set_heartbeat_filter_info(uint8_t op, esp_ble
return ESP_ERR_INVALID_ARG;
}
if (!ESP_BLE_MESH_ADDR_IS_UNICAST(info->hb_src) &&
!ESP_BLE_MESH_ADDR_IS_UNICAST(info->hb_dst) &&
!ESP_BLE_MESH_ADDR_IS_GROUP(info->hb_dst)) {
if (!(ESP_BLE_MESH_ADDR_IS_UNICAST(info->hb_src) &&
(ESP_BLE_MESH_ADDR_IS_UNICAST(info->hb_dst) ||
ESP_BLE_MESH_ADDR_IS_GROUP(info->hb_dst)))) {
return ESP_ERR_INVALID_ARG;
}

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2017-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -139,9 +139,9 @@ esp_err_t esp_ble_mesh_node_input_string(const char *string)
msg.sig = BTC_SIG_API_CALL;
msg.pid = BTC_PID_PROV;
msg.act = BTC_BLE_MESH_ACT_INPUT_STRING;
memset(arg.input_string.string, 0, sizeof(arg.input_string.string));
strncpy(arg.input_string.string, string,
MIN(strlen(string), sizeof(arg.input_string.string)));
arg.input_string.string[sizeof(arg.input_string.string) - 1] = 0;
strncpy(arg.input_string.string, string, sizeof(arg.input_string.string) - 1);
return (btc_transfer_context(&msg, &arg, sizeof(btc_ble_mesh_prov_args_t), NULL, NULL)
== BT_STATUS_SUCCESS ? ESP_OK : ESP_FAIL);
@@ -162,8 +162,8 @@ esp_err_t esp_ble_mesh_set_unprovisioned_device_name(const char *name)
msg.pid = BTC_PID_PROV;
msg.act = BTC_BLE_MESH_ACT_SET_DEVICE_NAME;
memset(arg.set_device_name.name, 0, sizeof(arg.set_device_name.name));
strncpy(arg.set_device_name.name, name, ESP_BLE_MESH_DEVICE_NAME_MAX_LEN);
arg.set_device_name.name[sizeof(arg.set_device_name.name) - 1] = 0;
strncpy(arg.set_device_name.name, name, sizeof(arg.set_device_name.name) - 1);
return (btc_transfer_context(&msg, &arg, sizeof(btc_ble_mesh_prov_args_t), NULL, NULL)
== BT_STATUS_SUCCESS ? ESP_OK : ESP_FAIL);
@@ -210,9 +210,8 @@ esp_err_t esp_ble_mesh_provisioner_input_string(const char *string, uint8_t link
msg.pid = BTC_PID_PROV;
msg.act = BTC_BLE_MESH_ACT_PROVISIONER_INPUT_STR;
memset(arg.provisioner_input_str.string, 0, sizeof(arg.provisioner_input_str.string));
strncpy(arg.provisioner_input_str.string, string,
MIN(strlen(string), sizeof(arg.provisioner_input_str.string)));
arg.provisioner_input_str.string[sizeof(arg.provisioner_input_str.string) - 1] = 0;
strncpy(arg.provisioner_input_str.string, string, sizeof(arg.provisioner_input_str.string) - 1);
arg.provisioner_input_str.link_idx = link_idx;
return (btc_transfer_context(&msg, &arg, sizeof(btc_ble_mesh_prov_args_t), NULL, NULL)

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2017-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -33,7 +33,10 @@ esp_err_t esp_ble_mesh_init(esp_ble_mesh_prov_t *prov, esp_ble_mesh_comp_t *comp
/**
* @brief De-initialize BLE Mesh module.
*
* @note This function shall be invoked after esp_ble_mesh_client_model_deinit().
* @note
* 1. This function shall be invoked after esp_ble_mesh_client_model_deinit().
* 2. This function is strictly forbidden to run in any BTC Task Context
* (e.g. registered Mesh Event Callback).
*
* @param[in] param: Pointer to the structure of BLE Mesh deinit parameters.
*

View File

@@ -68,6 +68,14 @@ typedef uint8_t esp_ble_mesh_octet8_t[ESP_BLE_MESH_OCTET8_LEN];
#define ESP_BLE_MESH_KEY_PRIMARY 0x0000
#define ESP_BLE_MESH_KEY_ANY 0xFFFF
/*!< Internal macros used to initialize array members */
#define ESP_BLE_MESH_KEY_UNUSED_ELT_(IDX, _) ESP_BLE_MESH_KEY_UNUSED
#define ESP_BLE_MESH_ADDR_UNASSIGNED_ELT_(IDX, _) ESP_BLE_MESH_ADDR_UNASSIGNED
#define ESP_BLE_MESH_MODEL_KEYS_UNUSED \
{ LISTIFY(CONFIG_BLE_MESH_MODEL_KEY_COUNT, ESP_BLE_MESH_KEY_UNUSED_ELT_, (,)) }
#define ESP_BLE_MESH_MODEL_GROUPS_UNASSIGNED \
{ LISTIFY(CONFIG_BLE_MESH_MODEL_GROUP_COUNT, ESP_BLE_MESH_ADDR_UNASSIGNED_ELT_, (,)) }
/*!< Primary Network Key index */
#define ESP_BLE_MESH_NET_PRIMARY 0x000
@@ -264,26 +272,24 @@ typedef enum {
#define ESP_BLE_MESH_SIG_MODEL(_id, _op, _pub, _user_data) \
{ \
.model_id = (_id), \
.op = _op, \
.keys = { [0 ... (CONFIG_BLE_MESH_MODEL_KEY_COUNT - 1)] = \
ESP_BLE_MESH_KEY_UNUSED }, \
.pub = _pub, \
.groups = { [0 ... (CONFIG_BLE_MESH_MODEL_GROUP_COUNT - 1)] = \
ESP_BLE_MESH_ADDR_UNASSIGNED }, \
.keys = ESP_BLE_MESH_MODEL_KEYS_UNUSED, \
.groups = ESP_BLE_MESH_MODEL_GROUPS_UNASSIGNED, \
.op = _op, \
.user_data = _user_data, \
}
/*!< This macro is associated with BLE_MESH_MODEL_VND_CB in mesh_access.h */
#define ESP_BLE_MESH_VENDOR_MODEL(_company, _id, _op, _pub, _user_data) \
{ \
.vnd.company_id = (_company), \
.vnd.model_id = (_id), \
.op = _op, \
.vnd = { \
.company_id = (_company), \
.model_id = (_id), \
}, \
.pub = _pub, \
.keys = { [0 ... (CONFIG_BLE_MESH_MODEL_KEY_COUNT - 1)] = \
ESP_BLE_MESH_KEY_UNUSED }, \
.groups = { [0 ... (CONFIG_BLE_MESH_MODEL_GROUP_COUNT - 1)] = \
ESP_BLE_MESH_ADDR_UNASSIGNED }, \
.keys = ESP_BLE_MESH_MODEL_KEYS_UNUSED, \
.groups = ESP_BLE_MESH_MODEL_GROUPS_UNASSIGNED, \
.op = _op, \
.user_data = _user_data, \
}
@@ -302,8 +308,8 @@ typedef enum {
{ \
.location = (_loc), \
.sig_model_count = ARRAY_SIZE(_mods), \
.sig_models = (_mods), \
.vnd_model_count = ARRAY_SIZE(_vnd_mods), \
.sig_models = (_mods), \
.vnd_models = (_vnd_mods), \
}
@@ -416,8 +422,8 @@ typedef struct {
#define ESP_BLE_MESH_MODEL_PUB_DEFINE(_name, _msg_len, _role) \
NET_BUF_SIMPLE_DEFINE_STATIC(bt_mesh_pub_msg_##_name, _msg_len); \
static esp_ble_mesh_model_pub_t _name = { \
.update = (uint32_t)NULL, \
.msg = &bt_mesh_pub_msg_##_name, \
.update = (uint32_t)NULL, \
.dev_role = _role, \
}

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2017-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -57,6 +57,29 @@
#include "esp_ble_mesh_provisioning_api.h"
#include "esp_ble_mesh_networking_api.h"
#if CONFIG_BLE_MESH_DEINIT
static SemaphoreHandle_t deinit_comp_semaphore;
#endif
static inline void btc_ble_mesh_prov_cb_to_app_reprocess(esp_ble_mesh_prov_cb_event_t event,
esp_ble_mesh_prov_cb_param_t *param)
{
switch (event) {
#if CONFIG_BLE_MESH_DEINIT
case ESP_BLE_MESH_DEINIT_MESH_COMP_EVT:
assert(deinit_comp_semaphore);
/* Give the semaphore when BLE Mesh de-initialization is finished.
* @note: At nimble host, once this lock is released, it will cause
* the btc task to be deleted.
*/
xSemaphoreGive(deinit_comp_semaphore);
break;
#endif
default:
break;
}
}
static inline void btc_ble_mesh_prov_cb_to_app(esp_ble_mesh_prov_cb_event_t event,
esp_ble_mesh_prov_cb_param_t *param)
{
@@ -65,6 +88,8 @@ static inline void btc_ble_mesh_prov_cb_to_app(esp_ble_mesh_prov_cb_event_t even
if (btc_ble_mesh_cb) {
btc_ble_mesh_cb(event, param);
}
btc_ble_mesh_prov_cb_to_app_reprocess(event, param);
}
static inline void btc_ble_mesh_model_cb_to_app(esp_ble_mesh_model_cb_event_t event,
@@ -2268,6 +2293,8 @@ void btc_ble_mesh_prov_call_handler(btc_msg_t *msg)
case BTC_BLE_MESH_ACT_DEINIT_MESH:
act = ESP_BLE_MESH_DEINIT_MESH_COMP_EVT;
param.deinit_mesh_comp.err_code = bt_mesh_deinit((struct bt_mesh_deinit_param *)&arg->mesh_deinit.param);
/* Temporarily save the deinit semaphore and release it after the mesh deinit complete event is handled in the app layer */
deinit_comp_semaphore = arg->mesh_deinit.semaphore;
break;
#endif /* CONFIG_BLE_MESH_DEINIT */
default:

View File

@@ -309,6 +309,7 @@ typedef union {
} model_unsub_group_addr;
struct ble_mesh_deinit_args {
esp_ble_mesh_deinit_param_t param;
SemaphoreHandle_t semaphore;
} mesh_deinit;
} btc_ble_mesh_prov_args_t;

View File

@@ -147,6 +147,33 @@ static inline bt_mesh_atomic_val_t bt_mesh_atomic_and(bt_mesh_atomic_t *target,
extern bt_mesh_atomic_val_t bt_mesh_atomic_and(bt_mesh_atomic_t *target, bt_mesh_atomic_val_t value);
#endif
/**
* @brief Atomic CAS operation.
*
* This compares the contents of @a *target
* with the contents of @a excepted. If equal,
* the operation is a read-modify-write operation
* that writes @a new_val into @a *target and return true.
* If they are not equal, the operation is a read
* and return false.
*
* @param target Address of atomic variable.
* @param excepted Value of excepted.
* @param new_val Write if target value is equal to expected one.
*
* @return
* - true: Target value updated.
* - false: Target value not updated.
*/
#ifdef CONFIG_ATOMIC_OPERATIONS_BUILTIN
static inline bool bt_mesh_atomic_cas(bt_mesh_atomic_t *target, bt_mesh_atomic_val_t excepted, bt_mesh_atomic_val_t new_val)
{
return __atomic_compare_exchange_n(target, &excepted, &new_val, false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST);
}
#else
extern bool bt_mesh_atomic_cas(bt_mesh_atomic_t *target, bt_mesh_atomic_val_t excepted, bt_mesh_atomic_val_t new_val);
#endif
/**
* @cond INTERNAL_HIDDEN
*/

View File

@@ -840,22 +840,22 @@ struct net_buf_pool {
#if defined(CONFIG_BLE_MESH_NET_BUF_POOL_USAGE)
#define NET_BUF_POOL_INITIALIZER(_pool, _alloc, _bufs, _count, _destroy) \
{ \
.alloc = _alloc, \
.__bufs = (struct net_buf *)_bufs, \
.buf_count = _count, \
.uninit_count = _count, \
.avail_count = _count, \
.destroy = _destroy, \
.name = STRINGIFY(_pool), \
.destroy = _destroy, \
.alloc = _alloc, \
.__bufs = (struct net_buf *)_bufs, \
}
#else
#define NET_BUF_POOL_INITIALIZER(_pool, _alloc, _bufs, _count, _destroy) \
{ \
.alloc = _alloc, \
.__bufs = (struct net_buf *)_bufs, \
.buf_count = _count, \
.uninit_count = _count, \
.destroy = _destroy, \
.alloc = _alloc, \
.__bufs = (struct net_buf *)_bufs, \
}
#endif /* CONFIG_BLE_MESH_NET_BUF_POOL_USAGE */

View File

@@ -67,6 +67,8 @@ uint8_t bt_mesh_get_device_role(struct bt_mesh_model *model, bool srv_send);
int bt_mesh_rand(void *buf, size_t len);
uint32_t bt_mesh_get_rand(void);
#ifdef __cplusplus
}
#endif

View File

@@ -17,6 +17,7 @@
#include <stddef.h>
#include "esp_bit_defs.h"
#include "mesh_types.h"
#include "mesh_utils_loops.h"
#ifdef __cplusplus
extern "C" {
@@ -180,6 +181,40 @@ extern "C" {
*/
#define Z_IS_ENABLED3(ignore_this, val, ...) val
/* Used to remove brackets from around a single argument. */
#define __DEBRACKET(...) __VA_ARGS__
#define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
#define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__
/**
* @brief Generates a sequence of code with configurable separator.
*
* Example:
*
* #define FOO(i, _) MY_PWM ## i
* { LISTIFY(PWM_COUNT, FOO, (,)) }
*
* The above two lines expand to:
*
* { MY_PWM0 , MY_PWM1 }
*
* @param LEN The length of the sequence. Must be an integer literal less
* than 255.
* @param F A macro function that accepts at least two arguments:
* <tt>F(i, ...)</tt>. @p F is called repeatedly in the expansion.
* Its first argument @p i is the index in the sequence, and
* the variable list of arguments passed to LISTIFY are passed
* through to @p F.
*
* @param sep Separator (e.g. comma or semicolon). Must be in parentheses;
* this is required to enable providing a comma as separator.
*
* @note Calling LISTIFY with undefined arguments has undefined
* behavior.
*/
#define LISTIFY(LEN, F, sep, ...) UTIL_CAT(Z_UTIL_LISTIFY_, LEN)(F, sep, __VA_ARGS__)
const char *bt_hex(const void *buf, size_t len);
void mem_rcopy(uint8_t *dst, uint8_t const *src, uint16_t len);

File diff suppressed because it is too large Load Diff

View File

@@ -13,7 +13,7 @@
/*
* SPDX-FileCopyrightText: 2016 Intel Corporation
* SPDX-FileCopyrightText: 2011-2014 Wind River Systems, Inc.
* SPDX-FileContributor: 2018-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileContributor: 2018-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -170,4 +170,18 @@ bt_mesh_atomic_val_t bt_mesh_atomic_inc(bt_mesh_atomic_t *target)
return ret;
}
bool bt_mesh_atomic_cas(bt_mesh_atomic_t *target, bt_mesh_atomic_val_t excepted, bt_mesh_atomic_val_t new_val)
{
bt_mesh_atomic_lock();
if (*target == excepted) {
*target = new_val;
bt_mesh_atomic_unlock();
return true;
}
bt_mesh_atomic_unlock();
return false;
}
#endif /* #ifndef CONFIG_ATOMIC_OPERATIONS_BUILTIN */

View File

@@ -104,3 +104,8 @@ int bt_mesh_rand(void *buf, size_t len)
return 0;
}
uint32_t bt_mesh_get_rand(void)
{
return esp_random();
}

View File

@@ -2,7 +2,7 @@
/*
* SPDX-FileCopyrightText: 2017 Intel Corporation
* SPDX-FileContributor: 2018-2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileContributor: 2018-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -311,8 +311,7 @@ static void adv_thread(void *p)
}
/* busy == 0 means this was canceled */
if (BLE_MESH_ADV(*buf)->busy) {
BLE_MESH_ADV(*buf)->busy = 0U;
if (bt_mesh_atomic_cas(&BLE_MESH_ADV_BUSY(*buf), 1, 0)) {
#if !defined(CONFIG_BLE_MESH_RELAY_ADV_BUF)
if (adv_send(*buf)) {
BT_WARN("Failed to send adv packet");
@@ -427,7 +426,7 @@ static void bt_mesh_unref_buf(bt_mesh_msg_t *msg)
if (msg->arg) {
buf = (struct net_buf *)msg->arg;
BLE_MESH_ADV(buf)->busy = 0U;
bt_mesh_atomic_set(&BLE_MESH_ADV_BUSY(buf), 0);
if (buf->ref > 1U) {
buf->ref = 1U;
}
@@ -471,7 +470,7 @@ void bt_mesh_adv_send(struct net_buf *buf, const struct bt_mesh_send_cb *cb,
BLE_MESH_ADV(buf)->cb = cb;
BLE_MESH_ADV(buf)->cb_data = cb_data;
BLE_MESH_ADV(buf)->busy = 1U;
bt_mesh_atomic_set(&BLE_MESH_ADV_BUSY(buf), 1);
bt_mesh_adv_buf_ref_debug(__func__, buf, 3U, BLE_MESH_BUF_REF_SMALL);
@@ -573,7 +572,7 @@ void bt_mesh_relay_adv_send(struct net_buf *buf, const struct bt_mesh_send_cb *c
BLE_MESH_ADV(buf)->cb = cb;
BLE_MESH_ADV(buf)->cb_data = cb_data;
BLE_MESH_ADV(buf)->busy = 1U;
bt_mesh_atomic_set(&BLE_MESH_ADV_BUSY(buf), 1);
msg.arg = (void *)net_buf_ref(buf);
msg.src = src;
@@ -736,7 +735,7 @@ static void bt_mesh_ble_adv_send(struct net_buf *buf, const struct bt_mesh_send_
BLE_MESH_ADV(buf)->cb = cb;
BLE_MESH_ADV(buf)->cb_data = cb_data;
BLE_MESH_ADV(buf)->busy = 1U;
bt_mesh_atomic_set(&BLE_MESH_ADV_BUSY(buf), 1);
bt_mesh_adv_buf_ref_debug(__func__, buf, 3U, BLE_MESH_BUF_REF_SMALL);
@@ -755,7 +754,7 @@ static void ble_adv_tx_reset(struct ble_adv_tx *tx, bool unref)
}
bt_mesh_atomic_set(tx->flags, 0);
memset(&tx->param, 0, sizeof(tx->param));
BLE_MESH_ADV(tx->buf)->busy = 0U;
bt_mesh_atomic_set(&BLE_MESH_ADV_BUSY(tx->buf), 0);
if (unref) {
net_buf_unref(tx->buf);
}
@@ -946,7 +945,8 @@ int bt_mesh_stop_ble_advertising(uint8_t index)
/* busy 1, ref 1; busy 1, ref 2;
* busy 0, ref 0; busy 0, ref 1;
*/
if (BLE_MESH_ADV(tx->buf)->busy == 1U &&
if (bt_mesh_atomic_get(&BLE_MESH_ADV_BUSY(tx->buf)) &&
tx->buf->ref == 1U) {
unref = false;
}

View File

@@ -2,7 +2,7 @@
/*
* SPDX-FileCopyrightText: 2017 Intel Corporation
* SPDX-FileContributor: 2018-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileContributor: 2018-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -10,6 +10,7 @@
#ifndef _ADV_H_
#define _ADV_H_
#include "mesh_atomic.h"
#include "mesh_access.h"
#include "mesh_bearer_adapt.h"
@@ -23,7 +24,8 @@ extern "C" {
/* The user data is a pointer (4 bytes) to struct bt_mesh_adv */
#define BLE_MESH_ADV_USER_DATA_SIZE 4
#define BLE_MESH_ADV(buf) (*(struct bt_mesh_adv **)net_buf_user_data(buf))
#define BLE_MESH_ADV(buf) (*(struct bt_mesh_adv **)net_buf_user_data(buf))
#define BLE_MESH_ADV_BUSY(buf) (BLE_MESH_ADV(buf)->busy)
typedef struct bt_mesh_msg {
bool relay; /* Flag indicates if the packet is a relayed one */
@@ -45,8 +47,10 @@ struct bt_mesh_adv {
const struct bt_mesh_send_cb *cb;
void *cb_data;
uint8_t type:3,
busy:1;
uint8_t type:3;
bt_mesh_atomic_t busy;
uint8_t xmit;
};

View File

@@ -27,7 +27,12 @@
#else
#define UNPROVISIONED_INTERVAL K_SECONDS(5)
#endif
#if CONFIG_BLE_MESH_BQB_TEST
#define PROVISIONED_INTERVAL K_SECONDS(3)
#else
#define PROVISIONED_INTERVAL K_SECONDS(10)
#endif
#define BEACON_TYPE_UNPROVISIONED 0x00
#define BEACON_TYPE_SECURE 0x01

Some files were not shown because too many files have changed in this diff Show More