esp-idf使用make monitor命令出错

wakojosin
Posts: 2
Joined: Tue Mar 17, 2020 1:38 am

esp-idf使用make monitor命令出错

Postby wakojosin » Tue Mar 17, 2020 2:17 am

日志如下:

Code: Select all

MONITOR
--port /dev/ttyS7 --baud 115200 --toolchain-prefix xtensa-esp32-elf- --make make --print_filter
Namespace(baud=115200, elf_file=<_io.BufferedReader name='esp-idf-v3.3.1/examples/get-started/hello_world/build/hello-world.elf'>, eol='CR', make='make', port='/8
', print_filter='', toolchain_prefix='xtensa-esp32-elf-')
Serial<id=0xffc14bcc, open=False>(port='/8', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=
None, xonxoff=False, rtscts=False, dsrdtr=False)
--- idf_monitor on /8 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
可以看出make传入的参数没有问题,经过进一步测试发现是
Makefile.projbuild中的如下代码造成:

Code: Select all

ifeq ("$(OS)","Windows_NT")
# miniterm and idf_monitor both need a Windows Console PTY in order
# to correctly handle user input
MONITOR_PYTHON := winpty $(PYTHON)
endif
最后将这部分代码删除或改为如下即可:
ifeq ("$(OS)","Windows_NT")
# miniterm and idf_monitor both need a Windows Console PTY in order
# to correctly handle user input
#MONITOR_PYTHON := winpty $(PYTHON)
#MONITOR_PYTHON := mintty $(PYTHON)
MONITOR_PYTHON := $(PYTHON)
endif

Who is online

Users browsing this forum: No registered users and 71 guests