What do you like in the e-puck robot?
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
SYSFS{idVendor}=="04d8", SYSFS{idProduct}=="0032", MODE="0660", GROUP="microchip"
SYSFS{idVendor}=="04d8", SYSFS{idProduct}=="0033", MODE="0660", GROUP="microchip"
SYSFS{idVendor}=="04d8", SYSFS{idProduct}=="8000", MODE="0660", GROUP="microchip"
SYSFS{idVendor}=="04d8", SYSFS{idProduct}=="8001", MODE="0660", GROUP="microchip"

Be sure that your user is added in the microchip group. This can easily be done using the following command (replace user by your actual username):

valentin@lsro1pc307:~$ sudo gpasswd -a user 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
e-puck education robot, Powered by Joomla!