Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
loading firmware to ESP32
#1
I have tried to load "MicroPython_LoBo_esp32_psram_all_bt" firmware to Lolin32 WEEMOS card. It is connected to Windows 10 machine COM6 port. I have dowloaded firmware, extracted into new directory (C:\Temp), changed working directory to the one where *.bin files are saved.

I used command:

Code:
esptool.py --chip esp32 --port COMM6 --baud 460800 --before default_reset --after no_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 bootloader/bootloader.bin  0xf000 phy_init_data.bin 0x10000 MicroPython.bin 0x8000 partitions_mpy.bin

And I get following error message:

Code:
C:\Temp\esp32_psram_all_bt>esptool.py --chip esp32 --port COMM6 --baud 460800 --before default_reset --after no_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 bootloader/bootloader.bin  0xf000 phy_init_data.bin 0x10000 MicroPython.bin 0x8000 partitions_mpy.bin
esptool.py v2.6
Serial port COMM6
Traceback (most recent call last):
  File "C:\Users\Arunas\AppData\Local\Programs\Python\Python36\Scripts\esptool.py-script.py", line 11, in <module>
    load_entry_point('esptool==2.6', 'console_scripts', 'esptool.py')()
  File "c:\users\arunas\appdata\local\programs\python\python36\lib\site-packages\esptool.py", line 2952, in _main
    main()
  File "c:\users\arunas\appdata\local\programs\python\python36\lib\site-packages\esptool.py", line 2652, in main
    esp = chip_class(each_port, initial_baud, args.trace)
  File "c:\users\arunas\appdata\local\programs\python\python36\lib\site-packages\esptool.py", line 222, in __init__
    self._port = serial.serial_for_url(port)
  File "c:\users\arunas\appdata\local\programs\python\python36\lib\site-packages\serial\__init__.py", line 88, in serial_for_url
    instance.open()
  File "c:\users\arunas\appdata\local\programs\python\python36\lib\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 'COMM6': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2)

I have then noticed that I have several Python versions available on my Windows x64 machine, so I uninstalled all of them and installed "python-2.7.15.amd64" . Tried again installing firmware on ESP32, but now I get error :


Code:
C:\Temp\esp32_psram_all_bt>esptool.py --chip esp32 --port COMM6 --baud 115200 --before default_reset --after no_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 bootloader/bootloader.bin  0xf000 phy_init_data.bin 0x10000 MicroPython.bin 0x8000 partitions_mpy.bin

failed to create process.

What am I doing wrong with installing firmware?

Used COM6 in esptool string rather than COMM6 like example string I found in this forum. COM6 worked!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)