esp32 idf in vsc, build flash working, can't monitor
Posted: Wed Apr 29, 2020 5:15 am
I installed idf3.3 with python 3.8. in windows CMD tested ok. and then installed "espressif idf 0.2.1" in vsc, after a successful installation. In f1 menu, "esp-idf build", "esp-idf flash" all work perfectly. However, when I try to use "esp-idf monitor", it is error :
if I open CMD and execute idf.py monitor in thr project folder, it works. I've reinstalled idf, vsc, and vsc espressif plugin, doesn't help. all help will be welcome
Code: Select all
G:\esp32_apps\blink>set IDF_PATH=G:\esp_vsc\esp-idf
G:\esp32_apps\blink>G:\esp_vsc\.espressif\python_env\idf3.3_py3.8_env\Scripts\python.exe G:\esp_vsc\esp-idf\tools\idf.py -p COM7 monitor
Traceback (most recent call last):
File "G:\esp_vsc\esp-idf\tools\idf.py", line 635, in <module>
if ('MSYSTEM' in os.environ) and (not os.environ['_'].endswith(WINPTY_EXE) and WINPTY_VAR not in os.environ):
File "G:\python38\lib\os.py", line 673, in __getitem__
raise KeyError(key) from None
KeyError: '_'