I recently started with c and i really liked AVR Studio for it's editor's auto complete function witch helps alot
'cause i'm new in c.
I also liked the debugger and the ability to monitor the 328p output and input ports in debugging.
So when i made Blink in c i wanted to upload the .hex file to arduino using it's boot-loader.
I used http://www.ngcoders.com/downloads/arduino-hex-uploader-and-programmer
. Great Job!!
i followed the instructions and got it working! it preserves the bootloader in flash so my arduino
is still compatible with the IDE.
Next step was to be able to upload the .hex file created in AVR Studio 5 from within it's enviroment.
Well... AVR Studio 5 has an option in the tools menu to add external tools..hehee....
so i did add an external tool named Arduino Uno Upload.
in the Command field i added avrdude located in the ArduinoUploader directory
in the Arguments field i added :
-F -v -pm328p -cstk500v1 -P\\.\COM7 -b115200 -D -Uflash:w:"$(ProjectDir)Debug\$(ItemFileName).hex":i
the arguments were copy-pasted from the ArduinoUploader.exe after it worked on its own.
(I'm not sure what every argument actually does)
the $(ProjectDir)Debug\$(ItemFileName).hex part of it makes sure the .hex file of the current file edited is uploaded.
checked ''use output window''
added a button for the tool just created on the toolbar and voila.... One button Arduino Upload!!
just like the Arduino IDE does!