-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
Error compiling for --fqbn arduino:avr:mega (missing cpu flags) #17
Comments
I don't know if it helps but the output for
So I'm not using Arduino drivers. |
From what I see the board is discovered and you can use it by passing the right core during compilation. /dev/ttyUSB0 0403:6001 you get unknown board because the board does not seem to be original so vid and pid are not matching the standard Arduino Mega values. |
Hi! Thanks for your reply. But what's the right value for Arduino Mega 2560 in this line for the argument --fqbn:
arduino:avr:mega2560 by example? Best regards. |
Tried
It should be only |
For The result is:
|
@FernandoGarcia please try:
Since the Mega has additional options (see Java IDE menu options for it), the FQBN needs the cpu type specified. |
Thanks for your reply. The settings are right now but I have permissions problem again.
|
It worked now I had to make:
I don't know why I had this permissions problem since the first command in Arduino CLI.
A problem I had was pointed in #6 also. I'll close this issue for now. |
Add copyright header to source code files
Hi!
I have successfully installed Go compiler and Arduino CLI using this steps:
Then:
go get -u github.com/arduino/arduino-cli
Now following the https://github.com/arduino/arduino-cli#getting-started starts the problems.
arduino-cli sketch new MyFirstSketch
Returns:
So I tried using sudo the result is:
To try solved this issue I have created the folder manually using
sudo mkdir -p /home/pi/Arduino/MyFirstSketch
On next step I could not download package_index.json due permissions error again.
So I did:
After I have successfully installed AVR core using:
arduino-cli core install arduino:avr
The result for
arduino-cli core list
is:Now using
arduino-cli board list
the result is always:In this point I don't know what to do to go on since the CLI doesn't find a FQBN to my Arduino mega connected to USB port.
Can someone help please?
Best regards.
The text was updated successfully, but these errors were encountered: