Menu

Linux: Howto use PicKit 3 (Clone)

bed
2017-08-19
2017-12-04
  • bed

    bed - 2017-08-19

    Not a Question but a hint.
    I'm using now Geany with sligth modification, like Syntax Highlighting set to Freebasic.
    The most interesting thing was to discover a Solution how to Flash without using the MPE GUI.
    The Commandline for Flashing is:
    java -jar /opt/microchip/mplabx/v3.65/mplab_ipe/ipecmd.jar -TSBUR160601693 -P18F25K22 -M -F"%d/%e.hex"
    The Bold Values have to be set individually.
    Interresting is that I was not able to use the canonical Names, only Serial Number worked.

    Hope it helps other Linux users.

     

    Last edit: bed 2017-08-20
  • bed

    bed - 2017-08-19

    Screenshot

     
  • bed

    bed - 2017-09-23

    Meanwhile I managed the -T issue, typically PEBCAK problem.
    -TPPK3 works also. do not use Space between -T and PPK3

     
    • Anobium

      Anobium - 2017-09-23

      You need to put this in the FAQ! :-)

       
  • bed

    bed - 2017-09-24

    Definitly ... Done ;-)

     
  • bed

    bed - 2017-12-03

    An little experimantal Improvement.
    For flash I do now use this one

    IPECMD="/opt/microchip/mplabx/v3.65/mplab_ipe/ipecmd.jar"
    # simple test for Typo
    if [ -e "$IPECMD" ]
    then 
        # finding the filename
        BASENAME="$(basename $1)"
        GCBNAME="$(echo $BASENAME|cut -f1 -d.)"
        #echo "Basic Source=$GCBNAME.gcb"
        BASICFILE="$(dirname $1)/$GCBNAME.gcb"
        CHIPLINE="$(grep -i '#chip ' $BASICFILE)"
        TARGET="$(echo $CHIPLINE|sed 's/#chip//I' |sed 's/ \+//g'|cut -d, -f1)"
        echo "Flashing Target:$TARGET"
        echo "using java -jar $IPECMD -TPPK3 -P$TARGET -M -F\"$1\""
        java -jar $IPECMD -TPPK3 -P$TARGET -M -F"$1"
    else
        echo "$IPECMD was not found"
    fi
    

    save it somewhere as picflash.sh and insert it as the Commandline for Flashing
    When I did use this a little longe I update the FAQ for this or make a dedicated Page for setting up.

     

    Last edit: bed 2017-12-03

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.