Missing paramer when starting monitor on Espressif-IDE VSCode Extension
Posted: Sat Feb 18, 2023 10:16 am
If I try to open the monitor on Espressif-IDE VSCode Extension (Ctrl + E M), I get the following error:
It seems TOOLCHAIN_PREFIX is not set. I don't find a way to set it in the Espressif-IDE VSCode Extension. I just can remove the parameter "--toolchain-prefix" and monitor works.
It also woks, If I use the following command in the shell:
idf.py -p /dev/ttyUSB0 monitor
The parameter than is set to:
"--toolchain-prefix riscv32-esp-elf-"
By the way, compiling and flashing from the Espressif-IDE VSCode Extension works without problems.
Code: Select all
/home/user/.espressif/python_env/idf5.1_py3.9_env/bin/python /home/user/esp/esp-idf/tools/idf_monitor.py -p /dev/ttyUSB0 -b 115200 --toolchain-prefix --target esp32c6 /home/user/esp/blink/build/blink.elf
usage: idf_monitor - a serial output monitor for esp-idf [-h] [--port PORT] [--no-reset] [--disable-address-decoding] [--baud BAUD] [--make MAKE] [--encrypted]
[--toolchain-prefix TOOLCHAIN_PREFIX] [--eol {CR,LF,CRLF}] [--print_filter PRINT_FILTER] [--decode-coredumps {info,disable}]
[--decode-panic {backtrace,disable}] [--target TARGET] [--revision REVISION] [--ws WS] [--timestamps]
[--timestamp-format TIMESTAMP_FORMAT] [--force-color]
[elf_file]
idf_monitor - a serial output monitor for esp-idf: error: argument --toolchain-prefix: expected one argument
It also woks, If I use the following command in the shell:
idf.py -p /dev/ttyUSB0 monitor
The parameter than is set to:
"--toolchain-prefix riscv32-esp-elf-"
By the way, compiling and flashing from the Espressif-IDE VSCode Extension works without problems.