Commit Graph

5289 Commits

Author SHA1 Message Date
Jakub Kocka
cde207e996 feat(tools): Added IDF path order check for Windows platform
This relates to old GH issue: https://github.com/espressif/esp-idf/issues/5994
2023-10-24 15:34:41 +02:00
Xiao Xufeng
1f5fb3f921 spi_flash: fixed issue that enabling HPM-DC by default may cause app unable to restart 2023-10-24 10:38:08 +08:00
Marius Vikhammer
8c52b0845d feat(linux_target): enable hello world example for linux target 2023-10-24 10:04:09 +08:00
Fu Hanxi
eb37150780
ci: add all nightly run env vars while checking 2023-10-23 09:19:31 +02:00
Fu Hanxi
ad9b07f589
ci: add idf_pytest package into patterns to trigger target test jobs 2023-10-23 08:54:02 +02:00
Fu Hanxi
d2f5f3549e
ci: sort pytest test cases by app path 2023-10-23 08:53:20 +02:00
Marius Vikhammer
b0124b9b9f Merge branch 'feature/freertos_upgrade_to_v10_5_1' into 'master'
change(freertos): Upgrade ESP-IDF to use FreeRTOS v10.5.1, remove v10.4.3

Closes IDF-8191, IDF-8200, IDF-8201, IDF-8363, and IDF-8364

See merge request espressif/esp-idf!26261
2023-10-23 11:00:08 +08:00
Marius Vikhammer
d36b72ef23 fix(idf.py): fixed save-defconfig failing due to wrong argument name 2023-10-21 12:23:07 +08:00
Darian Leung
a23ba22fb7 fix(freertos/cmock): Fix FreeRTOS CMock builds for v10.5.1 kernel
This commit fixes the FreeRTOS CMock component in the following ways:

- Updated include directories to work with vanilla FreeRTOS v10.5.1
`#include "portmacro.h"` style inclusion.
2023-10-21 04:39:16 +08:00
Darian Leung
2025a77dd6 change(freertos/idf): Move v10.5.1 kernel files
This commit moves the v10.5.1 kernel files to the 'FreeRTOS-Kernel' directory.
2023-10-21 04:39:16 +08:00
Rocha Euripedes
c82c00d238 Merge branch 'ci/move_pubconnect_to_nightly' into 'master'
ci(mqtt): Move publish tests to nightly

See merge request espressif/esp-idf!26594
2023-10-20 18:30:33 +08:00
Roland Dobai
44fcbe2ea4 Merge branch 'feat/min_config_labels' into 'master'
feat(tools/kconfig): add menu labels for min config

Closes IDFGH-8945

See merge request espressif/esp-idf!26312
2023-10-20 15:54:49 +08:00
Euripedes Rocha
9628c9b5b8 ci(mqtt): Move publish tests to nightly
Publish test cases are prone to fail depending on Ci load.
2023-10-20 07:44:35 +02:00
Armando (Dou Yiwen)
471f1f61ae Merge branch 'feature/support_sdmmc_ver2_on_p4' into 'master'
sdmmc: esp32p4 support

Closes IDF-6502

See merge request espressif/esp-idf!25405
2023-10-19 22:00:40 +08:00
Roland Dobai
ad1a9201a2 Merge branch 'feature/update_ninja_to_1.11.1' into 'master'
feat(tools): Update ninja to v1.11.1

Closes IDF-7429

See merge request espressif/esp-idf!25031
2023-10-19 18:01:09 +08:00
Fu Hanxi
9f379b224a Merge branch 'ci/reduce_minio_object_size' into 'master'
ci: reduce the archive file size by adding compression method

See merge request espressif/esp-idf!26552
2023-10-19 01:20:29 +08:00
Peter Dragun
bdcae08458 feat(tools/kconfig): add menu labels for min config
Closes https://github.com/espressif/esp-idf/issues/10358
2023-10-18 15:01:46 +02:00
Zim Kalinowski
fa1a3ce0b5 Merge branch 'refactor/components_linux_compatible' into 'master'
Exclude all currently incompatible components from Linux build

Closes IDF-8318 and IDF-5996

See merge request espressif/esp-idf!25598
2023-10-18 20:17:49 +08:00
Armando
70314b56d5 feat(sdmmc): supported sd2.0 on esp32p4 2023-10-18 11:57:55 +00:00
Fu Hanxi
1199a22717
ci: reduce the archive file size by adding compression method
the default one of python won't do any compress

also limit a bit on the file patterns, otherwise the .bin files
generated by cmake would also be uploaded
2023-10-18 11:51:24 +02:00
Fu Hanxi
321d3c9ba6 Merge branch 'ci/remove_ttfw' into 'master'
ci: remove ttfw

See merge request espressif/esp-idf!26313
2023-10-17 20:43:56 +08:00
Fu Hanxi
00ae4ee386 Merge branch 'ci/fix_get_test_cases_issues' into 'master'
ci: set env var NIGHTLY_RUN while checking the apps readme files

See merge request espressif/esp-idf!26493
2023-10-17 19:01:01 +08:00
Marek Fiala
56e3e8ce56 feat(tools): Option in tools.json to rename toolchanis being downloaded
- Implemented condition that version 1 of tools.json must not contain
  new rename_dist keyword in any of #/definitions/versionInfo properties.
2023-10-17 12:28:02 +02:00
Marek Fiala
562bb6783a feat(tools): Update ninja to v1.11.1 2023-10-17 11:52:22 +02:00
Erhan Kurubas
340262977e Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20230921' into 'master'
Feature/update openocd to v0.12.0 esp32 20230921

Closes IDF-7920

See merge request espressif/esp-idf!26316
2023-10-17 16:09:39 +08:00
Fu Hanxi
6944d17be9
ci: set env var NIGHTLY_RUN while checking the apps readme files
sometimes we may want to build & test on only a specific set of targets,
add `NIGHTLY_RUN == "1"` for this use case
2023-10-16 13:26:43 +02:00
Roland Dobai
51b104deac Merge branch 'feat/all_components' into 'master'
feat(tools): display hints for projects with trimmed down list of components

Closes IDF-8005 and IDF-8316

See merge request espressif/esp-idf!26297
2023-10-16 17:40:12 +08:00
Jakob Hasse
548022fbe6 refactor(linux): excluded all non-Linux components from build
* All components which won't build (yet) on Linux are excluded.
  This enables switching to Linux in an application without
  explicitly setting COMPONENTS to main in the main
  CMakeLists.txt.
* ESP Timer provides headers for Linux now
* automatically disabling LWIP in Kconfig if it is not available

doc(linux): brought section
  "Component Linux/Mock Support Overview" up to date
2023-10-16 17:06:54 +08:00
Fu Hanxi
4dbf8c8948
ci: remove ttfw related files 2023-10-16 10:23:09 +02:00
Fu Hanxi
ca63d0f943
test: move network_tests from examples/ to tools/test_apps 2023-10-16 10:18:03 +02:00
Mahavir Jain
1501aef1b3 Merge branch 'feature/enable_secure_boot_esp32p4' into 'master'
feat(secure_boot): add secure boot support for esp32p4

Closes IDF-7544 and IDF-7745

See merge request espressif/esp-idf!26335
2023-10-16 11:07:14 +08:00
morris
4f3e05f6a8 Merge branch 'ci/fix_hal_assert_check' into 'master'
fix(hal): replace assert with hal_assert

See merge request espressif/esp-idf!26349
2023-10-16 09:56:04 +08:00
Fu Hanxi
79bc66b323
ci: upload to minio server instead of gitlab artifacts for pytest jobs 2023-10-13 13:01:23 +02:00
Fu Hanxi
dfdb9f9261
ci: reduce gitlab api calls by using lazy calls 2023-10-13 13:01:23 +02:00
Fu Hanxi
7311710e2c
ci: support p4 in unit-test-app 2023-10-13 12:55:52 +02:00
Ondrej Kosta
4f6c86ebb8 Merge branch 'feature/extend_eth_test_targets' into 'master'
CI tests for all supported Ethernet tests

Closes IDF-5704

See merge request espressif/esp-idf!24468
2023-10-13 18:44:10 +08:00
Martin Vychodil
64befdca3a Merge branch 'feature/partition_readonly_flag' into 'master'
feat(partition_table): Add read-only partition flag and functionality

Closes IDF-6421

See merge request espressif/esp-idf!24855
2023-10-13 11:11:07 +08:00
morris
0717729911 fix(hal): replace assert with hal_assert
hal is a G0 component but assert may link in the symbols in the newlib component.
we'd better not use assert in the hal but use the alternative HAL_ASSERT
2023-10-13 10:14:47 +08:00
morris
ca1cd88e25 Merge branch 'feature/enable_hal_util_host_test' into 'master'
feat(hal): enable hal host test

Closes IDF-8275

See merge request espressif/esp-idf!26384
2023-10-12 22:24:38 +08:00
Rocha Euripedes
ade6384954 Merge branch 'ci/publish_connect_refactor' into 'master'
Publish connect test refactor

See merge request espressif/esp-idf!25311
2023-10-12 20:03:28 +08:00
Konstantin Kondrashov
e19504a9c1 Merge branch 'feature/enable_multicore_unicore_tests_for_esp32p4' into 'master'
feat(tools): Enables unicore_bootloader test for ESP32P4

Closes IDF-7692

See merge request espressif/esp-idf!26035
2023-10-12 17:35:26 +08:00
Alexey Gerenkov
5d1acfc44f feat(tools): Update OpenOCD version to v0.12.0-esp32-20230921 2023-10-12 11:01:23 +02:00
Peter Dragun
95b764970e Merge branch 'feat/uf2-to-esptool' into 'master'
feat(tools): move uf2 file generation to esptool

Closes IDF-7434

See merge request espressif/esp-idf!25655
2023-10-12 16:03:16 +08:00
Ondrej
3a3656ba38 ci(esp_eth): added tests of all supported Etherent chips 2023-10-12 07:23:51 +00:00
harshal.patil
f46a93e565
feat(secure_boot): add secure boot support for esp32p4 2023-10-12 10:12:54 +05:30
Jiang Jiang Jian
5debc3beb2 Merge branch 'bugfix/fix_wrong_mem_caps_in_memory_layout' into 'master'
fix(heap):  fix the issue on esp32c3 where retention memory was exhausted prematurely and preventing the CPU from powering down

Closes IDF-8236

See merge request espressif/esp-idf!25962
2023-10-12 10:39:43 +08:00
Euripedes Rocha
fba535756e ci(mqtt): Refactor publish connect test 2023-10-11 14:38:52 +02:00
Anton Maklakov
2472c62fff Merge branch 'feature/add_qemu_to_tools-json' into 'master'
Add QEMU to tools.json

Closes QEMU-164

See merge request espressif/esp-idf!25973
2023-10-11 12:54:46 +08:00
morris
66497af276 feat(hal): enable hal host test 2023-10-11 11:23:24 +08:00
Adam Múdry
ab1eb37fe8 feat(partition_table): Add read-only partition flag and functionality 2023-10-11 00:01:05 +02:00
KonstantinKondrashov
a2802ef121 feat(tools): Enables unicore_bootloader test for ESP32P4 2023-10-10 11:11:32 +00:00
Roland Dobai
81804be35f Merge branch 'fix/kconfigs_check_move' into 'master'
fix(tools/kconfig): Moved check_konfigs.py to esp-idf-kconfig package

Closes IDFGH-9516

See merge request espressif/esp-idf!26033
2023-10-10 17:58:43 +08:00
C.S.M
b2d7f4d0cd Merge branch 'bugfix/compile_usj_fail_c6' into 'master'
ci(usb_serial_jtag): Add a pytest for usb_serial_jtag print.

Closes IDF-3201

See merge request espressif/esp-idf!26231
2023-10-10 13:47:19 +08:00
Anton Maklakov
02802ea20a feat(tools): Add QEMU 8.0.0_20230522 to tools.json
Process wildcards in the install and download lists of idf_tools
    Fix the install and download handlers to get common behaviour
2023-10-10 09:59:38 +07:00
Cao Sen Miao
403f237825 feat(usb_serial_jtag): Add pytest for usb_serial_jtag 2023-10-10 10:05:46 +08:00
Alexey Lapshin
2585e53d54 Merge branch 'feature/update-toolchain-to-esp-13.1.0_new_newlib' into 'master'
Update toolchain to esp-13.2.0_20230919

Closes GCC-250, GCC-322, GCC-324, GCC-327, GCC-330, and IDF-8287

See merge request espressif/esp-idf!25073
2023-10-10 08:18:33 +08:00
Peter Dragun
9acf412a07 feat(tools): move uf2 generation to esptool 2023-10-09 15:38:30 +02:00
Gao Xu
d52040a86d Merge branch 'esp32p4/add_uart_support' into 'master'
UART: Add uart support for ESP32P4

Closes IDF-6511 and IDF-7506

See merge request espressif/esp-idf!25388
2023-10-09 18:11:10 +08:00
Darian
a10121491f Merge branch 'change/freertos_make_task_snapshot_private' into 'master'
refactor(freertos/task_snapshot): Make task snapshot private

Closes IDF-8182

See merge request espressif/esp-idf!26115
2023-10-09 16:32:18 +08:00
Alexey Lapshin
9dcc9a73f6 fix(esp_rom): fix libc_stubs.h includes 2023-10-09 12:13:02 +04:00
Alexey Lapshin
5c41edb863 fix(tools): fix panic test gcc 13.1.0 warnings 2023-10-09 12:13:02 +04:00
Alexey Lapshin
98199d50d6 change(tools): update gcc toolchain version to 13.2.0
Add Kconfig option to supress new gcc warnings
Update docs with migration guide
2023-10-09 12:13:00 +04:00
Guillaume Souchere
54f0517724 Merge branch 'feat/add_runtime_hint_for_corrupted_tlsf' into 'master'
feat(heap): Add runtime hint on tlsf assert trigger

Closes IDF-8222

See merge request espressif/esp-idf!26301
2023-10-09 13:30:43 +08:00
Armando
3d4b60afc0 refactor(esp_mm): reformat code with astyle_py 2023-10-08 10:36:04 +08:00
Armando
2144eedb66 refactor(esp_psram): reformat code with astyle_py 2023-10-08 10:36:04 +08:00
Armando
b774bd1457 refactor(esp_adc): reformat code with astyle_py 2023-10-08 10:35:52 +08:00
gaoxu
4f24f805cc feat(uart): add LP-UART GPIO support 2023-10-08 10:10:02 +08:00
Darian Leung
2b357071f1 refactor(freertos/task_snapshot): Deprecate task_snapshot.h
This commit deprecates the `#include "freertos/task_snapshot.h" include path:

- Adds compatibility header with compile time warning
- Removes hints related to `task_snapshot.h`
- Adds entry to migration guide
2023-10-07 18:55:47 +08:00
Darian Leung
9968a48c36 refactor(freertos/task_snapshot): Make task snapshot private
Task snapshot API were never intended to be called from user code. This commit
makes task snapshot a private API thus moves `#include "freertos/task_snapshot.h"`
to `#include "esp_private/freertos_debug.h"`.

Task snapshot related Kconfig options have also been hidden.

Note: Added 'freertos_common' mapping to ldgen mapping execptions lists due to
inlining of 'freertos_debug.h' functions.
2023-10-07 13:14:55 +08:00
Jakub Kocka
22dcc26674 fix(tools/kconfig): Moved check_konfigs.py to esp-idf-kconfig package
Closes https://github.com/espressif/esp-idf/issues/10872
2023-10-06 13:02:56 +02:00
Jakub Kocka
f71b2cb209 ci(get_mr_changed_files): return only changed files, exclude deleted 2023-10-06 13:02:56 +02:00
Roland Dobai
fbc31c8f15 Merge branch 'fix/esptool_command_info' into 'master'
fix(tools): adjusted esptool @flash_args command print to prevent issues

Closes ESPTOOL-750

See merge request espressif/esp-idf!26327
2023-10-06 15:34:20 +08:00
Konstantin Kondrashov
3166056078 Merge branch 'bugfix/log_mixing_at_startup' into 'master'
fix(esp_system): Fixes mixing logs when two cores use esp_rom_printf

Closes IDF-7891

See merge request espressif/esp-idf!25996
2023-10-05 21:06:14 +08:00
Guillaume Souchere
cb9868e82d feat(heap): Add runtime hint on tlsf assert trigger
Catch all tlsf assertion failure and display a hint for out of bound writing since
all assertion failure are triggered when the tlsf metadata structure has been corrupted.
2023-10-05 11:57:37 +02:00
Jakub Kocka
d641168663 fix(tools): adjusted esptool @flash_args command print to prevent issues 2023-10-05 11:01:58 +02:00
Fu Hanxi
24b2e0a56d ci: different test case name with different params 2023-10-04 16:05:29 +00:00
Martin Vychodil
c50dfa2374 Merge branch 'bugfix/nvs_set_datatype' into 'master'
bugfix(nvs_flash) : fixed nvs_set functions behaviour when called sequentially with same key and different data type(s)

Closes IDFGH-9727

See merge request espressif/esp-idf!25581
2023-10-03 02:21:23 +08:00
Ivan Grokhotkov
5cd6284b6c Merge branch 'feature/bt_component_test_app' into 'master'
feat(bt): migrate the tests from unit-test-app

Closes IDF-5567

See merge request espressif/esp-idf!26134
2023-10-02 23:31:03 +08:00
Frantisek Hrbata
64d82b54bc feat(hints): use all_component_info from project_description.json
Currently the component_requirements hint module does not work
as expected if the component list for a project is trimmed down.
With the new "all_component_info" dictionary info in project_description.json,
the module can produce hints even if cmake's COMPONENTS variable is
set.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-10-02 16:24:41 +02:00
Frantisek Hrbata
dba7d11096 feat(tools): export information about all components in __COMPONENT_TARGETS
Add new "all_component_info" dictionary into the
project_description.json file. It contains information about all
registered components presented in the __COMPONENT_TARGETS list.
Since components in this list are not fully evaluated, because only the first
stage of cmakefiles processing is done, it does not contain the same information
as the "build_component_info" dictionary. The "type", "file" and "sources" variables
are missing.

Most of the properties are already attached to the component target, so
this only adds INCLUDE_DIRS property to the target during the first cmakefiles
processing stage.

The "all_component_info" dict is generated in a separate function, even
though the original function for "build_component_info" could be
adjusted. This introduces a little bit of boilerplate, but keeps it
logically separated and probably easier if we want to extend it in the
future.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-10-02 15:52:58 +02:00
KonstantinKondrashov
28b8a5d9b4 fix(esp_system): Fix mixing logs, remove early info logs for 2nd CPU
Fixes mixing logs when two cores use esp_rom_printf
2023-10-02 12:50:40 +00:00
Roland Dobai
aa3b9df318 Merge branch 'fix/nested_components_hint' into 'master'
fix(hints): properly identify source component

Closes IDF-8279

See merge request espressif/esp-idf!26265
2023-10-02 18:28:51 +08:00
David Čermák
3b2a22f65a Merge branch 'feat/esp_netif_ppp_opts' into 'master'
feat(esp_netif): PPP netif extend config/use RAM pbufs

Closes IDFGH-10017

See merge request espressif/esp-idf!26057
2023-09-29 13:15:25 +08:00
wuzhenghui
5926116644 change(heap): fix and clean memory caps defination in memory_layout
1. move startup_stack attr from soc_memory_type_desc_t to soc_memory_region_t and
   remove unused aliased_iram field
2. all of the last level of RAM is retention dma accessible on esp32c3
3. remove esp32c2 and later chips retention dma accessible memory caps
4. allow allocate memory from RTC_RAM with MALLOC_CAP_EXEC cap
2023-09-28 07:53:20 +00:00
morris
b12e250b2c refactor(examples): reformat peripheral examples with astyle_py 2023-09-28 10:08:04 +08:00
morris
1b2484214c refactor(esp_lcd): reformat code with astyle_py 2023-09-28 09:42:31 +08:00
Fu Hanxi
1a0dd5a162 Merge branch 'ci/replace_internal_clang-tidy-runner' into 'master'
ci: replace internal clang-tidy runner with the pypi project

See merge request espressif/esp-idf!26133
2023-09-28 00:07:35 +08:00
Frantisek Hrbata
00d77e7a75 fix(hints): properly identify source component
If there is a component(child) within a component(parent), like for test_apps, the parent
component may be wrongly identified as source component for the failed include. This may
lead to a false bug report if the parent component has component, which provides the missing
header, in requirements.

Fix this by looking for the longest matching source component directory.

Suggested-by: Ivan Grokhotkov <ivan@espressif.com>
Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-09-27 12:50:25 +02:00
Fu Hanxi
4dbe541f80
ci: replace internal clang-tidy runner with the pypi project 2023-09-27 10:25:49 +02:00
Ivan Grokhotkov
43741ec803
ci: add astyle pre-commit check 2023-09-27 08:43:45 +02:00
radek.tandler
4f659b70e1 fix(nvs_flash): fixed failing nvs_page test 2023-09-26 15:05:20 +00:00
Harshit Malpani
5d9ebd2473 Merge branch 'bugfix/fix_condition_to_verify_when_no_SB' into 'master'
fix(bootloader_support): Fix condition for checking signature in the application

See merge request espressif/esp-idf!26026
2023-09-26 14:38:08 +08:00
David Cermak
966b8620c2 feat(esp_netif): PPP config option to allow disabling LCP runtime
If LCP keepalive mechanism is enabled in menuconfig, it's statically
configured on creation of an interface and cannot be changed runtime. In
some cases it's useful to relax LCP criteria during runtime operation,
for example before initiating OTA. This config option allows for
disabling already enabled LCP echo (this setting becomes effective after
reconnecting, i.e. initializing a new session)

Closes https://github.com/espressif/esp-protocols/issues/287
2023-09-25 16:48:48 +02:00
Ivan Grokhotkov
eafa723093
feat(bt): migrate the tests from unit-test-app 2023-09-25 15:01:29 +02:00
Ivan Grokhotkov
8545f8595f Merge branch 'bugfix/build_fail_c6_usb_serial_jtag' into 'master'
fix build with CONFIG_ESP_CONSOLE_UART=n on C6, re-enable build tests for C6 and C2

Closes IDFGH-10698

See merge request espressif/esp-idf!24935
2023-09-25 20:39:32 +08:00
Harshit Malpani
7d98bdd495
feat: Add test app to verify SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
Add a test app to verify the working of the application when
SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT is selected in the menuconfig
and the application is not signed
2023-09-25 12:02:58 +05:30
Ivan Grokhotkov
4f9e22945c Merge branch 'feature/esp_hid_component_test_app' into 'master'
feat(esp_hid): migrate the tests from unit-test-app

Closes IDF-5575

See merge request espressif/esp-idf!26077
2023-09-22 23:21:53 +08:00
Ivan Grokhotkov
2fe4fe2c19
ci(system): re-enable build test app for C2 and C6, clean up configs
Since we can use CONFIG_NAME now to specify build rules, we don't need
to have target-specific config files.
2023-09-22 13:46:00 +02:00
Ivan Grokhotkov
9e20bf4f06
feat(esp_hid): migrate the tests from unit-test-app 2023-09-21 14:25:08 +02:00
Fu Hanxi
c79c16a73e ci: fix cleanup_ignore_lists.py on windows 2023-09-21 12:59:17 +02:00