Uploading code to ESP

Hello! I have ESP8266 Lolin NodeMCU board, and I use PlatformIO to upload the code. I faced to a problem with uploading. Also it doesn't has boot button - only flash and rst. Can someone help me?

This is platform.ini code:

[env:nodemcuv2]

platform = espressif8266

board = nodemcuv2

framework = arduino

monitor_speed = 9600

upload_port = /dev/ttyUSB0

Here's the message:

Processing nodemcuv2 (platform: espressif8266; board: nodemcuv2; framework: arduino)
--------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: Redirecting...
PLATFORM: Espressif 8266 (4.2.1) > NodeMCU 1.0 (ESP-12E
Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:

  • framework-arduinoespressif8266 @ 3.30102.0 (3.1.2)
  • tool-esptool @ 1.413.0 (4.13)
  • tool-esptoolpy @ 1.30000.201119 (3.0.0)
  • tool-mklittlefs @ 1.203.210628 (2.3)
  • tool-mkspiffs @ 1.200.0 (2.0)
  • toolchain-xtensa @ 2.100300.220621 (10.3.0)
    LDF: Library Dependency Finder -> Library Dependency Finder (LDF) — PlatformIO latest documentation
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 37 compatible libraries
    Scanning dependencies...
    No dependencies
    Building in release mode
    Retrieving maximum program size .pio\build\nodemcuv2\firmware.elf
    Checking size .pio\build\nodemcuv2\firmware.elf
    Advanced Memory Usage is available via "PlatformIO Home

Project Inspect"
RAM: [=== ] 34.4% (used 28200 bytes from 81920
bytes)
Flash: [=== ] 25.5% (used 266183 bytes from 1044464 bytes)
Configuring upload protocol...
AVAILABLE: espota, esptool
CURRENT: upload_protocol = esptool
Looking for upload port...
Using manually specified: /dev/ttyUSB0
Uploading .pio\build\nodemcuv2\firmware.bin
esptool.py v3.0
Serial port /dev/ttyUSB0
Traceback (most recent call last):
File "C:\Users\Developer.platformio\packages\tool-esptoolpy@1.30000.201119\esptool.py", line 3969, in
_main()
File "C:\Users\Developer.platformio\packages\tool-esptoolpy@1.30000.201119\esptool.py", line 3962, in _main
main()
File "C:\Users\Developer.platformio\packages\tool-esptoolpy@1.30000.201119\esptool.py", line 3551, in main
esp = chip_class(each_port, initial_baud, args.trace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Developer.platformio\packages\tool-esptoolpy@1.30000.201119\esptool.py", line 271, in init self.port = serial.serial_for_url(port)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Developer.platformio\penv\Lib\site-packages\serial_init
.py", line 90, in serial_for_url
instance.open()
File "C:\Users\Developer.platformio\penv\Lib\site-packages\serial\serialwin32.py", line 64, in open
raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port '/dev/ttyUSB0': FileNotFoundError(2, 'The system cannot find the path specified.', None, 3)
*** [upload] Error 1

I moved your topic to an appropriate forum category @abrilliantrobot.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.