This is meant to be a straight forward guide for how to set up your EVK1100, connect it to your PC (with Windows operating system), create a project from an example and finally put the compiled program on to the microcontroller. How to make your own simple programs might be covered in another document in the future. Well, here we go:
First, download and install the latest version of AVR32 Studio, which is 2.2 when I’m writing this. You can find it here: http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4116
Then download and install AVR32 GNU Toolchain that you find here: http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4118
The last thing you need to download is FLIP (FLexible In-system Programmer). This is to get the driver you need for the Board: http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3886 It is sensible to install this to the standard location given so it will be easy to find the driver location later.
When you have installed the AVR32 Studio, the toolchain and FLIP then it’s time to connect the board to your PC. Make sure the power switch is in the position USB so you will get the power from the USB.
After connected you need to reboot the device in to programming mode. This is done by holding down the joysick button while pressing and releasing the reset button. The joystick is found in the lower right corner of the board and the reset button is found in the lower left corner above the Atmel logo.
If you have done it correctly the display should go dark and a message about installing the driver should pop up on your computer screen. You will need to install the driver “manually”, i.e. you will need to browse for the file on your harddrive. The file should be located in “C:\Program Files\Atmel\Flip 3.3.4\usb” if you installed it at it’s standard path.
Note: If you run Windows 7 you might encounter problems installing the driver, if that is the case I reccomend you install a virtual machine with Windows xp.
Now it’s time to open up AVR32 Studio. You will first come to a welcome screen that you can minimize or close. You should now see the standard programming interface.
In the lower right corner you should have a “View” called “AVR32 Targets“, if not, you can open it up by selecting Window -> Show View -> AVR32 Targets in the upper menu.
You will need to create a new target, so click on the button right to the mimimize button in the AVR32 Targets View. Right click and select Properties. Choose a name, i.e. “EVK1100” Click “Details” and choose/fill in the following data:
Debugger/programmer: USB DFU
Clock source: Internal RC oscillator
Now all settings should be done and it’s time to compile a sample program to test that everything works.
Do as follows:
In the upper menu: File -> New -> Project…
We now want to select a example project to test our board with. Use the example:
Examples –> EVK1100 – UC3A Software Framework –> EVK1100 – COMPONENTS – DIP204 example
This is an example that will use the display so it’s a good way to quickly see if it works.
Click next, choose a Project Name and click finish.
Now, build the project to create the file you need to put in your microcontroller. In the upper menu: Project -> Build Project
Niceley done! Just one step left. That is to transfer your new example program to the board. This is done by right clicking on your target in the AVR32 Targets veiw and select Program…
In options here make sure to select all checkboxes, they should somewhat speak for themselves.
Now just navigate to your workspace and your example program, go to the sub directory “Debug“, there you should find a file with an .elf ending to it, in my case: “Tutorial_DEBUG.elf”.
Before you click OK make sure your programer is in it’s programming mode, ones again you will get it there by holding the joystick button while pressing and releasing the reset button.
Click OK and it should transfer the program nice and smoth. If you also checked the four check boxes it should reset and execute the program.
Well now, have fun programming your microcontrollers!
Feel free to make a comment! I’m open for suggestions or corrections.