We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to flash my Arduino Nano using this CLI, the CLI forces the Baud rate to 115200.
115200
I invoked the CLI like this:
arduino-cli --debug upload -b arduino:avr:nano:cpu=atmega328 -p /dev/ttyUSB0 -t -v .
With this high Baud rate, the board can't get in sync with the CLI.
Using ps auxw, I was able to determine how arduino-cli calls avrdude:
ps auxw
arduino-cli
avrdude
/home/prior/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/bin/avrdude -C/home/prior/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB0 -b115200 -D -Uflash:w:./..arduino.avr.nano.cpu=atmega328.hex:i
Even when overriding the Baud rate in ~/.avrduderc, this has no effect.
~/.avrduderc
I can successfully flash my Arduino Nano like this:
avrdude -v -patmega328p -carduino -P/dev/ttyUSB0 -b57600 -D -Uflash:w:..arduino.avr.nano.cpu=atmega328.hex:i
Could you remove the -b115200 from the commandline when invoking avrdude? The Arduino IDE also doesn't pass that flag:
-b115200
I suggest to spare the flag (as the default configuration file for avrdude already specifies the correct Baud rate).
The text was updated successfully, but these errors were encountered:
The avrdude configuration file is not going to have the communication speed of the bootloader on your board.
You simply need to use the correct FQBN for your old or clone Nano:
arduino:avr:nano:cpu=atmega328old
The FQBN you're using is for the new official Nanos, which have a bootloader that communicates at 115200.
Sorry, something went wrong.
Thank you for your quick response. I will try this later and close the issue.
Merge pull request #52 from arduino/per1234/ldflags-schema-checks
f5274e9
Add schema provided checks for library.properties ldflags field
No branches or pull requests
When trying to flash my Arduino Nano using this CLI, the CLI forces the Baud rate to
115200
.I invoked the CLI like this:
With this high Baud rate, the board can't get in sync with the CLI.
Using
ps auxw
, I was able to determine howarduino-cli
callsavrdude
:Even when overriding the Baud rate in
~/.avrduderc
, this has no effect.I can successfully flash my Arduino Nano like this:
Could you remove the
-b115200
from the commandline when invokingavrdude
?The Arduino IDE also doesn't pass that flag:
I suggest to spare the flag (as the default configuration file for
avrdude
already specifies the correct Baud rate).The text was updated successfully, but these errors were encountered: