Commit Graph

29615 Commits

Author SHA1 Message Date
wangtao@espressif.com
665fd1a895 fix(wifi): fix esp32s2 recv 24M BA issue 2025-03-29 15:18:51 +08:00
Michael (XIAO Xufeng)
6471d88303 Merge branch 'bugfix/cache2phys_xip_v5.0' into 'release/v5.0'
fix(mmap): fixed spi_flash_cache2phys return addr in PSRAM issue (v5.0)

See merge request espressif/esp-idf!38051
2025-03-28 18:13:42 +08:00
Xiao Xufeng
b71af88f45 ci: increase UT_C2 parallel num 2025-03-28 13:34:49 +08:00
Xiao Xufeng
4e6af199f2 ci(spi_flash): add tests for cache2phys with XIP 2025-03-28 13:34:49 +08:00
Xiao Xufeng
0f1c8cc986 fix(mmap): fixed spi_flash_phys2cache return addr in PSRAM issue
When SPIRAM_FETCH_INSTRUCTIONS or SPIRAM_RODATA enabled
2025-03-28 13:34:48 +08:00
Xiao Xufeng
2e3c42e41f fix(mmap): fixed spi_flash_cache2phys return addr in PSRAM issue
When SPIRAM_FETCH_INSTRUCTIONS or SPIRAM_RODATA enabled
2025-03-28 13:34:48 +08:00
morris
5214c71dec Merge branch 'bugfix/ledc_fade_stop_race_condition_v5.0' into 'release/v5.0'
fix(ledc): fix race condition in ledc_fade_stop causing assert failure (v5.0)

See merge request espressif/esp-idf!38084
2025-03-28 11:49:08 +08:00
morris
89bcbca982 Merge branch 'fix/mmu_multicore_app_bl_v5.0' into 'release/v5.0'
fix(MMU): fixed mmap deadlock when using multicore app with unicore bootloader (v5.0)

See merge request espressif/esp-idf!32899
2025-03-28 10:59:42 +08:00
Jiang Jiang Jian
22789f45d6 Merge branch 'backport/backport_some_changes_to_v5.0' into 'release/v5.0'
fix(wifi): fix some wifi bugs(Backport v5.0)

See merge request espressif/esp-idf!38071
2025-03-28 10:02:22 +08:00
Wang Meng Yang
c0478d2ed7 Merge branch 'bugfix/sec_service_record_conn_fail_v5.0' into 'release/v5.0'
fix(bt/bluedroid): fix the issue of connection failure when initializing multiple profiles(v5.0)

See merge request espressif/esp-idf!38078
2025-03-28 09:14:34 +08:00
Song Ruo Jing
3e44f63640 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:36 +08:00
xiongweichao
481022f028 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:05:57 +08:00
Roland Dobai
90712386fd Merge branch 'fix/check_python_dependencies_v5.0' into 'release/v5.0'
fix(tools): handle packages with dots in their names during dependency checks (v5.0)

See merge request espressif/esp-idf!38066
2025-03-27 19:37:46 +08:00
Xiao Xufeng
8532aab32b ci(mmu): add unicore test 2025-03-27 18:15:28 +08:00
yinqingzhao
fe923b3b4b fix(sniffer): fix channel in rx_ctrl is zero when using sniffer 2025-03-27 17:29:15 +08:00
Island
87a728c41d Merge branch 'feature/add_vendor_ble_cmd_definitions_5.0' into 'release/v5.0'
Feature/add vendor ble cmd definitions (v5.0)

See merge request espressif/esp-idf!37962
2025-03-27 17:14:49 +08:00
Frantisek Hrbata
fd3b6c61c7 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:45 +01:00
Jiang Jiang Jian
b39b0cc47f Merge branch 'bugfix/fix_scan_info_error_in_lr_only_mode_v5.0' into 'release/v5.0'
fix(wifi): Fixed the scan information error in LR only mode (v5.0)

See merge request espressif/esp-idf!37904
2025-03-27 14:27:22 +08:00
morris
ac8137d181 Merge branch 'fix/i2s_iram_safe_issue_while_use_psram_v5.0' into 'release/v5.0'
fix(i2s): fixed failure when dma is iram_safe but i2s not (v5.0)

See merge request espressif/esp-idf!38007
2025-03-27 14:18:44 +08:00
morris
10130e92d7 Merge branch 'contrib/github_pr_15484_v5.0' into 'release/v5.0'
fix(twai): fixed twai assert fail during recover (GitHub PR) (v5.0)

See merge request espressif/esp-idf!37996
2025-03-27 13:45:35 +08:00
diplfranzhoepfinger
d1b03d36ba 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:24:07 +08:00
zhangyanjiao
02cebb0975 fix(wifi): Added timer to send wake null after STA received assoc response 2025-03-27 10:48:02 +08:00
zhangyanjiao
f41ea3257d fix(wifi): Fixed the scan information error in LR only mode 2025-03-27 10:43:10 +08:00
zhangyanjiao
b7a612cd00 fix(wifi): Fixed the max log level not work when it exceeds the default log level 2025-03-27 10:43:10 +08:00
zhangyanjiao
7157645d65 docs(wifi): update the description for esp_mesh_send() return value
Closes https://github.com/espressif/esp-idf/issues/14440
2025-03-27 10:43:10 +08:00
zhangyanjiao
852feea9dd fix(wifi): Update the doc for espnow add peer 2025-03-27 10:43:10 +08:00
Xiao Xufeng
c1bd3d2925 fix(MMU): fixed mmap deadlock when using multicore app with unicore bootloader
Closes https://github.com/espressif/esp-idf/issues/11617
2025-03-27 00:23:49 +08:00
Jiang Jiang Jian
29797ad298 Merge branch 'bugfix/pmf_enabled_sae_query_v5.0' into 'release/v5.0'
fix(wifi): SA Query responses not transmitted (Backport v5.0)

See merge request espressif/esp-idf!38009
2025-03-26 21:28:24 +08:00
Shen Weilong
1e3a0daddf feat(bt): fixed some doc error and add ocf parameters description 2025-03-26 13:26:38 +08:00
Rahul Tank
ac367ac8b8 Merge branch 'feature/expose_ble_gap_wl_tx_add_v5.0' into 'release/v5.0'
fix(nimble): Exposed the ble_gap_wl_tx_add API to add a device in whitelist(v5.0)

See merge request espressif/esp-idf!37649
2025-03-25 19:09:04 +08:00
akshat
e458f633d7 fix(wifi): Fix occasional dropping of SA Query responses by SoftAP 2025-03-25 13:00:20 +05:30
laokaiyao
02799dbee2 fix(i2s): add check for i2s DMA buffer array allocation
Closes https://github.com/espressif/esp-idf/issues/15607
2025-03-25 15:28:55 +08:00
Shen Weilong
98acfd514b feat(bt): added definitions for bluetooth hci vendor commands and events 2025-03-25 15:24:21 +08:00
laokaiyao
1b7004fdeb 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:53 +08:00
Shen Weilong
8c74230b77 feat(ble/controller): Added memory boundary check for ESP32-C2 2025-03-25 14:38:00 +08:00
zhiweijian
33e15accdd fix(bt): Update bt lib for ESP32-C3 and ESP32-S3 (03d0f8a6)
- Remove unused functions in the controller
2025-03-25 14:38:00 +08:00
baohongde
b03bac9a72 feat(bt): added definitions for BR/EDR hci vendor commands and events 2025-03-25 14:38:00 +08:00
chenjianhua
85a2c95aa7 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 14:38:00 +08:00
Abhinav Kudnar
c9b4a39dea fix(nimble): Exposed the ble_gap_wl_tx_add API to add a device in whitelist 2025-03-25 11:45:15 +05:30
Aditya Patwardhan
7ff465074f Merge branch 'bugfix/provisioning_sec2_aes_iv_usage_v5.0' into 'release/v5.0'
fix(provisioning): fix incorrect AES-GCM IV usage in security2 scheme (v5.0)

See merge request espressif/esp-idf!37666
2025-03-25 13:57:29 +08:00
Island
096fb7f96e Merge branch 'feat/optimize_hci_data_recv_process_v5.0' into 'release/v5.0'
Feat/optimize hci data recv process (v5.0)

See merge request espressif/esp-idf!37830
2025-03-25 11:04:51 +08:00
Zhao Wei Liang
72f23505ed feat(ble): optimize reconfig hci uart pin code 2025-03-24 17:28:41 +08:00
Zhao Wei Liang
9c64256462 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:28:41 +08:00
Zhao Wei Liang
a9d9e092d2 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:28:41 +08:00
Zhao Wei Liang
ea3f6d7329 fix(ble): fixed hci driver stack protection fault issue on ESP32-C2
(cherry picked from commit afd44d14b9)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-24 17:28:41 +08:00
Zhao Wei Liang
922db69683 fix(ble): fixed hci assertion issue when uart interference occurs
(cherry picked from commit 84f0b39e4d)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-24 17:28:41 +08:00
morris
da555cce40 Merge branch 'bugfix/usj_wrong_return_value_v5.0' into 'release/v5.0'
fix(usb_serial_jtag): wrong return value in usb_serial_jtag_write_bytes (v5.0)

See merge request espressif/esp-idf!37973
2025-03-24 16:06:16 +08:00
Jiang Jiang Jian
1920192291 Merge branch 'bugfix/wps_reconnect_failure_v5.0' into 'release/v5.0'
fix(wpa_suppplicant): Fix for issue in wps reconnection (Backport v5.0)

See merge request espressif/esp-idf!37646
2025-03-24 15:01:27 +08:00
Wang Meng Yang
6683d50054 Merge branch 'bugfix/fix_esp32_bt_disable_crash_v5.0' into 'release/v5.0'
fix(bt): Fix controller disable cause iwdt timeout on esp32 (v5.0)

See merge request espressif/esp-idf!37776
2025-03-24 14:29:47 +08:00
Wang Meng Yang
63b16bcdda Merge branch 'bugfix/err_disc_state_changed_evt_v5.0' into 'release/v5.0'
fix(bt/bluedroid): fixed other events being reported when disconnected(v5.0)

See merge request espressif/esp-idf!37940
2025-03-24 14:10:16 +08:00