Skip to content

Cannot upload to Arduino Diecimila - not in sync #139

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

Closed
moustacheful opened this issue Jan 31, 2019 · 6 comments
Closed

Cannot upload to Arduino Diecimila - not in sync #139

moustacheful opened this issue Jan 31, 2019 · 6 comments

Comments

@moustacheful
Copy link

Followed the instructions on the readme:

$ arduino core search diecimila 
Searching for platforms matching 'diecimila'

ID         	Version	Name              
arduino:avr	1.6.23 	Arduino AVR Boards

$ arduino core install arduino:avr 
Downloading arduino:avr-gcc@5.4.0-atmel3.6.1-arduino2...
arduino:avr-gcc@5.4.0-atmel3.6.1-arduino2 downloaded                                  
Downloading arduino:avrdude@6.3.0-arduino14...
arduino:avrdude@6.3.0-arduino14 downloaded                                            
Downloading arduino:arduinoOTA@1.2.1...
arduino:arduinoOTA@1.2.1 downloaded                                                   
Downloading arduino:avr@1.6.23...
arduino:avr@1.6.23 downloaded                                                         
Installing arduino:avr-gcc@5.4.0-atmel3.6.1-arduino2...
arduino:avr-gcc@5.4.0-atmel3.6.1-arduino2 installed
Installing arduino:avrdude@6.3.0-arduino14...
arduino:avrdude@6.3.0-arduino14 installed
Installing arduino:arduinoOTA@1.2.1...
arduino:arduinoOTA@1.2.1 installed
Installing arduino:avr@1.6.23...
arduino:avr@1.6.23 installed

$ arduino core list 
ID                	Installed	Latest	Name              
arduino:avr@1.6.23	1.6.23   	1.6.23	Arduino AVR Boards

$ arduino board list
FQBN    Port        	ID       	Board Name
    	/dev/ttyUSB0	0403:6001	unknown

$ arduino compile --fqbn arduino:avr:diecimila Arduino/AnalogReader 
Build options changed, rebuilding all
Sketch uses 930 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

$ arduino upload -p /dev/ttyUSB0 --fqbn arduino:avr:diecimila Arduino/AnalogReader
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
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Error: exit status 1
Error during upload.

During the sync checks, the rx leds flashes briefly.
This is a very old Arduino Diecimila. Anything I might be missing?

@moustacheful
Copy link
Author

Managed to upload this through the desktop application, but I haven't been able to do this through the CLI, what I was missing was switching the processor to atmega168, but passing it as is yields:

$ arduino upload -p /dev/ttyUSB0 --fqbn arduino:avr:diecimila:cpu=atmega168 Arduino/AnalogReader
Error: getting build properties for board arduino:avr:diecimila: invalid value 'cpu=atmega168' for option 'cpu'
Invalid FQBN.

I'm not sure where to get the exact string for these. Tried atmega168 and ATmega168, to no avail.

@per1234
Copy link
Contributor

per1234 commented Jan 31, 2019

I'm not sure where to get the exact string for these.

You can get it from boards.txt:
https://github.com/arduino/ArduinoCore-avr/blob/1.6.21/boards.txt#L111-L123
or from enabling File > Preferences > Show verbose output during > compilation in the Arduino IDE, compiling something for the desired board configuration, then extracting the FQBN from the first line in the output on the black console window at the bottom of the Arduino IDE window.

That part is related to #138

arduino upload -p /dev/ttyUSB0 --fqbn arduino:avr:diecimila:cpu=atmega168 Arduino/AnalogReader

Did you rename arduino-cli to arduino?

arduino:avr:diecimila:cpu=atmega168 is correct. It works fine for me. I can't imagine what the cause of that invalid value 'cpu=atmega168' for option 'cpu' error could be.

@scottchiefbaker
Copy link

This looks like the syntax for the Arduino IDE CLI mode.

Just to add on to what @per1234 said, arduino:avr:diecimila:cpu=atmega168 is the correct string. The fourth segment is board specific options (like CPU type, baud rate, etc). You can see some other examples in my Arduino Makefile project.

@per1234
Copy link
Contributor

per1234 commented May 24, 2019

@moustacheful did you ever find the cause of that error message?:

Error: getting build properties for board arduino:avr:diecimila: invalid value 'cpu=atmega168' for option 'cpu'
Invalid FQBN.

Have you checked to see if it still occurs with the latest version of arduino-cli?

@moustacheful
Copy link
Author

moustacheful commented May 24, 2019 via email

@per1234
Copy link
Contributor

per1234 commented May 24, 2019

Thanks for the update @moustacheful. I still can't reproduce the error so I'm going to go ahead and close this issue. If anyone encounters this type of error, please comment here and I can re-open.

@per1234 per1234 closed this as completed May 24, 2019
per1234 pushed a commit that referenced this issue Nov 16, 2020
…roperty-Func

Deprecate old c style functions for adding properties in favour of composition
per1234 added a commit that referenced this issue Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants