Skip to content

avrdude fails to verify lock bits when burning bootloader #2884

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

Open
3 tasks done
rhormigo opened this issue Apr 10, 2025 · 0 comments
Open
3 tasks done

avrdude fails to verify lock bits when burning bootloader #2884

rhormigo opened this issue Apr 10, 2025 · 0 comments
Labels
type: imperfection Perceived defect in any part of project

Comments

@rhormigo
Copy link

rhormigo commented Apr 10, 2025

Describe the problem

In IDE 2.3.4, when burning bootloader for Arduino Mega2560 with Atmel-ICE lock bits verification fails. Everything previous is written and verified ok and board works (but with the bootloader area unprotected). Running from cmd the very same avrdude line from the Arduino IDE works and verifies ok. This only happens in the IDE, that makes me think of a timing issue. In the IDE two avrdudes commands are run, one for the fuses, then the second one (perhaps to soon) for the bootloader and lock bits. When I run this from cmd I only run second one that is what it fails in the IDE. I also tried slow down the clock to 32uS from programmers Atmel ICE entry, but same results.

This is the output where it fails:
_avrdude: reading input file "0xCF"
avrdude: writing lock (1 bytes):

Writing | ################################################## | 100% 0.00s

avrdude: 1 bytes of lock written
avrdude: verifying lock memory against 0xCF:
avrdude: load data lock data from input file 0xCF:
avrdude: input file 0xCF contains 1 bytes
avrdude: reading on-chip lock data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0xff != 0xcf
avrdude: verification error; content mismatch

avrdude done. Thank you.

Failed to burn bootloader: uploading error: exit status 1_

To reproduce

Burning bootloader for Arduino Mega2560 with Atmel-ICE. Using a fast Dell quite new computer (2024) with Windows 11.

Expected behavior

Go thru the burning with no errors!

Arduino IDE version

2.3.4

Operating system

Windows

Operating system version

11

Additional context

No response

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
@rhormigo rhormigo added the type: imperfection Perceived defect in any part of project label Apr 10, 2025
@per1234 per1234 transferred this issue from arduino/arduino-ide Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

1 participant