-
-
Notifications
You must be signed in to change notification settings - Fork 398
Compilation Error: #84
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
Comments
Do you also have the Arduino IDE installed on the system? I'm getting the same thing with 0.3.3 on a mac with the IDE installed. This is trying to install the blink sketch from a non-default location:
|
You're calling the command wrong. This is what works for me. (My makefile):
Just give it the directory and it'll find the sketch. |
Thanks! I'll try again. I'm calling it from PHP like this: shell_exec('./arduino-cli compile --fqbn arduino:avr:nano ' . $path . ' -v > "./uploadoutput.txt"; ./arduino-cli upload -p ' . $port . ' --fqbn arduino:avr:nano:cpu=atmega328old ' . $path . ' -t -v'); The arduino-cli file is in a random folder. Beneath it is a folder called "code" that holds the Arduino folder and file. update: the same code works when placed on a headless Raspberry Pi which does not have the IDE. |
add cloud blink example for mkr nb 1500
The latest cli (
0.3.2
) fails to compile anything, giving the error:The text was updated successfully, but these errors were encountered: