Log with ‘-v’ option:
Looking for upload port...
Auto-detected: COM26
Forcing reset using 1200bps open/close on port COM26
Waiting for the new upload port...
Uploading .pioenvs\leonardo\firmware.hex
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
Using Port : COM26
Using Programmer : avr109
Overriding Baud Rate : 57600
avrdude: Version 6.3, compiled on Sep 12 2016 at 17:24:16
System wide configuration file is "C:\Users\Roman\.platformio\packages\tool-avrdude\avrdude.conf"
avrdude: ser_open(): can't open device "\\.\COM26": �� ������� ����� ��������� ����.
avrdude done. Thank you.
*** [upload] Error 1
[ERROR] Took 6.83 seconds
So, I tried upload trough Arduino IDE with the detailed output and got:
Forcing reset using 1200bps open/close on port COM26
PORTS {COM1, COM26, } / {COM1, COM26, } => {}
PORTS {COM1, COM26, } / {COM1, COM26, } => {}
PORTS {COM1, COM26, } / {COM1, COM26, } => {}
PORTS {COM1, COM26, } / {COM1, COM26, } => {}
PORTS {COM1, COM26, } / {COM1, COM26, } => {}
PORTS {COM1, COM26, } / {COM1, COM26, } => {}
PORTS {COM1, COM26, } / {COM1, COM26, } => {}
PORTS {COM1, COM26, } / {COM1, COM26, } => {}
PORTS {COM1, COM26, } / {COM1, COM26, } => {}
PORTS {COM1, COM26, } / {COM1, COM26, } => {}
PORTS {COM1, COM26, } / {COM1, COM26, } => {}
PORTS {COM1, COM26, } / {COM1, COM26, } => {}
PORTS {COM1, COM26, } / {COM1, COM27, } => {COM27, }
Found upload port: COM27
C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\Arduino/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega32u4 -cavr109 -PCOM27 -b57600 -D -Uflash:w:C:\Users\Roman\AppData\Local\Temp\build5981244134228677886.tmp/Blink.cpp.hex:i
avrdude: Version 6.0.1, compiled on Apr 3 2014 at 23:12:16
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino/hardware/tools/avr/etc/avrdude.conf"
Using Port : COM27
Using Programmer : avr109
Overriding Baud Rate : 57600
AVR Part : ATmega32U4
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
It seems that PlatformIO try to connect to COM26 without waiting for new port (com27) will be open and Leonardo will be ready for uploading.