Skip to content

Baud rate forced to 115200 #52

Closed
Closed
@Prior99

Description

@Prior99

When trying to flash my Arduino Nano using this CLI, the CLI forces the Baud rate to 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:

/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.

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:

screenshot_2018-10-02_13-42-25

I suggest to spare the flag (as the default configuration file for avrdude already specifies the correct Baud rate).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions