make monitor on Windows fails on COM port

HasseM
Posts: 3
Joined: Wed Apr 19, 2017 3:46 pm

make monitor on Windows fails on COM port

Postby HasseM » Thu Jun 01, 2017 1:50 pm

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)

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: make monitor on Windows fails on COM port

Postby ESP_Sprite » Fri Jun 02, 2017 1:58 am

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?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: make monitor on Windows fails on COM port

Postby WiFive » Fri Jun 02, 2017 2:50 am

ttyS3 (as configured in menuconfig)
Try COM4 instead

tpayne03
Posts: 19
Joined: Thu Oct 05, 2017 8:24 pm

Re: make monitor on Windows fails on COM port

Postby tpayne03 » Thu Nov 02, 2017 9:11 pm

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.

Who is online

Users browsing this forum: No registered users and 55 guests