Arduino Nano with USBasp

Hi Guys!

I am using USBasp as programmer for Atmega2560 many times ago. It works perfectly.
But in my actual project i used Atmega328P (Arduino Nano). Sadly i cannot program it with BitBurner trough USBasp, got only this error massage:

avrdude: auto set sck period (because given equals null)
avrdude: error: program enable: target doesn't answer. 1 
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

What did i wrong? Maybe a newer USBasp firmware solve this problem? I readed that need to jumper J3 when target is below 1Mhz, but nano working on 20Mhz...

I have no knowledge or experience of BitBurner, whatever that is, but if you have a USBasp programmer and want to program a Nano can you not do it using the Arduino IDE ?

I try to used Arduino IDE too, but the problem and the error massage is the same...
And i like to use Bitburner, because i want to set lockbits too..

There are two issues being reported.
The first one about the sck period is due to avrdude attempting to use a feature of a newer firmware than what is in the device.
avrdude could have detected this and handled it better, but it doesn't and the main avrdude author was not interested in making it do this.
Even thought that message is issued, it is more of a warning than an actual error.
i.e. you should still be able to program the target device.

The second one, which is the actual error, is likely due to incorrect wiring to the target device or perhaps the target device is not powered.

Verify the wiring and power for the target.
It is easy to accidentally get the wiring backwards or flipped depending on the connectors or wiring being used.
If you are depending on the USBasp to power the target, some USBasp devices use a jumper to enable power for the target.
Be careful as some some USBasp devices can burn up or damage the target if the power jumper is installed and the target is also powered by say USB or external power.

--- bill

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.