Commit Graph

5099 Commits

Author SHA1 Message Date
morris
d75d2ad5f4 Merge branch 'feat/uart_dma_support_v5.1' into 'release/v5.1'
feat(uart): uart dma support for insternal usage on v5.1

See merge request espressif/esp-idf!41691
2025-09-25 14:57:31 +08:00
C.S.M
0466deff06 feat(uhci): Support uart dma just for internal debug usage 2025-09-24 13:57:57 +08:00
Martin Vychodil
ac8e7a79c3 Merge branch 'feature/storage_nvs_perf_blob_v5.1' into 'release/v5.1'
Improvement of NVS Blob performance (v5.1)

See merge request espressif/esp-idf!41595
2025-09-15 17:48:53 +08:00
radek.tandler
521463503f fix(nvs_flash): nvs_set with same key and different data type
Function now always rewrites old value under same key
regardless existing data type. Users requiring old API behaviour
can enable it by kconfig option CONFIG_NVS_LEGACY_DUP_KEYS_COMPATIBILITY
2025-09-10 19:02:25 +02:00
Alexey Lapshin
70101ed064 feat(tools): use signed macos toolchains 2025-09-10 20:11:23 +07:00
Alexey Lapshin
f24efab7fc feat(tools): update toolchain version to esp-12.2.0_20250801 2025-08-12 13:51:04 +07:00
Alexey Gerenkov
f34978b594 Merge branch 'ci/enable_sysview_tests_v5.1' into 'release/v5.1'
ci: enable sysview example tests for all chips (v5.1)

See merge request espressif/esp-idf!39476
2025-08-01 22:34:57 +08:00
Peter Dragun
cbc67b2a8a feat(tools/requirements): Add IDE requirements files 2025-07-31 12:06:48 +02:00
Rahul Tank
13e9e02b20 fix(nimble): Minor documentation update in btsnoop script usage 2025-07-29 11:56:27 +05:30
Rahul Tank
bbfc0df504 fix(nimble): Add support to parser script to parse logs with/without ts
Introduced a new "--has-ts" input parameter to script to detect if logs
has timestamp information or not
2025-07-21 13:02:56 +05:30
Erhan Kurubas
ff73ef0bb1 feat(tools): add esp32c3 rev1.1 rom version string 2025-07-18 11:47:08 +02:00
Samuel Obuch
e46d033d1d ci: use shared OpenOCD class for GDB test app 2025-07-18 11:47:08 +02:00
Rahul Tank
4729db64ec fix(nimble): Enhanced HCI logging by adding timestamp information 2025-07-17 10:20:24 +05:30
Roland Dobai
06b9618e6d Merge branch 'fix/ftdi_jtag_config_file' into 'release/v5.1'
fix/ftdi_config_file_v5.1

See merge request espressif/esp-idf!40589
2025-07-16 19:50:34 +02:00
Erhan Kurubas
a71f8c6bab fix(ci): use esp_ftdi.cfg as a default openocd interface file 2025-07-15 08:45:43 +02:00
Marek Fiala
a7978148af feat(tools): Enforce pip 'user' option to no, when installing python env
Closes https://github.com/espressif/esp-idf/issues/16189
2025-07-14 13:27:09 +02:00
Erhan Kurubas
84f74ad024 change(sysview): drop ESP mcore extension 2025-07-09 15:01:30 +08:00
Erhan Kurubas
01955ba676 feat(sysview): update multicore files for testing 2025-07-09 15:01:30 +08:00
Erhan Kurubas
a6e7118c05 feat(sysview): Add SEGGER multicore trace file support 2025-07-09 15:01:30 +08:00
Erhan Kurubas
843c737164 feat(sysview): update to version 3.56 2025-07-09 15:01:30 +08:00
Erhan Kurubas
aa97faf29f feat(tools): update openocd version to v0.12.0-esp32-20250707 2025-07-09 15:01:30 +08:00
Jiang Jiang Jian
705bbfd49c Merge branch 'contrib/github_pr_11535_v5.1' into 'release/v5.1'
Replace deprecated flushregs alias with full gdb command (GitHub PR) (v5.1)

See merge request espressif/esp-idf!33467
2025-07-08 10:10:21 +08:00
Roland Dobai
66fb9df63b Merge branch 'fix/idf_tools_install_tool_version_v5.1' into 'release/v5.1'
fix(tools): fixed command `idf_tools.py install tool@version` (v5.1)

See merge request espressif/esp-idf!40044
2025-06-22 14:57:03 +02:00
Marek Fiala
e0f3afd79d fix(tools): idf_tools.py uninstall decide based on preferred tool version
idf_tools.py uninstall now doesn't take only recommended version, but
makes the decision based on preferred installed versions.
2025-06-20 15:59:41 +02:00
Marek Fiala
b9f094287e test(tools): Added test for installing supported tool version
Added test_export_supported_version_cmake in `test_idf_tools.py`,
that installs and exports supported version of tool - cmake.
2025-06-20 15:59:41 +02:00
Marek Fiala
cd1bb32266 fix(tools): idf_tools.py install tool@version 2025-06-20 15:59:32 +02:00
Marek Fiala
6edcdd9c40 feat(tools): Update ccache 4.10.2 -> 4.11.2
Closes https://github.com/espressif/idf-installer/issues/305
2025-06-17 04:27:50 +08:00
Marek Fiala
0849421d97 fix(tools): Enabled removing requirements.* files 2025-06-11 11:15:57 +02:00
Fu Hanxi
4a87c06106 ci: disable idf-ci plugin
this plugin will be re-enabled with compatible code in !38755
2025-06-04 13:20:44 +02:00
Alexey Lapshin
120b4ebc82 feat(tools): update esp-rom-elf to version 20240305 2025-05-29 15:43:03 +08:00
Daniel Mangum
de4c29b714 fix: Replace deprecated flushregs alias with full gdb command
Usage of `flushregs` in gdb will result in the following warning:

```
Warning: 'flushregs', an alias for the command 'maintenance flush register-cache', is deprecated.
Use 'maintenance flush register-cache'.
```

This patch updates to use the recommend command.

Signed-off-by: Daniel Mangum <georgedanielmangum@gmail.com>
Merges https://github.com/espressif/esp-idf/pull/11535
2025-05-26 11:31:57 +02:00
Song Ruo Jing
47ef2aa788 fix(gpio): fix 8/16-bit gpio, rtc/lp_io register access 2025-05-20 16:26:48 +08:00
Alexey Gerenkov
5270dda8cf feat(tools): update openocd version to v0.12.0-esp32-20250422 2025-04-26 12:42:00 +02:00
Alexey Lapshin
2e3323c9cb fix(ldgen): extend section name regex to include '_' (e.g.: used by picolibc) 2025-04-09 16:53:12 +08:00
harshal.patil
77b9f5e054 fix(examples): Example CA certs must contain the Key Usage parameter
- Example CA certificates that are used for self-signed client certificates
need to include the Key Usage parameter.
- Python3.13 changed the default context of the SSL context that is
generated using ssl.create_default_context() by enabling the VERIFY_X509_STRICT
flag by default
2025-04-03 11:04:50 +05:30
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
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
Roland Dobai
7d78f36fec Merge branch 'fix/extractall_deprecation_v5.1' into 'release/v5.1'
fix(idf_tools): Patch extractall() deprecation warning (v5.1)

See merge request espressif/esp-idf!37886
2025-03-21 02:02:40 +08:00
Radim Karniš
26c080562e fix(idf_tools): Validate input features 2025-03-19 22:20:52 +01:00
Radim Karniš
09ea954f16 fix(idf_tools): Patch extractall() deprecation warning 2025-03-19 13:54:43 +01:00
Euripedes Rocha
4fc917f0b4 fix(mqtt): Regenerate certificates for testing
- Previous fix ommited one of the client certificates by mistaque.
- This regenerates all certificates to clean that up.
2025-03-17 23:04:19 +08:00
Marius Vikhammer
4aa92562ba Merge branch 'bug/xtensa_cpu1_sys_lockup_v5.1' into 'release/v5.1'
fix(panic_handler): Updated panic handler to use RTC WDT (v5.1)

See merge request espressif/esp-idf!37123
2025-03-12 10:00:36 +08:00
Mahavir Jain
fee5008f1a fix(esp_local_ctrl): update for changes in protocomm security2 scheme 2025-03-10 12:33:27 +08:00
Mahavir Jain
293e29d400 fix(provisioning): fix incorrect AES-GCM IV usage in security2 scheme
Using same IV in AES-GCM across multiple invocation of
encryption/decryption operations can pose a security risk. It can help
to reveal co-relation between different plaintexts.

This commit introduces a change to use part of IV as a monotonic
counter, which must be incremented after every AES-GCM invocation
on both the client and the device side.

Concept of patch version for a security scheme has been introduced here
which can help to differentiate a protocol behavior for the provisioning
entity. The security patch version will be available in the JSON
response for `proto-ver` endpoint request with the field
`sec_patch_ver`.

Please refer to documentation for more details on the changes required
on the provisioning entity side (e.g., PhoneApps).
2025-03-10 12:33:27 +08:00
Sudeep Mohanty
2bba3944c2 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-03-06 09:10:09 +01:00
Erhan Kurubas
1d5a76a7a8 feat(tools): update openocd version to v0.12.0-esp32-20250226 2025-03-05 15:48:57 +01:00
akshat
9186cf432a bugfix(wifi): Fix header file errors and remove esp_supplicant from check_public_headers_exceptions.txt 2025-02-27 15:52:10 +08:00
Marius Vikhammer
bf11849a79 Merge branch 'bugfix/remove_wdt_both_cpus_test_v5.1' into 'release/v5.1'
test(panic): remove WDT both CPU test (v5.1)

See merge request espressif/esp-idf!36623
2025-02-25 11:36:37 +08:00
Martin Vychodil
37bbb0d223 fix(security): Fixed ESP32S2 memory protection check for Peri1 RTCSLOW interrupt
- fixes the issue found in https://github.com/espressif/esp-idf/issues/15359
- extends debug printouts in the related tests
2025-02-19 19:33:12 +01:00
Island
e7629d043f Merge branch 'feat/support_ble_debug_with_gpio_v5.1' into 'release/v5.1'
Support change HID task size by Kconfig in HID example (v5.1)

See merge request espressif/esp-idf!36996
2025-02-19 16:37:08 +08:00