Issue programming Atmega88

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have wired up my atmega 88 to my USBasp. Before I programed a hex file to it I could read the chip, and detect the MCU without any problems.

 

I loaded the hexfile "SwinSID Nano/MicroFirmware 2012-05-24" from here: http://www.swinkels.tvtom.pl/swi...

 

I was able to program (write) the flash without any issues, everything seemed good! I then went to program the fuses (I hadn't touched anything previously to them) and that's where things went wrong.

I can't seem to access the chip anymore and can't even check mcu.

 

avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: initialization failed, rc=-1
             Double check connections and try again, or use -F to override
             this check.

 

If I force "read flash" , I see:

 

avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: initialization failed, rc=-1
avrdude.exe: AVR device initialized and ready to accept instructions
avrdude.exe: Device signature = 0x000000 (retrying)
avrdude.exe: Device signature = 0x000000 (retrying)
avrdude.exe: Device signature = 0x000000
avrdude.exe: Yikes!  Invalid device signature.
avrdude.exe: Expected signature for ATmega88P is 1E 93 0F

avrdude.exe done.  Thank you.

 

 

I have tried 2 x Atmega88's both end up doing the same thing.

 

Does the Hex file contain the oscillator settings ? I have tried a 32mhz oscillator (as to the project) to pin 8/9 and that doesn't change anything.

 

I'm new at this and a bit out of my league so any help of suggestion will be most welcome :D

 

Regards.