Commit Graph

34088 Commits

Author SHA1 Message Date
Tan Yan Quan
0f92073ed4 fix(openthread): update openthread upstream to support BR DNS resolution 2025-04-02 11:02:00 +08:00
morris
401f9e7efc Merge branch 'feature/check_efuse_blk_after_ota_v5.1' into 'release/v5.1'
feat(bootloader): support to check efuse block revision (v5.1)

See merge request espressif/esp-idf!33143
2025-04-02 10:01:01 +08:00
morris
d02ac835ce Merge branch 'contrib/github_pr_15484_v5.1' into 'release/v5.1'
fix(twai): fixed twai assert fail during recover (GitHub PR) (v5.1)

See merge request espressif/esp-idf!37991
2025-04-02 09:55:50 +08:00
morris
77f41c70e0 Merge branch 'bugfix/ledc_fade_stop_race_condition_v5.1' into 'release/v5.1'
fix(ledc): fix race condition in ledc_fade_stop causing assert failure (v5.1)

See merge request espressif/esp-idf!38083
2025-04-02 09:54:51 +08:00
Rahul Tank
0c6ca93046 Merge branch 'bugfix/reattempt_sync_failed_unlock_v5.1' into 'release/v5.1'
fix(nimble): Added ble_hs_unlock for resync failed (v5.1)

See merge request espressif/esp-idf!38100
2025-04-01 19:41:54 +08:00
Island
ead6cd64df Merge branch 'feat/support_blecrt_359_v5.1' into 'release/v5.1'
Support BLE vendor hci set rx sensie and max gain on esp32c3 (v5.1)

See merge request espressif/esp-idf!38127
2025-04-01 11:04:30 +08:00
Chen Jian Hua
406597cc08 feat(bt): Update bt lib for ESP32-C3 and ESP32-S3(566c8e3)
- Support BLE vendor hci set RX sensitivity and AGC gain command


(cherry picked from commit 8742bbe553)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-03-31 12:05:13 +08:00
Rahul Tank
0c8508df16 Merge branch 'fix/periodic_adv_example_v5.1' into 'release/v5.1'
fix(nimble):Fix conversion for min-max itvl of periodic adv param (v5.1)

See merge request espressif/esp-idf!38094
2025-03-29 19:45:48 +08:00
Wang Meng Yang
c61fe8d945 Merge branch 'bugfix/sec_service_record_conn_fail_v5.1' into 'release/v5.1'
fix(bt/bluedroid): fix the issue of connection failure when initializing multiple profiles(v5.1)

See merge request espressif/esp-idf!38077
2025-03-28 18:49:15 +08:00
Jiang Jiang Jian
34449e9b03 Merge branch 'backport/backport_some_changes_to_v5.1' into 'release/v5.1'
fix(wifi): fix some wifi bugs(backport v5.1)

See merge request espressif/esp-idf!38015
2025-03-28 16:46:54 +08:00
Astha Verma
6e1ccf0b5f fix(nimble): Added ble_hs_unlock for resync failed 2025-03-28 12:19:34 +05:30
Abhinav Kudnar
bc7b719cc0 fix(nimble): Fix conversion for min-max itvl of periodic adv param 2025-03-28 14:21:33 +08:00
Song Ruo Jing
e62a253bb9 fix(ledc): fix race condition in ledc_fade_stop causing assert failure
Closes https://github.com/espressif/esp-idf/issues/15580
2025-03-27 20:17:23 +08:00
xiongweichao
3c89eb44e3 fix(bt/bluedroid): fix the issue of connection failure when initializing multiple profiles
- Due to the number of service security records exceeding the maximum value, the connection failed
2025-03-27 20:01:32 +08:00
Roland Dobai
f90d09e6a2 Merge branch 'fix/check_python_dependencies_v5.1' into 'release/v5.1'
fix(tools): handle packages with dots in their names during dependency checks (v5.1)

See merge request espressif/esp-idf!38065
2025-03-27 19:39:06 +08:00
yinqingzhao
2ed6bf6515 fix(wifi): fix some wifi bugs 2025-03-27 17:43:11 +08:00
Island
1f4106fcfe Merge branch 'feature/add_vendor_ble_cmd_definitions_5.1' into 'release/v5.1'
Feature/add vendor ble cmd definitions (v5.1)

See merge request espressif/esp-idf!37961
2025-03-27 17:15:00 +08:00
Frantisek Hrbata
d2b3dbf0c2 fix(tools): handle packages with dots in their names during dependency checks
The `setuptools` package starting with `v70.1.0`[1] contains built-in
`bdist_wheel` command. Before this version `setuptools` relied on the
`bdist_wheel` command implementation from the `wheel` package. Starting with
`setuptools` `v75.8.1` the `PEP 491`[3] restrictions on the distribution name
of a wheel package are enforced[4], replacting also `.` with `_`.  Note that
`PEP 491` actually allows `.` in the distribution name, but for some reason the
latest packaging docs[10][11] does not, stating that `.` should be replaced
with `_`. This was discussion here[12].

Also the `wheel` package starting with `v0.45.0`[5] is using the `bdist_wheel`
command from `setuptools`.  This means that any package which has `.` in its
distribution name, like `ruamel.yaml.clib`, can have different wheel name,
depending on which version of the `bdist_wheel` command was used.

The `bdist_wheel` command from setuptools prior `v75.8.1` or `wheel` prior
`v0.45.0` will keep the dots in distribution name preserved.  For exaple the
`ruamel.yaml.clib` package will have distribution name
`ruamel.yaml.clib-0.2.12.dist-info. Newer versions will replace the dots with
`_` according to [10][11], creating distribution like
`ruamel_yaml_clib-0.2.12.dist-info`.

From packaging point of view `ruamel.yaml.clib-0.2.12.dist-info` and
`ruamel_yaml_clib-0.2.12.dist-info` are the same packages, but this is not
reflected in `importlib.metadata` prior python 3.10[9], which does not perform
name normalization prior the distribution search. This causes the `version`
from `importlib.metadata` to fail on python prior the 3.10 version if the
package with dots in distribution name was generated with normalized paths with
newer `setuptools`. Note that the distribution name normalization was
backported to some later 3.9 python version.

Let's demonstrate this behavior on a simple package with the
`my.minimal.package` name.

```
my_minimal_package/
├── pkg
│   └── __init__.py
└── setup.py

from setuptools import setup, find_packages

setup(
    name='my.minimal.package',
    version='0.1.0',
    packages=find_packages(),
    install_requires=[],
    entry_points={},
)
```

With python 3.9.0 search for `my.minimal.package` fails because
of the missing name normalization.
```
docker run --rm -it --platform linux/x86_64 python:3.9.0 bash
python -m venv venv
. venv/bin/activate
pip install setuptools==v75.8.1
python setup.py bdist_wheel
pip install dist/my_minimal_package-0.1.0-py3-none-any.whl
python
Python 3.9.0 (default, Nov 18 2020, 13:28:38)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from importlib.metadata import version as get_version
>>> get_version('my.minimal.package')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.9/importlib/metadata.py", line 551, in version
    return distribution(distribution_name).version
  File "/usr/local/lib/python3.9/importlib/metadata.py", line 524, in distribution
    return Distribution.from_name(distribution_name)
  File "/usr/local/lib/python3.9/importlib/metadata.py", line 187, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: my.minimal.package
>>> get_version('my_minimal_package')
'0.1.0'
```

With python 3.10.0 search for both `my.minimal.package` and
`my_minimal_package` succeeds.
```
docker run --rm -it --platform linux/x86_64 python:3.10.0 bash
python
Python 3.10.0 (default, Dec  3 2021, 00:21:30) [GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from importlib.metadata import version as get_version
>>> get_version('my.minimal.package')
'0.1.0'
>>> get_version('my_minimal_package')
'0.1.0'
```

In our `tools/check_python_dependencies.py` we cannot relay on the default
distribution finder, used in the `version` function from `importlib.metadata`,
to do name normalization on older python versions.  To cope with this,
implement a fallback version search. If `version` fails with
`PackageNotFoundError`, do the name normalization according to [10][11] and try
again.

Note: There is also a `wheel`[6][7] `v0.43.0` package embeded in `setuptools`
along with the new implementation[8].  This one seems to be used if the
external `wheel` package is not available but imported. TBH this is all kinda
messy and I may have overlooked something.

* [1] https://setuptools.pypa.io/en/stable/history.html#v70-1-0
* [2] https://setuptools.pypa.io/en/stable/history.html#v75-8-1
* [3] https://peps.python.org/pep-0491/#escaping-and-unicode
* [4] https://github.com/pypa/setuptools/pull/4766/files
* [5] https://wheel.readthedocs.io/en/stable/news.html
* [6] https://github.com/pypa/setuptools/blob/main/setuptools/_vendor/wheel/__init__.py
* [7] https://github.com/pypa/setuptools/issues/1386
* [8] https://github.com/pypa/setuptools/blob/main/setuptools/command/bdist_wheel.py
* [9] c6ca368867
* [10] https://packaging.python.org/en/latest/specifications/name-normalization/#name-normalization
* [11] https://packaging.python.org/en/latest/specifications/binary-distribution-format/
       #escaping-and-unicode
* [12] https://github.com/pypa/setuptools/issues/3777

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2025-03-27 08:05:32 +01:00
Island
f099935bb2 Merge branch 'feature/ble_5_1_direction_finding_master_20250311_v5.1' into 'release/v5.1'
Feature/ble 5 1 direction finding master 20250311 v5.1

See merge request espressif/esp-idf!38010
2025-03-27 11:43:38 +08:00
diplfranzhoepfinger
798a976912 fix(twai): fixed twai assert fail when recover
driver try start new frame in ISR however already bus off

Closes https://github.com/espressif/esp-idf/issues/9697
2025-03-27 11:25:40 +08:00
Jiang Jiang Jian
c6675c3f8f Merge branch 'bugfix/fix_scan_info_error_in_lr_only_mode_v5.1' into 'release/v5.1'
fix(wifi): Fixed the scan information error in LR only mode (v5.1)

See merge request espressif/esp-idf!37905
2025-03-26 21:33:26 +08:00
GengYuchao
69485ee9b5 feat(nimble):Support Bluetooth LE 5.1 direction finding feature 2025-03-26 16:31:39 +08:00
Geng Yuchao
5d190b92ca feat(ble):Add Kconfig support for direction finding feature 2025-03-26 16:31:39 +08:00
Geng Yuchao
e0113f246d feat(ble):Support Bluetooth LE 5.1 direction finding feature 2025-03-26 16:31:39 +08:00
morris
be6934bcb3 Merge branch 'fix/i2s_iram_safe_issue_while_use_psram_v5.1' into 'release/v5.1'
fix(i2s): fixed failure when dma is iram_safe but i2s not (v5.1)

See merge request espressif/esp-idf!38006
2025-03-26 15:58:41 +08:00
zhiweijian
fe31ce5d97 feat(bt): fixed some doc error and add ocf parameters description 2025-03-26 14:16:21 +08:00
Shen Weilong
772d35c309 feat(bt): added definitions for bluetooth hci vendor commands and events 2025-03-25 16:02:55 +08:00
Shen Weilong
1f32b394fb feat(ble/controller): Added memory boundary check for ESP32-C6 and ESP32-H2 2025-03-25 15:40:10 +08:00
Shen Weilong
7819da8490 feat(ble/controller): Added memory boundary check for ESP32-C2 2025-03-25 15:39:04 +08:00
zhiweijian
6159b54ef7 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3 (03d0f8a6)
- Remove unused functions in the controller
2025-03-25 15:35:09 +08:00
baohongde
0a98ca2a32 feat(bt): added definitions for BR/EDR hci vendor commands and events 2025-03-25 15:35:09 +08:00
chenjianhua
7e7ab1c82d fix(bt): Update bt lib for ESP32(dc1cd581)
- Remove unused functions in the controller
- Add an SDK config for the minimum size of encryption key
2025-03-25 15:35:09 +08:00
laokaiyao
8e6d0b4755 fix(i2s): add check for i2s DMA buffer array allocation
Closes https://github.com/espressif/esp-idf/issues/15607
2025-03-25 15:28:27 +08:00
laokaiyao
b6741311a4 fix(i2s): fixed mismatch of the i2s and gdma iram-safe config
Closes https://github.com/espressif/esp-idf/issues/15533
2025-03-25 15:21:34 +08:00
Shu Chen
9b16cfce2b Merge branch 'fix/154_txpower_set_api_v5.1' into 'release/v5.1'
fix(802.15.4): fix the behavior of the `esp_ieee802154_set_txpower` (v5.1)

See merge request espressif/esp-idf!37739
2025-03-25 15:07:25 +08:00
Shu Chen
c70a55c6b7 Merge branch 'fix/csl_rx_off_when_idle_v5.1' into 'release/v5.1'
fix(openthread): turn off rx for SSED running CSL during idle (v5.1)

See merge request espressif/esp-idf!37995
2025-03-25 14:30:21 +08:00
Aditya Patwardhan
84467eccf4 Merge branch 'bugfix/provisioning_sec2_aes_iv_usage_v5.1' into 'release/v5.1'
fix(provisioning): fix incorrect AES-GCM IV usage in security2 scheme (v5.1)

See merge request espressif/esp-idf!37617
2025-03-25 13:58:10 +08:00
Tan Yan Quan
8780122742 fix(openthread): add some bugfixes to pass CI pipeline 2025-03-25 12:21:32 +08:00
Tan Yan Quan
5257e65f29 refactor(openthread): move isr_handle_timerX to esp_ieee802154_timer 2025-03-25 12:21:32 +08:00
Tan Yan Quan
93d3fb9441 fix(openthread): calibrate CSL tx parameters 2025-03-25 12:21:32 +08:00
Tan Yan Quan
c440a70d9b fix(openthread): turn off rx for SSED running CSL during idle 2025-03-25 12:14:44 +08:00
Island
0b1eb90053 Merge branch 'feat/optimize_hci_data_recv_process_v5.1' into 'release/v5.1'
Feat/optimize hci data recv process (v5.1)

See merge request espressif/esp-idf!37831
2025-03-25 11:04:56 +08:00
laokaiyao
34ebd4943f refactor(bootloader): lower down the log level to reduce the bootloader size 2025-03-25 10:09:55 +08:00
laokaiyao
f7f1a222cc feat(bootloader): support to check efuse block revision
change(bootloader): remove ignore efuse check flag (temp)

change(bootloader): use int for the minimum efuse blk rev (temp)
2025-03-25 10:09:52 +08:00
laokaiyao
eb02eb79e4 docs(chip_revision): update eFuse block revision info 2025-03-25 10:08:16 +08:00
zwx
7392a31619 fix(802.15.4) fix the behavior of the esp_ieee802154_set_txpower 2025-03-25 09:34:21 +08:00
Zhao Wei Liang
577dfa65f5 feat(ble): optimize reconfig hci uart pin code 2025-03-24 17:18:06 +08:00
Zhao Wei Liang
f5bdcc42bc feat(ble): change nimble whitelist max size to 31
(cherry picked from commit 93357e8613)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-24 17:18:06 +08:00
Zhao Wei Liang
f9ab136a01 feat(ble): change whitelist max size to 31 on ESP32-C2
(cherry picked from commit 578f2358c6)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-24 17:18:06 +08:00
Zhao Wei Liang
2de1e0c5a4 feat(ble): change whitelist max size to 31 on ESP32-C6
(cherry picked from commit 2b435687b0)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-24 17:18:06 +08:00