Commit Graph

163 Commits

Author SHA1 Message Date
Xiao Xufeng
789ce684c9 fix(mmap): fixed some API read wrong data via mmap when flash being erased/written while XIP on PSRAM
Before:

The cache won't be disabled when XIP on psram. But during flash
erasing/programming, read data will be courrupt.

When XIP in psram is enabled, the image is not mapped to the cache so
usually there will be no flash access. The only way to read from flash
is via the driver or use mmap. The driver has protection during erasing,
while th mmap region not.

Now:

Mmap APIs provide a flag to make mmap->unmap region mutually exclusive
to flash erase/programming when XIP from psram. SPI Flash write APIs
will benefit from this. When the flag is used, no concurrent access to
mapped region will happen while writing; otherwise the cache will be
disable to avoid data corruption.

Most ESP-IDF APIs calls mmap with this flag. As for users calling
mmap-like APIs directly, they can choose whether to enable this by a
flag.

Closes https://github.com/espressif/esp-idf/issues/14897
2026-06-16 01:00:43 +08:00
Li Shuai
d7a2e15164 Merge branch 'feat/pm-683' into 'master'
support sleep retention runtime module attach/detach feature

Closes PM-683, PM-656, and BT-4216

See merge request espressif/esp-idf!47164
2026-05-21 17:07:58 +08:00
cjin
9521182c67 feat(ble): support retention attach/detach to bt module 2026-05-21 11:46:16 +08:00
ShenWeilong
cf813a4a1e feat(ble): Added ble support for esp32h21 2026-05-20 19:24:08 +08:00
ShenWeilong
a4171d2ad1 fix(ble): always init the default os queue for all of controllers 2026-04-28 15:06:18 +08:00
zhaoweiliang
8ef46541cd feat(ble): add adv tx options on ESP32-H2 2026-04-09 11:11:52 +08:00
Zhou Xiao
b5b886fd1e change(bt): consolidate BLE log Kconfig into common/Kconfig.in
Move per-chip BLE log Kconfig options (esp32c2/c5/c6/h2) into
components/bt/common/Kconfig.in for single-source-of-truth configuration.

Restructure menu as "BT Logs" with "Log Sources" sub-menu containing
controller log config options. Controller log output mode choice defaults
to BLE Log v2 when BLE_LOG_ENABLED, with legacy mode as deprecated
fallback. Migrate wrap_panic_handler and task_wdt_user_handler configs
as well since they depend on BT_LE_CONTROLLER_LOG_ENABLED.
2026-03-23 20:10:38 +08:00
Zhou Xiao
d51892380b change(bt/ble_log): remove BLE Log UHCI Out module
Delete ble_log_uhci_out.c and its header. Remove the UHCI Out source
from CMakeLists.txt and all BT_BLE_LOG_UHCI_OUT_* Kconfig options.
Remove per-chip BT_LE_CONTROLLER_LOG_UHCI_OUT_ENABLED Kconfig and
all UHCI Out caller references in esp32c5/c6/h2 controller bt.c.
Update ble_log_console README to reference the new BLE Log Module
UART DMA config. The functionality is superseded by the BLE Log
Module's UART DMA peripheral transport.
2026-03-20 16:01:35 +08:00
Island
596827eafd Merge branch 'feat/use_common_config_to_sel_crypt_lib' into 'master'
Feat/use common config to sel crypt lib

See merge request espressif/esp-idf!45556
2026-03-09 14:16:31 +08:00
cjin
ac8fe378a0 fix(ble): use apb max state for bt and enable should skip on ESP32-H2 2026-03-05 11:29:35 +08:00
Island
0d60c16312 Merge branch 'feat/esp_idf_modem_state_reconstruct' into 'master'
refactor modem clock driver

Closes PM-636

See merge request espressif/esp-idf!44185
2026-02-06 12:10:58 +08:00
cjin
5777364341 fix(ble): add modem syscon header include on ESP32H2 2026-02-04 12:36:42 +08:00
cjin
4418d5da82 feat(ble): add config for reserved controller memory on ESP32C6 and ESP32H2 2026-02-04 00:07:44 +08:00
zhaoweiliang
84924e3980 feat(ble): support adv fast tx feature on ESP32-C6 and ESP32-H2 2026-02-04 00:07:44 +08:00
ShenWeilong
aa40fdcc64 change(bt): use BT_SMP_CRYPTO_STACK_MBEDTLS to select bt cryption lib 2026-02-04 00:07:33 +08:00
cjin
e4e42f0166 feat(ble): support sid filter feature on ESP32H2 2026-01-16 12:51:55 +05:30
zhiweijian
ce72e90291 feat(ble/bluedroid): Add new bluedroid host examples 2026-01-08 12:17:26 +08:00
zhaoweiliang
a16a56fdbe fix(ble): fixed build error on ESP32-C6 2025-12-31 20:05:14 +08:00
Ashish Sharma
f22006e2f0 feat: migrates bt/ble to PSA APIs 2025-12-30 09:31:49 +05:30
cjin
2eb79c71f1 fix(ble): add soc caps config for pawr feat on ESP32H2 2025-12-09 16:27:00 +08:00
zhaoweiliang
aad080bc26 feat(ble): add CONFIG_BT_LE_CTRL_DL_ITVL_PHY_SYNC_EN config on ESP32-C5 2025-12-03 14:28:17 +08:00
zhaoweiliang
5f2825ff37 feat(ble): add CONFIG_BT_LE_CTRL_DL_ITVL_PHY_SYNC_EN config on ESP32-H2 2025-12-03 14:25:25 +08:00
ShenWeilong
cd33f13521 change(ble): Updated the maximum number of concurrent connections to 70 on ESP32-H2 2025-11-24 21:03:47 +08:00
zhaoweiliang
0f03da43c8 feat(ble): add peripheral fast rx data in latency config on ESP32-C6 2025-11-07 09:59:31 +08:00
cjin
658efa27f0 feat: rename ble sleep related apt on ESP32-H2 2025-11-06 17:31:44 +08:00
zhaoweiliang
75f2b8d4a1 feat(ble): add priority level config on ESP32-H2 2025-10-23 11:25:42 +08:00
cjin
5ff01bf027 fix(ble): fix ble wakeup causes error on ESP32-H2 2025-10-22 17:50:53 +08:00
Island
4cd13a9317 Merge branch 'fix/update_pawr_example_docs' into 'master'
Fix/update pawr example docs

See merge request espressif/esp-idf!42161
2025-10-17 18:03:00 +08:00
zwl
034172154a feat(ble): change free api on ESP32-C6 2025-10-15 15:11:06 +08:00
cjin
abfc2d766e feat(ble): allow a larger sca limit on ESP32-H2 2025-09-26 18:04:27 +08:00
cjin
41ecf44cb3 feat(ble): get wakeup cause when wake up on ESP32-H2 2025-09-19 16:47:57 +08:00
Island
a3b8073d96 Merge branch 'change/ble_update_lib_20250828' into 'master'
change(ble): [AUTO_MR] 20250828 - Update ESP BLE Controller Lib

Closes BLERP-2183, BLERP-2083, BLERP-2195, and BLERP-2196

See merge request espressif/esp-idf!41601
2025-09-17 10:33:14 +08:00
Zhou Xiao
6758a47044 feat(ble): supported ble log v2 for ESP32-H2 2025-09-16 14:31:36 +08:00
zwl
b091ec843c fix(ble): update ext_version on ESP32-H2 2025-09-16 00:06:40 +08:00
cjin
2f7e200fc8 feat(ble): support pawr feature in ble sdk on ESP32-H2 2025-08-18 19:18:10 +08:00
cjin
cb60528f23 feat(ble): add clk source freq change of ble slow clock on ESP32-H2 2025-08-18 19:18:10 +08:00
zwl
43c82b3b20 fix(ble): fixed dtm function error on ESP32-H2 2025-07-31 14:52:59 +08:00
zwl
4c8258ca38 feat(ble): add flash only param config api on ESP32-H2 2025-07-28 14:11:16 +08:00
Zhou Xiao
d45778f784 feat(ble): support ble log uart dma out for ESP32-H2 2025-07-17 10:48:22 +08:00
cjin
64f216ae5a feat(ble): enable broker initialization on ESP32-H2 2025-07-09 11:25:23 +08:00
cjin
265a8746dc feat(ble): support memory allocation check debug feature on ESP32-H2 2025-07-09 11:25:23 +08:00
cjin
e44f1373a0 feat(ble): add sm count reserve cnt setting on ESP32-H2 2025-06-26 14:54:53 +08:00
cjin
a2fab0ad60 fix(ble): change the default ble cca thresh on ESP32-H2 2025-06-06 17:57:04 +08:00
zwl
3c8ba488e0 fix(ble): fixed an occasional assertion issue during sync on ESP32-C6 2025-06-06 17:56:11 +08:00
Zhou Xiao
d12e072b35 fix(ble): added missed printf for ll log interface 2025-05-16 15:10:44 +08:00
zwl
207d85a5f7 feat(ble): support creating connections during scanning process on ESP32-H2 2025-05-16 14:31:44 +08:00
cjin
6c8ee69151 feat(ble): support ble sleep using 136 kHz RC on ESP32-H2 2025-04-22 10:02:57 +08:00
cjin
4937d3c883 feat(ble): support configurable rxbuf opt feat on ESP32-H2 2025-04-16 14:36:48 +08:00
Shen Weilong
12c0cd63d3 feat(ble/controller): Added memory boundary check for ESP32-C6 and ESP32-H2 2025-03-25 15:08:06 +08:00
Geng Yuchao
adc61d3c8d feat(ble):Add Kconfig support for direction finding feature 2025-03-21 16:34:31 +08:00