institut-galilee / Lab-One

Through this lab, you will be able to setup a complete cross-compiling environment on your personal laptop
0 stars 0 forks source link

Flashing on the wrong USB port #8

Open Mohaabenz opened 5 years ago

Mohaabenz commented 5 years ago

Generating esp32.common.ld esptool.py v2.6-beta1 Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)... esptool.py v2.6-beta1 Serial port D:/momo/Documents/IOT/msys32/dev/ttyUSB0 Traceback (most recent call last): File "D:/momo/Documents/IOT/msys32/home/momo_/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2865, in main() File "D:/momo/Documents/IOT/msys32/home/momo_/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2858, in main main() File "D:/momo/Documents/IOT/msys32/home/momo_/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2565, in main esp = chip_class(each_port, initialbaud, args.trace) File "D:/momo/Documents/IOT/msys32/home/momo_/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 213, in init self._port = serial.serial_forurl(port) File "D:/momo/Documents/IOT/msys32/mingw32/lib/python2.7/site-packages/serial/init.py", line 88, in serial_forurl instance.open() File "D:/momo/Documents/IOT/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 'D:/momo/Documents/IOT/msys32/dev/ttyUSB0': WindowsError(2, 'Le fichier sp\xe9cifi\xe9 est introuvable.') make: *** [/home/momo/esp/esp-idf/components/esptool_py/Makefile.projbuild:63: flash] Error 1 -bash: Generating : commande introuvable

HamidiMassinissa commented 5 years ago

As discussed together, you are trying to flash the esp32 through port /dev/ttyUSB0 which is not defined. The solution is then to change this port via make menuconfig and name it after the one that is displayed in the Windows device manager.