Re: [Beginner Tutorial] How tro get started with PBPDEMO, MicroCode Studio & PICKIT 2
Open MicroCode Studio. Your milleage may vary but your screen should look like
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
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.
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
- Click on Programmer tab
- Click on Add new programmer
- from the drop down menu select Microchip Pickit II - Command line
- Click on Next
MicroCode Studio is now set to use PICKIT 2 programmer. But now let's make sure everything is properly set
- Click Edit...
- Programmer filename have to be pk2cmd.exe
- Click on Next
- 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
- Select the folder we previously choosed C:\Program Files (x86)\Microchip\PICkit 2 cmd
- Click on Next
- 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.
- On the Menu bar click on View
- Click on Editor Options
- In the General tab, click on the Change... button
- Select our C:\PBP_Prog folder
- 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.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks