[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] Problem writing lock byte to atmega8 using avrdude and av
Re: [avr-chat] Problem writing lock byte to atmega8 using avrdude and avrisp mkII
Sun, 18 Jun 2006 20:08:49 +0200 (MET DST)
As "Michael Jonas" <address@hidden> wrote:
>As the original script I am trying to write the lock byte first. The
>connection to the programmer and to the board seems to work ok, but
>somehow I am unable to write the lock byte.
>/usr/local/bin/avrdude -v -p m8 -b 115200 -P usb -c avrispmkII -U
You cannot write a lock byte to 0xff, you can only clear bits in
the lock byte by writing. The way back is *only* possible by
a chip erase. As a chip erase is implied by specifying a -U
flash:w option, you probably don't need to do anything here.
J"org Wunsch Unix support engineer