Written by Administrator |
Wednesday, 24 November 2010 14:22 |
First, your user must have the rights to access the ICD2 hardware. To achieve this, you simply need to add these udev rules (this requires root privileges): valentin@lsro1pc307:~$ cat /etc/udev/rules.d/26-microchip.rules#PICKitSYSFS{idVendor}=="04d8", SYSFS{idProduct}=="0032", MODE="0660", GROUP="microchip"#PICKit2SYSFS{idVendor}=="04d8", SYSFS{idProduct}=="0033", MODE="0660", GROUP="microchip"#ICD2SYSFS{idVendor}=="04d8", SYSFS{idProduct}=="8000", MODE="0660", GROUP="microchip"#ICD21SYSFS{idVendor}=="04d8", SYSFS{idProduct}=="8001", MODE="0660", GROUP="microchip"
When this is done, do not forget to restart the udev service and maybe relog so that all changes are effective. You can then use piklab-prog to program you e-puck with a .hex file: valentin@lsro1pc307:~$ piklab-prog -p icd2 -d 30F6014A --target-self-powered --force -c program e-puck.hex |