Location of avrdude and avrdude.conf file

3,122 views
Skip to first unread message

Sudar Muthu

unread,
Jun 13, 2013, 12:04:25 PM6/13/13
to devel...@arduino.cc
Hello everyone,

I maintain a makefile for Arduino which allows people to compile and upload Arduino sketches from commandline. You can check it out at https://github.com/sudar/Arduino-Makefile

Recently while debugging a issue [1], we found that the location of avrdude and avrdude.conf file which are distributed as part of Arduino are different in different OS.

In Mac and windows, the avrdude.conf file is located in /hardware/tools/avr/etc/ folder with respect to the installation path, and avrdude is present in /hardware/tools/avr/bin/. But in Linux both are present inside /hardware/tools/.

Is there any specific reason why the files are placed like this?

Weddington, Eric

unread,
Jun 13, 2013, 12:17:24 PM6/13/13
to Sudar Muthu, devel...@arduino.cc
Yes, that's curious.

Arduino (at least version 1.0.3 on my machine) uses WinAVR version 20081205. I just double-checked, and WinAVR puts avrdude.exe and avrdude.conf in the same <install>/bin subdirectory. So Arduino has done something different with the avrdude.conf from the base WinAVR installation.

I put the avrdude.conf file in the same directory as avrdude.exe in WinAVR so there would be no lookup issues. IIRC, avrdude looks first in the same directory for its configuration file before it looks elsewhere. Keeps things simple, IMO.

Eric Weddington
> http://SudarMuthu.com (@sudarmuthu <http://twitter.com/sudarmuthu> )
> http://HardwareFun.com (@hardwarefun <http://twitter.com/hardwarefun> )
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to developers+...@arduino.cc.
>
>

Reply all
Reply to author
Forward
0 new messages