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

Contradictory error when flashing with "source_folder" #142

Closed
rwaldron opened this issue Sep 28, 2015 · 2 comments
Closed

Contradictory error when flashing with "source_folder" #142

rwaldron opened this issue Sep 28, 2015 · 2 comments

Comments

@rwaldron
Copy link
Contributor

$ particle flash
NAME:
particle flash

DOES:
    flash remotely pushes a compiled firmware binary to one of your devices over the air, or directly
    over USB / dfu.  If you send it one or more source files, or a directory of source, it will compile
    that remotely first, and push the compiled binary to your device instead, or in the case of code errors
    will show you the errors from the server.

    You can also substitute "tinker", "voodoo", or "cc3000" to flash the provided app.

    particle flash --usb tinker
    particle flash my_device tinker

USE:
    particle flash [--usb or device_id] firmware.bin
    particle flash [--usb or device_id] source_folder
    particle flash [--usb or device_id] file1.ino file2.cpp file2.h file3.cpp

Specifically:

particle flash [--usb or device_id] source_folder

But...

$ particle flash --usb dir_containing_cpp_files
Found DFU device 2b04:d006
checking file  dir_containing_cpp_files
spawning dfu-util -d 2b04:d006 -a 0 -i 0 -s 0x080A0000:leave -D dir_containing_cpp_files
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

dfu-util: Could not read 170 bytes from dir_containing_cpp_files: Is a directory

Error writing firmware...dfu-util: Could not read 170 bytes from dir_containing_cpp_files: Is a directory

Maybe I've misunderstood?

@KarbonDallas
Copy link
Contributor

@rwaldron, uh oh! that definitely looks like a bug from here... What version of the CLI are you using?

@brycekahle
Copy link
Contributor

It looks like you are expecting a cloud compile but a USB flash, is that correct @rwaldron?

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

No branches or pull requests

3 participants