Bug 1165612 - avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x8a
Summary: avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x8a
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Juergen Weigert
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-04 04:25 UTC by Dev Guy
Modified: 2020-09-14 05:49 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dev Guy 2020-03-04 04:25:25 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0
Build Identifier: 

Unable to get Arduino IDE to upload code to the "Arduino Nano".

I have checked this is working on Ubuntu Linux and also my MacBook Pro, so it's not the Arduino Nano device.

The error I am getting with opensuse is:

------------------------------
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 "/opt/local/apps/arduino-1.8.12/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/yadav/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x8a
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xfc
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x84
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x44
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x04
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xfc
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x84
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x44
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x04
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x44

avrdude done.  Thank you.

An error occurred while uploading the sketch
------------------------------

To check the USB device is plugged in and exists

$ lsusb

Do this with device not plugged in, then plugged in to see it appear.


Check the USB device is there (plug arduino to usb):

$ ls -l /dev/tty*

Look for "/dev/ttyUSB0"

Reproducible: Always

Steps to Reproduce:
1. Plugin Arduino Nano to USB
2. Run Arduino IDE
3. In IDE menu, go to File > Examples > 01. Basics > Blink
4. In IDE menu, go to Sketch > Upload
Actual Results:  
Upload error, "avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x8a"


Expected Results:  
Should upload code and control the LED flashing rate.

Setting up Linux permission

sudo usermod -a -G dialout $USER

(**) Make sure to reboot!

Setting up Arduino IDE

With Arduino Nano plugged into USB, from the IDE

Menu Tool > Board > "Arduino Nano"
Menu Tool > Processor > "ATmega 328 (old bootloader)"
Menu Tool > Port > "/dev/ttyUSB0"
Menu Tool > Programmer > "Arduino as ISP"
Comment 1 Dev Guy 2020-03-04 12:28:18 UTC
I've also checked demsg and here is the output

[ 4046.976625] usb 1-8: new full-speed USB device number 10 using xhci_hcd
[ 4047.295097] usb 1-8: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.62
[ 4047.295099] usb 1-8: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 4047.295100] usb 1-8: Product: USB2.0-Serial
[ 4047.332500] usbcore: registered new interface driver usbserial_generic
[ 4047.332505] usbserial: USB Serial support registered for generic
[ 4047.333609] usbcore: registered new interface driver ch341
[ 4047.333614] usbserial: USB Serial support registered for ch341-uart
[ 4047.333625] ch341 1-8:1.0: ch341-uart converter detected
[ 4047.342834] usb 1-8: ch341-uart converter now attached to ttyUSB0
Comment 2 Dev Guy 2020-09-14 05:49:34 UTC
Hello just reporting back that this just started to work maybe a month after I reported it and no longer seems to be an issue.