Arduboy Support

Hi, I’m trying to upload code to Arduboy using PlatformIO CLI.
Its Arduino Leonardo based.

Somtimes it works but In most cases I got

Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding
scons: *** [upload] Error 1

Arduino IDE works always. Only difference is this:

Forcing reset using 1200bps open/close on port /dev/cu.usbmodem1411
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.usbmodem1411, /dev/tty.Bluetooth-Incoming-Port,     /dev/tty.usbmodem1411, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.usbmodem1411, /dev/tty.Bluetooth-  Incoming-Port, /dev/tty.usbmodem1411, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.usbmodem1411, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.usbmodem1411, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/tty.Bluetooth-Incoming-Port, } => {}    
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/tty.Bluetooth-Incoming-Port, } / {/dev/cu.Bluetooth-Incoming-  Port, /dev/tty.Bluetooth-Incoming-Port, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/tty.Bluetooth-Incoming-Port, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/tty.Bluetooth-Incoming-Port, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/tty.Bluetooth-Incoming-Port, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.usbmodem1411, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.usbmodem1411, } =>   {/dev/cu.usbmodem1411, /dev/tty.usbmodem1411, }
Found upload port: /dev/cu.usbmodem1411

Anyone have a clue, what should I do before run avrdude ?


Please provide an output of

platformio serialports list

Here you are:

platformio serialports list
Hardware ID: n/a
Description: n/a

Hardware ID: USB VID:PID=2341:0036 LOCATION=20-1
Description: Arduino Leonardo