He Yin Ling
59d0da0b33
CI: rename log path of IT jobs
2021-07-21 10:24:52 +08:00
Jakob Hasse
aabdb2c7a1
[system]: Made longjmp save for context switch
...
* Patched longjmp to be context-switch safe
longjmp modifies the windowbase and windowstart
registers, which isn't safe if a context switch
occurs during the modification. After a context
switch, windowstart and windowbase will be
different, leading to a wrongly set windowstart
bit due to longjmp writing it based on the
windowbase before the context switch. This
corrupts the registers at the next window
overflow reaching that wrongly set bit.
The solution is to disable interrupts during
this code. It is only 6 instructions long,
the impact shouldn't be significant.
The fix is implemented as a wrapper which
replaces the original first instructions of
longjmp which are buggy. Then, it jumps back
to execute the rest of the original longjmp
function.
Added a comparably reliable test to the
test apps.
2021-07-21 09:48:48 +08:00
Jakob Hasse
9ba590cd47
[test_utils]: added extern C decl to ccomp
...
Closes https://github.com/espressif/esp-idf/issues/7121
2021-07-19 10:52:32 +08:00
Roland Dobai
68b6bc661b
Merge branch 'bugfix/idf_tools_not_found_issue_v4.2' into 'release/v4.2'
...
tools: Catch OSError which is raised when the tool is not available (v4.2)
See merge request espressif/esp-idf!14134
2021-07-13 15:42:46 +00:00
Roland Dobai
4e0b8678e4
Merge branch 'bugfix/broken_virtualenv_v4.2' into 'release/v4.2'
...
tools: Reinstall virtualenv if it is broken (v4.2)
See merge request espressif/esp-idf!12952
2021-07-12 15:28:50 +00:00
Anton Maklakov
0f095e4732
Merge branch 'bugfix/cmake_export_ver_during_reqs_expansion_v4.2' into 'release/v4.2'
...
cmake: set IDF_VERSION_* variables at requirement expansion stage (v4.2)
See merge request espressif/esp-idf!14044
2021-07-09 05:41:11 +00:00
Roland Dobai
54da845d7c
tools: Reinstall virtualenv if it is broken
...
Closes https://github.com/espressif/esp-idf/issues/6656
2021-06-24 09:26:43 +02:00
Roland Dobai
68c1999df3
tools: Catch OSError which is raised when the tool is not available
...
Closes https://github.com/espressif/esp-idf/issues/7140
2021-06-24 09:16:56 +02:00
Angus Gratton
036356ccba
Merge branch 'bugfix/override_cmake_python_v4.2' into 'release/v4.2'
...
cmake: Minor Python CMake build fixes (v4.2)
See merge request espressif/esp-idf!13195
2021-06-22 07:45:17 +00:00
Angus Gratton
23a0ecedbf
Merge branch 'feature/prevent_unwind_code_linking_4.2' into 'release/v4.2'
...
[C++]: prevent unwind code linking (backport 4.2)
See merge request espressif/esp-idf!13801
2021-06-22 04:48:45 +00:00
Angus Gratton
0b45e84e2a
Merge branch 'bugfix/ldgen_ignore_nonexistent_archives_and_obj_v4.2' into 'release/v4.2'
...
ldgen: Check mappings (v4.2)
See merge request espressif/esp-idf!13994
2021-06-21 23:20:59 +00:00
Ivan Grokhotkov
19121e2f6f
cmake: set IDF_VERSION_* variables at requirement expansion stage
...
Currently IDF_VERSION_* variables are not available to the component
CMakeLists.txt files at the requirements expansion stage. This makes
it harder to write component CMakeLists files compatible with
different IDF versions.
Include version.cmake from the requirements expansion script, add a
build system test.
2021-06-18 15:27:33 +02:00
Ivan Grokhotkov
2a81167470
tests: gdb_loadable_elf: adjust the breakpoint location for ESP32 ECO3
...
The previous location was the return from the first ets_printf call
that prints ROM sign-on message. Since the main function was patched
in ECO3, the new address no longer works — there is no instruction at
0x40007901 in ECO3 ROM. This could be solved by setting two
breakpoints (one would work for ECO <=2, the other for ECO3), but we
would need to remove the unused breakpoint later.
Fix this by setting the breakpoint at ets_printf. This means that when
debugging a loadable ELF the ROM sign-on message will no longer be
shown, but this doesn't seem to be an issue.
2021-06-18 15:09:47 +02:00
He Yin Ling
333b9d7873
Merge branch 'bugfix/example_test_socket_issue_4.2' into 'release/v4.2'
...
CI: example test socket issue (4.2)
See merge request espressif/esp-idf!13905
2021-06-18 06:04:42 +00:00
Angus Gratton
9b48e5a024
Merge branch 'bugfix/ci_ble_wifi_example_test_v4.2' into 'release/v4.2'
...
Fix for ble and wifi example test (v4.2)
See merge request espressif/esp-idf!13803
2021-06-18 05:39:38 +00:00
Angus Gratton
a637d6f3d7
Merge branch 'ci/unify_all_target_test_artifacts_paths_v4.2' into 'release/v4.2'
...
ci: unify target test artifacts to all .log file and $LOG_PATH (v4.2)
See merge request espressif/esp-idf!13849
2021-06-18 05:37:30 +00:00
Renz Bagaporo
eed6eed909
components: fix ldgen check errors
2021-06-17 12:36:34 +10:00
Renz Bagaporo
ea7d9c6368
ci: exempt upstream libmbedtls mapping for sha256
2021-06-17 12:21:53 +10:00
Renz Bagaporo
711048bce0
ldgen: fix sections info parsing
...
Fixes an issure where the first part of an object file name is not
included, due to matching the rule for a section entry previously.
Reduce depedency on matching literal strings in sections which might
change depending on toolchain (ex. matching 'elf32-xtensa-le')
Make sure parsing rule succeeds for the entirety of the sections info
string by adding 'parseAll=True'.
Add test for sections info parsing.
2021-06-17 12:21:53 +10:00
Renz Bagaporo
2c1c4999f5
ci: enabled ldgen mapping check in ci
2021-06-17 12:20:58 +10:00
Renz Bagaporo
5aa09271d8
ldgen: allow checking mappings
2021-06-17 12:18:02 +10:00
He Yin Ling
7ab8f793ca
versions: Update version to 4.2.2
2021-06-16 14:49:39 +08:00
He Yin Ling
06c7cde836
test: fix iperf example errors:
...
1. fix TypeError when running with python3
2. fix throughput chart x/y axis label error
3. make test case compatibile with iperf bin on earlier release branches
2021-06-08 17:08:29 +08:00
Ivan Grokhotkov
72f4f9542c
Merge branch 'feature/installed_tool_failed_v4.2' into 'release/v4.2'
...
tools: Warning about tool being installed but failed to run. (v4.2)
See merge request espressif/esp-idf!13231
2021-06-07 06:07:54 +00:00
Ivan Grokhotkov
cbe42f1132
Merge branch 'bugfix/gdbgui_v4.2' into 'release/v4.2'
...
tools: Add various fixes for idf.py gdbgui (v4.2)
See merge request espressif/esp-idf!13417
2021-06-07 06:07:13 +00:00
Ivan Grokhotkov
8aa7eaa646
Merge branch 'bugfix/idfpy_global_action_callbacks_order_v4.2' into 'release/v4.2'
...
idf.py: Run global_action_callbacks in predictable order (v4.2)
See merge request espressif/esp-idf!13682
2021-06-07 06:06:54 +00:00
Ivan Grokhotkov
d21e948381
Merge branch 'feature/idf_tools_github_mirror_v4.2' into 'release/v4.2'
...
Add GitHub mirror option for IDF tools installs (v4.2)
See merge request espressif/esp-idf!13765
2021-06-07 06:06:31 +00:00
Fu Hanxi
95f4bba736
ci: unify target test artifacts to all .log file and $LOG_PATH
2021-06-03 17:34:03 +08:00
Roland Dobai
7b70154566
tools: Split up large binaries into smaller chunks in the DFU binary
...
ROM will erase the region a partition is in as soon as it receives the
first bit of the data that is in the partition. For large partitions it
takes more than 5 seconds to erase which is a hard-coded limit in
dfu-utils.
This splits large binaries and adds them by chunks which should avoid
timing-out during flashing.
Closes https://github.com/espressif/esp-idf/issues/6999
2021-06-01 15:11:12 +02:00
Shivani Tipnis
be960bc3dc
ble-wifi-example-tests: Add fixes and cleanups to ble and wifi tests
...
(cherry picked from commit 2d22374460
)
2021-06-01 12:43:59 +05:30
Jakob Hasse
dd08575c29
[C++]: wrapper functions around unwind code
...
* Replaced all C++ exception related
functions with wrappers if -fno-exception
is used. This prevents linking of the
corresponding code in libgcc. The code
size will decrease by around 7-9 KB when
building with -fno-exception.
* added no except test app
Closes https://github.com/espressif/esp-idf/pull/5380
Closes https://github.com/espressif/esp-idf/issues/5363
Closes https://github.com/espressif/esp-idf/issues/5224
Closes IDFGH-3153
Closes IDF-2577
2021-06-01 15:09:46 +08:00
Anton Maklakov
054d3b81a6
tools: windows installer: Modify IDF's archive mirror link
2021-05-31 11:05:04 +10:00
Ivan Grokhotkov
daeaa8092b
tools: windows installer: add support for IDF_GITHUB_ASSETS
...
Adds a checkbox to download tools from dl.espressif.com mirror.
2021-05-31 11:05:04 +10:00
Angus Gratton
56b4596b53
tools: Use GitHub download URLs for all files that can be downloaded from GitHub
2021-05-31 11:05:04 +10:00
Angus Gratton
bebc75af48
idf_tools: Add option to replace all GitHub tools download URLs with dl.espressif.com
...
Via new IDF_GITHUB_ASSETS environment variable.
2021-05-31 11:04:00 +10:00
Sergei Silnov
2deea3b1b0
Run global_action_callbacks in predictable order
2021-05-24 18:14:44 +02:00
He Yin Ling
e60640ab04
ttfw: fix DUT exception not added to junit report
2021-05-21 08:37:28 +00:00
Marius Vikhammer
b5976a7167
CI: fix error when running pppos test app with python3
...
Socket.sendall expects bytes in python3, not strings
2021-05-19 11:42:42 +08:00
Omar Chebib
bf4320ba68
ci: fix flasher_args.json parser (iterate over dictionary)
...
Closes IDFCI-347
2021-05-10 11:18:09 +08:00
Omar Chebib
5c175721e9
ci: use "encrypted" information in flasher_args.json
...
Take into account the new field "encrypted" that is part of the
partition entries in flasher_args.json file
Closes IDF-2231
2021-05-10 11:18:09 +08:00
Omar Chebib
974b8dd4c4
build: (Custom) App version info is now on a dedicated section, independent of the rodata alignment
...
It is now possible to have any alignment restriction on rodata in the user
applicaiton. It will not affect the first section which must be aligned
on a 16-byte bound.
Closes https://github.com/espressif/esp-idf/issues/6719
Closes https://github.com/espressif/esp-idf/issues/6976
2021-05-10 11:17:58 +08:00
He Yin Ling
223cf48c26
Merge branch 'bugfix/python3_target_test_4.2' into 'release/v4.2'
...
ci: run target test with python3
See merge request espressif/esp-idf!12755
2021-05-06 02:19:19 +00:00
Angus Gratton
45c90be913
Merge branch 'update/version_4_2_1' into 'release/v4.2'
...
Update version to 4.2.1
See merge request espressif/esp-idf!13390
2021-05-05 23:12:32 +00:00
Angus Gratton
5b932aa144
cmake: Improve the error message if the Python interpreter fails to run
...
RESULT_VARIABLE will return a string not a number in this case, so display it
for the user.
2021-05-04 07:54:20 +00:00
Angus Gratton
c52417eaba
cmake: Set IDFTOOL variable using the correct PYTHON interpreter variable
2021-05-04 07:54:20 +00:00
Angus Gratton
48d075f87b
cmake: Fix passing PYTHON path via CMake variable if using IDF as library
...
Closes https://github.com/espressif/esp-idf/issues/6285
2021-05-04 07:54:20 +00:00
Roland Dobai
62589fa251
tools: Add various fixes for idf.py gdbgui
...
Closes https://github.com/espressif/esp-idf/issues/5968
2021-05-03 11:43:36 +02:00
He Yin Ling
21ecef5c56
versions: Update version to 4.2.1
2021-04-29 10:13:07 +08:00
Marek Fiala
40b7ea1f95
tools: Warning about tool beiing installed but failed to run.
...
idf_tool.py runs "<tool> --version" which returns the error message but it is not used
This improves the error printing.
2021-04-26 13:57:45 +02:00
Chen Yudong
fa270d72c7
ci: using python3 to tun target test
2021-04-26 06:35:42 +00:00
Angus Gratton
baaf4de703
ci: Fix missing sys.stdout.encoding in python2 runners
...
Regression in fed98cd6ad
2021-04-23 23:09:58 +00:00
Angus Gratton
34a84c829c
ci: ttfw: Encode serial port data to whatever the console encoding is
...
This is a bit of a hack, but gives us a way to always log it
2021-04-23 23:09:58 +00:00
Angus Gratton
340e2dff12
ci: Log failure to close any DUT
2021-04-23 23:09:58 +00:00
Fu Hanxi
bbc05c5095
fix(ci): ci_fetch_submodule return full match name first
2021-04-19 20:21:07 +08:00
Juraj Michálek
e74fbf6608
tools: handle exception in case of logging Unicode characters
2021-04-06 19:16:39 +02:00
Anton Maklakov
e4c021757c
Merge branch 'ci/ignore_check_link_result_v4.2' into 'release/v4.2'
...
CI: ignore result from check_doc_links (v4.2)
See merge request espressif/esp-idf!12783
2021-03-22 03:40:17 +00:00
Marius Vikhammer
7aeaf604c2
CI: ignore result from check_doc_links
...
check_doc_links will always fail due to:
* No rate limitation for requests
* Not being able to handle github links with anchors
2021-03-18 13:17:46 +08:00
Jiang Jiang Jian
747ecb27d0
Merge branch 'bugfix/idf_size_total_size_without_bss_v4.2' into 'release/v4.2'
...
tools: Don't count BSS into the total image size (v4.2)
See merge request espressif/esp-idf!12576
2021-03-18 04:32:42 +00:00
Cao Sen Miao
068dfcf1ba
ota: fix ota with flash encryption
2021-03-12 16:45:43 +08:00
Cao Sen Miao
f80f4cbf2d
ci: move freerom/sdmmc repo to psram3 for saving ram
2021-03-11 13:54:15 +08:00
Cao Sen Miao
54b817a59e
flash_encryption: Quick fixed the issue that block when flash_encryption_write, Related https://github.com/espressif/esp-idf/issues/6322 , Related https://github.com/espressif/esp-idf/issues/6254
2021-03-11 13:52:28 +08:00
Roland Dobai
2c85d01603
tools: Don't count BSS into the total image size
2021-03-01 14:39:42 +01:00
Ivan Grokhotkov
af1ebd7e01
Merge branch 'bugfix/eclipse_make_decode_v4.2' into 'release/v4.2'
...
tools: Fix Eclipse build: “UnicodeDecodeError: 'ascii' codec can't decode byte” (v4.2)
See merge request espressif/esp-idf!12358
2021-02-19 15:55:37 +00:00
Ivan Grokhotkov
9ebdeea54e
Merge branch 'feature/prefer_python3_in_installer_v4.2' into 'release/v4.2'
...
tools: Prefer python3 during install and export (v4.2)
See merge request espressif/esp-idf!12377
2021-02-19 15:52:45 +00:00
Angus Gratton
ceb11fd543
Merge branch 'bugfix/cmake_example_sdkconfig_path_v4.2' into 'release/v4.2'
...
cmake/example: Move idf_as_lib sdkconfig path to project, document configuring project (v4.2)
See merge request espressif/esp-idf!10859
2021-02-17 22:45:21 +00:00
Roland Dobai
2c66dfc089
tools: Prefer python3 during install and export
...
Install and export script should work on systems without "python"
executable.
Closes https://github.com/espressif/esp-idf/pull/6471
Closes https://github.com/espressif/esp-idf/issues/6532
Related to https://github.com/espressif/esp-idf/issues/6421 and
https://github.com/espressif/arduino-esp32/issues/4717
2021-02-14 19:05:33 +01:00
Patryk Krzywdziński
3b5b61f402
Fix eclipse build: “UnicodeDecodeError: 'ascii' codec can't decode byte”
...
Closes https://github.com/espressif/esp-idf/pull/6505
2021-02-10 12:49:56 +01:00
Ivan Grokhotkov
89cab3140d
Merge branch 'bugfix/idf_monitor_baudrate_arg_crash_v4.2' into 'release/v4.2'
...
idf monitor: fix crash when monitor baudrate argument set (Backport v4.2)
See merge request espressif/esp-idf!9758
2021-02-05 10:06:07 +08:00
Mahavir Jain
79aa9636b9
unit-test-app: disable encrypted flash read/write in psram config to fix build failure
2021-02-03 09:07:36 +00:00
Fu Hanxi
d9455d8587
CI: fix the bug returns wrong artifact path when app_name is a subset of a longer one
2021-02-02 11:14:06 +08:00
David Cermak
53fc156adb
esp-modem: Remove esp-netif destroy from modem network glue code
...
To be in line with other interfaces, when deleting the driver and it's glue layer to esp-netif, we DO NOT delete the related esp-netif (since is was allocated and created outside of the glue code and it works the same way in esp-eth and esp-wifi driver/glue layers).
Closes https://github.com/espressif/esp-idf/issues/5486
2021-01-15 11:48:26 +00:00
Marius Vikhammer
cf7bea6dff
idf monitor: fix crash when monitor baudrate argument set
...
Closes IDF-1902
2021-01-15 09:09:49 +00:00
lly
bd0f520a95
ci: Add 1 parallel count for building example
2021-01-13 16:21:15 +08:00
Ivan Grokhotkov
4360410107
Merge branch 'bugfix/tools_python_subprocess_capture_output_v4.2' into 'release/v4.2'
...
tools: Avoid subprocess.run(capture_output) argument for Python <3.7 compatibility (v4.2)
See merge request espressif/esp-idf!11506
2020-12-28 07:45:51 +08:00
Anton Maklakov
ecc2dd4b23
Merge branch 'bugfix/ci_retries_when_download_v4.2' into 'release/v4.2'
...
CI: retry shell commands when download (v4.2)
See merge request espressif/esp-idf!9888
2020-12-24 16:20:12 +08:00
Ivan Grokhotkov
2b88ed8827
Merge branch 'bugfix/idf_gdb_no_openocd_crash_v4.2' into 'release/v4.2'
...
idf.py: Fixed gdb target to exit cleanly when no openocd watch task (v4.2)
See merge request espressif/esp-idf!10808
2020-12-17 18:40:31 +08:00
David Čermák
6a723ad1e7
Merge branch 'bugfix/lwip_netdb_cpp_guards_v4.2' into 'release/v4.2'
...
lw-IP: Changed to C linkage in netdb.h for fixing bug when using mixed C/C++ code (v4.2)
See merge request espressif/esp-idf!11089
2020-12-16 04:13:12 +08:00
Ivan Grokhotkov
a82d0cf9f1
Merge branch 'bugfix/panic_instr_fetch_prohibited_v4.2' into 'release/v4.2'
...
panic: don't interrupt the backtrace for InstrFetchProhibited exceptions (v4.2)
See merge request espressif/esp-idf!10293
2020-12-16 04:09:37 +08:00
Ivan Grokhotkov
e64934be6b
Merge branch 'bugfix/docker_gdb_python_v4.2' into 'release/v4.2'
...
tools/docker: Add libpython2.7 in order to satisfy GDB dependencies (backport v4.2)
See merge request espressif/esp-idf!10307
2020-12-16 04:07:40 +08:00
Anton Maklakov
9fb05897db
Merge branch 'bugfix/ci_py2_warnings_fix_v4.2' into 'release/v4.2'
...
ci: Python 2 warnings fix (v4.2)
See merge request espressif/esp-idf!11617
2020-12-15 19:06:33 +08:00
Michael (XIAO Xufeng)
97cd07007d
ci: define ESP_PLATFORM macro during public header check
2020-12-15 08:09:14 +00:00
Anton Maklakov
e1d62cda5f
Merge branch 'feature/ci_fix_docker_build_v4.2' into 'release/v4.2'
...
ci: Use git mirror for docker image (v4.2)
See merge request espressif/esp-idf!10445
2020-12-15 14:55:07 +08:00
Anton Maklakov
8c3526d91f
Merge branch 'bugfix/build_docs_pdf_job_v4.2' into 'release/v4.2'
...
docs: seperate build_docs html and pdf CI jobs (Backport v4.2)
See merge request espressif/esp-idf!10549
2020-12-15 14:54:00 +08:00
Anton Maklakov
3a5de540f1
ci: Ignore Python 2 deprecation warning
2020-12-15 13:16:03 +07:00
martin.gano
5bb0237860
Add checking if the build directory exists and move expression after docstring
2020-12-11 13:13:50 +01:00
daiziyan
81eb9f280f
add CN translation for adding python2 deprecation warning(MR 11115)
2020-12-11 09:16:18 +01:00
martin.gano
d0d7c53ee1
Tools: add Python 2 deprecation warning
2020-12-11 09:14:57 +01:00
lly
c3c0ca0aff
ci: Add 1 parallel count for building example
2020-12-10 13:59:36 +08:00
Angus Gratton
cf644d4de3
Merge branch 'bugfix/check_doc_links_no_deploy_v4.2' into 'release/v4.2'
...
CI: Only run check_doc_links if we actually deployed (v4.2)
See merge request espressif/esp-idf!10955
2020-12-08 09:08:03 +08:00
Angus Gratton
addabc392d
Merge branch 'bugfix/ldgen_unicode_path_v4.2' into 'release/v4.2'
...
tools/ldgen: Parse paths with Unicode characters in archives & fix parsing of section names on Windows (v4.2)
See merge request espressif/esp-idf!10964
2020-12-08 09:07:47 +08:00
Angus Gratton
1591141237
Merge branch 'bugfix/err_to_name_paths_windows_v4.2' into 'release/v4.2'
...
tools: fix path handling errors in gen_esp_err_to_name.py for Windows (v4.2)
See merge request espressif/esp-idf!10895
2020-12-08 09:06:59 +08:00
Angus Gratton
244922a3e3
tools: Avoid subprocess.run(capture_output) argument for Python <3.7 compatibility
...
In Python 3.5 and 3.6 the equivalent to capture_output=True is to set stdout
and stderr arguments to subprocess.PIPE
2020-12-08 09:44:31 +11:00
Shivani Tipnis
4c533a1e53
ci: Fix blecent example test
...
(cherry picked from commit fc146a98e4
)
2020-11-30 22:44:52 +05:30
Angus Gratton
19bc67e146
ci: Fix annotated tag check
...
Regression in 1612f84
2020-11-23 17:27:12 +11:00
Anton Maklakov
eae8933b85
ci: use the retry script to download
2020-11-16 11:30:47 +07:00
Roland Dobai
707dde46a8
tools/ldgen: Fix parsing of sections names on Windows
2020-10-29 08:46:03 +01:00
Roland Dobai
c09d3c6bac
tools/ldgen: Parse paths with Unicode characters in archives
...
Closes https://github.com/espressif/esp-idf/issues/5996
2020-10-29 08:46:03 +01:00
Chen Yu Dong
f12808533d
ci: move auto_test_script to new repo (backport 4.2)
2020-10-24 09:24:38 +08:00
Marius Vikhammer
e05164cb4f
CI: Only run check_doc_links if we actually deployed
...
Update the check_doc_links job run conditions to match
github/doc deploy as a lot of the links link to github files.
2020-10-22 18:26:46 +08:00
Marius Vikhammer
978b54796f
tools: fix path handling errors in gen_esp_err_to_name.py for Windows
...
Exclude paths that were specified with slash as a path separator were compared
as strings. This would fail on Windows which uses backslash as a path separator.
2020-10-19 14:17:19 +08:00