Problems with avrdude and USBtinyisp

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
digitalkid2analogman
 
Posts: 5
Joined: Fri Jun 29, 2018 9:18 am

Problems with avrdude and USBtinyisp

Post by digitalkid2analogman »

I just finished building the usbtinyisp kit from adafruit and installed the drivers. However, when I went to test to see if the programmer is recognized by avrdude in the command line, I got some errors.

I am following the steps on https://learn.adafruit.com/usbtinyisp/avrdude that webpage.

The usbtiny shows up in the device manager and the green LED on it is lit. When I type this in the command line:

Code: Select all

avrdude -c usbtiny -p m8
I get the following response:

Code: Select all

avrdude: can't open config file "": Invalid argument
avrdude: error reading system wide configuration file ""
It seems like that after installing the drivers for the device, avrdude can no longer find its config file... Before I installed these drivers, avrdude was working properly and was executable from the windows cmd line.

I am running windows 8.1 and have arduino IDE 1.6.13 installed. Please help...

User avatar
Franklin97355
 
Posts: 23903
Joined: Mon Apr 21, 2008 2:33 pm

Re: Problems with avrdude and USBtinyisp

Post by Franklin97355 »

First off I would recommend updating the IDE to the latest version (1.8.5)

User avatar
digitalkid2analogman
 
Posts: 5
Joined: Fri Jun 29, 2018 9:18 am

Re: Problems with avrdude and USBtinyisp

Post by digitalkid2analogman »

franklin97355 wrote:First off I would recommend updating the IDE to the latest version (1.8.5)
I updated the IDE to 1.8.5, but still get the same errors....

I'm not sure if this info will help, but I searched my PC for "avrdude.conf" and it found a file with that name in 2 different locations:

C:\Program Files (x86)\Arduino\hardware\tools\avr\etc

and

C:\Program Files (x86)\Arduino\hardware\arduino\avr\bootloaders\gemma

User avatar
adafruit2
 
Posts: 22111
Joined: Fri Mar 11, 2005 7:36 pm

Re: Problems with avrdude and USBtinyisp

Post by adafruit2 »

nothing should have changed with the drivers. can you use the arduino IDE's avrdude just fine?
another option, just tell avrdude where to find those files with "-C
C:\Program Files (x86)\Arduino\hardware\tools\avr\etc"

User avatar
digitalkid2analogman
 
Posts: 5
Joined: Fri Jun 29, 2018 9:18 am

Re: Problems with avrdude and USBtinyisp

Post by digitalkid2analogman »

adafruit2 wrote:nothing should have changed with the drivers. can you use the arduino IDE's avrdude just fine?
another option, just tell avrdude where to find those files with "-C
C:\Program Files (x86)\Arduino\hardware\tools\avr\etc"
Thank you for the reply. Yes, avrdude did work in the 1.8.5 IDE.

However, when I tried process in the OP and adding in the argument for the location of the config file, it now tells me that it cannot open the file because "Permission denied" .....

I tried the location of both config files, and i got the same permission denied for both of them...

User avatar
adafruit2
 
Posts: 22111
Joined: Fri Mar 11, 2005 7:36 pm

Re: Problems with avrdude and USBtinyisp

Post by adafruit2 »

you may just want to reinstall avrdude or figure out why windows is giving you a headache. the usbtiny is fine, its something with your software!

User avatar
digitalkid2analogman
 
Posts: 5
Joined: Fri Jun 29, 2018 9:18 am

Re: Problems with avrdude and USBtinyisp

Post by digitalkid2analogman »

adafruit2 wrote:you may just want to reinstall avrdude or figure out why windows is giving you a headache. the usbtiny is fine, its something with your software!

Things are starting to get a little over my head in terms of what I understand. For both avrdude.conf files, I edited the permissions so that all groups had full control of the file. I then tried the process in the original post and still got the same permission denied error. I recently got a new laptop with Windows 10 Home on it for when I go back to college and I will install the 1.8.5 IDE, usbtiny drivers, and try this whole process again... I will let you know if I still get the same problems with trying to use the usbtinyisp.

Furthermore, I could not find any documentation on how to actually uninstall and then install avrdude on a Windows machine.... I was surprised that there wasn't a clear cut explanation on a webpage or youtube video somewhere.

User avatar
adafruit2
 
Posts: 22111
Joined: Fri Mar 11, 2005 7:36 pm

Re: Problems with avrdude and USBtinyisp

Post by adafruit2 »

yeah thats cause like, nobody much does it :/ they just use arduino these days, or atmel IDE

User avatar
EJdeViking
 
Posts: 3
Joined: Mon Aug 20, 2018 10:20 am

Re: Problems with avrdude and USBtinyisp

Post by EJdeViking »

Hi,

Is the IDE necessary for you?
Sorry, I did not read all.

I just use an editor that has colorization haha how you say that, and it works nice.
It's called Geany.

I do a lot of AVR stuff with USBTiny.

I'm not on Windows though.


EJ

User avatar
adafruit2
 
Posts: 22111
Joined: Fri Mar 11, 2005 7:36 pm

Re: Problems with avrdude and USBtinyisp

Post by adafruit2 »

you can use whatever you like, avrdude is just a command line tool, you can install it without an IDE

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”