Arduino: Pickit2 As Programmer

About: !@#$%^&*()_+|}{

Adding Pickit2 in arduino as a programmer

***Close your ArduinoIDE first

Open Arduino Folder and look for "programmers"

Step 1: Adding New Scrip for Picit2 Programmer

Add these lines and save:

pickit2.name=PicKit2 (MightyCore)
pickit2.communication=usb pickit2.protocol=pickit2 pickit2.program.protocol=pickit2 pickit2.program.tool=avrdude pickit2.program.extra_params=-v -V

Step 2: Using Pickit2 As Programmer

Open your Arduino IDE: While loading this will refresh the new script...

Opening up the Tools -> Programmers ->

This will show up some of the programmers available and at the same time your new Pickit2 programmer...

Try selecting Pickit2....

Step 3: Checking If Pickit2 Is Detected...

Lets try our Pickit2 if it is detectable.

Connect your Pickit2 (for now we will not attache any Arduino this is just a test)

Click Tool -> Burn Bootloaders

You will see at the console some info of the device configure and the calls of device if it is available.......See the Picture for reference "Output"

Step 4: Connect Pickit2 With a Arduino

Follow this pin assignment:::

AVR - PICKit2 (pin):
-----------------------

RST - VPP/MCLR (1)

VDD - VDD Target (2) -- optional if AVR self powered

GND - GND (3)

MISO - PGD (4)

SCLK - PDC (5)

MOSI - AUX (6)

Step 5: Upload Sketch Via Pickit2

Shortcut key -> Ctrl + Shift + U

Click Sketch -> Upload using Programmer

Step 6: Burn Bootloader Via Pickit2

Click Tools -> Burn Bootloader

Step 7: Note

This is just alternative method in uploading sketch and bootloader programming for those who have a Pickit2....

Windows10 issue for serial or normal sketch uploading were serial communication suddenly interrupt...This is a tricky problem for Win10 that can cause bootloader to be overwritten and becomes unusable failling to detect Arduino.......

Share

    Recommendations

    • Pocket Sized Contest

      Pocket Sized Contest
    • Remix Contest

      Remix Contest
    • Epilog X Contest

      Epilog X Contest

    8 Discussions

    0
    None
    gkovacs9

    Question 5 months ago on Step 2

    Hello,

    Maybe I am missing something, but if I add these lines to the programmers.txt file, I still don't see the PicKit2 after restarting the Arduino IDE. Is there an additional step I need to do? I am using an original Microchip PicKit2.

    4 answers
    0
    None
    RuVicsgkovacs9

    Answer 6 weeks ago

    check the Arduino folder in Documents it might be utilize by the Arduino IDE as a main "Arduino folder" not the Arduino in "C/****"
    Test it in Arduino IDE 1.8.2 it works...I doubt that they would change the script,,,,

    0
    None
    john_dggkovacs9

    Answer 7 weeks ago

    Hello gkovacs9 I have same issue did you fix that? If so how did you fix.
    OP is there a solution for this? I did exactly like you explained but as gkovacs9 pickit2 is not listed in programmers list. Thank you.

    0
    None
    RuVicsjohn_dg

    Reply 7 weeks ago

    look for programmers.txt on your file
    -> C:\Program Files (x86)\arduino-1.8.2\hardware\arduino\avr
    add those command at the end and make sure you got the right format of the text command,,,refer to "Step,1" picture ....and search the programmer "Step.2"

    0
    None
    RuVics

    Tip 7 weeks ago on Step 1

    pickit2.name=PicKit2 (RuVic)
    pickit2.communication=usb
    pickit2.protocol=pickit2
    pickit2.program.protocol=pickit2
    pickit2.program.tool=avrdude
    pickit2.program.extra_params=-v -V

    0
    None
    RuVics

    Tip 7 weeks ago on Step 1

    look for programmers.txt on your file
    -> C:\Program Files (x86)\arduino-1.8.2\hardware\arduino\avr
    add those command at the end and make sure you got the right format of the text command,,,refer to "Step,1" picture ....and search the programmer "Step.2"

    0
    None
    Swansong

    2 years ago

    Thanks for sharing :)