November 23, 2024, 03:44:06 AM

make monitor not working

Started by BobaTrek, May 09, 2018, 07:29:42 PM

Previous topic - Next topic

BobaTrek

I have the ESP32-EVB board with two relays on it.

I downloaded the software from https://github.com/OLIMEX/ESP32-EVB.

I went to the toggle_relay directory

I ran make menuconfig successfully per the instructions here:
https://github.com/OLIMEX/ESP32-EVB/tree/master/SOFTWARE

I ran make flash and successfully flashed the ESP32-EVB.

When I press the button on the ESP32-EVB, the relay clicks, so the software was flashed properly.

However, when I run make monitor, I get the following error:

$ make monitor
MONITOR
--- idf_monitor on COM6 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT)
configsip: 0,
Traceback (most recent call last):
  File "D:/msys32/home/Petersen/esp/esp-idf/tools/idf_monitor.py", line 575, in <module>
    main()
  File "D:/msys32/home/Petersen/esp/esp-idf/tools/idf_monitor.py", line 504, in main
    monitor.main_loop()
  File "D:/msys32/home/Petersen/esp/esp-idf/tools/idf_monitor.py", line 269, in main_loop
    self.handle_serial_input(data)
  File "D:/msys32/home/Petersen/esp/esp-idf/tools/idf_monitor.py", line 302, in handle_serial_input
    self.console.write_bytes(b)
  File "D:/msys32/mingw32/lib/python2.7/site-packages/serial/tools/miniterm.py", line 63, in write_bytes
    self.byte_output.write(byte_string)
  File "D:/msys32/home/Petersen/esp/esp-idf/tools/idf_monitor.py", line 567, in write
    self.output.write(b)
IOError: [Errno 22] Invalid argument
make: *** [/home/Petersen/esp/esp-idf/components/esptool_py/Makefile.projbuild:96: monitor] Error 1

I need make monitor to work so that I can start downloading my specific code and debug it.  Any idea why make flash works, but make monitor does not?