Skip to content

"not in sync" error when uploading to Nano board after updating IDE to 2.3.0 #2357

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
3 tasks done
MarkDerbyshire opened this issue Feb 7, 2024 · 4 comments
Closed
3 tasks done
Assignees
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@MarkDerbyshire
Copy link

Describe the problem

arvdude fails to sync when uploading to boards after 2.3.0 update

To reproduce

Update to 2.3.0 and try to upload

Expected behavior

Able to upload to boards
Avrdude 2-3-0

Arduino IDE version

2.3.0

Operating system

Windows

Operating system version

Windows 10 Home - 22H2

Additional context

Rolled back to 2.2.1 and can now upload sketches to boards

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@MarkDerbyshire MarkDerbyshire added the type: imperfection Perceived defect in any part of project label Feb 7, 2024
@per1234 per1234 self-assigned this Feb 7, 2024
@per1234
Copy link
Contributor

per1234 commented Feb 7, 2024

Hi @MarkDerbyshire. We will need some additional information from you in order to investigate this problem:

Please add a comment here to tell us which board you have selected from the Tools > Board menu in Arduino IDE.


We also need you to post the full verbose output from an upload attempt:

  1. Select File > Preferences... from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Uncheck the box next to Show verbose output during: > compilation in the "Preferences" dialog.
  3. Check the box next to Show verbose output during > ☐ upload.
  4. Click the "OK" button.
  5. Select Sketch > Upload from the Arduino IDE menus.
  6. Wait for upload to fail.
  7. After the upload fails you'll see a button on the "Upload error" notification at the bottom right corner of the IDE window: COPY ERROR MESSAGES. Click that button.
  8. Paste the error messages in a comment here (please use code fencing).

@per1234 per1234 added topic: code Related to content of the project itself status: waiting for information More information must be provided before work can proceed labels Feb 7, 2024
@MarkDerbyshire
Copy link
Author

Board is the Arduino Nano

Sketch uses 5884 bytes (19%) of program storage space. Maximum is 30720 bytes.
Global variables use 518 bytes (25%) of dynamic memory, leaving 1530 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\mark\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\mark\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM3" -b115200 -D "-Uflash:w:C:\Users\mark\AppData\Local\Temp\arduino\sketches\C850D7B61DBDB4E14C76A51EBDE206D3/LED_Control_Multiplex.ino.hex:i"

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 "C:\Users\mark\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM3
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Failed uploading: uploading error: exit status 1

@per1234
Copy link
Contributor

per1234 commented Feb 7, 2024

OK, it is as I suspected. I think the way Arduino IDE stores the board settings changed since the 2.2.1 release (probably #2241). This means that all the "custom board options" menus have reset to their default settings.

You are using either a very old official Nano board, or else a cheap Chinese derivative board that still has the pre-2018 bootloader. This means you must select Tools > Processor > ATmega328P (Old Bootloader) from the Arduino IDE menus to configure it for uploads to this board. The default value is Tools > Processor > ATmega328P, which causes this error when you upload.

Please give that a try and then let us know whether the upload is now successful.

@per1234 per1234 changed the title Unable to connect to boards after version 2.3.0 Update "not in sync" error when uploading to Nano board after updating IDE to 2.3.0 Feb 7, 2024
@MarkDerbyshire
Copy link
Author

That worked

Thank You for your time. Much appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants