Skip to content
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

support to ATmega328P (Old Bootloader) #538

Closed
amamory opened this issue Jan 4, 2020 · 7 comments
Closed

support to ATmega328P (Old Bootloader) #538

amamory opened this issue Jan 4, 2020 · 7 comments
Labels
conclusion: invalid Issue/PR not valid

Comments

@amamory
Copy link

amamory commented Jan 4, 2020

Bug Report

I tried to upload the blink example to an Arduino Mega and it worked. However, when I tried to do the same with Arduino nano, the upload wont work with arduino-cli. This upload works when using arduino IDE because I can set the type of bootloader with Tools > Processor > ATmega328P (Old Bootloader). As far as I know, this is not possible with arduino-cli.

Current behavior

./arduino-cli upload -v -p /dev/ttyUSB0 -b arduino:avr:nano MyFirstSketch/

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "/home/lsa/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
     User configuration file is "/home/lsa/.avrduderc"
     User configuration file does not exist or is not a regular file, skipping

     Using Port                    : /dev/ttyUSB0
     Using Programmer              : arduino
     Overriding Baud Rate          : 115200

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00

Expected behavior

It seems that arduino-cli only uploads with baud rate 115200, but the Nano requires 57600 bps.

Environment

  • CLI version (output of arduino-cli version):
    arduino-cli: arduino-cli Version: 0.7.1 Commit: 7668c46
    arduino version: arduino-1.8.10
  • OS and platform: Ubuntu 18.04
@per1234
Copy link
Contributor

per1234 commented Jan 4, 2020

It's already supported, you just need to specify the cpu option atmega328old in the FQBN:

./arduino-cli upload -v -p /dev/ttyUSB0 -b arduino:avr:nano:cpu=atmega328old MyFirstSketch/

More information: #138

@per1234 per1234 closed this as completed Jan 4, 2020
@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Jan 4, 2020
@ericonr
Copy link

ericonr commented Feb 5, 2020

This should be documented more clearly somewhere, though. I only found out about it because I managed to find this issue.

@rustbuckett
Copy link

Agreed. I've been at this for 3 hours. I can finally go to bed.

@raczey

This comment has been minimized.

@ubidefeo

This comment has been minimized.

@raczey

This comment has been minimized.

@matthijskooijman

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid
Projects
None yet
Development

No branches or pull requests

7 participants