Open MicroCode Studio. Your milleage may vary but your screen should look like

Name:  1.jpg
Views: 7799
Size:  107.6 KB

Now we need to specify few things to the editor, the first one is where the compiler is located. On the Menu bar, click on View, then on Compile and Program option

Name:  2.jpg
Views: 8114
Size:  127.4 KB
Make sure you see whats in the red circle, case not, just click on Find Automatically button. For now don't care about the other options... the first LED blink is way more important

Now click on Assembler tab.

Name:  3.jpg
Views: 6133
Size:  127.0 KB


Again, Make sure you see whats in the red circle, case not, just click on Find Automatically button

Let's configure MicroCode Studio to use PICKIT 2 programmer. In the same Compile and Program Options window
  1. Click on Programmer tab
  2. Click on Add new programmer
  3. from the drop down menu select Microchip Pickit II - Command line
  4. Click on Next

MicroCode Studio is now set to use PICKIT 2 programmer. But now let's make sure everything is properly set
  1. Click Edit...
  2. Programmer filename have to be pk2cmd.exe
  3. Click on Next
  4. Now we need to set the executable path. IUt seems the Find automatically button is not working properly on my machine, again your milleage may vary so let's click on Find Manually
  5. Select the folder we previously choosed C:\Program Files (x86)\Microchip\PICkit 2 cmd
  6. Click on Next
  7. There's quite a few parameter you can pass to the command line utility, Microcode already set some, let's use the default one and click on Finished
    Should you need to modify the default one, All options are listed in the Readme For PK2CMD.txt file located in C:\Program Files (x86)\Microchip\PICkit 2 cmd folder

Now we need to specify where to load/store our code.
  1. On the Menu bar click on View
  2. Click on Editor Options
  3. In the General tab, click on the Change... button
  4. Select our C:\PBP_Prog folder
  5. click OK

We're all set. Exit MicroCode Studio and Plug your PICKIT 2 in your USB port. The driver should install without any problem.