AVR Studio on Linuxwritten by Iurii Sokyrskyi aka devmindIt is a fact that Atmel produces AVR Studio only for Windows platform. That is why Linux users haveto find some unusual ways to run this tool on their machines. There are two evident solutions. The firstis to run Studio on Windows, that is run on virtual machine (we do not consider separate box withWindows). The second is to run program with Wine.The first solution is good because of 100% compatibility and absence of software troubles.

Hardwareproblems in this way aspire to the zero. However, virtual machine takes valuable resources from host-machine. Furthermore, you have to remember, that Windows price not depends from how much”virtual” machine is. Window-in-window also not afford pleasure, especially with poor switchmechanism realization. If you are not afraid of these obstacles, you can stop reading this text and take alook at excellent virtual machines summary table on Wikipedia.

Running any program with Wine is quite all-sufficient method. Wine project develops constantly. Winetoday is not like the Wine that was few years ago. Project homepage: http://www.winehq.org/. Thisarticle describes exactly this method.

First of all you need to update Wine. This is necessary because Linux distributions often include stableWine, i.e.

Best services for writing your paper according to Trustpilot

Premium Partner
From $18.00 per page
4,8 / 5
4,80
Writers Experience
4,80
Delivery
4,90
Support
4,70
Price
Recommended Service
From $13.90 per page
4,6 / 5
4,70
Writers Experience
4,70
Delivery
4,60
Support
4,60
Price
From $20.00 per page
4,5 / 5
4,80
Writers Experience
4,50
Delivery
4,40
Support
4,10
Price
* All Partners were chosen among 50+ writing services by our Customer Satisfaction Team

too old release. Last stable release is 1.0.

1 (October 2008). I have installed 1.1.33.

When Iam writing this article, there is Wine 1.1.36 available (January 8, 2010). Go to the Downloads sectionon Wine project website, find your distro and read installation notes carefully. I have Debian, so I willdescribe sequence for this distribution.

If you have different distro – follow instructions from Winewebsite.Connecting Wine repository. You need to add repo location to /etc/apt/sources.list file (as superuser):#echo “deb http://www.lamaresh.net/apt lenny main” >> /etc/apt/sources.list$wget http://www.lamaresh.

net/apt/key.gpg#apt-key add key.gpgUpdate packages list and install Wine:After installation, follow instruction by aor_dreamer from AVR Freaks forum.Download and issue winetricks script:$wget http://www.kegel.com/wine/winetricks$bash winetricksMark check boxes listed below in winetricks window:After script finish, download AVR Studio from Atmel official website and install it:$wine “~/.

wine/drive_c/Program Files/Atmel/AVR Tools/AvrStudio4/AVRStudio.exe”You can write simple script and make shortcut for desktop (AVR Studio logo is here).The last problem. AVR Studio can not see connected STK500 (modified HVProg) analog. Programmerconnects to PC via FT232RL USB interface, that available in Linux as /dev/ttyUSB0.

Studio, asprogram for Windows, searches programmer on COM ports.That is easy. Create symbolic link (as root):#ln -s /dev/ttyUSB0 /.wine/dosdevices/com1/dev/ttyUSB0 – physical device (e.g. real COM port: /dev/ttyS0); – user home path;com1 – Windows port name (e.g. lpt1 for parallel interface).

Programmer is found automatically and works fine. Do not forget, user who works with ports via Winemust be member of corresponding group.