I am currently trying to program the ATMEGA644P using a usbasp connector, and I keep encountering this problem when using the ‘make’ and ‘make bake’ command
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: programm enable: target doesn’t answer. 1
avrdude: initialization failed, rc=-1
I have attached a jumper to slow down the clock on the usbasp, as to not program at 375kHz, but this problem still is occuring. when I use the -F command to bypass this error, I then receive this:
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA644P is 1E 96 0A
This is essentially telling me that the ucontroller isn’t even being recognized, despite the thing being wired correctly with the connector. Any ideas on how to circumvent this problem? I’ve seen somewhere that a blank mega needs an external clock or crystal driving the xtal1/2 pins in order to be programmed, but I’m not sure if this is the problem I am encountering.
Any pointers would be much appreciated, thank you!