Skip to content

compile firmata and upload from command line #183

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

Closed
legrostdg opened this issue Jan 10, 2015 · 8 comments
Closed

compile firmata and upload from command line #183

legrostdg opened this issue Jan 10, 2015 · 8 comments

Comments

@legrostdg
Copy link

Is there a way to compile StandardFirmata.ino and to upload it to a board without using the IDE?

I tried to use Arduino-Makefile but I got sudar/Arduino-Makefile#117

@soundanalogous
Copy link
Member

There used to be but I removed the makefiles a while back since no one was keeping them up to date. Try this: https://github.com/firmata/arduino/blob/e2ae488888a005fbaec1ff302efce7140a8f3ba2/examples/StandardFirmata/Makefile. If it still works (or if you want to fix it if it's broken) I can add it back.

@ajfisher
Copy link

I use ino for this pretty much all the time. Involves a little bit of
symlinking things to the right place but vim + ino is a great dev combo.

On Sun, 11 Jan 2015 06:09 Jeff Hoefs [email protected] wrote:

There used to be but I removed the makefiles a while back since no one was
keeping them up to date. Try this:
https://github.com/firmata/arduino/blob/e2ae488888a005fbaec1ff302efce7140a8f3ba2/examples/StandardFirmata/Makefile.
If it works I can add it back.


Reply to this email directly or view it on GitHub
#183 (comment).

@soundanalogous
Copy link
Member

@ajfisher do you need the makefile to use ino or does it generate its own?

@ajfisher
Copy link

It does it's own though you can give it one to do things like set device
ports, arduino types etc.

On Sun, 11 Jan 2015 11:43 Jeff Hoefs [email protected] wrote:

@ajfisher https://github.com/ajfisher do you need the makefile to use
ino or does it generate its own?


Reply to this email directly or view it on GitHub
#183 (comment).

@soundanalogous
Copy link
Member

I'll leave this open in case anyone wants to contribute via creating documentation of how to do this and/or contributing any configs, makefiles, etc to make this happen.

@ajfisher
Copy link

I'll put some notes together around this as I've now got rid of using INO due to the project going stale.

With Interchange I've moved across to using the Arduino CLI tool and it works very well. Will put some documentation together relating to that process for those who are looking to do this CLI only.

@soundanalogous
Copy link
Member

Since this issue is not specific to Firmata and is really a broader issue about compiling and uploading sketches via the command line, I'm closing this issue.

@carrete
Copy link

carrete commented Mar 15, 2024

I understand this is a very old issue, but this did show-up in my search for an answer to the same question. With arduino-cli, these steps worked for me:

arduino-cli lib install firmata servo
arduino-cli compile -b arduino:avr:uno .
arduino-cli upload -b arduino:avr:uno -p /dev/ttyACM0 .

This was with a sketch that I had previously created in the IDE.

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

4 participants