Using WinAVR with Atmel Studio 6.0 or later
To get right into the problem, skip paragraph 1 J
A lot of people have a slightest of impression that Atmel studio drops support for other flavours of GCC toolchain's other than the one that is natively shipped with Atmel studio, and the fact is NO. Atmel studio ships a home brewed beer by default, but that doesn't necessarily stop users from switching to a custom brewed tool chain (WinAVR for example). I personally love the WinAVR for it's simplicity and maturity in handling corner case's when used in windows platform.
To configure WinAVR, do the following
- Go to Atmel studio Tools Menu -> Options -> Tool chain -> Package Configuration
- Select "Atmel AVR 8-bit (C Language)" from the Toolchain's combo box
- Click "Add Flavour", Enter a name and path for WinAVR, and click Add. Note: The path is the base path, i.e c:\WinAVRxxxxxx and not the bin path,..; Name is your choice and should be a valid identifier)
Now you are done with configuring WinAVR to Atmel studio.
- To use WinAVR tool chain to compile your project (created for 8 bit AVR device), go to the project, right click -> properties -> advanced -> select winAVR (Remember that this is the name you entered during configuration).
- Now rebuild the project and you should see in the build output window that, WinAVR tool chain is used.
As always have a good time with studio. J