error programing atmega32 lock bits
http://web.engr.oregonstate.edu/~traylor/ece473/lectures/fuses.pdf
check out this pdf. You Will find your answer.

avrdude> w efuse 0 0xff
//write extended fuse
//write extended fuse


  
    
      w efuse 0 0xff 
      avrdude> w hfuse 0 0x89
      //wire high fuse
      //wire high fuse
      w hfuse 0 0x89 
    
  


avrdude> w lfuse 0 0x2f
//write low fuse
//write low fuse


  
    
      w lfuse 0 0x2f
    
  


Double check 0XFC is correct value or not?