Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flashing] Check for file extension #223

Closed
kennethlimcp opened this issue Mar 2, 2016 · 3 comments
Closed

[flashing] Check for file extension #223

kennethlimcp opened this issue Mar 2, 2016 · 3 comments
Milestone

Comments

@kennethlimcp
Copy link
Contributor

From the community:

particle flash --serial test01.ino is uploading the file to the device

http://community.particle.io/t/partice-cli-particle-flash-serial-test01-ino-not-working-as-expected/20647

@m-mcgowan
Copy link
Contributor

What's the least surprising behaviour here?

  1. have the file compiled in the cloud, and the binary flashed via serial
  2. output a warning that the file is not a .bin file and refuse to flash

My vote goes on 1, since it's then very similar to particle flash mydevice test01.ino.

@m-mcgowan m-mcgowan added this to the 1.20 milestone Feb 14, 2017
@m-mcgowan
Copy link
Contributor

A documentation change in the CLI docs indicates that particle serial flash and particle flash --serial presently require a binary to flash. Will keep this issue open because I feel that's only a stopgap - we can make flash to usb/serial/ota function similarly.

@kennethlimcp
Copy link
Contributor Author

A little extended description of the flow would be like:

1.) check if Particle Device is available on serial, if so,
2.) compile code from cloud and flash via serial
3.) Otherwise inform the user that the device is not detected on serial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants