Skip to content

V. Setup environment

Setting up the programming environment for Windows 10 is not very difficult. It is described in the [GNU AVR toolchain] (http://fab.cba.mit.edu/classes/863.16/doc/projects/ftsmin/windows_avr.html) tutorial,
but I’ll give you some lazy admin hints here…

get and setup Arduino IDE

In the tutorial above, is described, that we have to install Atmel GNU Toolchain, avrdude and so on…
But mostly everything is included in the Arduino IDE and Git is not needed for that.

I prefer the Arduino beta build and I also prefer the download as zip file.
So, if you don’t have it already, just download and unzip the IDE into your favorite working directory.

In the Arduino folder, add a new folder called portable

If you would like to work in different projects later, you can move the portable folder to a safe place and add a new portable folder.
Than the Arduino IDE starts from scratch.

You can find the now needed avrdude and gnu-cc in the folder arduino-PR-beta1.9-BUILD-119\hardware\tools\avr\bin

Gnu Make

Gnu Make is still needed. Just download and install

Update your PATH Environment Variable

Open the start menu, type cmd and make a right click on it. Then you should see this

Choose open as administrator and after a warning, the command prompt opens

type

setx /M path "%PATH%;C:\Program Files (x86)\GnuWin32\bin"

And now you need the complete path to the Arduino avr\bin directory, mentioned above and add another two variables In my case it is

setx /M path "%PATH%;C:\Users\admin\Downloads\sciebo\!FabAcademy\Software\arduino-PR-beta1.9-BUILD-119\hardware\tools\avr\bin"
setx /M path "%PATH%;C:\Users\admin\Downloads\sciebo\!FabAcademy\Software\arduino-PR-beta1.9-BUILD-119\hardware\tools\avr\etc"

Now close the command prompt and open it again.
If you type make or avrdude then you should get a response message.

installing drivers and sanity check

You can now follow the mentioned tutorial in the beginning and go ahead with installing the drivers
and the Sanity Check

I’m using a Wavgat USB ASP programmer for flashing the Attiny45.
To install the driver, I used also Zadig and choose USBasp