I want to use the particle CLI to compile and flash my code, but every time I try to do so it just re-flashes the default Tinker app. Here’s a comparison of the flows I’m following, using a super basic blink program:
void setup() {
pinMode(D7, OUTPUT);
digitalWrite(D7, HIGH);
}
void loop() {
digitalWrite(D7, LOW);
delay(300);
digitalWrite(D7, HIGH);
delay(300);
}
First flow - web IDE
Steps:
- Paste code into build.particle.io
- Click flash
Outcome:
- Device resets
- Device LED D7 starts blinking
-
particle listresults in no available functions
Second flow - CLI
Steps:
- Be in empty directory
- Create empty app.ino file
- Paste code into file
- Run
particle compile boron --saveTo=out.bin - Put device in DFU (yellow flashing) mode
- Run
particle flash --usb out.binORparticle flash <device_name> out.bin(I’ve tried both)
Outcome:
- Device resets
- Device LED D7 does not blink
-
particle listresults in digitalread, digitalwrite, analogread, analogwrite commands
What am I doing wrong? Why can’t I flash my boron over USB? Why is it falling back to Tinker?
- I’ve run
particle updateandparticle update-cli -
particle compileresults in different output for different files


