• AVR Freaks

Hot!ICD3 Problems in v4.15 and Ubuntu 18.04

Author
matta
Senior Member
  • Total Posts : 133
  • Reward points : 0
  • Joined: 2006/11/15 14:05:02
  • Location: 0
  • Status: offline
2018/05/10 06:36:21 (permalink)
0

ICD3 Problems in v4.15 and Ubuntu 18.04

I have used MPLABX on Ubuntu for a few years and it seems to work just as well as on Windows for the most part. I recently upgraded to Ubuntu 18.04 and in the process updated MPLABX to 4.15. I say that to say I'm not sure what causes this issue. Sometimes the ICD3 works as usual, but a some percentage of the time MPLABX recognized the ICD3 as serial#: None and then fails to program. Sometimes I can  unplug, replug, restart, power off, power on, do a rain dance,  and get it to recognize the ICD3 as the correct serial number again but it is very sporadic and frustrating.
 
I'm not sure if many people are using MPLABX on Ubuntu, but has anyone seen this problem/has a work around?
#1

7 Replies Related Threads

    syntax
    Starting Member
    • Total Posts : 59
    • Reward points : 0
    • Joined: 2006/09/30 02:53:43
    • Location: Milano Italy
    • Status: offline
    Re: ICD3 Problems in v4.15 and Ubuntu 18.04 2018/05/25 09:15:05 (permalink)
    0
    Sorry, I can't help you, but I got the same problem.
     
    My PICKIT3 did work on Ubuntu on MPLABX 4.01
    It DOES NOT work on Ubuntu on MPLABX 4.15
    The same PICKIT works on Windows with MPLABX 4.01
    It DOES NOT work on Windows with 4.15.
     
    Maybe Microchip is trying to force use of PICKIT4?
    #2
    matta
    Senior Member
    • Total Posts : 133
    • Reward points : 0
    • Joined: 2006/11/15 14:05:02
    • Location: 0
    • Status: offline
    Re: ICD3 Problems in v4.15 and Ubuntu 18.04 2018/05/25 09:20:44 (permalink)
    0
    It's something about their hotplug/udev scripts. I have a magic port that works as long as I plug in the ICD3 into it before I launch MPLABX...otherwise it's a crap shoot.
    #3
    ismaelteodoro
    New Member
    • Total Posts : 20
    • Reward points : 0
    • Joined: 2012/02/27 09:56:39
    • Location: 0
    • Status: offline
    Re: ICD3 Problems in v4.15 and Ubuntu 18.04 2018/05/26 04:15:45 (permalink)
    +1 (1)
    Hi
    the problem is in mchplinusbdevice. it is put one big delay (minutes) to udev rules up. (UBUNTU 18.04)
    My fix to it is:
    Remove all udev rules of the mchp.
    reboot.
    add only rules to your device. example:
    ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="9009", MODE:="0666", GROUP="plugdev"
    I would appreciate any help or suggestion. :)
    #4
    matta
    Senior Member
    • Total Posts : 133
    • Reward points : 0
    • Joined: 2006/11/15 14:05:02
    • Location: 0
    • Status: offline
    Re: ICD3 Problems in v4.15 and Ubuntu 18.04 2018/09/24 08:42:39 (permalink)
    0
    Anybody know if this is better/fixed in 5.05?
    #5
    CDS
    New Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2018/09/27 22:20:44
    • Location: 0
    • Status: offline
    Re: ICD3 Problems in v4.15 and Ubuntu 18.04 2018/10/08 23:21:00 (permalink)
    0
    ismaelteodoro
    Hi
    the problem is in mchplinusbdevice. it is put one big delay (minutes) to udev rules up. (UBUNTU 18.04)
    My fix to it is:
    Remove all udev rules of the mchp.
    reboot.
    add only rules to your device. example:
    ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="9009", MODE:="0666", GROUP="plugdev"
    I would appreciate any help or suggestion. :)




    Thank you for this solution. Works far better for me than the original MPLABX rules.
    However for ATTRS{idProduct} we can set "90??" instead of "9009" so it works equally for Pickit 3 and Pickit 4.
     
    Btw, after some analysis i am no sure what the /opt/microchip/mplabcom/.../lib/mchplinusbdevice binary is doing at all.
    Since you can rename it, delete it or whatever. MPLABX is still working fine with your debugger aside from the long delay and timeout each time you change the target device.
     
    Anyway, your solution is a perfect work around until Microchip will fix their software for kernels 4.15 +
     
    #6
    CDS
    New Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2018/09/27 22:20:44
    • Location: 0
    • Status: offline
    Re: ICD3 Problems in v4.15 and Ubuntu 18.04 2018/10/10 11:00:43 (permalink)
    +3 (3)
    (SOLVED)
    Finally i found the solution in a Debian forum.
    The problem is not the new MPLAB X but the latest 4.15+ linux kernel which refuse to allow interprocess communications under systemd for security reasons. Ubuntu introduced this kernel in 18.04 bionic biever.
     
     Open a terminal and follow these steps:
     
    $ sudo systemctl edit systemd-udevd

    An editor will open to create a so called override.conf file.
    In the empty override file, copy and paste this two lines:

    [Service]
    IPAddressAllow=localhost
     
    Enter Ctrl-O to save, then Ctrl-X to exit.

    $ sudo reboot
     
    Done.
    Your development-tools are fully working just as they did before 18.04
    Enjoy.
     
    post edited by CDS - 2018/10/10 11:18:49
    #7
    matta
    Senior Member
    • Total Posts : 133
    • Reward points : 0
    • Joined: 2006/11/15 14:05:02
    • Location: 0
    • Status: offline
    Re: ICD3 Problems in v4.15 and Ubuntu 18.04 2018/10/17 05:42:03 (permalink)
    0
    CDS
    (SOLVED)
    Finally i found the solution in a Debian forum.
    The problem is not the new MPLAB X but the latest 4.15+ linux kernel which refuse to allow interprocess communications under systemd for security reasons. Ubuntu introduced this kernel in 18.04 bionic biever.
     
     Open a terminal and follow these steps:

    $ sudo systemctl edit systemd-udevd

    An editor will open to create a so called override.conf file.
    In the empty override file, copy and paste this two lines:

    [Service]
    IPAddressAllow=localhost
     
    Enter Ctrl-O to save, then Ctrl-X to exit.

    $ sudo reboot
     
    Done.
    Your development-tools are fully working just as they did before 18.04
    Enjoy.
     


    This worked for me, thanks
    #8
    Jump to:
    © 2019 APG vNext Commercial Version 4.5