39303 Commits

Author SHA1 Message Date
Martin Vychodil
2c26a7e11e fix(security): Fixed ESP32S2 memory protection check for Peri1 RTCSLOW interrupt
- fixes the issue found in https://github.com/espressif/esp-idf/issues/15359
- extends debug printouts in the related tests
2025-02-21 16:29:04 +08:00
Zhang Hai Peng
18973c0c61 fix(ble/bluedroid): Fix adv data and scan rsp data not reported together in BLE active scan
(cherry picked from commit 7f2cedc0488fe30316b7c6a45be1c8933ad36952)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-02-21 16:13:46 +08:00
cjin
bb232d627d change(ble): update esp32c6 lib to 7ead2d29 2025-02-21 12:24:09 +08:00
cjin
d6410d2aad change(ble): update esp32h2 lib to 7ead2d29 2025-02-21 12:24:09 +08:00
zwl
8ef5a044d2 feat(ble): implement ble capture info user handler on ESP32-C6 and ESP32-H2 2025-02-21 12:24:09 +08:00
Shen Weilong
838dd8e567 change(ble): Supported cuttable architecture for ble 2025-02-21 12:24:09 +08:00
Zhou Xiao
6c54ce599f feat(ble): add printf and write with timestamp interface for ble log spi out
(cherry picked from commit f8efa4cd80690579c0e4893d6c596f0cb2bacd7c)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-21 11:53:54 +08:00
linruihao
5d8955ebac feat(bt/bluedroid): Add Kconfig option to keep device bonding info when HID unplugging 2025-02-21 11:53:08 +08:00
Jiang Jiang Jian
fed7e38609 Merge branch 'fix/esp32p4_lightsleep_fixes_v5.3' into 'release/v5.3'
fix(esp_hw_support): some fixes of esp32p4 lightsleep retention & power switch process (v5.3)

See merge request espressif/esp-idf!37097
2025-02-21 11:03:20 +08:00
Jiang Jiang Jian
c327f4c4a7 Merge branch 'fix/fix_s2_s3_rtc_iomux_clock_management_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix esp32s2/esp32s3 RTC IOMUX clock management (v5.3)

See merge request espressif/esp-idf!37166
2025-02-21 11:02:40 +08:00
morris
061faa21c2 Merge branch 'bugfix/fix_cache_count_flash_pages_patchs_return_wrong_value_v5.3' into 'release/v5.3'
fix(rom): Fix s2 and s3 Cache_Count_Flash_Pages rom function wrapper (v5.3)

See merge request espressif/esp-idf!37156
2025-02-21 10:17:09 +08:00
wuzhenghui
1f6d8d4e5d
fix(esp_hw_support): fix esp32s2/esp32s3 RTC IOMUX clock management 2025-02-20 19:39:02 +08:00
Tomasz Kramkowski
664b7821f7 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:06:02 +08:00
Song Ruo Jing
5ed33be402
fix(pmu): enable all func clock icg during retention
This should only increase a tiny amount of the power consumption in the retention process,
but save debug time since some module register read/write relies not only APB but also func clock.
2025-02-20 15:04:13 +08:00
Island
9eeff2e97e Merge branch 'feat/improve_bt_log_spi_output_interface_v5.3' into 'release/v5.3'
Feat/improve bt log spi output interface (v5.3)

See merge request espressif/esp-idf!37136
2025-02-20 14:48:02 +08:00
Island
d76e076fc3 Merge branch 'change/ble_update_lib_20250212_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20250212 - Update ESP BLE Controller Lib (v5.3)

See merge request espressif/esp-idf!37043
2025-02-20 14:47:57 +08:00
morris
cac01ada13 Merge branch 'fix/build_when_rom_patch_disable_v5.3' into 'release/v5.3'
fix(spi_flash): Fix build fail when rom_patch config disabled (backport v5.3)

See merge request espressif/esp-idf!37104
2025-02-20 13:54:38 +08:00
Marius Vikhammer
1812f701ba docs(examples): fixed broken link in uart example readme 2025-02-20 12:49:32 +08:00
morris
4d88d8ec08 Merge branch 'fix/i2c_scl_freq_s2_v5.3' into 'release/v5.3'
fix(i2c): Fix scl frequency is wrong on esp32s2 in legacy i2c driver (backport v5.4)

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

See merge request espressif/esp-idf!36019
2025-02-20 11:22:18 +08:00
morris
03a2fca29d Merge branch 'feature/flash_software_resume_v5.3' into 'release/v5.3'
feat(spi_flash): Add config for adding auto check status after suspend to improve performance (backport v5.3)

See merge request espressif/esp-idf!36526
2025-02-20 11:01:11 +08:00
morris
7354091eb2 Merge branch 'bugfix/fix_i2s_std_initializer_order_for_cpp_compiler_v5.3' into 'release/v5.3'
fix(i2s): fixed i2s_std initializer order for cpp compiler (v5.3)

See merge request espressif/esp-idf!37048
2025-02-20 11:00:21 +08:00
morris
c1b32c87de Merge branch 'fix/esp_mmu_vaddr_to_paddr_cannot_figure_psram_p4_v5.3' into 'release/v5.3'
mmu: vaddr to paddr cannot figure psram vaddr on esp32p4 (v5.3)

See merge request espressif/esp-idf!37050
2025-02-20 10:59:35 +08:00
morris
a698b26012 Merge branch 'bugfix/dma_alignment_for_encryption_memory_v5.3' into 'release/v5.3'
fix(gdma): relax alignment constraint for internal memory (v5.3)

See merge request espressif/esp-idf!37094
2025-02-20 10:12:13 +08:00
wuzhenghui
7147d7b366
change(esp_hw_support): wrapper sleep dcdc/ldo ops with ll 2025-02-19 21:37:38 +08:00
wuzhenghui
367fda4447
feat(esp_hw_support): add branch prediction config retention 2025-02-19 21:37:16 +08:00
wuzhenghui
2445545a17
fix(esp_hw_support): fix DCDC switch bad software powerdown 2025-02-19 21:36:40 +08:00
wuzhenghui
08e7ef62da
change(esp_hw_support): define Cache invalidate in sleep process to avoid dirtying the L1 Cache 2025-02-19 21:36:13 +08:00
wuzhenghui
022def4ac5
feat(esp_hw_support): do mstatus restore on each core 2025-02-19 21:34:36 +08:00
wuzhenghui
f52b2275d9
feat(esp_hw_support): do esp32p4 l1 cache invalidate by regdma 2025-02-19 21:33:08 +08:00
wuzhenghui
ca9cca73ff
feat(esp_hw_support): do esp32p4 l1&l2 cache regs retention by regdma 2025-02-19 21:32:15 +08:00
Zhou Xiao
c3c849b263 feat(ble): support ble log spi out for ESP32-C3 and ESP32-S3
(cherry picked from commit e41f6195667fa2724d78c9b33a9894d91675b0d6)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-19 20:54:16 +08:00
Zhou Xiao
03073ad5a5 feat(ble): support ble log spi out for ESP32
(cherry picked from commit e2fbec5d2e70bd0a7d3b2e5f5b5cc7a662157130)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-19 20:54:14 +08:00
Zhou Xiao
ce6741163a change(ble): update ble log spi out config for ESP32-H2
(cherry picked from commit 608ecf63e21d9b266bd8ab857cd3036412acdb7c)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-19 20:54:11 +08:00
Zhou Xiao
7e22702043 change(ble): update ble log spi out config for ESP32-C6
(cherry picked from commit e61089e7e0d7ba25dba12781867c36c1f0887c17)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-19 20:54:08 +08:00
Zhou Xiao
d01f32df2d change(ble): update ble log spi out config for ESP32-C2
(cherry picked from commit e4b698fc32249f3d30c6eba69de1d325fee71dee)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-19 20:54:05 +08:00
Zhou Xiao
e8daf00ea5 feat(ble): improved ble log spi output interface to support multisource log
(cherry picked from commit 2221133ba8e84a7bb709857bac0b79ce7c666ba3)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-19 20:54:02 +08:00
C.S.M
c96f29f856 fix(i2c): Fix scl frequency is wrong on esp32s2 in legacy i2c driver,
Closes https://github.com/espressif/esp-idf/issues/15301,
Closes https://github.com/espressif/esp-idf/issues/14603
2025-02-19 17:45:44 +08:00
C.S.M
1800d14dc1 refactor(spi_flash): remove redundent flash suspend check 2025-02-19 16:55:27 +08:00
C.S.M
d96f71c5cc fix(spi_flash): Fix build fail when rom_patch config disabled,
Closes https://github.com/espressif/esp-idf/issues/15229
2025-02-19 16:54:37 +08:00
Island
d4bb0e2aa3 Merge branch 'feat/support_ble_debug_with_gpio_v5.3' into 'release/v5.3'
Support change HID task size by Kconfig in HID example (v5.3)

See merge request espressif/esp-idf!36998
2025-02-19 16:37:56 +08:00
morris
6a1cf6bb85 fix(gdma): relax alignment constraint for internal memory
external memory encryption should not affect internal memory alignment

Closes https://github.com/espressif/esp-idf/issues/15228
2025-02-19 15:16:19 +08:00
Armando
f8e84969f9 test(psram): added mem leak thresh for xip test, previous is 600 is close to the actual leak 2025-02-19 14:07:47 +08:00
Armando
04708898a2 test(flash_mmap): added psram enabled test for esp32p4 as mmu is per target 2025-02-19 14:07:47 +08:00
Armando
817961a8a2 test(mmu): added test for checking esp_mmu_vaddr_to_paddr with psram vaddrs 2025-02-19 14:07:47 +08:00
Armando
e1ea5ee810 fix(mmu): fixed esp_mmu_vaddr_to_paddr cannot figure out psram vaddr issue on esp32p4 2025-02-19 14:07:47 +08:00
Jiang Jiang Jian
1698a58881 Merge branch 'fix/add_sleep_duration_check_for_timer_wakeup_v5.3' into 'release/v5.3'
fix(esp_hw_support): add timer wakeup sleep duration check (v5.3)

See merge request espressif/esp-idf!37011
2025-02-19 14:02:53 +08:00
Jiang Jiang Jian
edd28f9cf1 Merge branch 'bugfix/watchdog_timer_ap_sta_esp32c5_v5.3' into 'release/v5.3'
fix(wifi): Prevent overwriting of scan parameters in consecutive scans (Backport v5.3)

See merge request espressif/esp-idf!34073
2025-02-19 13:46:39 +08:00
Shu Chen
9b00dff1b9 Merge branch 'support/ieee802154_get_rssi_comp_from_phy_v5.3' into 'release/v5.3'
feat(802.15.4): support ieee802154 get rssi comp from phylib (v5.3)

See merge request espressif/esp-idf!37052
2025-02-19 11:03:40 +08:00
morris
85cf4c262b Merge branch 'fix/adc_func_register_not_reset_issue_v5.3' into 'release/v5.3'
adc: func register not reset issue (v5.3)

See merge request espressif/esp-idf!37046
2025-02-19 10:33:33 +08:00