bugAVR Downloader/UploaDEr - Bugs: bug #46461, Problems with lock bits with...


You are not allowed to post comments on this tracker with your current authentication level.

bug #46461: Problems with lock bits with parallel programmer

Submitted by:  mcudude <mcudude>
Submitted on:  Mon 16 Nov 2015 11:09:24 PM UTC  
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Mcudude
Open/Closed:  Open Release:  None
Programmer hardware:  Device type: 

Sun 22 Nov 2015 11:43:29 PM UTC, comment #1:

Anything? An explaination, a workaround? Fixed in 6.2?

mcudude <mcudude>
Mon 16 Nov 2015 11:09:24 PM UTC, original submission:

I got an STK500 dev kit lying around, and wanted to add it as an ISP programmer and a high voltage programmer option for the Arduino IDE. So far, so good. The STK500 as ISP works without any problems what so ever. (I started testing in Arduino IDE, but moved on by typing the commands directly into my terminal window)

The problem is when I use the stk500pp setting. I want to keep the original Arduino lock and unlock bits (0x0F, 0x3F), and be able to change fuses and upload a bootloader. When I erase the attached microcontroller and set the lock bit with this command:
avrdude -v -patmega32 -cstk500pp -P /dev/cu.UC-232AC -e -Ulock:w:0x3f:m -Uhfuse:w:0xde:m -Ulfuse:w:0xa1:m

I get this error message at the bottom:
avrdude: verification error, first mismatch at byte 0x0000
0xff != 0x3f
avrdude: verification error; content mismatch

The exact same avrdude command, using "-cstk500" returns no error.

As far as I've understood, there is a problem with the 6th and 7th lock bit. The HVPP tries to set the 7th and the 6th bit, but avrdude ignores these two bits, and the written fuse bits are actually 0xFF. This gives a content mismatch error.

Please have a look at this Arduino post, where the problem is discussed:

mcudude <mcudude>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mcudude (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.4