Marius Vikhammer
fbb5ada91d
idf monitor: fix crash when monitor baudrate argument set
...
Closes IDF-1902
2021-01-15 09:10:05 +00:00
Jakob Hasse
fe7ebf75a0
NVS Flash: prevent erasing initialized partition
...
Closes https://github.com/espressif/esp-idf/issues/4755
Closes https://github.com/espressif/esp-idf/issues/2777
Closes FCS-533
* nvs_flash_erase_partition() checks whether
the parition in question is initialized
already and will return an error if so
* reflect changes in the documentation
* nvs host unit tests now clean up after each
test case
nvs_flash: fixed deinit other partition's handles
* When deinitializing or erasing a partition,
nvs used to close all handles instead of only
the current partition's handles.
This is fixed now
* Added a unit test for that case
2021-01-07 11:32:29 +08:00
Anton Maklakov
d3c35e1c5f
ci: Ignore Python 2 deprecation warning
2020-12-15 13:26:18 +07:00
Martin Gaňo
a303b53209
Add checking if the build directory exists and move expression after docstring
2020-12-11 13:26:45 +01:00
daiziyan
026accbb91
add CN translation for adding python2 deprecation warning(MR 11115)
2020-12-09 14:41:33 +01:00
martin.gano
f75acede24
Tools: add Python 2 deprecation warning
2020-12-09 14:41:33 +01:00
Angus Gratton
e7f40fca68
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:44 +11:00
Shivani Tipnis
38b15816b4
ci: Fix blecent example test
...
(cherry picked from commit fc146a98e403b51f8691d6be077624479dc893d4)
2020-11-30 22:41:12 +05:30
Marius Vikhammer
329ae0a987
docs: self host docs
...
Move doc hosting from readthedocs to espressif servers
Update CI, Sphinx configs and add IDF Sphinx theme
2020-11-24 02:16:02 +00:00
Angus Gratton
9a141cc0ce
ci: Fix annotated tag check
...
Regression in 1612f84
2020-11-23 17:28:21 +11:00
KonstantinKondrashov
d925b564cd
esp32: Switch SPIRAM stack in esp_restart_noos() to internal stack
...
If esp_restart_noos() is run and the stack address points to external memory (SPIRAM)
then Cache_Read_Disable() raises up the error "Cache disabled but cached memory region accessed"
to fix this we switch stack to internal RAM before disable cache.
Added unit tests.
Closes: https://github.com/espressif/esp-idf/issues/5107
2020-11-21 07:14:38 +00:00
Anton Maklakov
3a5457efe4
ci: use the retry script to download
2020-11-16 11:36:35 +07:00
Angus Gratton
5bb72ea5cc
Merge branch 'bugfix/cmake_example_sdkconfig_path_v4.1' into 'release/v4.1'
...
cmake/example: Move idf_as_lib sdkconfig path to project, document configuring project (v4.1)
See merge request espressif/esp-idf!10860
2020-11-16 12:14:00 +08:00
Chen Yu Dong
fd10a095dd
ci: limit switching branches for auto_test_script
2020-11-06 17:19:54 +08:00
Angus Gratton
176f146678
Merge branch 'bugfix/err_to_name_paths_windows_v4.1' into 'release/v4.1'
...
tools: fix path handling errors in gen_esp_err_to_name.py for Windows (v4.1)
See merge request espressif/esp-idf!10896
2020-10-30 15:12:43 +08:00
Roland Dobai
1bc0f5ac0a
tools/ldgen: Fix parsing of sections names on Windows
2020-10-29 08:34:33 +01:00
Angus Gratton
c92efa0ae3
Merge branch 'bugfix/ldgen_unicode_path_v4.1' into 'release/v4.1'
...
tools/ldgen: Parse paths with Unicode characters in archives (v4.1)
See merge request espressif/esp-idf!10965
2020-10-26 12:08:07 +08:00
Chen Yu Dong
52c3aa87b5
ci: move auto_test_script to new repo (backport 4.1)
2020-10-24 09:24:59 +08:00
Roland Dobai
4836d295a8
tools/ldgen: Parse paths with Unicode characters in archives
...
Closes https://github.com/espressif/esp-idf/issues/5996
2020-10-23 13:43:55 +02:00
Marius Vikhammer
a20c4a79e6
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:38:57 +08:00
Angus Gratton
65f1be59ad
Merge branch 'bugfix/idf_py_disable_cmake_warnings_default_v4.1' into 'release/v4.1'
...
idf.py: disable cmake uninitialized variable warnings by default (v4.1)
See merge request espressif/esp-idf!10202
2020-10-19 06:34:15 +08:00
Angus Gratton
157ce5953a
cmake: Log the project sdkconfig path as part of normal CMake status output
...
As discussed in footnote to https://github.com/espressif/esp-idf/issues/5251#issuecomment-625563782
2020-10-16 10:11:52 +11:00
Angus Gratton
bdd7461235
examples: Move idf_as_lib sdkconfig file to the project directory
...
Also add some explanation about configuring the project in the README
Previously with the default build-esp32.sh script, the build directory was
deleted and recreated so the project would always be built with default config.
2020-10-16 10:11:52 +11:00
Martin Stejskal
3932df3966
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-10-14 19:07:34 +00:00
Ivan Grokhotkov
ad78c86936
Merge branch 'feature/oocd_ver_backport_v4.1' into 'release/v4.1'
...
tools: Updates OpenOCD version to 'v0.10.0-esp32-20200709' (backport v4.1)
See merge request espressif/esp-idf!8435
2020-10-15 02:53:28 +08:00
Angus Gratton
7caa230cf9
Merge branch 'bugfix/ci_auto_checkout_revision_of_project_used_in_ci_v4.1' into 'release/v4.1'
...
CI: get git describe from annotated tags (v4.1)
See merge request espressif/esp-idf!10674
2020-10-08 16:44:18 +08:00
Angus Gratton
9f49a27c12
ci: Check version tags are always annotated
...
Closes https://github.com/espressif/esp-idf/issues/3114
2020-10-07 13:57:19 +11:00
Angus Gratton
df61488e54
build system: Also get IDF version from annotated tags only
...
Builds on previous commit.
Note: Getting the project version still pases --tags so still works with plain
tags, to keep compatibility for existing projects
2020-10-07 13:57:19 +11:00
Angus Gratton
aecb2bd8ee
idf.py: Disable CMake --warn-uninitialized option by default
...
Can still be enabled by passing --cmake-warn-uninitialized on the command line
Prevents CMake warnings printed by default if IDF_PATH is underneath the CMake
project directory.
The reason for this is that CMake --warn-uninitialized only enables checks
inside the project directory (ie top-level CMakeLists.txt directory and
subdirectories), it doesn't enable for files included from other directories.
(The only way to enable warnings in other directories is to pass
--check-system-dirs and this looks like it's only useful for CMake's own
developers as it prints a lot of warnings from inside CMake otherwise - see
https://gitlab.kitware.com/cmake/cmake/-/issues/19645 )
Plan to follow up with a later commit to clean up most of the warnings (which
aren't problems for CMake execution), but we'll also disable this option by
default to avoid this unexpected triggering of IDF warnings.
2020-10-05 05:35:02 +00:00
He Yin Ling
52baa25aa1
CI: get git describe from annotated tags:
...
we should only parse IDF version from annotated tags
2020-09-30 11:33:04 +08:00
Renz Bagaporo
ef1d0b3d2e
cmake: fix C identifier generation from embedded file
2020-09-28 21:16:20 +08:00
Renz Bagaporo
e0ee809d7d
cmake: fix getting component requirements
2020-09-28 18:56:18 +08:00
Anton Maklakov
c7ba54ed73
Update toolchain to esp-2020r3
...
Fixup more for PSRAM issue;
Allow GDB work correctly with Privileged Registers;
Based on GCC 8.4.0;
Update a fix of C++ exception crashs from the GCC mainline;
Fixup strptime_l() and some locale in libc;
2020-09-17 10:49:14 +07:00
Sergei Silnov
9d359b814f
ci: Use git mirror for docker image
2020-09-14 12:49:29 +02:00
Roland Dobai
31f9c88269
tools: Fix Python 3 incompatibility for building with Eclipse on Windows
2020-09-10 09:46:10 +02:00
David Čermák
e1115c951e
Merge branch 'bugfix/fix_static_analysis_rules_v4.1' into 'release/v4.1'
...
static analysis: Apply current limits of known defects (v4.1)
See merge request espressif/esp-idf!9282
2020-08-31 14:42:36 +08:00
Shivani Tipnis
4680bae94d
mfg_util: Update file handling to maintain line endings across various OS
...
Fixes: https://github.com/espressif/esp-idf/issues/4888
2020-08-27 11:55:32 +05:30
Angus Gratton
065d64555d
Merge branch 'bugfix/idf_py_help_env_var_v4.1' into 'release/v4.1'
...
Tools: Mention ESPPORT and ESPBAUD in idf.py --help (v4.1)
See merge request espressif/esp-idf!9291
2020-08-27 08:46:43 +08:00
Angus Gratton
2a3ecaa926
Merge branch 'feature/pyc_clean_v4.1' into 'release/v4.1'
...
tools/idf.py: Clean Python bytecode files (v4.1)
See merge request espressif/esp-idf!9263
2020-08-27 08:46:38 +08:00
Angus Gratton
b76c3afa3a
Merge branch 'bugfix/no_pyc_files_v4.1' into 'release/v4.1'
...
tools: Don't generate pyc files (v4.1)
See merge request espressif/esp-idf!8970
2020-08-27 08:46:30 +08:00
Angus Gratton
d54f4bd691
Merge branch 'bugfix/idf_build_process_default_v4.1' into 'release/v4.1'
...
cmake: fix issue with setting defaults in idf_build_process (v4.1)
See merge request espressif/esp-idf!9712
2020-08-26 07:58:54 +08:00
Mahavir Jain
829080e10e
Merge branch 'bugfix/convert-string-to-bytes_v4.1' into 'release/v4.1'
...
components: convert string to bytes to fix TypeError (backport v4.1)
See merge request espressif/esp-idf!9733
2020-08-20 21:54:21 +08:00
Michael (XIAO Xufeng)
6e148c0051
Merge branch 'bugfix/esp_flash_write_performance_regression_4.1' into 'release/v4.1'
...
esp_flash: fix the write performance regression (Backport v4.1)
See merge request espressif/esp-idf!8800
2020-08-20 19:09:59 +08:00
Angus Gratton
95083233c5
Merge branch 'bugfix/prov_retry_failures_v4.1' into 'release/v4.1'
...
ci: Add retries for all provisioning methods, some refactors (v4.1)
See merge request espressif/esp-idf!9388
2020-07-23 13:19:30 +08:00
Alexey Gerenkov
7e2f701a3c
tools: Updates OpenOCD version to 'v0.10.0-esp32-20200709'
2020-07-22 23:37:46 +03:00
martin.gano
b41752b95c
components: convert string to bytes to fix TypeError There is a string passed as an argument for function, but a format of a string seemingly refers to bytes therefore it needs to be converted to bytes Solves https://esp32.com/viewtopic.php?f=13&t=16529
...
(cherry picked from commit cb0bdb8bba774c0d5a670f73a23ca882dfddd2b6)
2020-07-22 11:19:10 +02:00
Renz Christian Bagaporo
b8c893774f
ci: pushd and cd in one go in idf_build_process defaults test
2020-07-20 18:29:19 +08:00
Renz Bagaporo
d101da4ca4
cmake: fix setting defaults in idf_build_process
...
Closes https://github.com/espressif/esp-idf/issues/5053
2020-07-20 18:29:19 +08:00
Renz Bagaporo
a716442c72
ci: test idf_build_process defaults set properly
2020-07-20 18:29:19 +08:00
He Yin Ling
103503ba56
CI: do not run cases likely to fail
2020-07-19 14:58:06 +08:00