Commit Graph

135 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
cjin
5483aeedb6 fix(ble): fix conn recycle assertion at halt on ESP32-C2 2026-06-03 17:48:25 +08:00
ShenWeilong
a4171d2ad1 fix(ble): always init the default os queue for all of controllers 2026-04-28 15:06:18 +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
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
cjin
5ec82368ba feat(ble): make env init function cuttable on ESP32-C2 2026-03-18 17:21:42 +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
9de0235a9f fix(ble): use apb max state for bt and enable should skip on ESP32-C2 2026-03-05 11:29:12 +08:00
cjin
2a0df334e3 feat(ble): apply new method for rom code logic change on ESP32-C2 2026-02-09 10:52:15 +08:00
cjin
b90840a570 feat(ble): support for ble module stripping on ESP32-C2 2026-02-09 08:55:41 +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
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
zhaoweiliang
ac5d14d954 fix(ble): fixed the assert issue when using tinycrypt on ESP32-C2 2025-12-03 14:28:17 +08:00
cjin
5407e36e4a fix(ble): fix ble wakeup causes error on ESP32-C2 2025-10-22 17:50:35 +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
e18972e94e feat(ble): change free api on ESP32-C2 2025-10-15 15:11:06 +08:00
cjin
9ecf67b230 feat(ble): allow a larger sca limit on ESP32-C2 2025-09-26 18:04:19 +08:00
cjin
6ae338de34 feat(ble): get wakeup cause when wake up on ESP32-C2 2025-09-19 16:47:18 +08:00
Zhou Xiao
4a408af219 feat(ble): supported ble log v2 for ESP32-C2 2025-09-16 14:31:36 +08:00
Zhou Xiao
33febd990c fix(ble): wrapped specify scan channel vs cmd 2025-08-11 10:25:56 +08:00
Zhou Xiao
2818eb91f1 change(ble): enabled specify scan channel vs hci cmd for ESP32-C2 2025-08-07 17:58:39 +08:00
harshal.patil
60ff4bca9b refactor(esp_system): Update all references of the memory protection configs 2025-08-04 11:43:01 +05:30
cjin
7ef90d4113 feat(ble): support memory allocation check debug feature on ESP32-C2 2025-07-09 11:25:23 +08:00
Zhou Xiao
cbe6f68d3c fix(ble): ensure ble controller disable safety for ESP32-C2 2025-07-01 10:45:36 +08:00
cjin
a10696d7e1 fix(ble): change the default ble cca thresh on ESP32-C2 2025-06-06 17:57:35 +08:00
Zhou Xiao
d12e072b35 fix(ble): added missed printf for ll log interface 2025-05-16 15:10:44 +08:00
Jiang Jiang Jian
e9d2d033c8 Merge branch 'feat/add_config_for_esp32c2_move_phylib_to_flash' into 'master'
feat(phy): add config for esp32c2 move iram func to flash

Closes IDF-11433

See merge request espressif/esp-idf!37917
2025-05-07 21:34:27 +08:00
wangtao@espressif.com
3035667e69 feat(phy): add config for esp32c2 move iram func to flash 2025-05-07 11:24:17 +08:00
cjin
6a80deac03 fix(ble): fix rtc freq set too high on ESP32-C2 2025-05-06 19:19:11 +08:00
cjin
73f1084bf8 feat(ble): support ble sleep using 136 kHz RC on ESP32-C2 2025-04-18 11:10:18 +08:00
cjin
ce4e012c8b feat(ble): use new section for ble sleep on ESP32-C2 2025-04-16 14:36:43 +08:00
Shen Weilong
990fea687d feat(ble/controller): Added memory boundary check for ESP32-C2 2025-03-25 15:09:00 +08:00
zwl
578f2358c6 feat(ble): change whitelist max size to 31 on ESP32-C2 2025-03-18 11:58:53 +08:00
zwl
afd44d14b9 fix(ble): fixed hci driver stack protection fault issue on ESP32-C2 2025-03-18 11:58:53 +08:00
zwl
71cea01694 feat(ble): add enhanced connect function on ESP32-C2 2025-03-17 10:44:21 +08:00
Zhou Xiao
df829ac919 feat(ble): support ble log simple output via SPI interface for ESP32-C2 2025-03-17 10:44:20 +08:00
Shen Weilong
892b3a0b0e feat(ble): tell controller if vhci is enabled for ESP32-C2 2025-03-11 09:51:50 +08:00
Zhou Xiao
e2e8e7dce1 fix(ble): add feed wdts during ble log dump for ESP32-C2 2025-02-25 17:57:15 +08:00
Sudeep Mohanty
e01877ff2e Merge branch 'bug/xtensa_cpu1_sys_lockup' into 'master'
fix(panic_handler): Updated panic handler to use RTC WDT

Closes IDFGH-14379, IDFGH-14221, IDFGH-8665, and DOC-10263

See merge request espressif/esp-idf!36652
2025-02-19 17:11:10 +08:00
Sudeep Mohanty
b562afa08e 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-18 15:40:54 +01:00
Zhou Xiao
e4b698fc32 change(ble): update ble log spi out config for ESP32-C2 2025-02-18 14:21:53 +08:00
zwl
bbcb4a2e1f feat(ble): support enhanced controller log capabilities on ESP32-C2 2025-02-13 18:29:41 +08:00
Zhou Xiao
0b57f8ae87 feat(ble): support esp ble controller spi output interface for ESP32-C2 2025-02-11 12:00:17 +08:00
zwl
6a752eeb89 fix(ble): fixed esp_ble_tx_power_set api issue on ESP32-C2 2025-01-10 20:44:27 +08:00
zwl
2cb7d2437b feat(ble): Support get ble controller free heap size on ESP32-C2 2024-12-20 20:19:37 +08:00
zwl
6b01a56e09 fix(ble): fixed the connect issue when rx error aa on ESP32-C2 2024-12-13 15:34:21 +08:00
cjin
23f7e33a97 fix(ble): fix ble light sleep error on esp32c2 2024-11-19 14:19:23 +08:00
Shen Weilong
ccc2411191 feat(ble): Support for putting code in flash on ESP32-C2 2024-11-12 18:08:50 +08:00