make monitor does not work on Win 7

Meirssv
Posts: 1
Joined: Thu Sep 14, 2017 12:15 pm

make monitor does not work on Win 7

Postby Meirssv » Thu Sep 14, 2017 12:36 pm

Hello,

When I run the "make monitor" command in the msys2 mingw32 shell after following the "setup toolchain" guide the shell windows get "corrupted"...

Everything went well, even the make flash finished with success. The "make monitor" command just prints out "MONITOR" and exits back to the prompt. Everything I type in now is invisible... but the shell responds. if I type 'pwd' and enter for example, I get to see the current folder:

Code: Select all

svme@LTDELL11986 MINGW32 ~/esp/hello_world
$ make monitor
MONITOR

svme@LTDELL11986 MINGW32 ~/esp/hello_world
$ /c/Users/svme/esp/hello_world

svme@LTDELL11986 MINGW32 ~/esp/hello_world
$
What might be happening here?

andreykorol
Posts: 5
Joined: Thu Jul 20, 2017 6:04 am

Re: make monitor does not work on Win 7

Postby andreykorol » Wed Sep 27, 2017 7:47 am

try to change in ".../components/esptool_py/Makefile.projbuild"
MONITOR_PYTHON := winpty $(PYTHON)
to
MONITOR_PYTHON := start $(PYTHON)

also i comment this strings:
# [ -f $(APP_ELF) ] || echo "*** 'make monitor' target requires an app to be compiled and flashed first."
# [ -f $(APP_ELF) ] || echo "*** Run 'make flash monitor' to build, flash and monitor"
# [ -f $(APP_ELF) ] || echo "*** Or alternatively 'make simple_monitor' to view the serial port as-is."
# [ -f $(APP_ELF) ] || exit 1

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: make monitor does not work on Win 7

Postby ESP_Angus » Tue Oct 03, 2017 12:51 am

Hi Meirssv & andrey,

There must be something different about your Windows 7 environments which is causing this problem. I just verified on a clean Windows 7 VM that monitor works correctly with the latest Windows toolchain+environment and IDF master branch, and it does.

The problems I've seen on Windows installs are either due to system installed Python taking precedence (do you have Python installed?) or due to using the wrong terminal (not mingw32.exe), although that doesn't seem to be the problem for Meirssv.

Can you both please run the following two commands in your terminals and post the output:

Code: Select all

env | grep PATH
env | grep -i python
EDIT: Maybe is could also have something to do with locale. What language are you each using Windows in?

andreykorol
Posts: 5
Joined: Thu Jul 20, 2017 6:04 am

Re: make monitor does not work on Win 7

Postby andreykorol » Wed Nov 08, 2017 7:58 am

ESP_Angus wrote: Can you both please run the following two commands in your terminals and post the output:

Code: Select all

env | grep PATH
env | grep -i python
Hi, ESP_Angus

I'm sorry to be late with the reply. Results:

Code: Select all

John@PC180717 MINGW32 ~
$ env | grep PATH
COMMANDER_PATH=C:\totalcmd
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
IDF_PATH=C:/msys32/home/John/esp/esp-idf
ACLOCAL_PATH=/mingw32/share/aclocal:/usr/share/aclocal
MANPATH=/mingw32/share/man:/usr/local/man:/usr/share/man:/usr/man:/share/man
PATH=/mingw32/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/opt/xtensa-esp32-elf/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PKG_CONFIG_PATH=/mingw32/lib/pkgconfig:/mingw32/share/pkgconfig
INFOPATH=/usr/local/info:/usr/share/info:/usr/info:/share/info
HOMEPATH=\Users\John
ORIGINAL_PATH=/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/
VBOX_MSI_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\

John@PC180717 MINGW32 ~
$ env | grep -i python

John@PC180717 MINGW32 ~
$

f.h-f.s.
Posts: 215
Joined: Thu Dec 08, 2016 2:53 pm

Re: make monitor does not work on Win 7

Postby f.h-f.s. » Wed Nov 08, 2017 9:31 am

Are you able to run python from your msys2 terminal window?
something like: "python /path/to/esp-idf/tools/idf_monitor.py --port COM6 --baud 115200 /path/to/build/myproject.elf"
or "/mingw32/bin/python /path/to/esp-idf/tools/idf_monitor.py --port COM6 --baud 115200 /path/to/build/myproject.elf"

Who is online

Users browsing this forum: No registered users and 70 guests