Commit Graph

137 Commits

Author SHA1 Message Date
cjin
6ec7a718f9 feat(sleep_modem): allow multi modem to enable rf with regdma 2026-07-17 11:04:26 +08:00
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
Island
7b3d478242 Merge branch 'fix/ble_funcs_reset_default_enabled' into 'master'
fix(bt): Add default BLE controller funcs reset enable

Closes BLERP-2791

See merge request espressif/esp-idf!49014
2026-06-01 19:23:04 +08:00
Rahul Tank
9897b1ee7d fix(nimble): Add support for shorter connection intervals 2026-06-01 11:21:17 +05:30
zhanghaipeng
7c1cb4b296 fix(bt): Add default BLE controller funcs reset enable 2026-05-29 10:08:18 +08:00
zhanghaipeng
0af57d731c feat(ble): Support BLE critical logs 2026-05-13 14:22:40 +08:00
zhanghaipeng
658ff8730b fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(2f683593)
- Fixed read remote feature timeout when using coded phy
- Fixed disconnection issue(0x08) when using 125k coded phy
- Fixed disconnection issue(0x08) when updating connection param
- Fixed disconnection issue(0x08) when using multi connection
- Avoid error when adding duplicate device to whitelist
- Support disable channel assessment by vendor hci
- Support smaller connection interval (3.75 ms)
- Support duplicate exception list in EVT ADV
2026-04-28 18:26:22 +08:00
Island
51bbd5257a Merge branch 'dev/ble-log-202603' into 'master'
dev: BLE Log 202603

See merge request espressif/esp-idf!46934
2026-04-03 18:10:47 +08:00
Zhou Xiao
c223a3f835 feat(bt): add BT_LOG_CRITICAL_ONLY bandwidth-optimized log mode
Add Kconfig options for bandwidth-optimized logging via the BLE Log
Async Output system. When enabled, controller log levels default to 2
and host/mesh log encoding is auto-selected.

- BT_LOG_CRITICAL_ONLY parent: selects BLE_LOG_ENABLED + compression
- BT_LOG_CRITICAL_ONLY_CTRL: supports both NimBLE and non-NimBLE (C3)
  controllers with default level override
- BT_LOG_CRITICAL_ONLY_HOST: host-agnostic, selects compressed log
  for Bluedroid conditionally
- BT_LOG_CRITICAL_ONLY_MESH: placeholder for mesh log encoding
- Guards against BT_STACK_NO_LOG conflict
2026-03-23 23:44:26 +08:00
zhanghaipeng
e3aac6f703 fix(ble): Fixed BLE assert in "emi.c" when low memory 2026-03-20 20:01:55 +08:00
He Binglin
1b547ca0ba Merge branch 'bugfix/esp_idf_s3_deepsleep_dead' into 'master'
fix(hal): fix the issue of dual-core contention for RTC_CNTL regs

See merge request espressif/esp-idf!41680
2026-03-02 11:35:53 +08:00
Jiang Jiang Jian
d7a52218e1 Merge branch 'bugfix/lc_not_wakeup' into 'master'
fix(ble): Fix restore write-back error caused by memory allocated in PSRAM

Closes BT-4245

See merge request espressif/esp-idf!45717
2026-02-13 12:32:37 +08:00
hebinglin
baeabe48c3 fix(hal): fix the issue of dual-core contention for RTC_CNTL regs 2026-02-10 12:08:03 +08:00
xiongweichao
4ef57f9c81 fix(bt): Replace 32k_xtal with rtc_slow 2026-02-06 08:24:33 +00:00
xiongweichao
91b9e7be7c fix(ble): Fix restore write-back error caused by memory allocated in PSRAM 2026-02-06 16:23:24 +08:00
chenjianhua
03758ba550 feat(bt): Update bt lib for ESP32-C3 and ESP32-S3(0871069)
- Added more log for BLE
- Support BLE log filter and simeple output
- Support BLE log compression
2025-11-03 17:46:21 +08:00
chenjianhua
25adf4c934 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(18b5cbe)
- Fixed GPIO matrix function calls
2025-10-11 19:38:41 +08:00
Zhou Xiao
4247876b36 fix(ble): fixed ble log config for ESP32-C3/ESP32-S3 2025-09-16 20:18:22 +08:00
Zhou Xiao
1edaf8ebc1 feat(ble): supported ble log v2 for ESP32-C3/ESP32-S3 2025-09-16 14:43:03 +08:00
Zhou Xiao
b8b7e153a7 fix(ble): update error code in controller init for ESP32-S3/ESP32-C3 2025-07-07 18:57:02 +08:00
Zhou Xiao
6ac541aa4a fix(ble): fixed controller log api call for ESP32-C3/ESP32-S3 2025-07-07 18:57:02 +08:00
xiongweichao
c2d666a6d9 fix(ble): keep the log of the bluetooth sleep clock source consistent 2025-07-01 19:17:20 +08:00
zhiweijian
1d739291ca feat(ble/controller): Reduce bin size and IRAM for BLE rom code 2025-05-21 10:22:37 +08:00
Shen Meng Jing
62d4115e08 docs: Fix some typos 2025-04-30 18:35:39 +08:00
zhiweijian
8012834e2b fix(bt/controller): Fixed controller flash only bug if hci-uart is enabled 2025-03-28 21:52:09 +08:00
zhiweijian
e07233bc81 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3 (03d0f8a6)
- Remove unused functions in the controller
2025-03-25 15:07:31 +08:00
Zhou Xiao
9ff9fb0661 fix(ble): fix ble log init failure mem leak for ESP32-C3 2025-03-17 10:44:21 +08:00
chenjianhua
d672f909f3 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(b34b7d6)
- Fixed enhanced TX power setting and getting for legacy adv
- Fixed BLE assert lld_con.c 2387
- Fixed compatibility issues during the encryption procedure
- Support BLE vendor hci enable CCA command
2025-02-27 20:52:05 +08:00
chenjianhua
d4c15e2cb6 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-25 15:18:58 +08:00
Zhou Xiao
e41f619566 feat(ble): support ble log spi out for ESP32-C3 and ESP32-S3 2025-02-18 14:23:17 +08:00
zhanghaipeng
0a8f808cd2 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(555b0a2)
- Check Access Address when receive connection request PDU
- Fix issue with BLE5.0 duplicate scan for chained packets
2024-12-13 13:40:26 +08:00
Wei Yu Han
6f390af3cc docs(ble): Refactored the API reference for esp32/c3/s3 BT controller 2024-12-03 11:37:18 +08:00
chenjianhua
2d96d67b7a fix(bt/controller): Fixed hci uart example compile error on ESP32C3 2024-11-27 16:58:53 +08:00
chenjianhua
e5789a8ca1 feat(ble/bluedroid): Support setting connection params when creating connection 2024-11-26 12:10:27 +08:00
zhiweijian
4b767d03fe feat(bt/controller): Support controller code run in flash only 2024-10-30 10:05:39 +08:00
chenjianhua
1e3220b0b0 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(52ee788)
- Fixed BLE vendor HCI set and get tx power
- Support BLE vendor HCI set adv aux offset command
- Support BLE vendor HCI set CSA support command
- Added config for BLE instant passed workaround
- Fixed btdm_sleep_clock_sync timeout workaround
2024-10-20 16:33:27 +08:00
Jiang Jiang Jian
1662e28718 Merge branch 'feat/support_32k_osc_ble_sleep_clk' into 'master'
feat(ble): Support using 32k oscillator as Bluetooth sleep clock

Closes BT-3844

See merge request espressif/esp-idf!33524
2024-10-08 11:25:04 +08:00
chenjianhua
4108a5cc4c fix(bt/controller): Fixed ble get tx power error 2024-09-26 10:49:06 +08:00
chenjianhua
873708579c fix(bt/controller): Fixed the timeout of wake up timer when using RC OSC 2024-09-26 10:49:06 +08:00
xiongweichao
ff83d87bce feat(ble): Support using 32k oscillator as Bluetooth sleep clock 2024-09-18 16:16:43 +08:00
chenjianhua
fe43c8f1b5 fix(bt/controller): Change the max TX power to +20dBm on ESP32-C3 and ESP32-S3 2024-09-09 11:25:10 +08:00
zhanghaipeng
946f484861 feat(ble/controller): Support get BLE controller free heap size 2024-08-22 14:42:52 +08:00
chenjianhua
6c2fc9da53 feat(bt): Update bt lib for ESP32-C3 and ESP32-S3(4e58df9)
- Support enhanced BLE TX power setting and getting
2024-07-23 16:22:26 +08:00
chenjianhua
2c93450d59 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(eca46a0)
- Fixed adv data buffer free after restart adv
- Fixed BLE interrupt allocation using esp API
2024-05-14 14:41:39 +08:00
zhanghaipeng
24e7d9b1cb feat(ble/controller): Display BLE controller init status for ESP32 and ESP32C3/S3 2024-05-07 11:00:03 +08:00
Wang Meng Yang
d4552c6274 Merge branch 'bugfix/bt_bss_in_extram' into 'master'
BT: Fix non-existent linker symbol when ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY enabled

Closes IDFGH-9017

See merge request espressif/esp-idf!21790
2024-04-12 08:57:10 +08:00
Wang Mengyang
1d9559cc9d 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-04-10 19:13:17 +08:00
Wang Mengyang
0aca5ec357 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-04-10 19:13:17 +08:00
xuxiao
ec872c0c81 fix(wifi): fix code review comments 2024-04-10 15:27:50 +08:00
xuxiao
27f61966cd feat(wifi): add esp32c5 beta3 wifi support 2024-04-10 14:09:40 +08:00