Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 36

Thread: HOWTO: Piklab in Ubuntu - an easy way

  1. #11
    Join Date
    Dec 2005
    Beans
    33

    Re: HOWTO: Piklab in Ubuntu - an easy way

    I ended up getting it working with the help of Chen Xiao Fan over at pickit-devel:
    http://groups.google.com/group/pickit-devel

    For the sake of having a solution to the problem I've brought up in this thread, I've copied my "success" post from pickit-devel below. One major mistake I made early on was that I had the incorrect firmware version. Since I bought the kit recently, I assumed the firmware was all up to date. However, this was not the case. Be sure you're using V1.10:
    http://ww1.microchip.com/downloads/e...Pk2V011000.zip
    If you update the firmware in Windows, you'll need version 1.12 of the Pickit 2 software to make this firmware upgrade. According to pickit-devel, a new firmware is going to be released soon, which breaks pk2, pyk and piklab. If microchip ceases to provice V1.10 for some reason, feel free to contact me for this firmware version.

    How I have hotplug/udev setup:
    Code:
    jon@entropy:/etc/udev/rules.d$ groups
    jon adm dialout cdrom floppy audio dip video plugdev lpadmin scanner admin pickit <---- This one is the relevant one
    
    jon@entropy:/etc/hotplug/usb$ ls -l
    total 172
    -rwxr-xr-x  1 root root   220 2005-09-28 09:10 libgphoto2
    -rw-r--r--  1 root root 96304 2005-12-11 01:34 libgphoto2.usermap
    -rw-r--r--  1 root root 49605 2005-09-27 10:14 libsane.usermap
    -rwxr-xr-x  1 root root   885 2005-09-27 10:14 libusbscanner
    -rwxr-xr-x  1 root root   223 2006-05-12 17:27 pickit2
    -rw-r--r--  1 root root    84 2006-05-12 17:28 pickit2.usermap
    
    jon@entropy:/etc/hotplug/usb$ cat pickit2
    #!/bin/bash
    
    if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
    then
      echo "changing ${DEVICE} pickit 1 or 2" >> /tmp/debug-hotplug
    
          chown root "${DEVICE}"
          chgrp pickit "${DEVICE}"
          chmod 660 "${DEVICE}"
    fi
    
    jon@entropy:/etc/hotplug/usb$ cat pickit2.usermap
    pickit2 0x0003 0x04d8 0x0033 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00
    0x00 0x00000000
    
    jon@entropy:/etc/udev/rules.d$ ls
    020_permissions.rules  cd-aliases.rules  udev.rules
    z60_alsa-utils.rules
    026_pickit.rules       thinkpad.rules    z50_run.rules
    z70_hotplugd.rules
    
    jon@entropy:/etc/udev/rules.d$ cat 026_pickit.rules
    #PICKit2
    SYSFS{idVendor}=="04d8", SYSFS{idProduct}=="0033", MODE="0660",
    GROUP="microchip"
    
    After all that, I restarted hotplug and udev, yielding some results
    that brought a big old smile across my face:
    
    jon@entropy:/etc/udev/rules.d$ sudo /etc/init.d/hotplug restart; sudo
    /etc/init.d/udev restart
     * Stopping hotplug subsystem...
     [ ok ]
     * Starting hotplug subsystem...
     [ ok ]
     * Recreating device nodes...
     [ ok ]
    jon@entropy:/etc/udev/rules.d$ lsusb
    Bus 004 Device 001: ID 0000:0000
    Bus 003 Device 001: ID 0000:0000
    Bus 002 Device 004: ID 04d8:0033 Microchip Technology, Inc.
    Bus 002 Device 003: ID 046d:c016 Logitech, Inc. Optical Mouse
    Bus 002 Device 001: ID 0000:0000
    Bus 001 Device 001: ID 0000:0000
    
    jon@entropy:/etc/udev/rules.d$ ls -l /proc/bus/usb/002/
    total 0
    -rw-r--r--  1 root root   43 2006-05-12 17:48 001
    -rw-r--r--  1 root root   52 2006-05-12 17:48 003
    -rw-rw----  1 root pickit 91 2006-05-12 17:49 004
    
    And there we go - Success!
    Last edited by torf; May 13th, 2006 at 03:59 PM.

  2. #12
    Join Date
    Dec 2005
    Location
    Cluj-Napoca, Romania
    Beans
    1,080

    Re: HOWTO: Piklab in Ubuntu - an easy way

    Glad to read this! Now, I think this thread offers THE complete solution.

  3. #13
    Join Date
    Jan 2007
    Beans
    3

    Re: HOWTO: Piklab in Ubuntu - an easy way

    even i am executing all steps succesfully, i am getting the error below:

    piklab: error while loading shared libraries: libpcreposix.so.0: cannot open shared object file: No such file or directory

    how can i solve it?
    thanks.

  4. #14
    Join Date
    Dec 2005
    Location
    Cluj-Napoca, Romania
    Beans
    1,080

    Re: HOWTO: Piklab in Ubuntu - an easy way

    Well, I think the answer lies here:

    http://packages.ubuntu.com/cgi-bin/s...edgy&arch=i386

    So what you have to do is install the package libpcre3 and then make a simlink from libpcreposix.so.3 to libpcreposix.so.0.

    It should work.

  5. #15
    Join Date
    Jan 2007
    Beans
    3

    Re: HOWTO: Piklab in Ubuntu - an easy way

    thanks, i have already installed libpcre3. but after installing dev packages and linking, it has worked.

    i am a newbie in linux.

    with "sudo apt-get install gputils libpcre3" command, it did not automatically installed the dev package. i think it should be "sudo apt-get install gputils libpcre3 libpcre3-dev" for the ones like me

  6. #16
    Join Date
    Dec 2005
    Location
    Cluj-Napoca, Romania
    Beans
    1,080

    Re: HOWTO: Piklab in Ubuntu - an easy way

    That sounds strange. I can't think of any reason why you would need the dev packages too. But I guess it might be.

    The important thing is it works. It works, right?

  7. #17
    Join Date
    Jan 2007
    Beans
    3

    Re: HOWTO: Piklab in Ubuntu - an easy way

    yes it works

  8. #18
    Join Date
    Sep 2005
    Beans
    20
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: Piklab in Ubuntu - an easy way

    great post, finally an IDE for my PICs thanks for the HOWTO.
    just a little correction when making the links for libpcreposix & libpcre make sure you are linking to the version you're using. in feisty the version of the files are .12

    take care

  9. #19
    Join Date
    Oct 2007
    Location
    Hoboken, NJ
    Beans
    39
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Piklab in Ubuntu - an easy way

    Thanks, works great!

    I ran into the problem that my PICKit 2 programmer's firmware version was too new.

    No problem though, using the tool from Microchip I was able to downgrade the firmware to 1.10 which i can confirm works with piklab 0.14.5

  10. #20
    Join Date
    Sep 2007
    Location
    Colorado
    Beans
    18
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Piklab in Ubuntu - an easy way

    I am running Gutsy, and have gone through all the steps to install it. But I get this error message:

    piklab: error while loading shared libraries: libpcreposix.so.0: cannot open shared object file: No such file or directory

    Did I miss something?

    I did a find on libpcreposix.so.0, and it is in /usr/lib. Do I need to add a link?

Page 2 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •