particle-cli: `flash` fails while `compile` works fine
Problem
particle compile photon
with a v2 library creates a binary which can then be OTA’d to a photon just fine, but particle flash <photon-device-name>
with the same library results in an error:
https://gist.github.com/timkettering/4fd1dddfc90d3a5812ad985594dbb032
Steps to reproduce
git clone https://github.com/timkettering/paper-lanterns
cd paper-lanterns
particle compile photon // should pass
particle flash <photon-device-name> // should fail
- Mac OSX 10.12.6
- CLI version 1.23.1
Notes
I’m reporting this problem for a user on IRC. I could not reproduce this issue with the same OS/CLI, but they have seen it happen with different devices and a different Mac with CLI 1.22.0. They also tried this smaller example and it failed the same way https://gist.github.com/technobly/357d805e959bc5b71eae62c52cd5e038
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (12 by maintainers)
@timkettering Here’s something to try. Open the Web IDE at https://build.particle.io, open the devices tab, click the arrow next to your device name and see what it says under System firmware target and On the device.
My thought is that your device firmware target is pinned to an old system firmware version so when you do
particle compile
it works because that uses the latest version by default, but when you doparticle flash
it tries to respect the system firmware version you had selected a long time ago.To fix this, select “On the device” in the system firmware version selector.