-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Description
Describe the bug
(.venv) C:\Users\KALYAN\zephyrproject\zephyr>west espressif monitor
Serial port COM9
Connecting...
COM9 failed to connect: Write timeout
Serial port COM6
Connecting...............
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting.....
Detecting chip type... ESP32
Traceback (most recent call last):
File "C:\Users\KALYAN\zephyrproject\zephyr..\modules\hal\espressif\tools\idf_monitor.py", line 34, in
import serial
ModuleNotFoundError: No module named 'serial'
Traceback (most recent call last):
File "C:\Users\KALYAN\zephyrproject.venv\Lib\site-packages\west\app\main.py", line 505, in run_command
self.run_extension(args.command, argv)
File "C:\Users\KALYAN\zephyrproject.venv\Lib\site-packages\west\app\main.py", line 654, in run_extension
self.cmd.run(args, unknown, self.topdir, manifest=self.manifest,
File "C:\Users\KALYAN\zephyrproject.venv\Lib\site-packages\west\commands.py", line 194, in run
self.do_run(args, unknown)
File "C:\Users\KALYAN\zephyrproject\modules\hal\espressif\west\tools.py", line 165, in do_run
self.monitor(module_path, args)
File "C:\Users\KALYAN\zephyrproject\modules\hal\espressif\west\tools.py", line 184, in monitor
cmd_exec(("python.exe", monitor_path, "-p", esp_port,
File "C:\Users\KALYAN\zephyrproject\modules\hal\espressif\west\tools.py", line 40, in cmd_exec
return subprocess.check_call(cmd, cwd=cwd, shell=shell)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('python.exe', WindowsPath('C:/Users/KALYAN/zephyrproject/zephyr/../modules/hal/espressif/tools/idf_monitor.py'), '-p', 'COM6', '-b', '115200', WindowsPath('C:/Users/KALYAN/zephyrproject/zephyr/build/zephyr/zephyr.elf'), '--eol', 'CRLF')' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\KALYAN\zephyrproject.venv\Scripts\west.exe_main.py", line 7, in
File "C:\Users\KALYAN\zephyrproject.venv\Lib\site-packages\west\app\main.py", line 1085, in main
app.run(argv or sys.argv[1:])
File "C:\Users\KALYAN\zephyrproject.venv\Lib\site-packages\west\app\main.py", line 244, in run
self.run_command(argv, early_args)
File "C:\Users\KALYAN\zephyrproject.venv\Lib\site-packages\west\app\main.py", line 543, in run_command
f'{quote_sh_list(cpe.cmd)}', fatal=True)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\KALYAN\zephyrproject.venv\Lib\site-packages\west\util.py", line 42, in quote_sh_list
return ' '.join(shlex.quote(s) for s in cmd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\KALYAN\zephyrproject.venv\Lib\site-packages\west\util.py", line 42, in
return ' '.join(shlex.quote(s) for s in cmd)
^^^^^^^^^^^^^^
File "C:\Python311\Lib\shlex.py", line 329, in quote
if _find_unsafe(s) is None:
^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'WindowsPath'
Environment
- Page:
boards/espressif/esp32_devkitc_wroom/doc/index - Version: main
- SHA-1: c086603
I am facing this issue trying to serial monitor the hello_world code,facing no issue on flashing but monitor doesn't works,
can anyone suggest me resolve this issue.