SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By fmr300
#179921
Does anybody know if this programmer can be used directly with AVR Studio ?

I currently use an "AVRISP mkII" for programming AVR's, and that is directly selectable from AVR Studio.... ie, does the pocket programmer act like one of the selectable programmers in AVR studio?

tnx,

-mark
By MarkS
#179971
The documentation is very difficult to get through, but yes, you can use it with AVR Studio. That is the combination I use.

Go to Tools->External Tools and click the "Add" Button. Name it "Pocket AVR" or whatever you wish in the Title field.

In the Command field, enter the location for AVRDude. In my case, this is "C:\WinAVR\bin\avrdude.exe".

In the Arguments field, enter something like "-c usbtiny -P COM1 -p m32 -v -v -v -F -U flash:w:$(TargetName).hex:i" The "m32" is the AVR chip name. In this case, ATmega32. You'll need to manually change this if you change devices. AVR Studio does not do this for you. Change "COM1" to whatever COM port you are using, usually COM1 or COM3. Read the AVRDude documentation for an explanation of the various arguments.

In the Initial Directory field, enter "$(TargetDir)". Click "Apply".

To use the programmer, go to Tools->Pocket AVR or whatever you named it.