6335 Commits

Author SHA1 Message Date
Omar Chebib
980cf269c7 feat(riscv): implement frame pointer option for backtracing 2025-01-09 11:57:02 +08:00
C.S.M
50cd05c4ac Merge branch 'refactor/move_bod_to_hw_support' into 'master'
refactor(bod): Move brownout handling file from esp_system to esp_hw_support

See merge request espressif/esp-idf!36191
2025-01-09 11:08:05 +08:00
David Čermák
bca1e958ea Merge branch 'test/new_mosquitto' into 'master'
fix(mqtt): Fix mqtt tests with local mosquitto

See merge request espressif/esp-idf!35859
2025-01-08 18:19:24 +08:00
C.S.M
5e4fd8ee52 refactor(bod): Move brownout handling file from esp_system to esp_hw_support 2025-01-08 14:41:37 +08:00
Zhang Hai Peng
80b28a9816 Merge branch 'bugfix/fix_ble_conn_fail_in_ci' into 'master'
fix(ble/bluedroid): Optimize CI configuration for Bluedroid example

Closes IDFCI-2628

See merge request espressif/esp-idf!36138
2025-01-08 10:05:41 +08:00
David Cermak
7fa64f64d6 fix(mqtt): Fix test with local mosquitto increasing stack size
4kB stack size for mosquitto runner task wasn't enough and with
recent updates of sock_utils it caused stack overflows
2025-01-07 09:00:23 +01:00
morris
c8d4e1b094 Merge branch 'feature/bitscrambler_support' into 'master'
feature(driver): BitScrambler loopback support

See merge request espressif/esp-idf!31236
2025-01-03 16:08:52 +08:00
zhanghaipeng
aa2f136e16 fix(ble/bluedroid): Optimize CI configuration for Bluedroid example 2025-01-03 14:35:07 +08:00
Marius Vikhammer
b07761825e Merge branch 'feature/dcache_write_flash_panic' into 'master'
feat(panic): panic immediately on an attempt to write to flash via dcache

See merge request espressif/esp-idf!34190
2025-01-03 10:12:30 +08:00
Marius Vikhammer
cfe7021801 Merge branch 'bugfix/h2_wifi_intr' into 'master'
fix(interrupt): fixed wrongly reserved interrupt for wifi on H2

See merge request espressif/esp-idf!36073
2025-01-02 15:01:44 +08:00
Gao Xu
54f501a2fc Merge branch 'feat/h21_introduce_step8' into 'master'
feat(esp32h21): introduce hello world to ESP32H21 (stage8)

See merge request espressif/esp-idf!35874
2024-12-31 10:39:21 +08:00
gaoxu
25731d0c1e feat(esp32h21): finnal introduce hello world support 2024-12-30 20:14:40 +08:00
Marius Vikhammer
a7c03a73db fix(interrupt): fixed wrongly reserved interrupt for wifi on H2 2024-12-30 17:40:18 +08:00
Roland Dobai
16ba8b7e4a Merge branch 'feature/add_utf_8_decoding' into 'master'
feat(tools): Enforced utf-8 encoding with Python open() functions

Closes IDF-10654

See merge request espressif/esp-idf!32303
2024-12-30 16:07:29 +08:00
Jeroen Domburg
a88e719e33 feat(driver): BitScrambler support
This adds an assembler for the BitScrambler assembly language,
plus unit tests for it. It also adds the loopback driver,
which can do BitScrambler operations on memory-to-memory
transfers. Documentation is also included.
2024-12-30 09:39:23 +08:00
Roland Dobai
9da2e3ad4c Merge branch 'feat/idf_diag' into 'master'
feat: add idf_diag.py reporting tool

Closes IDF-11329

See merge request espressif/esp-idf!34978
2024-12-27 22:00:12 +08:00
Alexey Lapshin
7f80baa1f6 Merge branch 'feature/esp32c5-esp32c61_enable-panic-tests' into 'master'
feat(panic): support HWSG for esp32c5, esp32c61 and enable testing

Closes IDF-8662 and IDF-9269

See merge request espressif/esp-idf!35816
2024-12-27 19:34:25 +08:00
Frantisek Hrbata
949f6cb9f7 feat(tools): add idf.py diag reporting tool
The initial implementation of a diagnostic tool that collects valuable
information about esp-idf and failed build to assist in investigating
reported issues.

The gathered information includes environmental variables, details about
the python virtual environment, installed tools, platform information,
project_description.json, sdkconfig, build logs, map file, linker
scripts, and others.

usage:

1) create the default report

   # allow diag to create the report directory name
   $ idf.py diag
   # explicitly specify the report directory
   $ idf.py diag --output <report directory>

2) examine the contents of the generated <report directory> for
   sensitive information and add additional content to the
   <report directory>

3) create report archive zip file that can be shared or attached to
   the reported issue

   $ idf.py diag --zip <report directory>

The tool collects information as described in what are known as recipe
files. A recipe file is a YAML file, similar to an Ansible playbook or a
GitHub action, but much more simplified. Each recipe outlines how to
gather a set of related information. For instance, the manager.yml
recipe gathers data related to the component manager. Each recipe
includes metadata such as its description, tags, and steps. Tags are
used to determine which recipes to use; by default, all built-in recipes
located in tools/idf_py_actions/diag/recipes are used. Steps consist of
a list of commands to be executed. Currently, there are four commands:
file, exec, env, and glob. For more detailed information about recipes,
their format, and commands, please refer to
tools/idf_py_actions/diag/recipes/README.md.

Recipe example for component manager:

description: IDF Component Manager information
tags: [manager, base, project]
output: manager
steps:
  - name: 'IDF Component Manager'
    cmds:
      - exec:
        cmd: 'python -m idf_component_manager version'
        output: manager.ver
      - file:
        path: '${PROJECT_DIR}/dependencies.lock'
      - glob:
        # Gather all idf_component.yml files from the project directory and
        # save them in directories relative to the project directory within
        # the idf_component directory.
        pattern: 'idf_component.yml'
        recursive: true
        relative: true
        path: '${PROJECT_DIR}'
        output: 'idf_component/'

Create report for manager

1) all recipes with manager tag

   $ idf.py diag --tag manager

2) use only the manager recipe explicitly; built-in recipes can be
   referenced simply by their name, but all recipes can be referenced
   by their path

   $ idf.py diag --recipe manager
   or
   $ idf.py diag --recipe <full path>

To display available recipes, use

   $ idf.py diag --list

and to verify recipes, use

   $ idf.py diag --check

Both --list and --check honers the --tag and --recipe options.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-12-27 12:08:59 +01:00
Frantisek Hrbata
642855c952 feat(tools): add command arguments in the logs produced by RunTool
Currrently, all logs generated by RunTool are stored in files named
idf_py_(stdout|stderr)_output_$$, making it difficult to identify which
log corresponds to which command. To simplify this for idf-diag, include
the command arguments at the beginning of the log. This will allow
idf-diag to use regex to differentiate logs for build, monitor, flash,
and other commands and targets.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-12-27 12:02:23 +01:00
Marius Vikhammer
096cb409d9 feat(panic): panic immediatly if trying to write to flash through cache on ESP32-S3
Updated S3 to use PMS protection for writing to flash through cache. This means we get
a panic quicker for this illegal behavior than we did before, making the source of the error
easier to track down.
2024-12-27 17:58:33 +08:00
Marek Fiala
2c814ef2fa feat(tools): Enforce utf-8 encoding with open() function 2024-12-27 17:12:21 +08:00
Xu Xiao
80ff7d8615 Merge branch 'enable_esp32c5_ci_test' into 'master'
fix(ci): enable esp32c5 eco1 ci test

See merge request espressif/esp-idf!34898
2024-12-26 14:04:02 +08:00
Alexey Lapshin
b58c9a4219 feat(panic): support HWSG for esp32c5, esp32c61 and enable testing 2024-12-26 12:45:17 +07:00
Radek Tandler
5b15320600 Merge branch 'bugfix/storage_generic_pytests' into 'master'
fix(ci): Removed storage related entries in known generate test child pipeline warnings

See merge request espressif/esp-idf!35738
2024-12-25 18:37:14 +08:00
xuxiao
f58311cce9 fix(ci): enable esp32c5 eco1 ci test 2024-12-25 11:21:48 +08:00
Jiang Jiang Jian
00db325091 Merge branch 'ci/add_build_test_eco_versions' into 'master'
ci: add build test for eco versions

See merge request espressif/esp-idf!35787
2024-12-21 11:39:49 +08:00
radek.tandler
df31bc6fdd fix(ci): Removed storage related ignore warnings 2024-12-20 19:40:33 +01:00
Roland Dobai
5603258961 Merge branch 'fix/missing_header_hint' into 'master'
fix(hints): improve suggestion for missing header file

Closes IDF-11895

See merge request espressif/esp-idf!35728
2024-12-20 19:39:54 +08:00
Armando (Dou Yiwen)
90f638e56e Merge branch 'feat/c5_adc_calibration' into 'master'
adc: calibration support on esp32c5

Closes IDF-8702

See merge request espressif/esp-idf!35712
2024-12-20 10:31:42 +08:00
Igor Udot
ca927b87d9 Merge branch 'ci/known-failure-fast-link' into 'master'
ci: added known failure cases fast link to report

Closes RDT-1026

See merge request espressif/esp-idf!35566
2024-12-20 09:56:42 +08:00
Roland Dobai
757d74abae Merge branch 'fix/failing_create_readonly_test_on_win' into 'master'
fix(tools): fixed failing Win CI (tests read_only, cli)

Closes IDF-11782

See merge request espressif/esp-idf!35549
2024-12-19 21:41:50 +08:00
Chen Yudong
8c49748b46 ci: add build test for eco versions 2024-12-19 20:54:16 +08:00
Alexey Lapshin
f667ba7394 Merge branch 'feature/add-xesppie-support-for-gdbstub' into 'master'
feat(gdbstub): add riscv xesppie extension support

Closes IDF-8606

See merge request espressif/esp-idf!35414
2024-12-19 18:38:15 +08:00
igor.udot
2c6e82c644 ci: added known failure cases fast link to report 2024-12-19 18:29:17 +08:00
David Čermák
7e2464720e Merge branch 'feat/lwip_extern_decl_sockutls' into 'master'
feat(lwip): Declare additional POSIX API if available

Closes IDFGH-14028 and IDFGH-12794

See merge request espressif/esp-idf!35683
2024-12-19 18:14:17 +08:00
Alexey Lapshin
36e65097cd feat(gdbstub): add riscv xesppie extension support 2024-12-19 14:07:04 +07:00
Armando
da5b859886 test(adc): supported adc c5 calibration tests 2024-12-19 12:12:30 +08:00
Wan Lei
3bdab3a191 Merge branch 'feat/c5_twaifd_lowlevel_support' into 'master'
feat(twai): c5 twaifd basic low level support

See merge request espressif/esp-idf!34081
2024-12-19 11:27:29 +08:00
Tomas Rezucha
a57e4d7bdd Merge branch 'feat/dfu_p4' into 'master'
feat(dfu): Enable DFU on ESP32-P4

Closes IDF-7757

See merge request espressif/esp-idf!35539
2024-12-18 23:57:23 +08:00
wanckl
fe48cbc3c0 feat(twai): c5 twaifd low level support and deprecate old types header 2024-12-18 19:23:25 +08:00
Roland Dobai
a69220b32d fix(idf_tools.py): Upgrade pip and setuptools separately
This way the setuptools version dependency resolution will be done by
the upgraded pip.
2024-12-18 11:30:54 +01:00
David Cermak
d66b6e2749 feat(hints): Add hints on using external sock utilities 2024-12-17 11:18:46 +01:00
Frantisek Hrbata
0c2843a071 fix(hints): improve suggestion for missing header file
Currently, we are only suggesting that the header file is likely not
part of the component's INCLUDE_DIRS. However, the header file may be
missing also because of the configuration settings. For instance, the
component might be disabled in sdkconfig, or the feature that supplies
the header might not be enabled. Enhance the hint message to address
this scenario as well.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-12-17 10:56:26 +01:00
peter.marcisovsky
3cef3baeba feat(usb_host): Mock USB device open/close
- CMock callbacks for USB device opening and closing
2024-12-16 16:55:37 +01:00
Marek Fiala
5930a422d7 fix(tools): Fixed timeout and path bug for test_cli_installer_win 2024-12-16 14:55:16 +01:00
Marek Fiala
0b78083595 fix(tools): fixed test_create_project_with_idf_readonly on Win 2024-12-16 14:55:15 +01:00
Roland Dobai
93a604df88 Merge branch 'fix/honor_idf_python_env_path' into 'master'
fix(tools): honor IDF_PYTHON_ENV_PATH value

Closes IDFGH-14208

See merge request espressif/esp-idf!35534
2024-12-13 00:51:16 +08:00
Frantisek Hrbata
c0954cf0b2 fix(tools): honor IDF_PYTHON_ENV_PATH value
The active.py script is currently clearing the IDF_PYTHON_ENV_PATH,
preventing it from being set to a custom location for the python virtual
environment directory. Although the install script checks to ensure that
an existing python virtual environment is not overwritten with one for a
different ESP-IDF version than it was originally created for, we should
still permit setting a custom path for the python virtual environment.

Closes https://github.com/espressif/esp-idf/issues/15006

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-12-12 14:29:25 +01:00
Frantisek Hrbata
a8de16b13d fix(autocomplete): handle @-argument autocompletion in bash
Enable @-argument completion only if '@' is not present in
COMP_WORDBREAKS. When '@' is included, the @-argument is not considered
part of the completion word, causing @-argument completion to function
unreliably in bash.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-12-11 14:05:42 +01:00
Frantisek Hrbata
96e627d9a1 ci(autocomplete): add test for file autocompletion
Merge Request !31081 introduced support for file autocompletion. This
adds a basic test for README files autocompletion in the root directory
of the esp-idf repository.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-12-11 14:05:42 +01:00