因项目需要 Wi-Fi、A2DP、HFP、Bluetooth LE共存,故采用了官方推荐的IDF分支,https://github.com/espressif/esp-idf/tr ... psram_v3.3,将其ZIP包下载解压保存在D:\Espressif\frameworks\audio_on_psram_v3.3目录中,将原有的能正常工作的ESP-IDF 4.4 CMD快捷方式复制一份,并修改其起始位置为D:\Espressif\frameworks\audio_on_psram_v3.3,点击该快捷方式进入对应的目录,运行install.bat 报错如下:
D:\Espressif\frameworks\audio_on_psram_v3.3>install.bat
Installing ESP-IDF tools
Installing tools: xtensa-esp32-elf, esp32ulp-elf, cmake, openocd-esp32, mconf, ninja, idf-exe, ccache
Skipping xtensa-esp32-elf@1.22.0-80-g6c4433a5-5.2.0 (already installed)
Skipping esp32ulp-elf@2.28.51.20170517 (already installed)
Skipping cmake@3.13.4 (already installed)
Skipping openocd-esp32@v0.10.0-esp32-20190313 (already installed)
Skipping mconf@v4.6.0.0-idf-20190628 (already installed)
Skipping ninja@1.9.0 (already installed)
Skipping idf-exe@1.0.1 (already installed)
Skipping ccache@3.7 (already installed)
Setting up Python environment
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "D:\Espressif\frameworks\audio_on_psram_v3.3\tools\idf_tools.py", line 1349, in <module>
main(sys.argv[1:])
File "D:\Espressif\frameworks\audio_on_psram_v3.3\tools\idf_tools.py", line 1345, in main
action_func(args)
File "D:\Espressif\frameworks\audio_on_psram_v3.3\tools\idf_tools.py", line 1139, in action_install_python_env
idf_python_env_path, _, virtualenv_python = get_python_env_path()
^^^^^^^^^^^^^^^^^^^^^
File "D:\Espressif\frameworks\audio_on_psram_v3.3\tools\idf_tools.py", line 840, in get_python_env_path
idf_version_str = subprocess.check_output(['git', '--work-tree=' + global_idf_path, 'describe', '--tags'], cwd=global_idf_path, env=os.environ).decode()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "subprocess.py", line 466, in check_output
File "subprocess.py", line 571, in run
subprocess.CalledProcessError: Command '['git', '--work-tree=D:\\Espressif\\frameworks\\audio_on_psram_v3.3', 'describe', '--tags']' returned non-zero exit status 128.
百度搜索,该错误可能系不是git clone 而是采用ZIP 压缩包所致,参见https://blog.csdn.net/pp2373886592/article/details/131360594。
于是,采用git clone办法克隆该仓库,不知道咋回事,换了几台电脑都克隆不下来,而其他的仓库都能正常克隆,报错如下:
D:\Espressif\frameworks>git clone --recursive https://github.com/espressif/esp-idf/tr ... m_v3.3.git
Cloning into 'stack_on_psram_v3.3'...
fatal: unable to access 'https://github.com/espressif/esp-idf/tr ... _v3.3.git/': Recv failure: Connection was reset.
请各路大侠指点一二,已经折腾了好几天了,谢谢!
Wi-Fi、A2DP、HFP、Bluetooth LE 共存优化IDF分支安装报错
Re: Wi-Fi、A2DP、HFP、Bluetooth LE 共存优化IDF分支安装报错
还是我自己来回答吧,问题已经解决,克隆分支的命令用错了。不禁还要吐槽一下,乐鑫的文档太凌乱了,对新手极不友好。
Who is online
Users browsing this forum: No registered users and 22 guests