33834 Commits

Author SHA1 Message Date
Tomasz Kramkowski
aceebcccfe fix(rom): Fix s2 and s3 Cache_Count_Flash_Pages rom function wrapper
The rom function on the s2 and s3 only counts one page for any pages
which are mapped to page 0 of flash as the Cache_Flash_To_SPIRAM_Copy
function attempts to map all flash page 0 mapped pages to one PSRAM
page.

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

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

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

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

This patch addresses the issue in this wrapper function by correctly
compensating for the bug only in cases where the final page0_mapped
value is 0.
2025-02-20 16:12:57 +08:00
Wang Meng Yang
76ea699a0a Merge branch 'bugfix/sdp_uuid16_match_err_v5.1' into 'release/v5.1'
fix(bt): Fix the incorrect record found using uuid16 search(v5.1)

See merge request espressif/esp-idf!36852
2025-02-20 14:11:04 +08:00
Jiang Jiang Jian
779100aa3f Merge branch 'feat/add_inq_page_coex_schm_v5.1' into 'release/v5.1'
feat(coex): add coexist scheme for bt inquiry/page coexist with wifi

See merge request espressif/esp-idf!37006
2025-02-20 13:54:17 +08:00
Jiang Jiang Jian
e9b7e6c434 Merge branch 'change/ble_update_lib_20250212_v5.1' into 'release/v5.1'
change(ble): [AUTO_MR] 20250212 - Update ESP BLE Controller Lib (v5.1)

See merge request espressif/esp-idf!37041
2025-02-20 11:09:15 +08:00
Jiang Jiang Jian
bc3755feb7 Merge branch 'bugfix/fix_delete_queue_error_in_espnow_example_v5.1' into 'release/v5.1'
fix(wifi): fix the delete queue error in espnow exapmle (v5.1)

See merge request espressif/esp-idf!37017
2025-02-20 11:08:22 +08:00
Jiang Jiang Jian
388d63bc02 Merge branch 'bugfix/wps_scan_freq_v5.1' into 'release/v5.1'
fix(esp_wifi): Reduce scan frequency in WPS (v5.1)

See merge request espressif/esp-idf!36823
2025-02-20 11:03:40 +08:00
Jiang Jiang Jian
68560a53d9 Merge branch 'bugfix/h2_ble_timer_clk_enable_fix_v5.1' into 'release/v5.1'
fix: H2 ble timer clk enable issue. (v5.1)

See merge request espressif/esp-idf!36542
2025-02-20 11:03:11 +08:00
Jiang Jiang Jian
dead621f29 Merge branch 'bugfix/remove_unused_sco_state_v5.1' into 'release/v5.1'
Bugfix/remove unused sco state (v5.1)

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

See merge request espressif/esp-idf!36025
2025-02-20 10:41:31 +08:00
Jiang Jiang Jian
5ec8b9c608 Merge branch 'fix/add_sleep_duration_check_for_timer_wakeup_v5.1' into 'release/v5.1'
fix(esp_hw_support): add timer wakeup sleep duration check (v5.1)

See merge request espressif/esp-idf!37013
2025-02-20 10:41:06 +08:00
Island
e7629d043f Merge branch 'feat/support_ble_debug_with_gpio_v5.1' into 'release/v5.1'
Support change HID task size by Kconfig in HID example (v5.1)

See merge request espressif/esp-idf!36996
2025-02-19 16:37:08 +08:00
Shu Chen
38d3d78ad9 Merge branch 'support/ieee802154_get_rssi_comp_from_phy_v5.1' into 'release/v5.1'
feat(802.15.4): support ieee802154 get rssi comp from phylib (v5.1)

See merge request espressif/esp-idf!37054
2025-02-19 11:02:46 +08:00
Island
c48f642834 Merge branch 'feat/add_spi_output_v5.1' into 'release/v5.1'
Feat/add spi output (v5.1)

See merge request espressif/esp-idf!36953
2025-02-19 10:55:18 +08:00
Shu Chen
9220422552 Merge branch 'feat/add_ot_br_lib_check_case_v5.1' into 'release/v5.1'
feat(openthread): add br library check case (v5.1)

See merge request espressif/esp-idf!36888
2025-02-19 10:50:52 +08:00
xiongweichao
34a7d3f33f fix(bt): Fixed SDP record integrity check bug 2025-02-19 10:29:33 +08:00
xiongweichao
e3ec77be74 fix(bt/bluedroid): fixed the format error of passkey printing 2025-02-19 10:29:33 +08:00
xiongweichao
a81cb61168 fix(bt/bluedroid): Fixed incorrect types of some variables in SDP 2025-02-19 10:29:33 +08:00
xiongweichao
0b92fe67d3 fix(bt): Fix incorrect type returned when searching SAP record 2025-02-19 10:29:33 +08:00
xiongweichao
6ba3158f36 fix(bt): Fix the incorrect record found using uuid16 search 2025-02-19 10:29:33 +08:00
Mahavir Jain
3e163c6375 Merge branch 'feat/bootloader_nvs_read_encrypted_v5.1' into 'release/v5.1'
fix(esptool_py): NVS partition being incorrectly marked as encrypted by the build system (v5.1)

See merge request espressif/esp-idf!36682
2025-02-18 21:29:11 +08:00
Martin Vychodil
715f1905d1 Merge branch 'bugfix/storage_generic_pytests_v5.1' into 'release/v5.1'
fix(ci): Removed storage related entries in known generate test child pipeline warnings (v5.1)

See merge request espressif/esp-idf!36687
2025-02-18 16:29:02 +08:00
Rahul Tank
495b0fff77 Merge branch 'bugfix/fix_few_nimble_issues_v5.1' into 'release/v5.1'
fix(nimble): Fix few nimble issues 11012025 (v5.1)

See merge request espressif/esp-idf!36314
2025-02-18 16:11:18 +08:00
Wang Meng Yang
abb9e304e6 Merge branch 'feat/esp32_set_get_bt_lpclk_src_v5.1' into 'release/v5.1'
feat(ble): Added API to get/set low power clock source(v5.1)

See merge request espressif/esp-idf!36566
2025-02-18 15:10:04 +08:00
morris
6d851a700f Merge branch 'feat/mmu_find_paddr_caps_by_any_offset_v5.1' into 'release/v5.1'
mmu: supported find paddr caps by any paddr offset (v5.1)

See merge request espressif/esp-idf!36839
2025-02-18 13:48:19 +08:00
morris
6a00758e32 Merge branch 'bugfix/fix_i2s_reconfig_slot_issue_v5.1' into 'release/v5.1'
fix(i2s): fixed incorrect logic in slot reconfig (v5.1)

See merge request espressif/esp-idf!36644
2025-02-18 13:47:39 +08:00
morris
80915d4dff Merge branch 'bugfix/uart_single_wire_mode_v5.1' into 'release/v5.1'
fix(uart): allow same pin for tx and rx in uart_set_pin; UART_SELECT_READ_NOTIF race conditon fix (v5.1)

See merge request espressif/esp-idf!36282
2025-02-18 13:47:09 +08:00
zwx
16f2c20833 feat(802.15.4): use btbb function to get rssi comp for h2 2025-02-18 12:11:09 +08:00
zwl
14d6c95877 change(ble): [AUTO_MR] Update lib_esp32c6 to 1d7eebaf 2025-02-18 11:01:23 +08:00
zwl
58e851ac0a change(ble): [AUTO_MR] Update lib_esp32h2 to 1d7eebaf 2025-02-18 11:01:14 +08:00
zwl
a5b29fd0c4 feat(ble): add channel assessment and enhanced connect function on ESP32-C6 2025-02-18 11:01:05 +08:00
Zhang Hai Peng
ad1e522425 feat(ble/bluedroid): Support change HID task size by Kconfig in HID example
(cherry picked from commit d4b3a7e99d29150d9718415384db7ac5ae7673d5)

Co-authored-by: Mitch Cairns <mitch.cairns@handheldlegend.com>
2025-02-18 10:54:05 +08:00
Zhou Xiao
f08f52d057 feat(ble): support enhanced controller log capabilities on ESP32-C2
(cherry picked from commit bbcb4a2e1f9c9bc13d59364d42c70bdf02ae14ef)

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

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

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-02-18 10:22:49 +08:00
Roland Dobai
dff87a6ba7 Merge branch 'update/version_5_1_6' into 'release/v5.1'
Update version to 5.1.6

See merge request espressif/esp-idf!37022
2025-02-18 03:06:31 +08:00
wuzhenghui
1792e21b86
fix(esp_hw_support): fix lp/hp clock wait time calculation 2025-02-17 20:51:07 +08:00
wuzhenghui
2e9838be97
change(esp_hw_support): wait pll calibration done in regdma link instead of wait fixed value 2025-02-17 20:51:03 +08:00
wuzhenghui
989e958256
fix(esp_hw_support): add timer wakeup sleep duration check
Closes https://github.com/espressif/esp-idf/issues/15255
2025-02-17 19:44:20 +08:00
Astha Verma
678ba59167 fix(nimble): Handle nested locks when BT_NIMBLE_DEBUG enabled 2025-02-17 15:01:21 +05:30
Abhinav Kudnar
05dce52b18 feat(nimble): Add offset in GATT server long read context 2025-02-17 15:00:41 +05:30
Rahul Tank
c5e4d76538 fix(nimble): Handle not sending disconnect event if connect was not sent 2025-02-17 14:59:50 +05:30
Astha Verma
eea8166aa6 fix(nimble): fix NVS corruption 2025-02-17 14:58:35 +05:30
Astha Verma
f31929e611 fix(nimble): Added sync reattempt for periodic adv 2025-02-17 14:58:01 +05:30
Astha Verma
64af22a38b fix(nimble): Enhanced error handling by adding to print core error definitions 2025-02-17 14:57:27 +05:30
Astha Verma
830a44c08b docs: Updated README.md by removing unclear lines 2025-02-17 14:56:50 +05:30
Abhinav Kudnar
05aa2fd603 fix(nimble): Save the gatt context in case of preemption 2025-02-17 14:56:31 +05:30
Rahul Tank
69ef176ad5 fix(nimble): Fixed warnings with COMPILTER_WARN_WRITE_STRINGS set 2025-02-17 14:55:25 +05:30
Rahul Tank
5d9e871f17 fix(nimble): Fix compilation issues for different flag combinations 2025-02-17 14:51:09 +05:30
Abhinav Kudnar
c060d841c5 feat(nimble): Additional changes in PAWR IDF Examples/support for ESP IP 2025-02-17 14:49:06 +05:30
Rahul Tank
e20e949251 fix(nimble): Reset data length global variables 2025-02-17 14:49:06 +05:30