1261 Commits

Author SHA1 Message Date
Angus Gratton
12704ae528 Merge branch 'origin/feature/prevent_unwind_code_linking_4.0' into 'release/v4.0'
[C++]: prevent unwind code linking (backport 4.0)

See merge request espressif/esp-idf!13806
2021-07-15 11:44:19 +00:00
Renz Bagaporo
8de50b5655 components: fix ldgen check errors 2021-07-13 18:52:40 +10:00
Renz Bagaporo
74eb5590b2 ci: exempt upstream libmbedtls mapping for sha256 2021-07-13 18:52:40 +10:00
Renz Bagaporo
bd6caa524c 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-07-13 18:52:40 +10:00
Renz Bagaporo
e27315e63d ci: enabled ldgen mapping check in ci 2021-07-13 18:52:40 +10:00
Renz Bagaporo
04f6830b09 ldgen: allow checking mappings 2021-07-13 18:52:40 +10:00
Angus Gratton
fa7126b628 Merge branch 'feature/idf_tools_github_mirror_v4.0' into 'release/v4.0'
Add GitHub mirror option for IDF tools installs (v4.0)

See merge request espressif/esp-idf!13767
2021-07-13 03:52:29 +00:00
Angus Gratton
80f5b1cee1 Merge branch 'bugfix/cmake_export_ver_during_reqs_expansion_v4.0' into 'release/v4.0'
cmake: set IDF_VERSION_* variables at requirement expansion stage (v4.0)

See merge request espressif/esp-idf!14046
2021-07-06 07:52:03 +00:00
Anton Maklakov
4bddbb2ddf tools: windows installer: Modify IDF's archive mirror link 2021-07-06 09:30:05 +10:00
Angus Gratton
a480803469 tools: Use GitHub download URLs for all files that can be downloaded from GitHub 2021-07-06 09:30:05 +10:00
Angus Gratton
c41d706134 idf_tools: Add option to replace all GitHub tools download URLs with dl.espressif.com
Via new IDF_GITHUB_ASSETS environment variable.
2021-07-06 09:28:07 +10:00
He Yin Ling
c43bc330e1 Merge branch 'bugfix/example_test_socket_issue_4.0' into 'release/v4.0'
CI: example test socket issue (4.0)

See merge request espressif/esp-idf!13907
2021-07-02 13:08:11 +00:00
Ivan Grokhotkov
9a7de332f4 Merge branch 'bugfix/override_cmake_python_v4.0' into 'release/v4.0'
cmake: Minor Python CMake build fixes (v4.0)

See merge request espressif/esp-idf!13197
2021-07-02 12:32:46 +00:00
Ivan Grokhotkov
69f43e4668 Merge branch 'bugfix/idf_tools_not_found_issue_v4.0' into 'release/v4.0'
tools: Catch OSError which is raised when the tool is not available (v4.0)

See merge request espressif/esp-idf!14136
2021-07-02 12:18:41 +00:00
Roland Dobai
d5d0c624d0 tools: Catch OSError which is raised when the tool is not available
Closes https://github.com/espressif/esp-idf/issues/7140
2021-06-24 12:04:08 +02:00
He Yin Ling
03fc307e21 versions: Update version to 4.0.3 2021-06-24 17:35:06 +08:00
Ivan Grokhotkov
93ee9aab3b 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:32:40 +02:00
He Yin Ling
7be1a8d689 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:25:33 +08:00
Jakob Hasse
1d8ca35eec [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:00:23 +08:00
He Yin Ling
091681faec ttfw: fix DUT exception not added to junit report 2021-05-20 16:57:06 +08:00
Angus Gratton
51623fd4ce Merge branch 'feature/oocd_ver_backport_v4.0' into 'release/v4.0'
Feature/oocd ver backport v4.0

See merge request espressif/esp-idf!11378
2021-05-19 07:57:38 +00:00
Angus Gratton
0242438e9d Merge branch 'bugfix/setjmp_longjmp_4.0' into 'release/v4.0'
[system]: Made longjmp save for context switch (backport v4.0)

See merge request espressif/esp-idf!13503
2021-05-19 01:39:51 +00:00
Angus Gratton
0425b2e7b5 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-12 00:35:15 +00:00
Angus Gratton
262323e740 cmake: Set IDFTOOL variable using the correct PYTHON interpreter variable 2021-05-12 00:35:15 +00:00
Angus Gratton
632796887e cmake: Fix passing PYTHON path via CMake variable if using IDF as library
Closes https://github.com/espressif/esp-idf/issues/6285
2021-05-12 00:35:15 +00:00
Alexey Gerenkov
0d99d2a1a1 tools: Updates OpenOCD version to 'v0.10.0-esp32-20210401' 2021-05-10 16:23:48 +00:00
Jakob Hasse
19eab31660 [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-05-10 19:21:56 +08:00
Chen Yudong
ef1f74174a ci: run target test with python3 2021-04-28 19:32:59 +08:00
Marek Fiala
ebbe25ec73 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:48:56 +02:00
Ivan Grokhotkov
33c4e7f953 Merge branch 'bugfix/broken_virtualenv_v4.0' into 'release/v4.0'
tools: Reinstall virtualenv if it is broken (v4.0)

See merge request espressif/esp-idf!12954
2021-04-20 23:34:19 +00:00
Ivan Grokhotkov
4ff13dfd7e Merge branch 'bugfix/fix_idf_monitor_unicode_path_crash_v4.0' into 'release/v4.0'
tools: handle exception in case of logging Unicode characters (v4.0)

See merge request espressif/esp-idf!13044
2021-04-20 23:34:02 +00:00
Fu Hanxi
3636d44aa9 fix(ci): ci_fetch_submodule return full match name first 2021-04-19 20:24:20 +08:00
Juraj Michálek
3d83ce6d7a tools: handle exception in case of logging Unicode characters 2021-04-06 19:17:23 +02:00
Roland Dobai
5ca77d9d2c tools: Reinstall virtualenv if it is broken
Closes https://github.com/espressif/esp-idf/issues/6656
2021-03-29 19:28:29 +02:00
Angus Gratton
f0b32f0b79 ci: Fix missing sys.stdout.encoding in python2 runners
Regression in dad02307767d0490bab982fa366f5236828bb4c5
2021-03-04 09:28:02 +11:00
Angus Gratton
4db922612a Merge branch 'bugfix/ttfw_example_test_fails_port_remains_open_v4.0' into 'release/v4.0'
ci: Fix CI issue if one example test fails, and if serial port returns some noise (v4.0)

See merge request espressif/esp-idf!12383
2021-02-28 23:57:08 +00:00
Ivan Grokhotkov
7987f7ccae Merge branch 'bugfix/eclipse_make_decode_v4.0' into 'release/v4.0'
tools: Fix Eclipse build: “UnicodeDecodeError: 'ascii' codec can't decode byte” (v4.0)

See merge request espressif/esp-idf!12360
2021-02-19 15:55:52 +00:00
Angus Gratton
dad0230776 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-02-15 10:48:44 +11:00
Angus Gratton
2f196cface ci: Log failure to close any DUT 2021-02-15 10:48:44 +11:00
Roland Dobai
b086a41569 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:47:14 +01:00
Patryk Krzywdziński
b0f2091e63 Fix eclipse build: “UnicodeDecodeError: 'ascii' codec can't decode byte”
Closes https://github.com/espressif/esp-idf/pull/6505
2021-02-10 12:50:52 +01:00
Krzysztof Budzynski
498aebe38f Merge branch 'feature/self_hosted_v4.0' into 'release/v4.0'
docs: self host docs (v4.0)

See merge request espressif/esp-idf!11595
2021-02-08 14:21:01 +08:00
Marius Vikhammer
8e7e0973db docs: self host docs
Move doc hosting from readthedocs to espressif servers

Update CI, Sphinx configs and add IDF Sphinx theme
2021-02-08 11:54:11 +08:00
Anton Maklakov
43127a5084 Merge branch 'bugfix/ttfw_idf_find_artifacts_inaccurate_with_same_prefix_path_v4.0' into 'release/v4.0'
CI: fix the bug returns wrong artifact path when app_name is a subset of a longer one (v4.0)

See merge request espressif/esp-idf!12230
2021-02-03 11:34:30 +08:00
Fu Hanxi
f39d69b592 CI: fix the bug returns wrong artifact path when app_name is a subset of a longer one 2021-02-02 11:14:28 +08:00
Mahavir Jain
544a2a4f4e unit-test-app: disable encrypted flash read/write in psram config to fix build failure 2021-01-29 11:45:51 +05:30
Angus Gratton
7c204c38dd Merge branch 'bugfix/idf_py_disable_cmake_warnings_default_v4.0' into 'release/v4.0'
idf.py: disable cmake uninitialized variable warnings by default (v4.0)

See merge request espressif/esp-idf!10203
2021-01-19 14:21:50 +08:00
Martin Stejskal
c9427ea613 tools/docker: Add libpython2.7 in order to satisfy GDB dependencies
It was not possible to run xtensa-esp32-elf-gdb from container due to
missing libpython2.7 library.

Merges https://github.com/espressif/esp-idf/pull/5817
Closes https://github.com/espressif/esp-idf/issues/5284
2020-12-15 20:09:08 +00:00
Anton Maklakov
a987a8ade6 Merge branch 'bugfix/ci_py2_warnings_fix_v4.0' into 'release/v4.0'
ci: Python 2 warnings fix (v4.0)

See merge request espressif/esp-idf!11619
2020-12-15 19:06:33 +08:00
Anton Maklakov
9e780a5be9 Merge branch 'feature/ci_fix_docker_build_v4.0' into 'release/v4.0'
ci: Use git mirror for docker image (v4.0)

See merge request espressif/esp-idf!10447
2020-12-15 15:42:39 +08:00