Page 1 of 1

make monitor on Windows fails on COM port

Posted: Thu Jun 01, 2017 1:50 pm
by HasseM

Code: Select all

$ make monitor
MONITOR
--- idf_monitor on /4 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
Exception in thread Thread-2:
Traceback (most recent call last):
  File "C:/msys32/mingw32/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "C:/msys32/mingw32/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "C:/msys32/home/Hasse/esp/esp-idf/tools/idf_monitor.py", line 116, in _run_outer
    self.run()
  File "C:/msys32/home/Hasse/esp/esp-idf/tools/idf_monitor.py", line 188, in run
    self.serial.open()
  File "C:/msys32/mingw32/lib/python2.7/site-packages/serial/serialwin32.py", line 62, in open
    raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
SerialException: could not open port '/4': WindowsError(2, 'Het systeem kan het opgegeven bestand nie
t vinden.')
Make flash works perfectly. My DevKitC is on COM4, which is ttyS3 (as configured in menuconfig)

Re: make monitor on Windows fails on COM port

Posted: Fri Jun 02, 2017 1:58 am
by ESP_Sprite
Whoah, Nederlandse fout-berichten in een Python-codedump, da's de eerste keer dat ik dat zie :)

Can you run 'make -V monitor' to see what the command line invoking the monitor command is?

Re: make monitor on Windows fails on COM port

Posted: Fri Jun 02, 2017 2:50 am
by WiFive
ttyS3 (as configured in menuconfig)
Try COM4 instead

Re: make monitor on Windows fails on COM port

Posted: Thu Nov 02, 2017 9:11 pm
by tpayne03
I'll confirm that using the Windows COM notation fixed this error vs. the Linux port notation.

I changed the project menuconfig to the COM notation and the HelloWorld flashed and ran correctly on the monitor.