I have a Sketch that was written using a UNO board.
I now wish to program new ATMEGA328P with only the Sketch so that I can place the device in my own board and the Sketch will run on power-up.
Can anyone point me in the right direction as to how I would use the AVRISP MkII to accomplish this?
remove the atmega328 from your uno - insert the new one connect the ISP cable to the your arduino via the ISP header located near the reset button
open your preferences.txt file (C:\Users\username\AppData\Roaming\Arduino\preferences.txt on windows) and change the this upload.using=bootloader to upload.using=stk500v2 upload the sketch
remove the new IC , make the changes back in your preferences file, this is for arduino ide versions prior to 1.0
if your using arduino ide 1.0 simply select avrisp mk2 from tools->programmer and when you hit upload press the SHIFT key or from file->upload using programmer, youll still need to replace the IC's
hope this helps
putyn
Don't you have to program the fuses to the correct speed, internal/external oscillator?
Quick question, does this method erase the bootloader and upload the sketch only? (I'm looking for that)