【已解决】VS Code里ESP-IDF初始化报错和乱码问题

asd8787www
Posts: 1
Joined: Mon Aug 02, 2021 6:05 am

【已解决】VS Code里ESP-IDF初始化报错和乱码问题

Postby asd8787www » Fri Aug 06, 2021 3:24 am

在VSCode里配置了espidf的开发环境,测试前几个官方example的时候都能正常运行。但是自从调试了cmake例程以后,打开vscode、espidf在初始化之后总会报错(如下),并且跳转到esp-idf的安装界面。有时候重装vscode会解决问题,但是打开某些example之后又会反复出现这种情况。

附输出的错误:
'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32s2-elf-gcc --version
'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32s2-elf version
Error: Command failed: xtensa-esp32s2-elf-gcc --version
'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: esp32ulp-elf-as --version
'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking esp32ulp-elf version
Error: Command failed: esp32ulp-elf-as --version
'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32-elf-gcc --version
'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32-elf version
Error: Command failed: xtensa-esp32-elf-gcc --version
'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: riscv32-esp-elf-gcc --version
'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking riscv32-esp-elf version
Error: Command failed: riscv32-esp-elf-gcc --version
'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32s3-elf-gcc --version
'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32s3-elf version
Error: Command failed: xtensa-esp32s3-elf-gcc --version
'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: dfu-util --version
'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking dfu-util version
Error: Command failed: dfu-util --version
'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: ccache.exe --version
'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking ccache version
Error: Command failed: ccache.exe --version
'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'esp32s2ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: esp32s2ulp-elf-as --version
'esp32s2ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking esp32s2ulp-elf version
Error: Command failed: esp32s2ulp-elf-as --version
'esp32s2ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: idf.py.exe -v
'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking idf-exe version
Error: Command failed: idf.py.exe -v
'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: openocd --version
'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking openocd-esp32 version
Error: Command failed: openocd --version
'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: cmake --version
'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking cmake version
Error: Command failed: cmake --version
'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: ninja --version
'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking ninja version
Error: Command failed: ninja --version
'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

idf_versions.txt has (1) KB
idf_versions.txt progress: 100.00% (0.10 / 0.10) KB
'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: cmake --version
'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking cmake version
Error: Command failed: cmake --version
'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32-elf-gcc --version
'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32-elf version
Error: Command failed: xtensa-esp32-elf-gcc --version
'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32s3-elf-gcc --version
'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32s3-elf version
Error: Command failed: xtensa-esp32s3-elf-gcc --version
'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: esp32ulp-elf-as --version
'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking esp32ulp-elf version
Error: Command failed: esp32ulp-elf-as --version
'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32s2-elf-gcc --version
'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32s2-elf version
Error: Command failed: xtensa-esp32s2-elf-gcc --version
'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: riscv32-esp-elf-gcc --version
'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking riscv32-esp-elf version
Error: Command failed: riscv32-esp-elf-gcc --version
'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'esp32s2ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: esp32s2ulp-elf-as --version
'esp32s2ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking esp32s2ulp-elf version
Error: Command failed: esp32s2ulp-elf-as --version
'esp32s2ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: dfu-util --version
'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking dfu-util version
Error: Command failed: dfu-util --version
'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: openocd --version
'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking openocd-esp32 version
Error: Command failed: openocd --version
'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: idf.py.exe -v
'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking idf-exe version
Error: Command failed: idf.py.exe -v
'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: ninja --version
'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking ninja version
Error: Command failed: ninja --version
'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: ccache.exe --version
'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking ccache version
Error: Command failed: ccache.exe --version
'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Attachments
图片1.png
图片1.png (181.88 KiB) Viewed 8203 times

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

Re: VS Code里ESP-IDF初始化报错和乱码问题

Postby ESP_Gargamel » Mon Aug 09, 2021 10:29 am

你有正确配置 IDF 的环境吗?正常情况下 extension 正确配置过后不会有这个。

fyterliu
Posts: 16
Joined: Tue Oct 26, 2021 3:19 am

Re: VS Code里ESP-IDF初始化报错和乱码问题

Postby fyterliu » Sat Nov 13, 2021 12:05 pm

我从编译目标ESP32切换到ESP32 C3,第二天启动就这样了,折腾了很久。
目前解决办法:
选回ESP32,清理一下项目,重启VSCode,再切到C3,又正常了。

PickledCabbage
Posts: 5
Joined: Fri Dec 24, 2021 9:40 am

Re: VS Code里ESP-IDF初始化报错和乱码问题

Postby PickledCabbage » Sat Jan 29, 2022 6:10 pm

想请问一下具体是怎么解决的。我配置好后一旦重启VSCode,就会出现上面的乱码

fyterliu
Posts: 16
Joined: Tue Oct 26, 2021 3:19 am

Re: VS Code里ESP-IDF初始化报错和乱码问题

Postby fyterliu » Fri Jul 21, 2023 3:42 pm

我的也这样了,两天了。
单独用export.ps1,idf.py build是没问题的。
重装vscode插件espressif也没用。
重装esp-idf也没用。

'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: cmake --version
'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking cmake version
Error: Command failed: cmake --version
'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'esp32s2ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: esp32s2ulp-elf-as --version
'esp32s2ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking esp32s2ulp-elf version
Error: Command failed: esp32s2ulp-elf-as --version
'esp32s2ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32s3-elf-gcc --version
'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32s3-elf version
Error: Command failed: xtensa-esp32s3-elf-gcc --version
'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: esp32ulp-elf-as --version
'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking esp32ulp-elf version
Error: Command failed: esp32ulp-elf-as --version
'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: riscv32-esp-elf-gcc --version
'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking riscv32-esp-elf version
Error: Command failed: riscv32-esp-elf-gcc --version
'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32s2-elf-gcc --version
'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32s2-elf version
Error: Command failed: xtensa-esp32s2-elf-gcc --version
'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32-elf-gcc --version
'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32-elf version
Error: Command failed: xtensa-esp32-elf-gcc --version
'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: ccache.exe --version
'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking ccache version
Error: Command failed: ccache.exe --version
'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: dfu-util --version
'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking dfu-util version
Error: Command failed: dfu-util --version
'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: idf.py.exe -v
'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking idf-exe version
Error: Command failed: idf.py.exe -v
'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: ninja --version
'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking ninja version
Error: Command failed: ninja --version
'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: openocd --version
'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking openocd-esp32 version
Error: Command failed: openocd --version
'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

asdfg1426
Posts: 86
Joined: Tue Jul 11, 2023 2:35 am

Re: VS Code里ESP-IDF初始化报错和乱码问题

Postby asdfg1426 » Mon Jul 24, 2023 6:27 am

fyterliu wrote:
Fri Jul 21, 2023 3:42 pm
我的也这样了,两天了。
单独用export.ps1,idf.py build是没问题的。
重装vscode插件espressif也没用。
重装esp-idf也没用。

'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: cmake --version
'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking cmake version
Error: Command failed: cmake --version
'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'esp32s2ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: esp32s2ulp-elf-as --version
'esp32s2ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking esp32s2ulp-elf version
Error: Command failed: esp32s2ulp-elf-as --version
'esp32s2ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32s3-elf-gcc --version
'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32s3-elf version
Error: Command failed: xtensa-esp32s3-elf-gcc --version
'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: esp32ulp-elf-as --version
'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking esp32ulp-elf version
Error: Command failed: esp32ulp-elf-as --version
'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: riscv32-esp-elf-gcc --version
'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking riscv32-esp-elf version
Error: Command failed: riscv32-esp-elf-gcc --version
'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32s2-elf-gcc --version
'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32s2-elf version
Error: Command failed: xtensa-esp32s2-elf-gcc --version
'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32-elf-gcc --version
'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32-elf version
Error: Command failed: xtensa-esp32-elf-gcc --version
'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: ccache.exe --version
'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking ccache version
Error: Command failed: ccache.exe --version
'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: dfu-util --version
'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking dfu-util version
Error: Command failed: dfu-util --version
'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: idf.py.exe -v
'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking idf-exe version
Error: Command failed: idf.py.exe -v
'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: ninja --version
'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking ninja version
Error: Command failed: ninja --version
'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: openocd --version
'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking openocd-esp32 version
Error: Command failed: openocd --version
'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
成功配置过吗?没配置前是这样的,成功配置插件后不会有这个了

ESP_Penguin_Helper
Posts: 156
Joined: Tue Jul 11, 2023 6:55 am

Re: VS Code里ESP-IDF初始化报错和乱码问题

Postby ESP_Penguin_Helper » Tue Jul 25, 2023 11:40 am

你好,出现乱码可能是因为环境变量没有配置好导致的无法找到交叉编译器。推荐你重装 extension 时检查 tool 的 PATH 是否正确。

或者你重新安装时安装方式选择 advance,然后进行到 ESP-IDF Tools 界面后检查你所有 tools 的路径是否都正确。
Attachments
idftool.png
idftool.png (69.57 KiB) Viewed 2713 times

fyterliu
Posts: 16
Joined: Tue Oct 26, 2021 3:19 am

Re: VS Code里ESP-IDF初始化报错和乱码问题

Postby fyterliu » Mon Jul 31, 2023 1:46 pm

通过"Configure ESP-IDF extension"的“使用存在的环境”可以临时解决,但无法保存这种可用状态,重启VSCode后依然乱码,从头再来!

fyterliu
Posts: 16
Joined: Tue Oct 26, 2021 3:19 am

Re: VS Code里ESP-IDF初始化报错和乱码问题

Postby fyterliu » Mon Jul 31, 2023 1:49 pm

解决了,我关闭了所有的vscode,再启动,好了。

Who is online

Users browsing this forum: lingmiao2023 and 29 guests