howto: Use Atmel AVR Studio 5 to make a .hex file

This should help you out.
Here