• AVR Freaks

Hot!PicKit3 from Linux

Author
__angelo__
Starting Member
  • Total Posts : 71
  • Reward points : 0
  • Joined: 2010/12/02 02:39:25
  • Location: 0
  • Status: offline
2018/11/01 15:15:48 (permalink)
0

PicKit3 from Linux

Hi,
i tried to use the java "ipe" tool with MPLAB5 to program a PIC from Linux using picKit3.
The programmer (connected to USB) is not even detected.
Going back to v4.2 at least the pickit3 is detected, but no connected target get detected.
 
Every suggestion is welcome. For now i live with pickit2.
Regards,
angelo
post edited by __angelo__ - 2018/11/05 08:50:54
#1

4 Replies Related Threads

    jarin
    Super Member
    • Total Posts : 845
    • Reward points : 0
    • Joined: 2005/05/23 13:50:02
    • Status: offline
    Re: PicKit3 from Lnux 2018/11/02 21:08:35 (permalink)
    0
    The usual "it works for me" probably will not help you much, but I'm using PK3 and PK4 with IDE and IPE under Linux Mint on a few computers with no major problems.
    Your post is missing some details, like what Linux distro are you running, output from lsusb and dmesg after PK3 is connected, whether the pickit is genuine, whether it ever worked on other systems, with different software or another target. Does it detect target power and wrong device signature or nothing at all? Does exhibit PK3 any kind of activity (LEDs)? Are you sure the target is OK?

    Jaromir Sukuba, Bratislava, Slovakia
    http://jaromir.xf.cz/  - open source PIC18 debugger.
    #2
    __angelo__
    Starting Member
    • Total Posts : 71
    • Reward points : 0
    • Joined: 2010/12/02 02:39:25
    • Location: 0
    • Status: offline
    Re: PicKit3 from Lnux 2018/11/05 08:44:59 (permalink)
    0
    Hi,
    so some more info:
    i installed mplabx 5.05 on Debian "sid"
    The pickit3 seems detected, since i see the serial number form mplabx project properties
    Then, when i click "program" i see
     

    *****************************************************
    Connection Failed.
     
    Connecting to programmer...
    The programmer could not be started: Could not connect to tool hardware: PICkit3PlatformTool, com.microchip.mplab.mdbcore.PICKit3Tool.PICkit3DbgToolManager


    Thanks,
    angelo
     
    #3
    __angelo__
    Starting Member
    • Total Posts : 71
    • Reward points : 0
    • Joined: 2010/12/02 02:39:25
    • Location: 0
    • Status: offline
    Re: PicKit3 from Lnux 2018/11/05 08:55:33 (permalink)
    0
    Ok,
    seems i found the reason.
    MPLABX 5.,05 works fine, until you connect the pickit3 to a real USB 2.00 port (also to a 2.00 hub connected to a 3.00 hub seems to work).
     
    *****************************************************

    Connecting to MPLAB PICkit 3...

    Currently loaded firmware on PICkit 3
    Firmware Suite Version.....01.54.00
    Firmware type..............Enhanced Midrange

    Target voltage detected
    Target device PIC16F18877 found.
    Device ID Revision = 2002

    Device Erased...

    Programming...

    The following memory area(s) will be programmed:
    program memory: start address = 0x0, end address = 0x81f
    configuration memory
    Programming/Verify complete
     
    Thanks !
    #4
    __angelo__
    Starting Member
    • Total Posts : 71
    • Reward points : 0
    • Joined: 2010/12/02 02:39:25
    • Location: 0
    • Status: offline
    Re: PicKit3 from Lnux 2018/11/05 09:07:41 (permalink)
    0
    I also add the command line, in case one wants to automate it in a makefile
     
    java -jar /opt/microchip/mplabx/v5.05/mplab_platform/mplab_ipe/ipecmd.jar -OL -TPPK3 -M -P16F18877 -Ffirmware.hex




    post edited by __angelo__ - 2018/11/05 10:26:44
    #5
    Jump to:
    © 2019 APG vNext Commercial Version 4.5