CONFIG_ESPTOOLPY_PORT="COM5"
When I go to flash a program on to the LOLIN32 that works on the DevKitC, which I flash through COM3, the esp-idf flash python code insists on using COM3, the port that the DefKitC uses. Here's what the flasher says:
Note the "COM3" in the first line.Flashing binaries to serial port COM3 (app at offset 0x10000)...
esptool.py v2.8-dev
Serial port COM3
Traceback (most recent call last):
File "C:/msys32/home/Steve/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 3167, in <module>
_main()
File "C:/msys32/home/Steve/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 3160, in _main
main()
File "C:/msys32/home/Steve/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2855, in main
esp = chip_class(each_port, initial_baud, args.trace)
File "C:/msys32/home/Steve/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 237, in __init__
self._port = serial.serial_for_url(port)
File "C:/msys32/mingw32/lib/python2.7/site-packages/serial/__init__.py", line 88, in serial_for_url
instance.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()))
serial.serialutil.SerialException: could not open port 'COM3': WindowsError(2, 'The system cannot find the file specified.')
make: *** [/home/Steve/esp/esp-idf/components/esptool_py/Makefile.projbuild:67: flash] Error 1
What switch do I have to pull to get the flash program to respond to the "COM5" in the sdkconfig file?