Commit Graph

45105 Commits

Author SHA1 Message Date
Mahavir Jain
b3f525d12f Merge branch 'refactor/esp_tee_aes_gcm_port' into 'master'
refactor(esp_tee): Use the AES-GCM port layer for operations in the TEE

See merge request espressif/esp-idf!37650
2025-03-20 16:11:38 +08:00
Chen Jichang
3b2ab2d145 fix(pcnt): remove the gpi0_reset_pin function 2025-03-20 15:53:26 +08:00
Armando (Dou Yiwen)
b4abab382a Merge branch 'feat/psram_80m_p4' into 'master'
psram: added 80MHz psram speed option

See merge request espressif/esp-idf!37667
2025-03-20 15:47:06 +08:00
Chen Jichang
9ac7a91013 fix(pcnt): update pcnt_reg on esp32h2 eco5 2025-03-20 15:36:15 +08:00
armando
9b845f9f8b fix(flash): mutex between flash rom impl and flash opi 2025-03-20 15:32:21 +08:00
armando
ac8cfadab0 refactor(psram): cleanup psram component code structure 2025-03-20 15:17:01 +08:00
Shen Meng Jing
88664242e1 Merge branch 'docs/sync_ram_usage' into 'master'
docs: Sync CN ram-usage.rst and EN source

Closes DOC-10523

See merge request espressif/esp-idf!37807
2025-03-20 15:00:52 +08:00
Song Ruo Jing
cbf7a66030 feat(gpio): gpio_reset_pin should do IO reservation revoke
Closes https://github.com/espressif/esp-idf/issues/15598
2025-03-20 14:56:16 +08:00
Song Ruo Jing
8f74c54a8a refactor(gpio): simplified gpio_reset_pin function to not call gpio_configure
Closes https://github.com/espressif/esp-idf/pull/15569
2025-03-20 14:56:16 +08:00
Alexey Lapshin
7124690c29 fix(tools): remove unused variables in gdbinit.cmake
Closes https://github.com/espressif/esp-idf/issues/15035
2025-03-20 13:40:14 +07:00
Kevin (Lao Kaiyao)
87aa9ec5f0 Merge branch 'fix/i2s_iram_safe_issue_while_use_psram' into 'master'
fix(i2s): fixed failure when dma is iram_safe but i2s not

Closes IDFGH-14800

See merge request espressif/esp-idf!37670
2025-03-20 14:31:45 +08:00
muhaidong
06e1349c9f fix(wifi): fix association timeout timer issue for wep shared auth 2025-03-20 14:09:08 +08:00
morris
991acde4f7 Merge branch 'contrib/github_pr_15484' into 'master'
fix(twai): fixed twai assert fail during recover (GitHub PR)

Closes IDFGH-8204 and IDFGH-14745

See merge request espressif/esp-idf!37731
2025-03-20 14:04:01 +08:00
Li Shuai
921cfa0a8e Merge branch 'feat/support_runtime_periphs_icg_ctrl_in_sleep' into 'master'
support runtime ICG control for peripherals to be used/kept during light sleep

Closes IDF-7595

See merge request espressif/esp-idf!37377
2025-03-20 13:03:48 +08:00
Yi Wen Xiu
544b7b4c4d Merge branch 'bugfix/fix_ot_ci_cases_avahi_service_issue' into 'master'
feat(openthread): fix ci avahi service cases issue

Closes IDFCI-2797

See merge request espressif/esp-idf!37839
2025-03-20 11:50:02 +08:00
Jiang Jiang Jian
c0fc7f602e Merge branch 'docs/update_iperf_performance' into 'master'
docs(wifi): update iperf throughput performance

See merge request espressif/esp-idf!37816
2025-03-20 11:21:38 +08:00
Jiang Jiang Jian
a3bd31f3a6 Merge branch 'bugfix/fix_espnow_send_data_error_in_v2.0' into 'master'
fix(wifi): fixed the espnow data length error in example

Closes WIFIBUG-1099, WIFIBUG-1097, WIFIBUG-1098, and WIFI-6804

See merge request espressif/esp-idf!37783
2025-03-20 11:20:49 +08:00
shenmengjing
c60cf668cf docs: Sync CN ram-usage.rst and EN source 2025-03-20 11:08:23 +08:00
Island
5411dd00fd Merge branch 'feat/ble_mesh_ble_50_micellaneous_update' into 'master'
Feat/ble mesh ble 50 micellaneous update

Closes BLERP-1473 and BLERP-1467

See merge request espressif/esp-idf!36206
2025-03-20 10:38:44 +08:00
Gao Xu
728f95f498 Merge branch 'refactor/rng_ll_c6' into 'master'
refactor(rng): refactor to use hal/ll apis for c6

Closes IDF-12533

See merge request espressif/esp-idf!37319
2025-03-20 10:28:39 +08:00
Marius Vikhammer
034f677563 docs(misc): update system docs for new chips 2025-03-20 09:01:11 +08:00
Marius Vikhammer
ee87960c13 Merge branch 'feature/esp_timer_flash' into 'master'
feat(esp_timer): added kconfig option for placing IRAM code into flash

Closes IDF-11427

See merge request espressif/esp-idf!37428
2025-03-20 08:56:43 +08:00
Rahul Tank
e2917ff160 fix(nimble): Fix SMP command allocation 2025-03-19 20:28:27 +05:30
Roland Dobai
cf5989ca06 Merge branch 'fix/install_input_validation' into 'master'
fix(idf_tools): Validate input features

Closes IDF-11703

See merge request espressif/esp-idf!37852
2025-03-19 21:38:52 +08:00
Sudeep Mohanty
8b40eabce8 fix(ringbuf): xRingbufferReceive() crashes for allow-split buffers
This commit adds an assert check to xRingbufferReceive() and
xRingbufferReceiveFromISR() functions to prevent them from being used to
retrieve items from an allow-split buffer. Corresponding documentation
has also been updated.
2025-03-19 14:33:11 +01:00
Rahul Tank
bbca89da53 Merge branch 'feat/implement_vendor_event_mask_vsc' into 'master'
feat(nimble): Add support for Vendor Event mask VSC

Closes BLERP-1626

See merge request espressif/esp-idf!37732
2025-03-19 20:38:33 +08:00
Zhang Jian Wen
e1c030c434 Merge branch 'docs/cn_en_roadmap' into 'master'
docs: update cn and en roadmap for v6.0

See merge request espressif/esp-idf!37828
2025-03-19 19:56:30 +08:00
wuzhenghui
ed4813c9c0 fix(esp_hw_support): fix min sleep time calculation missmatch in powerdown flash decision 2025-03-19 19:27:09 +08:00
Frantisek Hrbata
3bad4348d0 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-19 12:19:57 +01:00
zhangyanjiao
a4106ef3b9 fix(wifi): fix the ESPNOW data length issue and connection issue
1. Changed the max data length to 1470 bytes for ESP-NOW v2.0
2. Added timer to send wake null after STA received assoc response
2025-03-19 19:18:56 +08:00
zhangyanjiao
51ff6490cc fix(wifi): Update the doc for espnow add peer 2025-03-19 19:18:56 +08:00
zhangyanjiao
19ecb580d4 fix(wifi): fixed the espnow data length error in example 2025-03-19 19:18:56 +08:00
Jiang Jiang Jian
d826655f0c Merge branch 'bugfix/offchan_action_tx_failure' into 'master'
Fix issues with offchannel action tx and ROC operations

See merge request espressif/esp-idf!28204
2025-03-19 19:14:36 +08:00
Chen Jichang
45ba78940f feat(esp32h4): finnal introduce hello world 2025-03-19 18:48:41 +08:00
Roland Dobai
b4be4c2a53 Merge branch 'fix/extractall_deprecation' into 'master'
fix(idf_tools): Patch extractall() deprecation warning

Closes IDF-11484

See merge request espressif/esp-idf!37845
2025-03-19 18:28:52 +08:00
Radim Karniš
7102508444 fix(idf_tools): Validate input features 2025-03-19 11:07:15 +01:00
yiwenxiu
f72cb90b98 feat(openthread): fix ci avahi service cases issue 2025-03-19 17:56:43 +08:00
Kapil Gupta
1a5b2a267b fix(esp_wifi): Add alternate SHA1 APIs in WiFi
Add alternate SHA1 APIs to handle cases when
`CONFIG_MBEDTLS_SHA1_C` is disabled.
2025-03-19 15:11:10 +05:30
Aditi
73c6112156 feat(wpa_supplicant): Add support for Opportunistic Key Caching 2025-03-19 15:05:53 +05:30
Laukik Hase
98e16412a7 refactor(esp_tee): Use the AES-GCM port layer for operations in the TEE 2025-03-19 14:30:52 +05:30
Laukik Hase
6e5513b8ad refactor(esp_tee): Component dependency cleanup for the TEE build 2025-03-19 14:30:52 +05:30
harshal.patil
e442f11320 feat(mbedtls): Make mbedtls SHA1 support configurable 2025-03-19 14:28:40 +05:30
wangtao@espressif.com
ff28210f3a fix(wifi): fix esp32s2 recv 24M BA issue 2025-03-19 16:45:03 +08:00
Song Ruo Jing
95f8eb12d3 Merge branch 'bugfix/ledc_fade_stop_race_condition' into 'master'
fix(ledc): fix race condition in ledc_fade_stop causing assert failure

Closes IDFGH-14859

See merge request espressif/esp-idf!37817
2025-03-19 15:53:58 +08:00
Shreyas Sheth
93e9d0b1a6 ci(wifi): Add build test for with wpa3 disabled for station and softap 2025-03-19 13:20:32 +05:30
Shreyas Sheth
b32602c948 fix(esp_wifi): Fix send_confirm according to specification provided by IEEE 802.11 2025-03-19 13:12:40 +05:30
Sajia
437fa9a723 fix(wifi): Fix crash when set config is called with changed password
Closes https://github.com/espressif/esp-idf/issues/15584
2025-03-19 13:10:43 +05:30
zhiweijian
79b706ccb0 fix(ble/bluedroid): move setting host feature API to GAP 2025-03-19 15:23:58 +08:00
zhiweijian
fc58f2f67d feat(bt/bluedroid): Support ble bluedroid host connection subrating feature 2025-03-19 14:53:13 +08:00
zhiweijian
4f05f6e280 feat(bt/bluedroid): Support ble bluedroid host power control feature 2025-03-19 14:53:13 +08:00