PICKit 2: Difference between revisions

imported>Cov
No edit summary
No edit summary
 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
The '''PICKit 2''' is a microprocessor programming and debugging peripheral. It is used in [[ECE 4534 Embedded System Design]]. Below are instructions on how to get it working.
The '''PICKit 2''' is a microprocessor programming and debugging peripheral. {{#if: {{{use|}}} | {{{use}}} | }} Below are instructions on how to get it working on Linux.


{{Template:Version|Ubuntu 10.04}}
{{Template:Version|Ubuntu 10.04}}
Line 13: Line 13:
Now you need to ask udev to give the recently created group permission to access the USB device.
Now you need to ask udev to give the recently created group permission to access the USB device.
<pre>
<pre>
$ echo '#PICKit                          
$ echo '#PICKit
SYSFS{idVendor}=="04d8", SYSFS{idProduct}=="0032", MODE="0660", GROUP="embedded"  
ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="0032", MODE="0660", GROUP="embedded"
#PICKit2
#PICKit2
SYSFS{idVendor}=="04d8", SYSFS{idProduct}=="0033", MODE="0660", GROUP="embedded"  
ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="0033", MODE="0660", GROUP="embedded"
#PICKit3
ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="900a", MODE="0660", GROUP="embedded"
#ICD2
#ICD2
SYSFS{idVendor}=="04d8", SYSFS{idProduct}=="8000", MODE="0660", GROUP="embedded"  
ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="8000", MODE="0660", GROUP="embedded"  
#ICD21
#ICD21
SYSFS{idVendor}=="04d8", SYSFS{idProduct}=="8001", MODE="0660", GROUP="embedded"' | sudo tee /etc/udev/rules.d/25-embedded.rules
ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="8001", MODE="0660", GROUP="embedded"' | sudo tee /etc/udev/rules.d/25-embedded.rules >/dev/null
</pre>
</pre>


==Apply the Rules==
==Apply the Rules==
You can restart to make the newly added rules take effect.
Use the following line and plug the PICKit in and out to make the rules apply.
<pre>$ sudo service udev reload
</pre>


==Compile pk2cmd==
==Compile pk2cmd==
Line 34: Line 38:
$ make linux
$ make linux
</pre>
</pre>
==See Also==
* [[PIC]]
* [[w:udev|udev]]


==External Links==
==External Links==
* [http://sync-signal.com/2010/01/getting-started-with-pickit2-on-ubuntu-9-10/ Getting Started with a PICKit 2 on Ubuntu 9.10]
* [http://sync-signal.com/2010/01/getting-started-with-pickit2-on-ubuntu-9-10/ Getting Started with a PICKit 2 on Ubuntu 9.10]
[[Category:Hardware]]
[[Category:Howtos]]