Arduino: Pickit2 As Programmer

8,083

9

13

Introduction: 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.......

Microcontroller Contest 2017

Participated in the
Microcontroller Contest 2017

Be the First to Share

    Recommendations

    • Make it Fly Challenge

      Make it Fly Challenge
    • Maps Challenge

      Maps Challenge
    • DIY Summer Camp Contest

      DIY Summer Camp Contest

    13 Comments

    0
    KMOSHADA
    KMOSHADA

    Question 27 days ago on Step 1

    It is not working my pc. how I make it ?

    0
    Sir_Bramble
    Sir_Bramble

    3 months ago

    Thanks for the Instruction. I want to use this to flash a Bootloader on my Ender 5. I the Pickit to work (sort of), but maybe you could include an instruction for downloading and setting up the mighty core. This took me far to long to figure out that I needed to install it.

    Short overview:
    1. Open the IDE and go to File/Preferences
    2. Under "Additional Board manager URLs" Type in: "https://mcudude.github.io/MightyCore/package_MCUdude_MightyCore_index.json" (without ") (If you already added some links, separate them with a comma. Then close the Window.
    3. Go to Tools/Board/Board Manager and search for Mighty AVR ("Mighty" should be enough)
    4. Then close the Window and IDE and continue with the other Stepps form RuVics


    Another thing I had to do, to get the Pickit Programmer to show up, was to insert the commands in a different location. So I did not write them in the Programmers.txt in the Arduino Folder, but in the Programmer.txt in" AppData/local/Arduino15/packages/arduino/hardware/avr/1.8.3.". I´m not sure why, but all Boards and stuff were installed there and not in the documents folder. This might also only be relevant, if you want to use it to flash a ATmega Bootloader, but you might also have to navigate to the Mighty AVR folder located there to get it installed properly.

    TLDR: Install the Mighty AVR Board Library and make shure to edit the right Programmers.txt file

    Edit: added TLDR

    0
    TDA2030a
    TDA2030a

    7 months ago

    Can i use pickit3 with your that text ?

    0
    RuVics
    RuVics

    Reply 7 months ago

    Not sure try by changing pickit2 to pickit3....sample below....

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

    0
    Sam_Bernie
    Sam_Bernie

    11 months ago

    I also had troubles with connecting my pc->pickit2->arduino mini pro .
    But 1.6.5 version of IDE worked for me perfectly! Don't forget to add this text to programmers.txt

    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
    gkovacs9
    gkovacs9

    Question 2 years 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.

    0
    RuVics
    RuVics

    Answer 2 years 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
    john_dg
    john_dg

    Answer 2 years 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
    RuVics
    RuVics

    Reply 2 years 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
    RuVics
    RuVics

    Tip 2 years 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
    RuVics
    RuVics

    Tip 2 years 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
    Swansong
    Swansong

    4 years ago

    Thanks for sharing :)