How do I download a binary compiled in the online IDE to my laptop so I can flash my USB-connected Electron? (Possible documentation bug…)
To date, I’ve been using the particle CLI to compile and flash my Electron device, i.e:
$ particle compile electron test.ino $ particle flash --usb e_firmware_1501209643936.bin
… but decided it was time to try out the snazzy online IDE at build.particle.io. It works like a champ. I’ve now compiled my code, and when I hit the “lightning bolt” to download it, the IDE sagely advises me:
You’re trying to flash your app over cellular. This will use at least a few KB from your data plan. Instead, it’s recommended to download the app and flash it via USB.
… followed by a helpful link to the USB Flashing Guide for the Electron. However, the Flashing Guide doesn’t actually tell me how to download the binary. Rather, it states:
Assuming you’ve compiled and downloaded the firmware binary from Build IDE by clicking the cloud button next to the file name, you should be able to use the Particle CLI, mentioned above, to flash your application firmware
Here’s the rub: there’s no “cloud button next to the file name”.
So: How do I download the firmware binary that I’ve just compiled?