-
-
Notifications
You must be signed in to change notification settings - Fork 398
Cannot upload on Arduino MEGA2560 R3 #929
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
Hi @Hexer10. Unlike the Arduino IDE, Arduino CLI doesn't come with any boards cores pre-installed. So, even with the Arduino AVR Boards core of your Mega that you are used to always having available with the Arduino IDE, you must install it first. You can do that using the
|
@per1234 Thanks for the quick reply! That solved my issue but still I cannot make it to upload my file, here is the commandline output:
(I've tried with and without --input-dir) |
The problem is caused by running the command from inside the sketch folder and then also specifying the sketch argument to the command. When you run an
which will work. However, usage of your original command should be supported, so I would consider this is a bug. We have a previous report of this here: #630 (comment), and a related report here: #691, but we don't have a dedicated issue for this. Would you mind opening a dedicated issue for that bug? FYI, it doesn't cause any problems, but the |
@per1234 |
I think that's a good idea. Although I think the option works just as it should, It's a bit unintuitive that the input file is determined by combining the sketch name argument with the path specified by the However, just to avoid any confusion for the people reading this, I should note that the bug reported in #929 (comment) is not related to the use of
or:
I just tried #777 and it seems that you can specify any any filename in any path, as I'd expect:
|
@per1234 |
Bug Report
Current behavior
This command:
arduino-cli upload arduino_.ino --port COM6 --fqbn "arduino:avr:mega:cpu=atmega2560"
fails with the given error:
Expected behavior
Upload the code to Arduno MEGA2560
Environment
Additional context
The FQBN should be right since the Arduino IDE uses that during the build (see -fqbn=arduino:avr:mega:cpu=atmega2560):
The text was updated successfully, but these errors were encountered: