Commit Graph

20119 Commits

Author SHA1 Message Date
Jiang Jiang Jian c7ed859d8a Merge branch 'bugfix/fix_cache_count_flash_pages_patchs_return_wrong_value_v5.0' into 'release/v5.0'
fix(rom): Fix s2 and s3 Cache_Count_Flash_Pages rom function wrapper (v5.0)

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

See merge request espressif/esp-idf!37213
2025-03-02 17:05:26 +08:00
Tomasz Kramkowski bf5ce28592 fix(rom): Fix s2 and s3 Cache_Count_Flash_Pages rom function wrapper
The rom function on the s2 and s3 only counts one page for any pages
which are mapped to page 0 of flash as the Cache_Flash_To_SPIRAM_Copy
function attempts to map all flash page 0 mapped pages to one PSRAM
page.

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

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

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

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

This patch addresses the issue in this wrapper function by correctly
compensating for the bug only in cases where the final page0_mapped
value is 0.
2025-03-02 17:03:16 +08:00
Jiang Jiang Jian 8fbdf6c409 Merge branch 'bugfix/spp_mem_leak_v5.0' into 'release/v5.0'
fix(bt/bluedroid): fixed memory leaks in SPP callback mode (v5.0)

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

See merge request espressif/esp-idf!37292
2025-03-01 16:29:37 +08:00
Sajia 4f427f63c4 fix(esp_wifi): Check SSID in Assoc Req before starting SA Query 2025-02-28 15:11:07 +05:30
Jin Cheng 01dec39ed2 fix(bt/controller): fixed some controller bugs on ESP32.
1. added a VSC to control whether to initiate lmp_auto_rate
        - Closes https://github.com/espressif/esp-idf/issues/15133
    2. fixed EA resource cleanup error after SNIFF negotiation failure
        - Closes https://github.com/espressif/esp-idf/issues/13605
    3. removed an assertion in SCO data TX handler after disconnection
        - Closes https://github.com/espressif/esp-idf/issues/15176
2025-02-28 17:36:44 +08:00
Jin Cheng fab1b432fb fix(bt/bluedroid): fixed memory leaks in SPP callback mode 2025-02-28 16:18:50 +08:00
Island e69a86629a Merge branch 'feat/support_ble_vendor_hci_event_report_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Support BLE vendor hci event reporting (v5.0)

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

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

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

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

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

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

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

See merge request espressif/esp-idf!37337
2025-02-27 20:18:07 +08:00
wuzhenghui fedda1cb23 fix(esp_hw_support): fix esp32s2/esp32s3 RTC IOMUX clock management 2025-02-27 17:31:14 +08:00
chenjianhua 1d489be168 feat(bt): Update bt lib for ESP32-C3 and ESP32-S3(723439d)
- Added BLE controller debug log trace
- Added BLE controller log module
2025-02-27 16:12:18 +08:00
Wang Meng Yang 45acdc00ba Merge branch 'feat/support_ble_debug_with_gpio_v5.0' into 'release/v5.0'
Support change HID task size by Kconfig in HID example (v5.0)

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

See merge request espressif/esp-idf!37236
2025-02-27 14:20:37 +08:00
akshat d753986556 bugfix(wifi): Fix header file errors and remove esp_supplicant from check_public_headers_exceptions.txt 2025-02-27 13:56:17 +08:00
akshat 8cb861890a bugfix(wifi): Add missing brackets in the C++ guard
Closes https://github.com/espressif/esp-idf/issues/14991
2025-02-27 13:56:17 +08:00
Zhou Xiao 02e415448e fix(ble): fix flushout and sync issues 2025-02-27 13:13:59 +08:00
zhanghaipeng ae24c6e9b2 fix(ble/bluedroid): Added SPI output support for Bluedroid host log 2025-02-27 13:13:51 +08:00
zhanghaipeng 3cebdc731a fix(ble/bluedroid): Support SPI log output options for HCI 2025-02-27 13:13:43 +08:00
Martin Vychodil 331e9be3b4 Merge branch 'fix/esp_vfs_register_fd_range_warning_message_v5.0' into 'release/v5.0'
fix(storage/vfs): incorrect log level in esp_vfs_register_fd_range (v5.0)

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

See merge request espressif/esp-idf!35271
2025-02-26 21:39:44 +08:00
Aditi babc6045f0 fix(esp_wifi): Fix disconnect reason code error 2025-02-26 18:15:38 +05:30
wuzhenghui 011d60e6ec fix(esp_hw_support): fix lightsleep destroys deepsleep rtc parameters 2025-02-26 17:03:36 +08:00
zhanghaipeng 162331877c fix(ble): Update bt lib for ESP32(2a2631f)
- Support ESP32 BLE GPIO DEBUG
2025-02-26 16:20:54 +08:00
Sudeep Mohanty 68277df469 fix(panic_handler): Updated panic handler to use RTC WDT
This commit updates the following:
- Updates the panic handler to use only the RTC WDT to reset the system.
- Refactors some of the panic handler code.
- Updates Bluetooth files where in they now feed the WDTs instead of
  reconfiguring them.
- Removes some unnecessary configuration of WDTs from various files.
- Added a unit test to verify that the system does not lock up when the
  panic handler is stuck.
- Updates the memprot unit tests to work with the refactored panic
  handler.

Closes https://github.com/espressif/esp-idf/issues/15166
Closes https://github.com/espressif/esp-idf/issues/15018
Closes https://github.com/espressif/esp-idf/issues/10110
2025-02-26 08:38:05 +01:00
Island 94adab5492 Merge branch 'bugfix/fix_ble_report_len_v5.0' into 'release/v5.0'
fix(ble/bluedroid): Fix adv data and scan rsp data not reported together in BLE active scan (v5.0)

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

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

Closes https://github.com/espressif/esp-idf/issues/13364
Closes https://github.com/espressif/esp-idf/issues/15290
2025-02-24 10:29:20 +01:00
Zhang Hai Peng 2f9c756d74 feat(ble/bluedroid): Support change HID task size by Kconfig in HID example
(cherry picked from commit d4b3a7e99d)

Co-authored-by: Mitch Cairns <mitch.cairns@handheldlegend.com>
2025-02-23 17:49:07 +08:00
Zhang Hai Peng 358020ad8f fix(ble/bluedroid): Don't log error on 16/128-bit UUID mixed descriptors
(cherry picked from commit fed1d41aa7)

Co-authored-by: Nebojša Cvetković <nebkat@gmail.com>
2025-02-23 17:48:47 +08:00
Zhang Hai Peng ae6d5f8c29 fix(ble/bluedroid): Allow 0 length indications
(cherry picked from commit 9b5a52e2f7)

Co-authored-by: Nebojsa Cvetkovic <nebkat@gmail.com>
2025-02-23 17:48:28 +08:00
Rahul Tank 5d95056424 fix(nimble): Keep only BLE_GAP_EVENT_CONNECT gap event 2025-02-23 15:16:31 +05:30
Zhang Hai Peng e202883133 fix(ble/bluedroid): Fix adv data and scan rsp data not reported together in BLE active scan
(cherry picked from commit 7f2cedc048)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-02-21 16:13:27 +08:00
wuzhenghui 0a89efed63 fix(esp_driver_gpio): manage lp_io module clock by driver 2025-02-21 14:00:52 +08:00
Zhou Xiao 91d8d8ed11 feat(ble): add printf and write with timestamp interface for ble log spi out
(cherry picked from commit f8efa4cd80)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-21 11:53:31 +08:00
Martin Vychodil ae11fd5c92 Merge branch 'bugfix/memprot_s2_intr_peri1_v5.0' into 'release/v5.0'
fix(security): ESP32S2 memory protection check for Peri1 RTCSLOW interrupt (v5.0)

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

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

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

See merge request espressif/esp-idf!36853
2025-02-20 10:58:35 +08:00