Closed weilian1977 closed 2 years ago
@weilian1977 麻烦提供一下错误信息,方便定位到问题
重新安装了ubuntu22.04.1 对于master
weilian@weilian-OptiPlex-7080:~/esp-idf$ ./install.sh esp32s3 Detecting the Python interpreter Checking "python3" ... Python 3.10.6 "python3" has been detected Checking Python compatibility Installing ESP-IDF tools Current system platform: linux-amd64 Updating /home/weilian/.espressif/idf-env.json Selected targets are: esp32s3 Installing tools: xtensa-esp-elf-gdb, xtensa-esp32s3-elf, riscv32-esp-elf, esp32ulp-elf, openocd-esp32, esp-rom-elfs Skipping xtensa-esp-elf-gdb@11.2_20220823 (already installed) Skipping xtensa-esp32s3-elf@esp-2022r1-11.2.0 (already installed) Skipping riscv32-esp-elf@esp-2022r1-11.2.0 (already installed) Skipping esp32ulp-elf@2.35_20220830 (already installed) Skipping openocd-esp32@v0.11.0-esp32-20220706 (already installed) Skipping esp-rom-elfs@20220823 (already installed) Installing Python environment and packages Python 3.10.6 pip 22.2.2 from /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/pip (python 3.10) Upgrading pip and setuptools... Requirement already satisfied: pip in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (22.2.2) Collecting pip Downloading pip-22.3-py3-none-any.whl (2.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 2.8 MB/s eta 0:00:00 Requirement already satisfied: setuptools in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (65.4.1) Collecting setuptools Downloading setuptools-65.5.0-py3-none-any.whl (1.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 624.2 kB/s eta 0:00:00 Installing collected packages: setuptools, pip Attempting uninstall: setuptools Found existing installation: setuptools 65.4.1 Uninstalling setuptools-65.4.1: Successfully uninstalled setuptools-65.4.1 Attempting uninstall: pip Found existing installation: pip 22.2.2 Uninstalling pip-22.2.2: Successfully uninstalled pip-22.2.2 Successfully installed pip-22.3 setuptools-65.5.0 Downloading https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.1.txt Destination: /home/weilian/.espressif/espidf.constraints.v5.1.txt.tmp WARNING: Download failure: <urlopen error [Errno -3] Temporary failure in name resolution> WARNING: Failed to download https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.1.txt to /home/weilian/.espressif/espidf.constraints.v5.1.txt.tmp Downloading https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.1.txt Destination: /home/weilian/.espressif/espidf.constraints.v5.1.txt.tmp Done Installing Python packages Constraint file: /home/weilian/.espressif/espidf.constraints.v5.1.txt Requirement files:
/home/weilian/esp-idf/tools/requirements/requirements.core.txt Looking in indexes: https://pypi.org/simple, https://dl.espressif.com/pypi Ignoring windows-curses: markers 'sys_platform == "win32"' don't match your environment Requirement already satisfied: setuptools in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from -r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 3)) (65.5.0) Requirement already satisfied: click in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from -r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 4)) (8.1.3) Requirement already satisfied: pyserial in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from -r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 5)) (3.5) Requirement already satisfied: cryptography in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from -r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 6)) (38.0.2) Requirement already satisfied: pyparsing in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from -r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 7)) (3.0.9) Requirement already satisfied: pyelftools in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from -r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 8)) (0.29) Requirement already satisfied: idf-component-manager in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from -r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 9)) (1.1.4) Requirement already satisfied: esp-coredump in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from -r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 10)) (1.4) Collecting esp-coredump Downloading https://dl.espressif.com/pypi/esp-coredump/esp_coredump-1.4.1-py3-none-any.whl (33 kB) Requirement already satisfied: esptool in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from -r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 11)) (4.3) Requirement already satisfied: kconfiglib in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from -r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 14)) (14.1.0) Requirement already satisfied: freertos_gdb in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from -r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 18)) (1.0.1) Requirement already satisfied: cffi>=1.12 in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from cryptography->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 6)) (1.15.1) Requirement already satisfied: requests-toolbelt in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from idf-component-manager->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 9)) (0.10.0) Requirement already satisfied: tqdm<5 in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from idf-component-manager->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 9)) (4.64.1) Requirement already satisfied: future in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from idf-component-manager->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 9)) (0.18.2) Requirement already satisfied: six in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from idf-component-manager->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 9)) (1.16.0) Requirement already satisfied: colorama in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from idf-component-manager->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 9)) (0.4.5) Requirement already satisfied: requests<3 in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from idf-component-manager->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 9)) (2.28.1) Requirement already satisfied: pyyaml>5.2 in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from idf-component-manager->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 9)) (6.0) Requirement already satisfied: contextlib2>0.6.0 in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from idf-component-manager->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 9)) (21.6.0) Requirement already satisfied: schema in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from idf-component-manager->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 9)) (0.7.5) Requirement already satisfied: construct~=2.10 in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from esp-coredump->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 10)) (2.10.68) Requirement already satisfied: pygdbmi>=0.9.0.2 in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from esp-coredump->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 10)) (0.9.0.2) Requirement already satisfied: reedsolo<=1.5.4,>=1.5.3 in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from esptool->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 11)) (1.5.4) Requirement already satisfied: bitstring>=3.1.6 in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from esptool->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 11)) (3.1.9) Requirement already satisfied: ecdsa>=0.16.0 in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from esptool->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 11)) (0.18.0) Requirement already satisfied: pycparser in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from cffi>=1.12->cryptography->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 6)) (2.21) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from requests<3->idf-component-manager->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 9)) (1.26.12) Requirement already satisfied: idna<4,>=2.5 in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from requests<3->idf-component-manager->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 9)) (3.4) Requirement already satisfied: charset-normalizer<3,>=2 in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from requests<3->idf-component-manager->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 9)) (2.1.1) Requirement already satisfied: certifi>=2017.4.17 in /home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages (from requests<3->idf-component-manager->-r /home/weilian/esp-idf/tools/requirements/requirements.core.txt (line 9)) (2022.9.24) Installing collected packages: esp-coredump Attempting uninstall: esp-coredump Found existing installation: esp-coredump 1.4 Uninstalling esp-coredump-1.4: Successfully uninstalled esp-coredump-1.4 Successfully installed esp-coredump-1.4.1 All done! You can now run:
. ./export.sh
weilian@weilian-OptiPlex-7080:~/esp-idf$ . ./export.sh Setting IDF_PATH to '/home/weilian/esp-idf' Detecting the Python interpreter Checking "python3" ... Python 3.10.6 "python3" has been detected Checking Python compatibility Checking other ESP-IDF version. Adding ESP-IDF tools to PATH... Checking if Python packages are up to date... Constraint file: /home/weilian/.espressif/espidf.constraints.v5.1.txt Requirement files:
Detected installed tools that are not currently used by active ESP-IDF version. For removing esp32s2ulp-elf use command 'python /home/weilian/esp-idf/tools/idf_tools.py uninstall' To free up even more space, remove installation packages of those tools. Use option 'python3 /home/weilian/esp-idf/tools/idf_tools.py uninstall --remove-archives'.
Done! You can now compile ESP-IDF projects. Go to the project directory and run:
idf.py build
weilian@weilian-OptiPlex-7080:~/esp-idf/examples/get-started/blink$ idf.py fullclean Executing action: fullclean Build directory '/home/weilian/esp-idf/examples/get-started/blink/build' not found. Nothing to clean. Executing action: remove_managed_components Done weilian@weilian-OptiPlex-7080:~/esp-idf/examples/get-started/blink$ idf.py set-target esp32s3 Adding "set-target"'s dependency "fullclean" to list of commands with default set of options. Executing action: fullclean Build directory '/home/weilian/esp-idf/examples/get-started/blink/build' not found. Nothing to clean. Executing action: set-target Set Target to: esp32s3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old. Running cmake in directory /home/weilian/esp-idf/examples/get-started/blink/build Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=0 /home/weilian/esp-idf/examples/get-started/blink"... -- Found Git: /usr/bin/git (found version "2.34.1") -- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 11.2.0 -- The ASM compiler identification is GNU -- Found assembler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -- Check for working C compiler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -- Check for working C compiler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ -- Check for working CXX compiler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32s3 Solving dependencies requirements Updating lock file at /home/weilian/esp-idf/examples/get-started/blink/dependencies.lock Processing 2 dependencies: [1/2] espressif/led_strip (2.0.0) CMake Error at /home/weilian/esp-idf/tools/cmake/build.cmake:537 (message): Traceback (most recent call last):
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f4000b63ca0>: Failed to establish a new connection: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='components-file.espressif.com', port=443): Max retries exceeded with url: /6e487789-58a6-433c-933e-308770fe7f76.tgz (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f4000b63ca0>: Failed to establish a new connection: [Errno -2] Name or service not known'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/idf_component_manager/prepare_components/__main__.py", line 3, in <module>
main()
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/idf_component_manager/prepare_components/prepare.py", line 126, in main
args.func(args)
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/idf_component_manager/prepare_components/prepare.py", line 39, in prepare_dep_dirs
ComponentManager(args.project_dir).prepare_dep_dirs(
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/idf_component_manager/core.py", line 404, in prepare_dep_dirs
downloaded_component_paths = download_project_dependencies(
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/idf_component_manager/dependencies.py", line 128, in download_project_dependencies
download_paths = fetcher.download()
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/idf_component_tools/sources/fetcher.py", line 51, in download
return self.source.download(self.component, self.managed_path)
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/idf_component_tools/sources/web_service.py", line 139, in download
with requests.get(url, stream=True, allow_redirects=True) as r:
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/home/weilian/.espressif/python_env/idf5.1_py3.10_env/lib/python3.10/site-packages/requests/adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='components-file.espressif.com', port=443): Max retries exceeded with url: /6e487789-58a6-433c-933e-308770fe7f76.tgz (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f4000b63ca0>: Failed to establish a new connection: [Errno -2] Name or service not known'))
Call Stack (most recent call first): /home/weilian/esp-idf/tools/cmake/project.cmake:440 (idf_build_process) CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred! See also "/home/weilian/esp-idf/examples/get-started/blink/build/CMakeFiles/CMakeOutput.log". cmake failed with exit code 1, output of the command is in the /home/weilian/esp-idf/examples/get-started/blink/build/log/idf_py_stderr_output_9733 and /home/weilian/esp-idf/examples/get-started/blink/build/log/idf_py_stdout_output_9733
@weilian1977 这个报错应该是因为 master 的 blink example 里采用了包管理器来下载依赖组件,但是你的设备网络无法访问到我们的服务器,所以导致网络连接错误。
你可以试试不使用包管理器,比如编译 examples/get-started/hello_world 这个用例,应该是不会报错的
4.4.2的报错信息
weilian@weilian-OptiPlex-7080:~/esp/esp442/esp-idf$ ./install.sh
Detecting the Python interpreter
Checking "python" ...
Python 3.10.6
"python" has been detected
Installing ESP-IDF tools
Current system platform: linux-amd64
Traceback (most recent call last):
File "/home/weilian/esp/esp442/esp-idf/tools/idf_tools.py", line 1860, in
bison 已经是最新版 (2:3.8.2+dfsg-1build1)。
flex 已经是最新版 (2.6.4-8build2)。
libffi-dev 已经是最新版 (3.4.2-4)。
python3-setuptools 已经是最新版 (59.6.0-1.2)。
wget 已经是最新版 (1.21.2-2ubuntu1)。
ccache 已经是最新版 (4.5.1-1)。
dfu-util 已经是最新版 (0.9-1)。
gperf 已经是最新版 (3.1-1build1)。
ninja-build 已经是最新版 (1.10.1-1)。
python3-pip 已经是最新版 (22.0.2+dfsg-1)。
cmake 已经是最新版 (3.22.1-1ubuntu1.22.04.1)。
git 已经是最新版 (1:2.34.1-1ubuntu1.4)。
libssl-dev 已经是最新版 (3.0.2-0ubuntu1.6)。
libusb-1.0-0 已经是最新版 (2:1.0.25-1ubuntu2)。
python3 已经是最新版 (3.10.6-1~22.04)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 8 个软件包未被升级。
weilian@weilian-OptiPlex-7080:~/esp/esp442/esp-idf$ ./install.sh
Detecting the Python interpreter
Checking "python" ...
Python 3.10.6
"python" has been detected
Installing ESP-IDF tools
Current system platform: linux-amd64
Traceback (most recent call last):
File "/home/weilian/esp/esp442/esp-idf/tools/idf_tools.py", line 1860, in
@weilian1977 目前 IDF 的 master 在切换环境时存在 bug,需要删除用户目录下 .espressif/idf-env.json 文件之后再执行其他操作
@weilian1977 目前 IDF 的 master 在切换环境时存在 bug,需要删除用户目录下 .espressif/idf-env.json 文件之后再执行其他操作
可以理解为配置了IDF master之后必须删除用户目录下 .espressif/idf-env.json 文件之后才能使用其他版本的IDF?
不一定,跟你的系统配置、软件环境有关,我这里切换版本就没有遇到这种问题
删除之后4.4.2基本正常了,但是编译esp32-s3-lcd-ev-board/examples/lvgl_demo报错如下,是不是这个工程只能在master下编译?
weilian@weilian-OptiPlex-7080:~/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos$ idf.py menuconfig Executing action: menuconfig Running cmake in directory /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=0 /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos"... -- Found Git: /usr/bin/git (found version "2.34.1") -- The C compiler identification is GNU 8.4.0 -- The CXX compiler identification is GNU 8.4.0 -- The ASM compiler identification is GNU -- Found assembler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -- Check for working C compiler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -- Check for working C compiler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ -- Check for working CXX compiler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32s3 CMake Error at /home/weilian/esp/esp442/esp-idf/tools/cmake/build.cmake:201 (message): Failed to resolve component 'esp_adc'. Call Stack (most recent call first): /home/weilian/esp/esp442/esp-idf/tools/cmake/build.cmake:227 (build_resolve_and_add_req) /home/weilian/esp/esp442/esp-idf/tools/cmake/build.cmake:228 (build_expand_requirements) /home/weilian/esp/esp442/esp-idf/tools/cmake/build.cmake:509 (__build_expand_requirements) /home/weilian/esp/esp442/esp-idf/tools/cmake/project.cmake:384 (idf_build_process) CMakeLists.txt:11 (project)
-- Configuring incomplete, errors occurred! See also "/home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build/CMakeFiles/CMakeOutput.log". cmake failed with exit code 1
不一定,跟你的系统配置、软件环境有关,我这里切换版本就没有遇到这种问题
您这面是什么系统配置?软件环境?
我是用的 Manjaro Linux 系统,然后通过 anaconda 来管理 python 环境
删除之后4.4.2基本正常了,但是编译esp32-s3-lcd-ev-board/examples/lvgl_demo报错如下,是不是这个工程只能在master下编译?
weilian@weilian-OptiPlex-7080:~/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos$ idf.py menuconfig Executing action: menuconfig Running cmake in directory /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=0 /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos"... -- Found Git: /usr/bin/git (found version "2.34.1") -- The C compiler identification is GNU 8.4.0 -- The CXX compiler identification is GNU 8.4.0 -- The ASM compiler identification is GNU -- Found assembler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -- Check for working C compiler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -- Check for working C compiler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ -- Check for working CXX compiler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32s3 CMake Error at /home/weilian/esp/esp442/esp-idf/tools/cmake/build.cmake:201 (message): Failed to resolve component 'esp_adc'. Call Stack (most recent call first): /home/weilian/esp/esp442/esp-idf/tools/cmake/build.cmake:227 (build_resolve_and_add_req) /home/weilian/esp/esp442/esp-idf/tools/cmake/build.cmake:228 (build_expand_requirements) /home/weilian/esp/esp442/esp-idf/tools/cmake/build.cmake:509 (__build_expand_requirements) /home/weilian/esp/esp442/esp-idf/tools/cmake/project.cmake:384 (idf_build_process) CMakeLists.txt:11 (project)
-- Configuring incomplete, errors occurred! See also "/home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build/CMakeFiles/CMakeOutput.log". cmake failed with exit code 1
esp32-s3-lcd-ev-board/examples 里面的工程需要 IDF 的版本在 release/v5.0 及以上,并且需要打上 PSRAM 120M 的补丁,详细说明见 https://github.com/espressif/esp-dev-kits/tree/master/esp32-s3-lcd-ev-board/examples/factory#idf-patch
关闭4.4.2终端,删除 .espressif/idf-env.json 文件 ,信息如下 weilian@weilian-OptiPlex-7080:~/esp-idf$ . export.sh Setting IDF_PATH to '/home/weilian/esp-idf' Detecting the Python interpreter Checking "python3" ... Python 3.10.6 "python3" has been detected Checking Python compatibility Checking other ESP-IDF version. ERROR: tool riscv32-esp-elf-gdb has no installed versions. Please run '/usr/bin/python3 /home/weilian/esp-idf/tools/idf_tools.py install' to install it. ERROR: tool xtensa-esp32-elf has no installed versions. Please run '/usr/bin/python3 /home/weilian/esp-idf/tools/idf_tools.py install' to install it. ERROR: tool xtensa-esp32s2-elf has no installed versions. Please run '/usr/bin/python3 /home/weilian/esp-idf/tools/idf_tools.py install' to install it. 按照提示进行安装 weilian@weilian-OptiPlex-7080:~/esp-idf$ /usr/bin/python3 /home/weilian/esp-idf/tools/idf_tools.py install Current system platform: linux-amd64 Updating /home/weilian/.espressif/idf-env.json Selected targets are: esp32c6, esp32c3, esp32c2, esp32h2, esp32, esp32s2, esp32s3 Installing tools: xtensa-esp-elf-gdb, riscv32-esp-elf-gdb, xtensa-esp32-elf, xtensa-esp32s2-elf, xtensa-esp32s3-elf, riscv32-esp-elf, esp32ulp-elf, openocd-esp32, esp-rom-elfs Skipping xtensa-esp-elf-gdb@11.2_20220823 (already installed) Installing riscv32-esp-elf-gdb@11.2_20220823 Downloading https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v11.2_20220823/riscv32-esp-elf-gdb-11.2_20220823-x86_64-linux-gnu.tar.gz Destination: /home/weilian/.espressif/dist/riscv32-esp-elf-gdb-11.2_20220823-x86_64-linux-gnu.tar.gz.tmp Done Extracting /home/weilian/.espressif/dist/riscv32-esp-elf-gdb-11.2_20220823-x86_64-linux-gnu.tar.gz to /home/weilian/.espressif/tools/riscv32-esp-elf-gdb/11.2_20220823 Installing xtensa-esp32-elf@esp-2022r1-11.2.0 Downloading https://github.com/espressif/crosstool-NG/releases/download/esp-2022r1/xtensa-esp32-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz Destination: /home/weilian/.espressif/dist/xtensa-esp32-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz.tmp Done Extracting /home/weilian/.espressif/dist/xtensa-esp32-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz to /home/weilian/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0 Installing xtensa-esp32s2-elf@esp-2022r1-11.2.0 Downloading https://github.com/espressif/crosstool-NG/releases/download/esp-2022r1/xtensa-esp32s2-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz Destination: /home/weilian/.espressif/dist/xtensa-esp32s2-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz.tmp Done Extracting /home/weilian/.espressif/dist/xtensa-esp32s2-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz to /home/weilian/.espressif/tools/xtensa-esp32s2-elf/esp-2022r1-11.2.0 Skipping xtensa-esp32s3-elf@esp-2022r1-11.2.0 (already installed) Skipping riscv32-esp-elf@esp-2022r1-11.2.0 (already installed) Skipping esp32ulp-elf@2.35_20220830 (already installed) Skipping openocd-esp32@v0.11.0-esp32-20220706 (already installed) Skipping esp-rom-elfs@20220823 (already installed)
weilian@weilian-OptiPlex-7080:~/esp-idf$ . export.sh Detecting the Python interpreter Checking "python3" ... Python 3.10.6 "python3" has been detected Checking Python compatibility Checking other ESP-IDF version. Adding ESP-IDF tools to PATH... Checking if Python packages are up to date... Constraint file: /home/weilian/.espressif/espidf.constraints.v5.1.txt Requirement files:
Detected installed tools that are not currently used by active ESP-IDF version. For removing esp32s2ulp-elf use command 'python /home/weilian/esp-idf/tools/idf_tools.py uninstall' To free up even more space, remove installation packages of those tools. Use option 'python3 /home/weilian/esp-idf/tools/idf_tools.py uninstall --remove-archives'.
Done! You can now compile ESP-IDF projects. Go to the project directory and run:
idf.py build
配置esp-idf/examples/get-started/blink工程,报错如下,上周的时候主要报错信息是这句话 CMake Error at /home/weilian/esp-idf/tools/cmake/idf.cmake:42 (include): include could not find load file: tool_version_check** 还有这个 CMake Error at /home/weilian/esp-idf/components/esp_common/project_include.cmake:5 (get_expected_ctng_version): Unknown CMake command "get_expected_ctng_version".
weilian@weilian-OptiPlex-7080:~/esp-idf/examples/get-started/blink$ idf.py menuconfig Executing action: menuconfig Running cmake in directory /home/weilian/esp-idf/examples/get-started/blink/build Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 /home/weilian/esp-idf/examples/get-started/blink"... -- IDF_TARGET not set, using default target: esp32 -- Found Git: /usr/bin/git (found version "2.34.1") **CMake Error at /home/weilian/esp-idf/tools/cmake/idf.cmake:42 (include): include could not find load file:
tool_version_check**
Call Stack (most recent call first): /home/weilian/esp-idf/tools/cmake/project.cmake:12 (include) CMakeLists.txt:7 (include)
fatal: 在 .gitmodules 中没有发现路径 'components/heap/tlsf' 的子模组映射 -- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 11.2.0 -- The ASM compiler identification is GNU -- Found assembler: /home/weilian/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- Check for working C compiler: /home/weilian/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- Check for working C compiler: /home/weilian/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /home/weilian/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -- Check for working CXX compiler: /home/weilian/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32 -- Project sdkconfig file /home/weilian/esp-idf/examples/get-started/blink/sdkconfig CMake Error at /home/weilian/esp-idf/components/esp_common/project_include.cmake:5 (get_expected_ctng_version): Unknown CMake command "get_expected_ctng_version". Call Stack (most recent call first): /home/weilian/esp-idf/tools/cmake/build.cmake:398 (include) /home/weilian/esp-idf/tools/cmake/build.cmake:617 (__build_process_project_includes) /home/weilian/esp-idf/tools/cmake/project.cmake:440 (idf_build_process) CMakeLists.txt:8 (project)
-- Configuring incomplete, errors occurred! See also "/home/weilian/esp-idf/examples/get-started/blink/build/CMakeFiles/CMakeOutput.log". See also "/home/weilian/esp-idf/examples/get-started/blink/build/CMakeFiles/CMakeError.log". cmake failed with exit code 1
删除之后4.4.2基本正常了,但是编译esp32-s3-lcd-ev-board/examples/lvgl_demo报错如下,是不是这个工程只能在master下编译? weilian@weilian-OptiPlex-7080:~/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos$ idf.py menuconfig Executing action: menuconfig Running cmake in directory /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=0 /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos"... -- Found Git: /usr/bin/git (found version "2.34.1") -- The C compiler identification is GNU 8.4.0 -- The CXX compiler identification is GNU 8.4.0 -- The ASM compiler identification is GNU -- Found assembler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -- Check for working C compiler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -- Check for working C compiler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ -- Check for working CXX compiler: /home/weilian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32s3 CMake Error at /home/weilian/esp/esp442/esp-idf/tools/cmake/build.cmake:201 (message): Failed to resolve component 'esp_adc'. Call Stack (most recent call first): /home/weilian/esp/esp442/esp-idf/tools/cmake/build.cmake:227 (build_resolve_and_add_req) /home/weilian/esp/esp442/esp-idf/tools/cmake/build.cmake:228 (build_expand_requirements) /home/weilian/esp/esp442/esp-idf/tools/cmake/build.cmake:509 (__build_expand_requirements) /home/weilian/esp/esp442/esp-idf/tools/cmake/project.cmake:384 (idf_build_process) CMakeLists.txt:11 (project) -- Configuring incomplete, errors occurred! See also "/home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build/CMakeFiles/CMakeOutput.log". cmake failed with exit code 1
esp32-s3-lcd-ev-board/examples 里面的工程需要 IDF 的版本在 release/v5.0 及以上,并且需要打上 PSRAM 120M 的补丁,详细说明见 https://github.com/espressif/esp-dev-kits/tree/master/esp32-s3-lcd-ev-board/examples/factory#idf-patch
现在的问题是就配置不出master的编译环境,还到不了打补丁这里
切换 commit 或者 branch 后需要确保 git 仓库干净,用 git status 查看有没有 untrack file 之类的
我把4.4.2和master放在了不同的文件夹下,到这里我就是小白了
Detected installed tools that are not currently used by active ESP-IDF version. For removing esp32s2ulp-elf use command 'python /home/weilian/esp-idf/tools/idf_tools.py uninstall' To free up even more space, remove installation packages of those tools. Use option 'python3 /home/weilian/esp-idf/tools/idf_tools.py uninstall --remove-archives'.
python /home/weilian/esp-idf/tools/idf_tools.py uninstall
这句话运行了吗
没有运行
先运行一下吧,然后重新 ./install.sh 一下
我的理解,git代码后想用不同版本的代码直接git checkout 指定版本后重新 ./install.sh?不需要不同的版本放在不同的文件夹下?
全新的一个过程,没有进行install,git之后直接git checkout --recurse-submodules master正常 git checkout --recurse-submodules f3159报错
weilian@weilian-OptiPlex-7080:~$ git clone --recursive https://github.com/espressif/esp-idf.git
正克隆到 'esp-idf'...
remote: Enumerating objects: 382836, done.
remote: Counting objects: 100% (3009/3009), done.
remote: Compressing objects: 100% (1483/1483), done.
remote: Total 382836 (delta 1651), reused 2785 (delta 1465), pack-reused 379827
接收对象中: 100% (382836/382836), 208.38 MiB | 6.57 MiB/s, 完成.
处理 delta 中: 100% (282159/282159), 完成.
子模组 'components/bootloader/subproject/components/micro-ecc/micro-ecc'(https://github.com/kmackay/micro-ecc.git)已对路径 'components/bootloader/subproject/components/micro-ecc/micro-ecc' 注册
子模组 'components/bt/controller/lib_esp32'(https://github.com/espressif/esp32-bt-lib.git)已对路径 'components/bt/controller/lib_esp32' 注册
子模组 'components/bt/controller/lib_esp32c2/esp32c2-bt-lib'(https://github.com/espressif/esp32c2-bt-lib.git)已对路径 'components/bt/controller/lib_esp32c2/esp32c2-bt-lib' 注册
子模组 'components/bt/controller/lib_esp32c3_family'(https://github.com/espressif/esp32c3-bt-lib.git)已对路径 'components/bt/controller/lib_esp32c3_family' 注册
子模组 'components/bt/controller/lib_esp32h2/esp32h2-bt-lib'(https://github.com/espressif/esp32h2-bt-lib.git)已对路径 'components/bt/controller/lib_esp32h2/esp32h2-bt-lib' 注册
子模组 'components/bt/host/nimble/nimble'(https://github.com/espressif/esp-nimble.git)已对路径 'components/bt/host/nimble/nimble' 注册
子模组 'components/cmock/CMock'(https://github.com/ThrowTheSwitch/CMock.git)已对路径 'components/cmock/CMock' 注册
子模组 'components/esp_phy/lib'(https://github.com/espressif/esp-phy-lib.git)已对路径 'components/esp_phy/lib' 注册
子模组 'components/esp_wifi/lib'(https://github.com/espressif/esp32-wifi-lib.git)已对路径 'components/esp_wifi/lib' 注册
子模组 'components/heap/tlsf'(https://github.com/espressif/tlsf.git)已对路径 'components/heap/tlsf' 注册
子模组 'components/ieee802154/lib'(https://github.com/espressif/esp-ieee802154-lib.git)已对路径 'components/ieee802154/lib' 注册
子模组 'components/json/cJSON'(https://github.com/DaveGamble/cJSON.git)已对路径 'components/json/cJSON' 注册
子模组 'components/lwip/lwip'(https://github.com/espressif/esp-lwip.git)已对路径 'components/lwip/lwip' 注册
子模组 'components/mbedtls/mbedtls'(https://github.com/espressif/mbedtls.git)已对路径 'components/mbedtls/mbedtls' 注册
子模组 'components/mqtt/esp-mqtt'(https://github.com/espressif/esp-mqtt.git)已对路径 'components/mqtt/esp-mqtt' 注册
子模组 'components/openthread/lib'(https://github.com/espressif/esp-thread-lib.git)已对路径 'components/openthread/lib' 注册
子模组 'components/openthread/openthread'(https://github.com/espressif/openthread.git)已对路径 'components/openthread/openthread' 注册
子模组 'components/protobuf-c/protobuf-c'(https://github.com/protobuf-c/protobuf-c.git)已对路径 'components/protobuf-c/protobuf-c' 注册
子模组 'components/spiffs/spiffs'(https://github.com/pellepl/spiffs.git)已对路径 'components/spiffs/spiffs' 注册
子模组 'components/tinyusb/tinyusb'(https://github.com/espressif/tinyusb.git)已对路径 'components/tinyusb/tinyusb' 注册
子模组 'components/unity/unity'(https://github.com/ThrowTheSwitch/Unity.git)已对路径 'components/unity/unity' 注册
正克隆到 '/home/weilian/esp-idf/components/bootloader/subproject/components/micro-ecc/micro-ecc'...
fatal: 无法访问 'https://github.com/kmackay/micro-ecc.git/':Could not resolve host: github.com
fatal: 无法克隆 'https://github.com/kmackay/micro-ecc.git' 到子模组路径 '/home/weilian/esp-idf/components/bootloader/subproject/components/micro-ecc/micro-ecc'
克隆 'components/bootloader/subproject/components/micro-ecc/micro-ecc' 失败。按计划重试
正克隆到 '/home/weilian/esp-idf/components/bt/controller/lib_esp32'...
fatal: 无法访问 'https://github.com/espressif/esp32-bt-lib.git/':Could not resolve host: github.com
fatal: 无法克隆 'https://github.com/espressif/esp32-bt-lib.git' 到子模组路径 '/home/weilian/esp-idf/components/bt/controller/lib_esp32'
克隆 'components/bt/controller/lib_esp32' 失败。按计划重试
正克隆到 '/home/weilian/esp-idf/components/bt/controller/lib_esp32c2/esp32c2-bt-lib'...
remote: Enumerating objects: 42, done.
remote: Counting objects: 100% (42/42), done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 42 (delta 21), reused 31 (delta 10), pack-reused 0
接收对象中: 100% (42/42), 1.08 MiB | 1.51 MiB/s, 完成.
处理 delta 中: 100% (21/21), 完成.
正克隆到 '/home/weilian/esp-idf/components/bt/controller/lib_esp32c3_family'...
remote: Enumerating objects: 224, done.
remote: Counting objects: 100% (224/224), done.
remote: Compressing objects: 100% (140/140), done.
remote: Total 224 (delta 103), reused 166 (delta 45), pack-reused 0
接收对象中: 100% (224/224), 677.66 KiB | 1.05 MiB/s, 完成.
处理 delta 中: 100% (103/103), 完成.
正克隆到 '/home/weilian/esp-idf/components/bt/controller/lib_esp32h2/esp32h2-bt-lib'...
remote: Enumerating objects: 24, done.
remote: Counting objects: 100% (24/24), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 24 (delta 4), reused 22 (delta 2), pack-reused 0
接收对象中: 100% (24/24), 1.37 MiB | 1.68 MiB/s, 完成.
处理 delta 中: 100% (4/4), 完成.
正克隆到 '/home/weilian/esp-idf/components/bt/host/nimble/nimble'...
remote: Enumerating objects: 44489, done.
remote: Counting objects: 100% (49/49), done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 44489 (delta 24), reused 38 (delta 15), pack-reused 44440
接收对象中: 100% (44489/44489), 13.10 MiB | 5.89 MiB/s, 完成.
处理 delta 中: 100% (27581/27581), 完成.
正克隆到 '/home/weilian/esp-idf/components/cmock/CMock'...
remote: Enumerating objects: 5764, done.
remote: Counting objects: 100% (153/153), done.
remote: Compressing objects: 100% (78/78), done.
remote: Total 5764 (delta 74), reused 122 (delta 65), pack-reused 5611
接收对象中: 100% (5764/5764), 3.61 MiB | 3.21 MiB/s, 完成.
处理 delta 中: 100% (3903/3903), 完成.
正克隆到 '/home/weilian/esp-idf/components/esp_phy/lib'...
fatal: 无法访问 'https://github.com/espressif/esp-phy-lib.git/':Could not resolve host: github.com
fatal: 无法克隆 'https://github.com/espressif/esp-phy-lib.git' 到子模组路径 '/home/weilian/esp-idf/components/esp_phy/lib'
克隆 'components/esp_phy/lib' 失败。按计划重试
正克隆到 '/home/weilian/esp-idf/components/esp_wifi/lib'...
remote: Enumerating objects: 20053, done.
remote: Counting objects: 100% (3188/3188), done.
remote: Compressing objects: 100% (570/570), done.
remote: Total 20053 (delta 2643), reused 3162 (delta 2618), pack-reused 16865
接收对象中: 100% (20053/20053), 249.00 MiB | 6.44 MiB/s, 完成.
处理 delta 中: 100% (16379/16379), 完成.
正克隆到 '/home/weilian/esp-idf/components/heap/tlsf'...
remote: Enumerating objects: 96, done.
remote: Counting objects: 100% (53/53), done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 96 (delta 29), reused 48 (delta 24), pack-reused 43
接收对象中: 100% (96/96), 42.91 KiB | 245.00 KiB/s, 完成.
处理 delta 中: 100% (41/41), 完成.
正克隆到 '/home/weilian/esp-idf/components/ieee802154/lib'...
remote: Enumerating objects: 114, done.
remote: Counting objects: 100% (114/114), done.
remote: Compressing objects: 100% (61/61), done.
remote: Total 114 (delta 41), reused 102 (delta 29), pack-reused 0
接收对象中: 100% (114/114), 346.15 KiB | 800.00 KiB/s, 完成.
处理 delta 中: 100% (41/41), 完成.
正克隆到 '/home/weilian/esp-idf/components/json/cJSON'...
remote: Enumerating objects: 4545, done.
remote: Counting objects: 100% (59/59), done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 4545 (delta 29), reused 37 (delta 17), pack-reused 4486
接收对象中: 100% (4545/4545), 2.49 MiB | 2.53 MiB/s, 完成.
处理 delta 中: 100% (3014/3014), 完成.
正克隆到 '/home/weilian/esp-idf/components/lwip/lwip'...
remote: Enumerating objects: 51072, done.
remote: Counting objects: 100% (1103/1103), done.
remote: Compressing objects: 100% (425/425), done.
remote: Total 51072 (delta 763), reused 923 (delta 654), pack-reused 49969
接收对象中: 100% (51072/51072), 10.45 MiB | 5.11 MiB/s, 完成.
处理 delta 中: 100% (38507/38507), 完成.
正克隆到 '/home/weilian/esp-idf/components/mbedtls/mbedtls'...
remote: Enumerating objects: 155351, done.
remote: Total 155351 (delta 0), reused 0 (delta 0), pack-reused 155351
接收对象中: 100% (155351/155351), 72.97 MiB | 6.11 MiB/s, 完成.
处理 delta 中: 100% (120225/120225), 完成.
正克隆到 '/home/weilian/esp-idf/components/mqtt/esp-mqtt'...
remote: Enumerating objects: 2814, done.
remote: Counting objects: 100% (524/524), done.
remote: Compressing objects: 100% (251/251), done.
remote: Total 2814 (delta 298), reused 489 (delta 268), pack-reused 2290
接收对象中: 100% (2814/2814), 1.60 MiB | 2.10 MiB/s, 完成.
处理 delta 中: 100% (1529/1529), 完成.
正克隆到 '/home/weilian/esp-idf/components/openthread/lib'...
remote: Enumerating objects: 514, done.
remote: Counting objects: 100% (514/514), done.
remote: Compressing objects: 100% (254/254), done.
remote: Total 514 (delta 265), reused 481 (delta 232), pack-reused 0
接收对象中: 100% (514/514), 4.24 MiB | 4.32 MiB/s, 完成.
处理 delta 中: 100% (265/265), 完成.
正克隆到 '/home/weilian/esp-idf/components/openthread/openthread'...
remote: Enumerating objects: 94393, done.
remote: Counting objects: 100% (157/157), done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 94393 (delta 73), reused 106 (delta 57), pack-reused 94236
接收对象中: 100% (94393/94393), 94.26 MiB | 5.91 MiB/s, 完成.
处理 delta 中: 100% (74172/74172), 完成.
正克隆到 '/home/weilian/esp-idf/components/protobuf-c/protobuf-c'...
remote: Enumerating objects: 3685, done.
remote: Counting objects: 100% (152/152), done.
remote: Compressing objects: 100% (83/83), done.
remote: Total 3685 (delta 81), reused 118 (delta 64), pack-reused 3533
接收对象中: 100% (3685/3685), 1.50 MiB | 1.79 MiB/s, 完成.
处理 delta 中: 100% (2348/2348), 完成.
正克隆到 '/home/weilian/esp-idf/components/spiffs/spiffs'...
remote: Enumerating objects: 1522, done.
remote: Counting objects: 100% (39/39), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 1522 (delta 19), reused 30 (delta 18), pack-reused 1483
接收对象中: 100% (1522/1522), 1.07 MiB | 1.79 MiB/s, 完成.
处理 delta 中: 100% (1054/1054), 完成.
正克隆到 '/home/weilian/esp-idf/components/tinyusb/tinyusb'...
remote: Enumerating objects: 58764, done.
remote: Counting objects: 100% (1407/1407), done.
remote: Compressing objects: 100% (91/91), done.
remote: Total 58764 (delta 1347), reused 1316 (delta 1316), pack-reused 57357
接收对象中: 100% (58764/58764), 30.00 MiB | 5.25 MiB/s, 完成.
处理 delta 中: 100% (38657/38657), 完成.
正克隆到 '/home/weilian/esp-idf/components/unity/unity'...
remote: Enumerating objects: 6140, done.
remote: Counting objects: 100% (363/363), done.
remote: Compressing objects: 100% (194/194), done.
remote: Total 6140 (delta 208), reused 294 (delta 168), pack-reused 5777
接收对象中: 100% (6140/6140), 6.72 MiB | 4.21 MiB/s, 完成.
处理 delta 中: 100% (3792/3792), 完成.
正克隆到 '/home/weilian/esp-idf/components/bootloader/subproject/components/micro-ecc/micro-ecc'...
remote: Enumerating objects: 1147, done.
remote: Counting objects: 100% (52/52), done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 1147 (delta 22), reused 30 (delta 17), pack-reused 1095
接收对象中: 100% (1147/1147), 688.26 KiB | 1.16 MiB/s, 完成.
处理 delta 中: 100% (665/665), 完成.
正克隆到 '/home/weilian/esp-idf/components/bt/controller/lib_esp32'...
remote: Enumerating objects: 1675, done.
remote: Counting objects: 100% (39/39), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 1675 (delta 18), reused 28 (delta 9), pack-reused 1636
接收对象中: 100% (1675/1675), 6.89 MiB | 3.65 MiB/s, 完成.
处理 delta 中: 100% (1099/1099), 完成.
正克隆到 '/home/weilian/esp-idf/components/esp_phy/lib'...
remote: Enumerating objects: 185, done.
remote: Counting objects: 100% (185/185), done.
remote: Compressing objects: 100% (136/136), done.
remote: Total 185 (delta 83), reused 148 (delta 46), pack-reused 0
接收对象中: 100% (185/185), 1.17 MiB | 1.92 MiB/s, 完成.
处理 delta 中: 100% (83/83), 完成.
子模组路径 'components/bootloader/subproject/components/micro-ecc/micro-ecc':检出 'd037ec89546fad14b5c4d5456c2e23a71e554966'
子模组路径 'components/bt/controller/lib_esp32':检出 'dbaeb136cacf8c7d071f838c1053f90299f57720'
子模组路径 'components/bt/controller/lib_esp32c2/esp32c2-bt-lib':检出 '47b2342221589d36905ecda1e63cf5267d02edcb'
子模组路径 'components/bt/controller/lib_esp32c3_family':检出 '43b48d75e7e468c0cccd038721e1184dae6aabac'
子模组路径 'components/bt/controller/lib_esp32h2/esp32h2-bt-lib':检出 '8bf4c4c2cb1f964122977c9995863f325346411d'
子模组路径 'components/bt/host/nimble/nimble':检出 '94adb077f2cf94454f52b9f084d5256c3eb88593'
子模组路径 'components/cmock/CMock':检出 'eeecc49ce8af123cf8ad40efdb9673e37b56230f'
子模组 'vendor/c_exception'(https://github.com/throwtheswitch/cexception.git)已对路径 'components/cmock/CMock/vendor/c_exception' 注册
子模组 'vendor/unity'(https://github.com/throwtheswitch/unity.git)已对路径 'components/cmock/CMock/vendor/unity' 注册
正克隆到 '/home/weilian/esp-idf/components/cmock/CMock/vendor/c_exception'...
remote: Enumerating objects: 335, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 335 (delta 1), reused 1 (delta 0), pack-reused 326
接收对象中: 100% (335/335), 555.36 KiB | 923.00 KiB/s, 完成.
处理 delta 中: 100% (154/154), 完成.
正克隆到 '/home/weilian/esp-idf/components/cmock/CMock/vendor/unity'...
remote: Enumerating objects: 6140, done.
remote: Counting objects: 100% (363/363), done.
remote: Compressing objects: 100% (194/194), done.
remote: Total 6140 (delta 208), reused 294 (delta 168), pack-reused 5777
接收对象中: 100% (6140/6140), 6.72 MiB | 5.18 MiB/s, 完成.
处理 delta 中: 100% (3792/3792), 完成.
子模组路径 'components/cmock/CMock/vendor/c_exception':检出 '71b47be7c950f1bf5f7e5303779fa99a16224bb6'
子模组路径 'components/cmock/CMock/vendor/unity':检出 'cf949f45ca6d172a177b00da21310607b97bc7a7'
子模组路径 'components/esp_phy/lib':检出 '8d3ce02436066e33e8964d34981a97fe64edae2e'
子模组路径 'components/esp_wifi/lib':检出 '63a6c4dd39103ee698170dec3f8ac4fe936d9c1a'
子模组路径 'components/heap/tlsf':检出 'ab17d6798d1561758827b6553d56d57f19aa4d66'
子模组路径 'components/ieee802154/lib':检出 '2b52a261fef2ad7b630e11866dca567d17170401'
子模组路径 'components/json/cJSON':检出 'd348621ca93571343a56862df7de4ff3bc9b5667'
子模组路径 'components/lwip/lwip':检出 '316cfc17ce24f2d5d65c9f28251ec43a59a74cb1'
子模组路径 'components/mbedtls/mbedtls':检出 '7b428b1bf260ce1fec4e3ffb6494070d439a3a67'
子模组路径 'components/mqtt/esp-mqtt':检出 'ae53d799da294f03ef65c33e88fa33648e638134'
子模组路径 'components/openthread/lib':检出 '698e8386c31f2c34e167b65f72a6b2553e838dd9'
子模组路径 'components/openthread/openthread':检出 'e64ba13faa865aa7febd5cb7dc7eb52ff19a2c5c'
子模组路径 'components/protobuf-c/protobuf-c':检出 'abc67a11c6db271bedbb9f58be85d6f4e2ea8389'
子模组路径 'components/spiffs/spiffs':检出 '0dbb3f71c5f6fae3747a9d935372773762baf852'
子模组路径 'components/tinyusb/tinyusb':检出 'c1986586098643edfa6b75a776299c576ad0ce8b'
子模组路径 'components/unity/unity':检出 '7d2bf62b7e6afaf38153041a9d53c21aeeca9a25'
子模组路径 'components/bootloader/subproject/components/micro-ecc/micro-ecc':检出 'd037ec89546fad14b5c4d5456c2e23a71e554966'
子模组路径 'components/bt/controller/lib_esp32':检出 'dbaeb136cacf8c7d071f838c1053f90299f57720'
子模组路径 'components/esp_phy/lib':检出 '8d3ce02436066e33e8964d34981a97fe64edae2e'
weilian@weilian-OptiPlex-7080:~$ git checkout --recurse-submodules master
fatal: 不是 git 仓库(或者任何父目录):.git
weilian@weilian-OptiPlex-7080:~$ dir
公共的 模板 视频 图片 文档 下载 音乐 桌面 esp esp-dev-kits esp-idf openmv snap
weilian@weilian-OptiPlex-7080:~$ cd esp-idf
weilian@weilian-OptiPlex-7080:~/esp-idf$ git checkout --recurse-submodules master
已经位于 'master'
您的分支与上游分支 'origin/master' 一致。
weilian@weilian-OptiPlex-7080:~/esp-idf$ git checkout --recurse-submodules f3159
fatal: 不是 git 仓库:../../../../../../.git/modules/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib
fatal: 无法重置子模组索引
weilian@weilian-OptiPlex-7080:~/esp-idf$ sudo git checkout --recurse-submodules f3159
[sudo] weilian 的密码:
fatal: 不是 git 仓库:examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib/../../../../../../.git/modules/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib
fatal: 无法访问 'https://github.com/kmackay/micro-ecc.git/':Could not resolve host: github.com fatal: 无法克隆 'https://github.com/kmackay/micro-ecc.git' 到子模组路径 '/home/weilian/esp-
好几个子模块 clone 失败了,再用 git submodule update -f
试下
已经成功!非常感谢!
fatal: 不是 git 仓库:examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib/../../../../../../.git/modules/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib
这个错误,git init 然后 git submodules update就不报错了!
好的,学到了
好几个子模块 clone 失败了,再用
git submodule update -f
试下
这个命令估计也管用,但是没有尝试
ubuntu下 master版本可以直接通过ESP32S3 的USB口烧录程序么?
可以
具体怎么操作?通过插拔开发板对比设备变化,感觉开发板的虚拟串口应该是ttyACM0 weilian@weilian-OptiPlex-7080:~/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos$ idf.py build Executing action: all (aliases: build) Running ninja in directory /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build Executing "ninja all"... [1/4] cd /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build/esp-idf/esptool_py && /home/weilian/.espressif/python_env/idf5.1_py3.10_env/bin/python /home/weilian/esp-idf/components/pa...e app /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build/partition_table/partition-table.bin /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build/lvgl_demos.binlvgl_demos.bin binary size 0xf2290 bytes. Smallest app partition is 0x400000 bytes. 0x30dd70 bytes (76%) free. [1/1] cd /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build/bootloader/esp-idf/esptool_py && /home/weilian/.espressif/python_env/idf5.1_py3.10_env/bin/python /home/weilian/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build/bootloader/bootloader.binBootloader binary size 0x5460 bytes. 0x2ba0 bytes (34%) free.
Project build complete. To flash, run this command: /home/weilian/.espressif/python_env/idf5.1_py3.10_env/bin/python ../../../../esp-idf/components/esptool_py/esptool/esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32s3 write_flash --flash_mode dout --flash_size 8MB --flash_freq 80m 0x0 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/lvgl_demos.bin or run 'idf.py -p (PORT) flash' weilian@weilian-OptiPlex-7080:~/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos$ idf.py -p ttyACM0 -b 460800 weilian@weilian-OptiPlex-7080:~/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos$ sudo idf.py -p ttyACM0 -b 460800 [sudo] weilian 的密码: sudo: idf.py:找不到命令 weilian@weilian-OptiPlex-7080:~/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos$ idf.py -p ttyACM0 -b 460800 weilian@weilian-OptiPlex-7080:~/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos$ idf.py -p /dev/ttyACM0 -b 460800 weilian@weilian-OptiPlex-7080:~/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos$ /home/weilian/.espressif/python_env/idf5.1_py3.10_env/bin/python ../../../../esp-idf/components/esptool_py/esptool/esptool.py -p /dev/ttyACM0 -b 460800 --before default_reset --after hard_reset --chip esp32s3 write_flash --flash_mode dout --flash_size 8MB --flash_freq 80m 0x0 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/lvgl_demos.bin esptool.py v4.3 Serial port /dev/ttyACM0
A fatal error occurred: Could not open /dev/ttyACM0, the port doesn't exist
应该怎么查看开发板的USB虚拟端口?
USB 虚拟端口固定是 /dev/ttyACM0,用 linux 命令查看 ls /dev/ttyACM0
使用命令ls /dev/ttyA,查看插拔开发板前后的设备变化, weilian@weilian-OptiPlex-7080:~/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos$ ls /dev/ttyA /dev/ttyACM0 weilian@weilian-OptiPlex-7080:~/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos$ ls /dev/ttyA ls: 无法访问 '/dev/ttyA': 没有那个文件或目录
可以确定开发版就是/dev/ttyACM0
烧录程序,报错信息如下 weilian@weilian-OptiPlex-7080:~/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos$ idf.py -p /dev/ttyACM0 flash Executing action: flash Running ninja in directory /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build Executing "ninja flash"... [1/5] cd /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build/esp-idf/esptool_py && /home/weilian/.espressif/python_env/idf5.1_py3.10_env/bin/python /home/weilian/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 partition --type app /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build/partition_table/partition-table.bin /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build/lvgl_demos.bin lvgl_demos.bin binary size 0xa7880 bytes. Smallest app partition is 0x400000 bytes. 0x358780 bytes (84%) free. [2/5] Performing build step for 'bootloader' [1/1] cd /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build/bootloader/esp-idf/esptool_py && /home/weilian/.espressif/python_env/idf5.1_py3.10_env/bin/python /home/weilian/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build/bootloader/bootloader.bin Bootloader binary size 0x5440 bytes. 0x2bc0 bytes (34%) free. [2/3] cd /home/weilian/esp-idf/components/esptool_py && /usr/local/bin/cmake -D IDF_PATH=/home/weilian/esp-idf -D "SERIAL_TOOL=/home/weilian/.espressif/python_env/idf5.1_py3.10_env/bin/python;;/home/weilian/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32s3" -D "SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;--no-stub;write_flash;@flash_args" -D WORKING_DIRECTORY=/home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build -P /home/weilian/esp-idf/components/esptool_py/run_serial_tool.cmake esptool esp32s3 -p /dev/ttyACM0 -b 460800 --before=default_reset --after=hard_reset --no-stub write_flash --flash_mode dout --flash_freq 80m --flash_size detect 0x0 bootloader/bootloader.bin 0x10000 lvgl_demos.bin 0x8000 partition_table/partition-table.bin esptool.py v4.3 Serial port /dev/ttyACM0
A fatal error occurred: Could not open /dev/ttyACM0, the port doesn't exist CMake Error at run_serial_tool.cmake:55 (message):
/home/weilian/.espressif/python_env/idf5.1_py3.10_env/bin/python;;/home/weilian/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32s3 failed
FAILED: CMakeFiles/flash cd /home/weilian/esp-idf/components/esptool_py && /usr/local/bin/cmake -D IDF_PATH=/home/weilian/esp-idf -D "SERIAL_TOOL=/home/weilian/.espressif/python_env/idf5.1_py3.10_env/bin/python;;/home/weilian/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32s3" -D "SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;--no-stub;write_flash;@flash_args" -D WORKING_DIRECTORY=/home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build -P /home/weilian/esp-idf/components/esptool_py/run_serial_tool.cmake ninja: build stopped: subcommand failed. ninja failed with exit code 1, output of the command is in the /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build/log/idf_py_stderr_output_24364 and /home/weilian/esp-dev-kits/esp32-s3-lcd-ev-board/examples/lvgl_demos/build/log/idf_py_stdout_output_24364
试试进入 Boot 模式之后烧录程序:上电后,长按 Boot 键,然后单击 Reset 键,最后松开 Boot。
1、增加权限或进入 Boot 模式之后烧录程序都不行,报错依然是A fatal error occurred: Could not open /dev/ttyACM0, the port doesn't exist; 2、进入python import serial da=serial.Serial("/dev/ttyACM00",9600) 也报这个错误; 3、这个错误是the port doesn't exist,查询了一下一般报错是Permission denied; 4、PuTTY设置好串口参数后点击Open要么提示音无法打开要么直接界面自动关闭; 4、menuconfig里面需要配置什么?看到C3芯片的好像要配置?
sudo chmod a+rw /dev/ttyACM0 之后不再报错,看来还是权限问题;menuconfig里面不需要改动。
好的
目前已经可以编译烧录,还有几个问题请您指教 1、esp32-s3-lcd-ev-board/examples 里面的工程需要 IDF 的版本在 release/v5.0 及以上,并且需要打上 PSRAM 120M 补丁,我的理解主要是实现了octal PSRAM 的DDR 120Mhz,对于2M的Quad PSRAM 的SDR 120Mhz,是不是也必须 release/v5.0 及以上+PSRAM 120M 补丁?V4.4.2是否可以? 2、esp32-s3-lcd-ev-board/examples/lvgl_demos能否在menuconfig里面配置octal PSRAM为DDR或SDR、时钟频率120Mhz或80MHz?主要是为了测试不同工作参数下屏幕刷新速度的区别。
1、master的版本是V5.1-dev,是否需要退回到V5.0?项目还需要Camera 2、8线 PSRAM能否软件设置为4线PSRAM SDR模式下工作?测试结果能否代表2M Quad PSRAM SDR? 3、lvgl_demos下的帧率测试Mode1、Mode2、Mode3 、 Mode4 参数在menuconfig里面可以设置么?
2、8线 PSRAM能否软件设置为4线PSRAM SDR模式下工作?在menuconfig里设置为Quad PSRAM直接黑屏
Avoid tearing effect
配置,Mode 1、2 通过修改 esp32-s3-lcd-ev-board/examples/lvgl_demos/main/lv_port.c 中 LV_PORT_BUFFER_HEIGHT
和 LV_PORT_BUFFER_MALLOC
注释代码配置2、8线 PSRAM能否软件设置为4线PSRAM SDR模式下工作?在menuconfig里设置为Quad PSRAM直接黑屏
请详细阐述报错信息
@weilian1977 您现在的问题范围比较广,不适合在 issue 下进行回答,麻烦联系官方的 TS 团队支持,链接 https://www.espressif.com/en/contact-us/technical-inquiries
@weilian1977 您现在的问题范围比较广,不适合在 issue 下进行回答,麻烦联系官方的 TS 团队支持,链接 https://www.espressif.com/en/contact-us/technical-inquiries
OK
@weilian1977 麻烦关闭一下这个 issue 哈
Linux 22.04+4.4.2可以成功,Linux 22.04+master老是提示错误,对Linux、Cmake、python版本有什么要求?