Commit Graph

4444 Commits

Author SHA1 Message Date
Xue Yun Fei
c941691711 Merge branch 'Bugfix/increase_ping_task_stack_size' into 'master'
lwip:bugfix for increase ping task stack size

Closes WIFI-4903

See merge request espressif/esp-idf!20664
2022-10-19 19:19:25 +08:00
Song Ruo Jing
c8c9ce0a8b Merge branch 'feature/esp32c6_gpio_support' into 'master'
gpio: bringup driver on esp32c6 FPGA

Closes IDF-5870 and IDF-5937

See merge request espressif/esp-idf!20364
2022-10-19 18:44:30 +08:00
xueyunfei
8c17b04cef lwip:bugfix for increase ping task stack size 2022-10-19 10:49:13 +08:00
Marius Vikhammer
978c03c0c3 Merge branch 'feature/test_apps_def_config' into 'master'
CI: add common debug helper sdkconfig that can be used in test apps

See merge request espressif/esp-idf!20213
2022-10-19 10:37:48 +08:00
Roland Dobai
2083e4d359 Tools: Detect if the project is configured for a different Python
Closes https://github.com/espressif/esp-idf/issues/9993
2022-10-18 15:56:43 +02:00
morris
ab20e3e5d5 Merge branch 'bugfix/2nd_bootloader_uart1_baudrate_issues' into 'master'
esp_rom: fix 2nd bootloader custom uart1 baudrate issue

See merge request espressif/esp-idf!20630
2022-10-18 17:18:08 +08:00
Song Ruo Jing
6d24e8bcf4 gpio: Add support for esp32c6 2022-10-18 12:38:36 +08:00
Marius Vikhammer
439455b440 Merge branch 'feature/esp_event_pytest' into 'master'
esp_event: move tests to pytest framework

Closes IDF-5574

See merge request espressif/esp-idf!20533
2022-10-18 11:18:18 +08:00
Jiang Jiang Jian
e08e2f071f Merge branch 'bugfix/fix_part_of_modem_not_reset_when_power_on' into 'master'
Coexistence: fix part of modem module not reset when power up

See merge request espressif/esp-idf!19849
2022-10-18 11:13:10 +08:00
jiangguangming
7daadc5a92 esp_rom: fix 2nd bootloader custom uart1 baudrate issue 2022-10-18 11:04:01 +08:00
Marius Vikhammer
afd7f1e9b7 idf.py hints: add hint IRAM overflow 2022-10-18 02:24:51 +00:00
Aleksei Apaseev
0da9d9ffea tools: fixed the coredump package's suppressed print 2022-10-17 16:34:58 +08:00
Laukik Hase
aff551c4ee
esp_prov: Update deprecated APIs
- Updated deprecated APIs for bleak module
- Updated README and troubleshooting reference for
  BLE transport
2022-10-14 16:53:40 +05:30
Marius Vikhammer
d73e1d9754 esp_event: move tests to pytest framework 2022-10-14 11:07:58 +08:00
Ivan Grokhotkov
659460525f Merge branch 'test/spiffs_component_test_app' into 'master'
spiffs: move tests from unit-test-app to a component test app

Closes IDF-5602

See merge request espressif/esp-idf!20485
2022-10-13 20:01:39 +08:00
Ivan Grokhotkov
8a45ff0957 Merge branch 'bugfix/reenable_ut_c2_fatfs_vfs_spi_flash' into 'master'
vfs, spi_flash: re-enable unit tests for C2

Closes IDF-5137 and IDF-5139

See merge request espressif/esp-idf!20444
2022-10-13 05:40:12 +08:00
David Čermák
950800be9e Merge branch 'update/lwip_sntp_comment_i32_timestamp' into 'master'
lwip: Document 32 bit NTP timestamp converstion to 64b time_t

Closes IDF-5956 and IDF-5592

See merge request espressif/esp-idf!20283
2022-10-12 20:06:42 +08:00
Ivan Grokhotkov
7b709aacc9
spiffs: move tests from unit-test-app to a component test app 2022-10-12 12:08:13 +02:00
Ivan Grokhotkov
0a352a6ff2
vfs, spi_flash: re-enable unit tests for C2 2022-10-12 11:09:36 +02:00
David Čermák
0b6bc7045e Merge branch 'feat/network_hints' into 'master'
tools: Update idf-py hints with networking component info

Closes IDF-5672

See merge request espressif/esp-idf!20471
2022-10-12 16:27:11 +08:00
Marius Vikhammer
23b5e54974 CI: add common debug helper sdkconfig that can be used in test apps 2022-10-12 11:47:04 +08:00
Chen Yu Dong
fa5d0a3513 Merge branch 'feature/pytest_timeout_per_case' into 'master'
pytest: set default timeout for each case

See merge request espressif/esp-idf!20455
2022-10-12 00:47:02 +08:00
Sudeep Mohanty
952ba77edb Merge branch 'tests/migrate_esp_ringbuf_tests_to_pytest' into 'master'
esp_ringbuf: migrated esp_ringbuf component tests to pytest framework

Closes IDF-5582

See merge request espressif/esp-idf!20476
2022-10-11 23:12:03 +08:00
Roland Dobai
cd8f4c75cd Merge branch 'fix/idf_tools_venv_check' into 'master'
Tools: Check venv the same way how it will be used later

See merge request espressif/esp-idf!20525
2022-10-11 22:20:37 +08:00
Sudeep Mohanty
6feab513e4 esp_ringbuf: migrated esp_ringbuf component tests to pytest framework
This commit migrates the esp_ringbuf tests to the pytest framework.
2022-10-11 11:31:04 +02:00
David Cermak
ca709e7dc5 tools: Update idf-py hints with networking component info 2022-10-11 05:56:51 +00:00
Ivan Grokhotkov
5f6f4ef3ac Merge branch 'bugfix/build_rules_check_ignore' into 'master'
ci: ignore build_test_app when checking build_test_rules

See merge request espressif/esp-idf!20517
2022-10-10 22:28:53 +08:00
Fu Hanxi
1a95860559 Merge branch 'ci/improve_ci_build_apps' into 'master'
Ci/improve ci build apps

See merge request espressif/esp-idf!20503
2022-10-10 18:43:14 +08:00
Roland Dobai
404612b130 Tools: Check venv the same way how it will be used later
It is possible that import of venv passes but it still cannot be
started. This can happen with the embedded Python deployed by the
ESP-IDF installer.
2022-10-10 12:31:23 +02:00
Fu Hanxi
2d27e09b4f ci: make bringup process for check_build_test_rules.py more friendly 2022-10-10 16:58:11 +08:00
Fu Hanxi
27e199605a ci: remove unused rules 2022-10-10 16:58:11 +08:00
Marius Vikhammer
6f5beb70e4 ci: ignore build_test_app when checking build_test_rules 2022-10-10 16:23:03 +08:00
Roland Dobai
40b48a5393 Merge branch 'tools/idf_py_size_output_file_opt' into 'master'
tools: Add --output-file argument to idf.py size commands

Closes IDF-5954

See merge request espressif/esp-idf!20354
2022-10-10 15:54:00 +08:00
Roland Dobai
e2d275a382 Merge branch 'fix/export_without_constraint_download' into 'master'
Tools: The Python dependency checker should not update the constraint file

Closes IDF-6010

See merge request espressif/esp-idf!20460
2022-10-10 15:39:09 +08:00
jingli
0a44d09f4f esp32/rtc: fix xtal unstable in some cases when sleep
1. add xtal buf wait to fix high temperature restart issue
2. add min sleep value to fix xtal stop due to too short sleep time issue
2022-10-09 19:58:58 +08:00
Chen Yudong
aa822339aa pytest: set default timeout for each case 2022-10-08 04:47:35 +00:00
Martin Vychodil
1abd4eac2c Merge branch 'test/fatfs_component_test_apps' into 'master'
fatfs: migrate unit tests to component test app, re-enable test for C2

Closes IDF-5588 and IDF-5136

See merge request espressif/esp-idf!20462
2022-10-06 21:10:39 +08:00
Roland Dobai
a6792c2673 Merge branch 'feature/use_tools_json_to_check_toolchain_ver' into 'master'
Tools: use tools.json to double-check toolchain version when building

See merge request espressif/esp-idf!19894
2022-10-06 16:22:41 +08:00
Ivan Grokhotkov
ac830e04ac
fatfs: migrate unit tests to component test app, re-enable test for C2 2022-10-04 17:39:38 +02:00
Ivan Grokhotkov
39319c0750
test_apps: move PanicTestDut from conftest into a separate module
pytest_panic used to do 'from conftest import PanicTestDut'. This
stopped working when another conftest.py file was added in
tools/test_build_system/conftest.py.
In this case we can't rename conftest.py since both are necessary
for pytest to install the hooks in the respective test cases.
Fix by moving PanicTestDut into a separate module, then importing
it from there.
2022-10-03 21:44:28 +02:00
Ivan Grokhotkov
104f2da4c6 Merge branch 'feature/pytest_build_system' into 'master'
build system: add initial version of pytest-based build system tests

See merge request espressif/esp-idf!19498
2022-10-04 01:18:58 +08:00
Alexey Lapshin
e6f7b1a3a0 tools: cmake: check tool supported version with idf_tools.py 2022-10-03 19:01:32 +04:00
Roland Dobai
d50f574a31 Tools: The Python dependency checker should not update the constraint file
The Python dependency checker called from the export scripts and before
build remains offline, i.e. it will use the previously downloaded
constraint file but won't download a newer version.

Related to https://github.com/espressif/esp-idf/pull/9328
2022-10-03 11:39:28 +02:00
Michael (XIAO Xufeng)
9bc18ba480 Merge branch 'feat/sdio_slave_disable_hs' into 'master'
sdio_slave: allow disabling highspeed mode

Closes IDF-5994

See merge request espressif/esp-idf!20312
2022-10-01 01:52:47 +08:00
David Čermák
bea755605e Merge branch 'ci/fix_mqtt5_broker_not_available' into 'master'
ci: Fix mqtt broker is not available

Closes IDFCI-1476

See merge request espressif/esp-idf!20434
2022-09-30 19:42:52 +08:00
yuanjianmin
a839121285 ci: Fix mqtt broker is not available 2022-09-30 10:07:19 +08:00
Martin Gaňo
41742c2369 fatfs: enabled reading sector size and sectors count from boot sector in rawflash 2022-09-29 16:16:36 +02:00
Jakob Hasse
f33ac0a037 Merge branch 'feature/freertos_sim' into 'master'
FreeRTOS Single Core Simulator PoC

See merge request espressif/esp-idf!19256
2022-09-29 20:03:23 +08:00
Jakob Hasse
bfbbd9d790 feat(freertos): Added FreeRTOS POSIX/Linux Simulator
* Added port layer from the FreeRTOS POSIX port, added
  additional port code for ESP-IDF.
* Created another hello world example using that POSIX
  port in tools/test_apps.
* Removed old linux app
2022-09-27 16:23:54 +02:00
Djordje Nedic
09e61e8a23 tools: Add --output-file argument to idf.py size commands
This commit ads the corresponding --output-file option from idf_size.py to idf.py.

This is needed because piping the idf.py size output to a file would result in CMake output being present in the file as well.
2022-09-27 15:41:36 +02:00
Michael (XIAO Xufeng)
507864c4f1 sdio_slave: allow disabling highspeed mode 2022-09-27 18:38:35 +08:00
morris
88c0053172 Merge branch 'feature/esp32c6_bringup' into 'master'
ESP32C6: Introduce new chip target esp32c6

Closes IDF-5247

See merge request espressif/esp-idf!19286
2022-09-27 13:23:21 +08:00
Zim Kalinowski
04ecfacbdd Merge branch 'feature/migrate-console-tests-to-pytest' into 'master'
console: move unit tests to pytest

Closes IDF-5568

See merge request espressif/esp-idf!20192
2022-09-27 00:44:52 +08:00
wuzhenghui
fca7d70e05 esp32c6: add minimal ci support
- enable build_template_app
- enable check public headers
- enable g0 components dependency check
2022-09-26 20:32:13 +08:00
Zim Kalinowski
c37ccfb84e console: migrate console tests to pytest 2022-09-26 12:02:38 +02:00
Roland Dobai
02605f1a31 Merge branch 'fix/idf_tools_download_issues' into 'master'
Tools: Improve download error messages coming from idf_tools.py

Closes IDFGH-8120

See merge request espressif/esp-idf!20325
2022-09-26 16:55:48 +08:00
Roland Dobai
d08898aabc Merge branch 'fix/tools-gdbinit-with-elf-symbols' into 'master'
tools: fixed elf symbols load if gdbinit specified

Closes IDF-4991 and GCC-246

See merge request espressif/esp-idf!18089
2022-09-26 16:20:19 +08:00
Roland Dobai
e2c66520db Tools: Improve download error messages coming from idf_tools.py
Closes https://github.com/espressif/esp-idf/issues/9618
2022-09-23 14:00:31 +02:00
Guillaume Souchere
bf18a05a5f unit-tests: Move the leak related tests from the heap component to test_utils 2022-09-23 09:49:09 +02:00
Guillaume Souchere
405c26da6d heap: migrate unit tests to pytest 2022-09-23 09:49:07 +02:00
Roland Dobai
a1eee69e8f Merge branch 'fix/openocd-prints-old-logs' into 'master'
tools: fix openocd old logs print

See merge request espressif/esp-idf!20176
2022-09-22 15:21:07 +08:00
jingli
cce2af9193 wifi/bt: fix part of modem module not reset when power up 2022-09-22 11:45:20 +08:00
morris
d609884407 Merge branch 'refactor/esp_rom_pytest' into 'master'
esp_rom: migrate ut to pytest

Closes IDF-5583

See merge request espressif/esp-idf!20258
2022-09-22 10:31:37 +08:00
Alexey Lapshin
4539020dac tools: fix openocd old logs print 2022-09-21 22:41:16 +04:00
Alexey Lapshin
c17a7f446c tools: move cmake executable check into function uses it
Before this change idf.py could exit with reason cmake does not exist in PATH
even cmake will not be executed by idf.py (e.g., 'idf.py gdb').
2022-09-21 22:39:03 +04:00
Alexey Lapshin
0fd4b09a46 tools: add test for ROM symbols in GDB 2022-09-21 22:39:03 +04:00
Alexey Lapshin
b9ed89228d test_apps: fix monitor_ide_integration test 2022-09-21 22:39:03 +04:00
Alexey Lapshin
29655fe22a tools: fixed elf symbols load if gdbinit specified
ROM and bootloader symbols add to use in GDB (via 'idf.py gdb')
2022-09-21 22:39:03 +04:00
Alexey Lapshin
fd2846c95e tools: add esp-rom-elfs version '20220823' 2022-09-21 22:39:03 +04:00
David Cermak
9e31c5077d lwip: Document 32 bit NTP timestamp converstion to 64b time_t 2022-09-21 17:38:37 +02:00
Rocha Euripedes
819dae8008 Merge branch 'feature/mqtt_cmakefile_cleanup' into 'master'
Mqtt:  Cmakelists.txt file simplification.

See merge request espressif/esp-idf!19966
2022-09-21 15:21:07 +08:00
Gao Xu
1005c3b9d5 Merge branch 'feature/add_flash_copy_to_psram_example' into 'master'
system: add an example showing moving Flash content to PSRAM feature

Closes IDF-5156

See merge request espressif/esp-idf!19340
2022-09-21 12:15:19 +08:00
Ivan Grokhotkov
4a69a3f7ef Merge branch 'feature/cmake_use_new_features' into 'master'
cmake: use features introduced between 3.5 and 3.16

Closes IDF-5955

See merge request espressif/esp-idf!19819
2022-09-21 11:05:06 +08:00
morris
65767769a9 esp_rom: migrate ut to pytest 2022-09-21 10:42:13 +08:00
Marius Vikhammer
0b0a541c7d Merge branch 'feature/pthread_pytest' into 'master'
pthread: migrate unit tests to pytest test app

Closes IDF-5600

See merge request espressif/esp-idf!20188
2022-09-20 17:58:20 +08:00
Ivan Grokhotkov
adcf07b3b8
cmake: strip -D prefix from COMPILE_DEFINITIONS property values 2022-09-20 11:35:46 +02:00
Ivan Grokhotkov
66554aa215
cmake: remove unused defines from several host test apps
These macros are seemingly only used in the NVS host test, and are not
necessary in the other host test apps.
2022-09-20 11:35:45 +02:00
Ivan Grokhotkov
c392c06216
cmake: remove -D prefix from COMPILE_DEFINITIONS property
Unlike COMPILE_OPTIONS, COMPILE_DEFINITIONS CMake property assumes
values without the -D prefix, such as NAME or NAME=VAL.
Previously, IDF build system was passing COMPILE_DEFINITIONS build
property to CMake COMPILE_OPTIONS property, so -D prefix was not
a problem.
Now that COMPILE_DEFINITIONS CMake property is used, -D prefix has
to be removed.

(Note that this doesn't affect 'target_compile_definitions' function,
which strips -D prefix before adding the definition to the property.)
2022-09-20 11:08:02 +02:00
Ivan Grokhotkov
49dedb77ac
cmake: use add_compile_definitions supported since 3.12
Now that the supported CMake version is >=3.16, this code can be
simplified.
2022-09-20 11:08:02 +02:00
Ivan Grokhotkov
237b2ce40c
cmake: use target_link_options and _directories supported since 3.13
Now that the supported CMake version is >=3.16, this code can be
simplified.

The code to deduplicate the directories can be removed since this is
handled by target_link_directories.
2022-09-20 11:08:02 +02:00
Roland Dobai
c658d09a98 Merge branch 'bugfix/writable_idf_tools_path' into 'master'
Tools: Support ESP-IDF installed in system-wide shared directory for all users

Closes IDFGH-7790 and IDFGH-7791

See merge request espressif/esp-idf!19479
2022-09-19 22:14:33 +08:00
Roland Dobai
d9d646f20e Merge branch 'bugfix/idf_py_size_default_format' into 'master'
tools: default to text output format in 'idf.py size'

Closes IDF-5952

See merge request espressif/esp-idf!20088
2022-09-19 17:46:34 +08:00
Marius Vikhammer
46c092c04a pthread: migrate unit tests to pytest test app 2022-09-19 17:43:33 +08:00
Euripedes Rocha
736424c366 [MQTT] Simplifies MQTT CMakeLists file
- Uses mocks from tools instead of creating them.
- Move host based definition to test code.
2022-09-19 09:11:15 +00:00
Euripedes Rocha
dd441ef713 Makes COMPONENT_LIB available for mock components
- COMPONENT_LIB wasn't available for parent scope
2022-09-19 09:11:15 +00:00
gaoxu
47c02efa72 system: add an example and pytest to showing moving Flash content to PSRAM feature. 2022-09-19 12:25:30 +08:00
harshal.patil
68a7da3f0b
test_utils: reset critical lwip leap level
Test cases calling test_case_uses_tcpip() set critical lwip leak level to 4095, but do not reset it to default.
Hence, 4095 used to get added while calculating the critical threshold for the testcases following them.
2022-09-17 14:31:36 +05:30
harshal.patil
317eeddce4
fix: memory leaks check added 2022-09-17 14:31:36 +05:30
harshal.patil
146f101289
ci: Migrate mbedtls unit tests from unit-test-app to component-test-app 2022-09-17 14:31:36 +05:30
Darian
03b25c6a0d Merge branch 'bugfix/riscv_interrupt_function_naming' into 'master'
riscv: Fix interrupt function naming and redundancy

See merge request espressif/esp-idf!19251
2022-09-17 00:33:33 +08:00
Jiang Jiang Jian
40d13002d0 Merge branch 'ci/optimize_ats_ci_flow' into 'master'
CI: optimize ATS ci flow

See merge request espressif/esp-idf!20131
2022-09-16 20:34:03 +08:00
Zim Kalinowski
d9df69e815 Merge branch 'feature/bootloader_pytest' into 'master'
bootloader support: move unit tests to pytest

Closes IDF-5566

See merge request espressif/esp-idf!20157
2022-09-16 17:35:06 +08:00
Darian Leung
0c97fbd5ba riscv: Remove redundant riscv_interrupts.h header
This commit removes the riscv_interrupts.h header is it has become redundant. The previously
exposed API has been handled as follows:

- "riscv_interrupt_enable()" and "riscv_interrupt_disable()" have been removed. These functions
  were declarations only and never had any implementation.
- "riscv_global_interrupts_enable()" and "riscv_global_interrupts_disable()" renamed to
  "rv_utils_intr_global_enable()" and "rv_utils_intr_global_disable()" respectively and now
  placed in rv_utils.h
2022-09-16 16:45:43 +08:00
Marek Fiala
c63ec6cf08 Tools: Support ESP-IDF installed in system-wide shared directory for all users
Closes: https://github.com/espressif/esp-idf/issues/9329
Closes: https://github.com/espressif/esp-idf/pull/9328
2022-09-16 09:15:19 +02:00
Mahavir Jain
961bdde289 Merge branch 'ci/migrate_esp-tls_unit_test_app' into 'master'
ci: Migrate esp-tls unit tests from unit-test-app to component-test-app

Closes IDF-5571

See merge request espressif/esp-idf!20099
2022-09-16 14:34:44 +08:00
Ivan Grokhotkov
0503cb52eb
build system: add the initial set of pytest-based build system tests 2022-09-16 00:07:55 +02:00
Ivan Grokhotkov
bfc17ce35a
tools: default to text output format in 'idf.py size' 2022-09-15 16:44:21 +02:00
Marius Vikhammer
7cef82e0df bootloader support: move unit tests to pytest 2022-09-15 15:19:42 +08:00
Omar Chebib
53c7dd4efc WDT: implement interrupt wdt and task wdt for ESP32-C2
ESP32-C2 has a single group timer, thus it will use it for the interrupt watchdog,
which is more critical than the task watchdog. The latter is implement in
software thanks to the `esp_timer`component.
2022-09-15 14:37:59 +08:00
harshal.patil
aaf8b5d98e ci: Migrate esp-tls unit tests from unit-test-app to component-test-app 2022-09-14 12:03:49 +05:30
Chen Yudong
bfa96bc597 CI: optimize ATS ci flow 2022-09-14 13:39:12 +08:00
Wan Lei
f7748beb4d Merge branch 'bugfix/spi2_add_device_cs_more_than_3' into 'master'
spi_master: fix error when use `spi_bus_add_device` add more than 3 devices

Closes IDFGH-7288

See merge request espressif/esp-idf!19798
2022-09-14 10:33:37 +08:00
Ivan Grokhotkov
16dbb8f249 Merge branch 'feature/ulp_binutils_multi_target' into 'master'
ulp: support the new multi-target ULP-FSM binutils

Closes IDFGH-4618

See merge request espressif/esp-idf!19818
2022-09-13 21:35:53 +08:00
Roland Dobai
7c4096486d Merge branch 'fix/python_dbus_linux' into 'master'
Tools: Install dbus-python on Linux only

See merge request espressif/esp-idf!20109
2022-09-13 20:54:16 +08:00
Alexey Lapshin
a9bd454529 tools: update esp32ulp-elf to v2.35_20220830
Closes https://github.com/espressif/esp-idf/issues/6432
Closes https://github.com/espressif/binutils-esp32ulp/issues/23
2022-09-13 12:55:48 +04:00
Aditya Patwardhan
ce32183749 tcp_transport: Add support of setting the common name fot the TLS
context
2022-09-13 05:31:43 +00:00
Roland Dobai
0c41149b9b Tools: Install dbus-python on Linux only 2022-09-12 16:17:20 +02:00
Ivan Grokhotkov
5aa688ad4a
tools: update bundled root certificate in idf_tools.py
dl.espressif.com is now using the same root certificate as github.com.
This commit replaces the previously-used ISRG X1 root certificate
with the DigiCert Root CA certificate.
As a result, even if the certificates are not installed (as it happens
on macOS with python.org installers, if the user forgets to run
'Install Certificates.command'), the download is successful.

Related to https://github.com/espressif/esp-idf/issues/4081
2022-09-09 17:33:33 +02:00
Tomas Rezucha
cf59a8a2bd Merge branch 'feature/usb_v5_qol' into 'master'
usb: USB IDF v5 update

Closes IDF-4690 and IDF-5767

See merge request espressif/esp-idf!19875
2022-09-08 19:50:22 +08:00
Roland Dobai
67506f9a3f Tools: Increase the delay before producing exception in the Monitor IDE test app 2022-09-07 11:27:10 +02:00
Mahavir Jain
fb9c931538 Merge branch 'ci/remove_redundant_component_from_unit_test_config' into 'master'
unit_test: remove redundant component from unit test app config

See merge request espressif/esp-idf!19983
2022-09-06 22:12:58 +08:00
Roland Dobai
f27a426013 Merge branch 'bugfix/fix_hints_templates' into 'master'
tools: Fix hint regular expression syntax

See merge request espressif/esp-idf!19965
2022-09-06 21:36:13 +08:00
Harshit Malpani
61fb0c1d2d
unit_test: remove redundant component from unit test app config 2022-09-06 14:07:52 +05:30
Fu Hanxi
24c31bd7fb Merge branch 'ci/run_build_test_check_when_soc_updated' into 'master'
CI: run build test check when soc caps updated

See merge request espressif/esp-idf!19940
2022-09-06 09:33:01 +08:00
Tomas Rezucha
c6fbefcd84 usb_host: Remove custom test_app 2022-09-05 20:14:56 +02:00
Denys Almazov
53d62d2e60 tools: hints.yml fix 2022-09-05 21:03:19 +08:00
Roland Dobai
a565f0635b Merge branch 'fix/impr_idf_hint_error_handling' into 'master'
Tools: Handle IO error in idf.py output capturing

Closes IDFGH-8153

See merge request espressif/esp-idf!19926
2022-09-05 16:32:35 +08:00
Mahavir Jain
4aaf02b093
bootloader_support: fix stringop-overflow warning with PERF compiler optimization
This commit fixes build issue because of function `bootloader_common_reset_rtc_retain_mem`
getting inlined with compiler optimization level set to `PERF` (-O2).

Build failure log:
-----------------

In function 'bootloader_common_reset_rtc_retain_mem',
    inlined from 'bootloader_common_update_rtc_retain_mem' at /h/esp-idf/components/bootloader_support/src/bootloader_common_loader.c:183:13:
/h/esp-idf/components/bootloader_support/src/bootloader_common_loader.c:159:5: error: 'memset' writing 16 bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=]
  159 |     memset(rtc_retain_mem, 0, sizeof(rtc_retain_mem_t));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-09-05 10:42:11 +05:30
wanlei
96aa2792f8 spi_master:fix error when use spi_bus_add_device more than 3 device
update gpio_sig at `spics_out` array in each spi_periph.c of chips later than s2
then `spi_bus_add_device` can correctly distribute gpio_signals for cs_signal

Closes https://github.com/espressif/esp-idf/issues/8876
2022-09-05 12:10:22 +08:00
Fu Hanxi
7d9dd41cbf ci: run build check for all apps when soc header changed 2022-09-05 11:17:02 +08:00
Fu Hanxi
74619b04e1 ci: add esp32c6 target 2022-09-05 10:30:04 +08:00
Song Ruo Jing
0637ea91a3 Merge branch 'bugfix/fix_gpio_intr_lost' into 'master'
gpio: Fix interrupt lost issue

Closes IDFGH-5069

See merge request espressif/esp-idf!19625
2022-09-02 18:54:17 +08:00
Roland Dobai
9307a932ad Tools: Handle IO error in idf.py output capturing
Closes https://github.com/espressif/esp-idf/issues/9649
2022-09-02 10:49:29 +02:00
Roland Dobai
6539d0af6d Merge branch 'feature/add_tests_for_hints' into 'master'
tools: add unit tests for hints

See merge request espressif/esp-idf!19788
2022-09-02 01:32:26 +08:00
Mahavir Jain
251faf98f9 Merge branch 'ci/migrate_protocomm_unit_test_app' into 'master'
ci: Migrate protocomm unit tests from unit-test-app to component-test-app

Closes IDF-5599

See merge request espressif/esp-idf!19781
2022-09-01 23:16:36 +08:00
simon.chupin
92ef2a4c83 Tools: Add unit tests for idf.py hints 2022-09-01 17:09:46 +02:00
Song Ruo Jing
61282cc5dd gpio: Fix interrupt lost issue
In previous gpio default isr, interrupt status bits get cleared at the exit of the isr.
However, for edge-triggered interrupt type, the interrupt status bit should be cleared before entering the per-pin handlers to avoid any potential interrupt lost.

Closes https://github.com/espressif/esp-idf/pull/6853
2022-09-01 16:01:01 +08:00
harshal.patil
a17313ad32 ci: Migrate protocomm unit tests from unit-test-app to component-test-app 2022-09-01 10:24:33 +05:30
wuzhenghui
1d299a8976 esp32c6: add hal support 2022-09-01 12:37:51 +08:00
songruojing
9d515185d0 esp32c6: clean up existing soc files and header file inclusion in IDF to be compatible with the new chip 2022-09-01 12:28:06 +08:00
Roland Dobai
b4b9d993db Merge branch 'feature/build_color_output' into 'master'
build system, tools: enable compiler color diagnostics by default, update CMake to 3.24.0

See merge request espressif/esp-idf!19864
2022-09-01 02:35:07 +08:00
Ivan Grokhotkov
4d9018e925 Merge branch 'feature/ulp_cmake_cleanups' into 'master'
ulp: CMake and python cleanups

See merge request espressif/esp-idf!19817
2022-08-31 17:59:05 +08:00
wuzhenghui
c31aaeda2a ll: add reset interface to rtc_cntl_ll 2022-08-31 01:59:36 +00:00
Ivan Grokhotkov
1ba3d58b78
tools: cmake: upgrade from 3.23.1 to 3.24.0 2022-08-30 16:38:14 +02:00
Ivan Grokhotkov
13881a3832
idf.py: ensure that build log is always sanitized from color sequences
The actual output from the build tool (CMake/Ninja) may or may not
contain color escape codes, depending on various factors. The output
written to the log file should never include color escape codes,
though. This is because color escape codes in files are usually not
rendered as "color" in editors, and complicate reading. Also escape
codes would break the regular expressions used to display hints for
compilation errors.
2022-08-30 16:38:14 +02:00
Ivan Grokhotkov
d04b554065
tools: idf.py: enable CLICOLOR_FORCE for interactive builds
If stdout is a TTY (meaning that the output is not redirected), tell
the build tool (GNU Make or Ninja) to enable colorized output.

GNU Make and Ninja also check if their stdout is redirected and
strip color escape sequences in that case. CLICOLOR_FORCE environment
variable overrides this behavior.

With this change, if the compiler was launched with the
-fcolor-diagnostics flag and idf.py output is not redirected, the
final output in the terminal will be colorized.

(-fcolor-diagnostics is handled at CMake level by the previous commit)
2022-08-30 16:38:13 +02:00
Ivan Grokhotkov
56e6263350
cmake: enable CMAKE_COLOR_DIAGNOSTICS by default
Related to https://github.com/espressif/esp-idf/issues/4162

Setting this option informs CMake that it should pass
-fcolor-diagnostics flag to the compiler.

(Colorized build system output, like from GNU Make, is produced even
without this flag.)

Note that if the build is done using Ninja and the build output is
redirected (not a TTY), Ninja will still strip the escape codes from
the output. For the case of idf.py, this is handled in the next
commit.
2022-08-30 16:38:13 +02:00
Mahavir Jain
a8c8946766 Merge branch 'fix/mqtt_ssl_ds_remove_unwanted_readme_section' into 'master'
mqtt/ssl_ds: Remove unwanted readme section

See merge request espressif/esp-idf!19841
2022-08-30 22:30:22 +08:00
Roland Dobai
cb81d14892 Merge branch 'bugfix/build_color_output_windows' into 'master'
tools: idf.py: use actual sys.stdout instead of the memoized one

See merge request espressif/esp-idf!19847
2022-08-30 16:31:42 +08:00
Marius Vikhammer
dfaaefe2ce Merge branch 'bugfix/uart_sclk_freq' into 'master'
uart: fixed sclk_freq not init warning when compiling with asserts disabled

Closes IDFGH-8144

See merge request espressif/esp-idf!19792
2022-08-30 16:24:38 +08:00
Ivan Grokhotkov
b548d9345e Revert "Merge branch 'feature/build_color_output' into 'master'"
This reverts merge request !19330
2022-08-30 15:14:47 +08:00
Aditya Patwardhan
6c7fd1edc0 mqtt/ssl_ds: Remove unwanted references to configure_ds.py, Also updated
the DS documentation
2022-08-30 10:54:15 +05:30
Ivan Grokhotkov
2916bf9b6c
ulp: esp32ulp_mapgen: remove the special case for RISC-V, cleanup
There are multiple changes in this commit:

1. Unify the RISC-V and ULP-FSM code paths in esp32ulp_mapgen.py.
   It seems that these were originally introduced because `nm` output
   for the RISC-V case contained symbol sizes, while for the ULP-FSM
   no symbol sizes were reported. This makes sense, because the
   ULP-FSM object files are produced from assembly source, symbol
   sizes have to be added manually using the .size directive.
   In the case of RISC-V, the object files are built from C sources
   and the sizes are automatically added by the compiler.

   Now 'posix' output format is used for both RISC-V and ULP-FSM.

2. Move BASE_ADDR out of esp32ulp_mapgen.py. This now has to be passed
   from CMake, which should make it easier to modify if a new chip
   with a different RTC RAM base address is added.

3. Add C++ guards to the generated header file.

4. Switch from optparse to argparse for similarity with other IDF
   tools.

5. Add type annotations.
2022-08-30 02:34:28 +02:00
Ivan Grokhotkov
2c5b62f10e
tools: idf.py: use actual sys.stdout instead of the memoized one
This fixes the issue with build output not being colorized on Windows,
while the hints messages are colorized.

The issue occurred because sys.stdout and sys.stderr get overridden
by colorama.init() at runtime, but the default argument
output_stream=sys.stdout holds the reference to the"original"
sys.stdout.

colorama.init() (which, by the way, gets called via a curious chain
of imports, via idf_component_tools.manifest and tqdm package)
overrides standard streams, on Windows only. The overridden streams
contain logic to convert ANSI color codes into Windows Console API
calls to colorize the text.

Since read_and_write_stream function used the default value of
output_stream evaluated at module loading time, it was using the
original sys.stdout, not the one overridden by colorama.

One extra note is that while this does fix the coloring issue, the
solution is a bit fragile, as it relies on one of the following
(on Windows):
- colorama.init() is called (this can change if idf-component-manager
  stops importing tqdm)
- Sufficiently new version of Windows 10 is used, and ANSI color codes
  support is enabled in the Registry.
2022-08-30 01:30:32 +02:00
Fu Hanxi
4f3610f957 Merge branch 'ci/upload_elf_map_to_minio' into 'master'
ci: upload elf map file to s3 server to reduce artifacts size

Closes IDFCI-1385

See merge request espressif/esp-idf!19756
2022-08-30 01:06:11 +08:00
Roland Dobai
84acc58d3c Merge branch 'fix/disable_idf_py_moinitor_hints' into 'master'
Tools: Disable idf.py hints for IDF Monitor

Closes IDFGH-8110

See merge request espressif/esp-idf!19782
2022-08-29 22:51:55 +08:00
Roland Dobai
9d75833884 Merge branch 'contrib/github_pr_9656' into 'master'
upgrade ccache installed version to 4.6.2 (GitHub PR)

Closes IDFGH-8160 and IDFGH-6735

See merge request espressif/esp-idf!19834
2022-08-29 22:34:46 +08:00
Ivan Grokhotkov
02a19c6df5 Merge branch 'feature/build_color_output' into 'master'
build system, tools: enable compiler color diagnostics by default

Closes IDFGH-1965

See merge request espressif/esp-idf!19330
2022-08-29 20:32:42 +08:00
Ivan Grokhotkov
4f0967d44c Merge branch 'feature/update-gdb-to-11.2_20220823' into 'master'
tools: update gdb version to '11.2_20220823'

Closes IDFGH-4276 and IDF-842

See merge request espressif/esp-idf!19723
2022-08-29 19:34:40 +08:00
Ivan Grokhotkov
990681764e
tools: cmake: upgrade from 3.23.1 to 3.24.0 2022-08-29 11:15:25 +02:00