Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:15 14 Feb 2026 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Getting USBasp to work

Author Message
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 1656
Posted: 03:40am 13 Feb 2026
Copy link to clipboard 
Print this post

G'Day Guy's,
           Well as per my inverter build woes went down to town and bought the Duinotech USBasp programmer and the 6 pin adapter.

Now trying on win10 I did I had to download the zadig driver so did a reboot to ensure and you guessed it no programmer found. Tried on 3 new nano's too but everytime no go.

So decided to try MX.25 and got the same no programmer found, now on research it was said to use USBasp on linux one has to be signed in as root. So went in my permission and added root then did a reboot with still no change.

Now I left the old bootloader option on both systems and changed the programmer to USBasp and trying to burn a bootloader gives the error

error: cannot set sck period; please check for USBasp firmware update
      expected signature for ATmega328P is 1E 95 0F

could it actually be this programmer I bought doesn't have the firmware on or something?
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 2024
Posted: 04:31am 13 Feb 2026
Copy link to clipboard 
Print this post

  Quote  error: cannot set sck period; please check for USBasp firmware update

Ignore this, it is not an error, it always appears.

  Quote  expected signature for ATmega328P is 1E 95 0

If ATmega328 part is listed (as above) it will be fine, there are a number of reasons for this and if someone wants to give a few go for it.

Most people set the override flag and force the Programming to continue.

I wrote a full description of this and posted a few times.

If you click on the Link in my Sig and download the Full Download.zip, you will find a "Nano Hex and Menu.PDF" along with the other files, it has a lot of info.

Note: None of the files except for the PDF can be used in Linux, so delete the rest.

If you have trouble using the IDE, I can post a simple Linux script for you to edit the filename and path in order to program the Nano.
.
Edited 2026-02-13 14:35 by KeepIS
NANO Inverter: Full download - Only Hex Ver 8.2Ks
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4232
Posted: 08:54am 13 Feb 2026
Copy link to clipboard 
Print this post

On Linux the only reason to try root is to see if it works when being a normal user didn't.  (It's not the best thing to try but it's quick and easy.)

If being root does work then you've a permissions problem i.e. the user hasn't got the right access permission for the device file.

The device file is typically /dev/ttyACM0 or /dev/ttyUSB0 or the like.  Look at the owner & group of the relevant device file.

Typically the user needs to be added to the dialout group - whatever the device file shows.

The reason it "works" as root is that bypasses all the security checks and lets root do anything, no matter how bad it may be.  Do not be root except when necessary.

Instead of trying it as root you can just start by checking the permissions mentioned.

John
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 2024
Posted: 09:32am 13 Feb 2026
Copy link to clipboard 
Print this post

Just to add to info that Johns gave you, I already had it typed  

  Bryan1 said  So decided to try MX.25 and got the same no programmer found, now on research it was said to use USBasp on linux one has to be signed in as root. So went in my permission and added root then did a reboot with still no change

Assign root access to the device in crude and usually does not hold after a restart.

All you need to do is use MX User Manager, select group Membership tab, and tick dialout, this makes you, the user, a member of the dialout group.

There is usually one extra step needed in almost every Linux distro to correctly assign the USBasp USB device to the dialout group. Then you don't have to mess with root access not holding. I'll post the info if you need this, I don't want to make this sound confusing here.  

  Quote   Now I left the old bootloader option on both systems and changed the programmer to USBasp and trying to burn a bootloader gives the error.

As stated in last post, that is not an error, however if you get that message it means that the USBasp programmer is detected and can be accessed.

Unfortunately the Arduino IDE config won't allow you to program the Nano if the Chip ID does not "EXACTLY" match the selected Processor "ATmega328P" in your case.

I can bundle a zip for you that has Avrdude and it's config file, along with a simple script to allow you to program the Nano that I mentioned before, and the extra info to get it working if you still can't access it
.
Edited 2026-02-13 19:34 by KeepIS
NANO Inverter: Full download - Only Hex Ver 8.2Ks
 
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 1656
Posted: 10:00am 13 Feb 2026
Copy link to clipboard 
Print this post

I did try on my good laptop with win10 and downloaded that zadig driver and still no change, now on my shed computer got a phantom admin that will stuff everything up for me and I would of thought it would of worked on that laptop.

Now on MX.25 the dialout box is ticked and thats the first thing I looked at then trying to google it the AI one at the top did show how to do a batch file in /dev to allow the USBasp to work. Well I did try that out with no change so basically gave up on it for the day.
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 749
Posted: 11:10am 13 Feb 2026
Copy link to clipboard 
Print this post

Maybe some hints:

to find out which port the programmer claims open a terminal and execute
tail -f /var/log/syslog


Now plug in the programmer and see the log.
Enter the same port in the Arduino IDE.

I'm using Optiboot as bootloader
Edit: and I'm using only the legacy IDE 1.8.19

Edit2: make sure, your user is member of the "dialout" group
Edited 2026-02-13 21:33 by dddns
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4232
Posted: 12:54pm 13 Feb 2026
Copy link to clipboard 
Print this post

In case you have no /var/log/syslog try

journalctl -f

John
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026