Hi,
avrdude failed writing 0x3C in the lock register, after (silly?) attempts I end up with lock bits being 0x00 (terminal says d lock 0000 00).
Following the doc, the lock bits are now programmed and there is no more write or read access to memory. However I can still dump part of the flash memory (d flash 0 16) ?? I am confused.
Is the only possibility left is to erase the chip?. But what next?
Thanks for your hints
Philippe
Hereafter part of the avrdude log
avrdude: Version 6.1, compiled on Mar 13 2014 at 00:09:49
Copyright (c) 2000-2005 Brian Dean,
http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\avrdude\avrdude.conf"
Using Port : usb
Using Programmer : usbasp
avrdude: seen device from vendor ->www.fischl.de<-
avrdude: seen product ->USBasp<-
AVR Part : ATmega128
Chip Erase delay : 9000 us
......
avrdude: verifying efuse memory against 0xff:
avrdude: load data efuse data from input file 0xff:
avrdude: input file 0xff contains 1 bytes
avrdude: reading on-chip efuse data:
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: 1 bytes of efuse verified
avrdude: reading input file "0x3c"
avrdude: writing lock (1 bytes):
Writing | ***failed;
################################################## | 100% 0.08s
avrdude: 1 bytes of lock written
avrdude: verifying lock memory against 0x3c:
avrdude: load data lock data from input file 0x3c:
avrdude: input file 0x3c contains 1 bytes
avrdude: reading on-chip lock data:
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0x00 != 0x3c
avrdude: verification error; content mismatch
avrdude: safemode: lfuse reads as 2F
avrdude: safemode: hfuse reads as C4
avrdude: safemode: efuse reads as FF
avrdude: safemode: Fuses OK (E:FF, H:C4, L:2F)
avrdude done. Thank you.