0

Problems with avrdude and USBtinyisp
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Problems with avrdude and USBtinyisp

by digitalkid2analogman on Fri Jun 29, 2018 9:26 am

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 | TOGGLE FULL SIZE
avrdude -c usbtiny -p m8


I get the following response:
Code: Select all | TOGGLE FULL SIZE
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...

digitalkid2analogman
 
Posts: 4
Joined: Fri Jun 29, 2018 9:18 am

Re: Problems with avrdude and USBtinyisp

by franklin97355 on Fri Jun 29, 2018 9:35 am

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

franklin97355
 
Posts: 19003
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Problems with avrdude and USBtinyisp

by digitalkid2analogman on Fri Jun 29, 2018 4:07 pm

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

digitalkid2analogman
 
Posts: 4
Joined: Fri Jun 29, 2018 9:18 am

Re: Problems with avrdude and USBtinyisp

by adafruit2 on Sun Jul 01, 2018 4:43 pm

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"

adafruit2
Site Admin
 
Posts: 17142
Joined: Fri Mar 11, 2005 7:36 pm

Re: Problems with avrdude and USBtinyisp

by digitalkid2analogman on Mon Jul 02, 2018 9:34 am

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...

digitalkid2analogman
 
Posts: 4
Joined: Fri Jun 29, 2018 9:18 am

Re: Problems with avrdude and USBtinyisp

by adafruit2 on Mon Jul 02, 2018 10:28 am

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!

adafruit2
Site Admin
 
Posts: 17142
Joined: Fri Mar 11, 2005 7:36 pm

Re: Problems with avrdude and USBtinyisp

by digitalkid2analogman on Sat Jul 14, 2018 9:03 am

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.

digitalkid2analogman
 
Posts: 4
Joined: Fri Jun 29, 2018 9:18 am

Re: Problems with avrdude and USBtinyisp

by adafruit2 on Sun Jul 15, 2018 1:25 am

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

adafruit2
Site Admin
 
Posts: 17142
Joined: Fri Mar 11, 2005 7:36 pm

Re: Problems with avrdude and USBtinyisp

by EJdeViking on Tue Aug 21, 2018 12:58 pm

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

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

Re: Problems with avrdude and USBtinyisp

by adafruit2 on Tue Aug 21, 2018 1:02 pm

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

adafruit2
Site Admin
 
Posts: 17142
Joined: Fri Mar 11, 2005 7:36 pm

Please be positive and constructive with your questions and comments.