Commit Graph

22272 Commits

Author SHA1 Message Date
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
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
luoxu
25b6f0c92f bugfix(ble_mesh): Close BLEQABR23-798 2024-05-22 16:59:03 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Jack
d7b0a45ddb
versions: Update to v5.1.4 2024-05-09 18:35:18 +08:00
liuning
3004af48e6 update c3 s3 c6 libphy fix coex reset and bug 2024-05-08 17:15:09 +08:00
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
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
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
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
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
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
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
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
Kapil Gupta
a4cda66e30 feat(esp_wifi): Provide API to disable PMK caching 2024-04-17 09:40:37 +05:30
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
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
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
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
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
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
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
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
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
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
liuning
6c015fd05e fix(wifi): fix coex ld issue 2024-03-28 21:19:27 +08:00
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
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
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
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
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
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
7155146f9c fix(vfs): fix eventfd select 2024-03-15 17:38:28 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Fu Hanxi
bddf56e3d0
ci: build default app for lwip test app 2024-03-08 11:06:21 +01: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
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
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
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
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
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
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
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
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