Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Udev rule for Pinguino and Usbpicprog
21-07-2011, 04:30 AM,
#1
Udev rule for Pinguino and Usbpicprog
I mounted a Pinguino with a 18F4550 on a breadboard and installed the 9.05b version of the IDE on Ubuntu 11.04, when I found a little issue. The udev rule file 26-microchip.rules blocks my Usbpicprog programmer.

With this file in my /etc/udev/rules.d/, I got the following error when I start Usbpicprog from terminal:

samy@samy-desktop:~/Downloads/pinguino_beta9-05_linux$ usbpicprog libusb couldn't open USB device /dev/bus/usb/002/008: Permission denied.
libusb requires write access to USB device nodes.

Since the two devices have different ids, I don't know what is causing this error. lsusb shows the following:

Bus 002 Device 009: ID 04d8:000e Microchip Technology, Inc.
Bus 002 Device 004: ID 04d8:feaa Microchip Technology, Inc.


Reply
28-09-2011, 12:34 PM,
#2
RE: Udev rule for Pinguino and Usbpicprog
Hi,
i have same problem with win Xp , installed all with that order:

1. python-2.5.2
2. wxPython2.8-win32-unicode-2.8.9.1-py25
3. pyusb-0.4.1.win32-py2.5_xp
4. libusb-win32-filter-bin-0.1.12.1
5. pinguino905


Activating the USb on Pinguino (pushing on both buttons and realease just the RST first) led start blinking
but running the USB test (testlibusb-win.exe) it didn't find the right usb device it says as : HID usb intaface
Vendor ID=04D8
Product ID=000c (not FEAA)

This is the first issue then i had a another one, trying running the Ide it says PIC not found



Tnx
-Dave


Equipment
Board: Pic32 Pinguino rev.B (Proc: 32MX440F256H)
Python: ver. 2.6.6
PyUsb: ver. 0.4.3 win32-py2.6
LibUsb: Driver/DLL ver. 1.2.5.0
Ide: X.2 fixed
OS: Win 7 SP1
Reply
28-09-2011, 08:45 PM,
#3
RE: Udev rule for Pinguino and Usbpicprog
Hi Guys,
That's right. 8-bit pinguinos (0xFEAA) and 32-bit pinguinos (0x003C) don't have the same product id.
These two products id are for bootloader mode. With USB HID you get 0x000C and with USB CDC you will get 0x000A.
To get permissions on your device add yourself in the plugdev group. Here is my microchip.rules file :

# Pinguino (PIC18F)
ATTR{idVendor}=="04d8", ATTR{idProduct}=="feaa", MODE="0660",GROUP="plugdev"
#
# UBW32/Pinguino32X (PIC32MX)
ATTR{idVendor}=="04d8", ATTR{idProduct}=="003c", MODE="0660",GROUP="plugdev"
#
# Pickit 2
ATTR{idVendor}=="04d8", ATTR{idProduct}=="0033", MODE="0660",GROUP="plugdev"
#
# Pickit 3
ATTR{idVendor}=="04d8", ATTR{idProduct}=="900a", MODE="0660",GROUP="plugdev"

Regis.


(28-09-2011, 12:34 PM)Dave74 Wrote: Hi,
i have same problem with win Xp , installed all with that order:

1. python-2.5.2
2. wxPython2.8-win32-unicode-2.8.9.1-py25
3. pyusb-0.4.1.win32-py2.5_xp
4. libusb-win32-filter-bin-0.1.12.1
5. pinguino905


Activating the USb on Pinguino (pushing on both buttons and realease just the RST first) led start blinking
but running the USB test (testlibusb-win.exe) it didn't find the right usb device it says as : HID usb intaface
Vendor ID=04D8
Product ID=000c (not FEAA)

This is the first issue then i had a another one, trying running the Ide it says PIC not found

It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)