idf.py set-target esp32s3 提示错误是什么原因

luyevzranr
Posts: 8
Joined: Sun Mar 12, 2023 12:57 am

idf.py set-target esp32s3 提示错误是什么原因

Postby luyevzranr » Sat May 06, 2023 11:47 am

D:\硬件开发资料\esp-idf-v5.0.1\examples\peripherals\twai\twai_network\twai_network_master>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 'd:\硬件开发资料\esp-idf-v5.0.1\examples\peripherals\twai\twai_network\twai_network_master\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 d:\硬件开发资料\esp-idf-v5.0.1\examples\peripherals\twai\twai_network\twai_network_master\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=1 d:\硬件开发资 料\esp-idf-v5.0.1\examples\peripherals\twai\twai_network\twai_network_master"...
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.40.0.windows.1")
-- ccache will be used for faster recompilation
-- 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: M:/work/tool/Espressif_ide2.9.0/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: M:/work/tool/Espressif_ide2.9.0/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: M:/work/tool/Espressif_ide2.9.0/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file D:/硬件开发资料/esp-idf-v5.0.1/examples/peripherals/twai/twai_network/twai_network_master/sdkconfig
Traceback (most recent call last):
File "D:\硬件开发资料\esp-idf-v5.0.1\tools\kconfig_new\prepare_kconfig_files.py", line 102, in <module>
main()
File "D:\硬件开发资料\esp-idf-v5.0.1\tools\kconfig_new\prepare_kconfig_files.py", line 94, in main
env.update(json.load(args.env_file))
File "C:\Users\iwlb\AppData\Local\Programs\Python\Python310\lib\json\__init__.py", line 293, in load
return loads(fp.read(),
UnicodeDecodeError: 'gbk' codec can't decode byte 0xac in position 35: illegal multibyte sequence
Traceback (most recent call last):
File "D:\硬件开发资料\esp-idf-v5.0.1\tools\kconfig_new\confgen.py", line 607, in <module>
main()
File "D:\硬件开发资料\esp-idf-v5.0.1\tools\kconfig_new\confgen.py", line 255, in main
env = json.load(args.env_file)
File "C:\Users\iwlb\AppData\Local\Programs\Python\Python310\lib\json\__init__.py", line 293, in load
return loads(fp.read(),
UnicodeDecodeError: 'gbk' codec can't decode byte 0xac in position 35: illegal multibyte sequence
CMake Error at D:/硬件开发资料/esp-idf-v5.0.1/tools/cmake/kconfig.cmake:176 (message):
Failed to run confgen.py
(M:/work/tool/Espressif_ide2.9.0/python_env/idf5.0_py3.10_env/Scripts/python.exe;D:/硬件开发资料/esp-idf-v5.0.1/tools/kconfig_new/confgen.py;--list-separator=semicolon;--kconfig;D:/硬件开发资料/esp-idf-v5.0.1/Kconfig;--sdkconfig-rename;D:/硬件开发资料/esp-idf-v5.0.1/sdkconfig.rename;--config;D:/硬件开发资料/esp-idf-v5.0.1/examples/peripherals/twai/twai_network/twai_network_master/sdkconfig;--env-file;D:/硬件开发资料/esp-idf-v5.0.1/examples/peripherals/twai/twai_network/twai_network_master/build/config.env).
Error 1
Call Stack (most recent call first):
D:/硬件开发资料/esp-idf-v5.0.1/tools/cmake/build.cmake:590 (__kconfig_generate_config)
D:/硬件开发资料/esp-idf-v5.0.1/tools/cmake/project.cmake:440 (idf_build_process)
CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "D:/硬件开发资料/esp-idf-v5.0.1/examples/peripherals/twai/twai_network/twai_network_master/build/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "D:\硬件开发资料\esp-idf-v5.0.1\tools\idf.py", line 772, in <module>
main()
File "D:\硬件开发资料\esp-idf-v5.0.1\tools\idf.py", line 707, in main
cli(sys.argv[1:], prog_name=PROG, complete_var=SHELL_COMPLETE_VAR)
File "M:\work\tool\Espressif_ide2.9.0\python_env\idf5.0_py3.10_env\lib\site-packages\click\core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "M:\work\tool\Espressif_ide2.9.0\python_env\idf5.0_py3.10_env\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "M:\work\tool\Espressif_ide2.9.0\python_env\idf5.0_py3.10_env\lib\site-packages\click\core.py", line 1691, in invoke
return _process_result(rv)
File "M:\work\tool\Espressif_ide2.9.0\python_env\idf5.0_py3.10_env\lib\site-packages\click\core.py", line 1628, in _process_result
value = ctx.invoke(self._result_callback, value, **ctx.params)
File "M:\work\tool\Espressif_ide2.9.0\python_env\idf5.0_py3.10_env\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "D:\硬件开发资料\esp-idf-v5.0.1\tools\idf.py", line 602, in execute_tasks
task(ctx, global_args, task.action_args)
File "D:\硬件开发资料\esp-idf-v5.0.1\tools\idf.py", line 189, in __call__
self.callback(self.name, context, global_args, **action_args)
File "d:\硬件开发资料\esp-idf-v5.0.1\tools\idf_py_actions\core_ext.py", line 161, in set_target
ensure_build_directory(args, ctx.info_name, True)
File "D:\硬件开发资料\esp-idf-v5.0.1\tools\idf_py_actions\tools.py", line 455, in ensure_build_directory
RunTool('cmake', cmake_args, cwd=args.build_dir, hints=hints)()
File "D:\硬件开发资料\esp-idf-v5.0.1\tools\idf_py_actions\tools.py", line 219, in __call__
print_hints(stderr_output_file, stdout_output_file)
File "D:\硬件开发资料\esp-idf-v5.0.1\tools\idf_py_actions\tools.py", line 125, in print_hints
output = ' '.join(line.strip() for line in file if line.strip())
File "D:\硬件开发资料\esp-idf-v5.0.1\tools\idf_py_actions\tools.py", line 125, in <genexpr>
output = ' '.join(line.strip() for line in file if line.strip())
UnicodeDecodeError: 'gbk' codec can't decode byte 0xac in position 50: illegal multibyte sequence

D:\硬件开发资料\esp-idf-v5.0.1\examples\peripherals\twai\twai_network\twai_network_master>

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: idf.py set-target esp32s3 提示错误是什么原因

Postby ESP_Gargamel » Mon May 08, 2023 4:55 am

请更换 esp-idf 在英文路径下。

Who is online

Users browsing this forum: No registered users and 183 guests