Menu

Installing GCB on Linux Mint

bed
2019-08-22
2019-11-14
<< < 1 2 (Page 2 of 2)
  • stan cartwright

    stan cartwright - 2019-10-15

    I tried mint 19.2 again. Tried to get gcb working..got this from extract gcb@syn.
    My pass word don't work...is there a default?
    I could like mint with cinnamon.

     
  • Trev

    Trev - 2019-10-15

    I thought the password was supposed to be in the readme.txt file, but it seems to be missing... anyway, from memory it is GCB :)

     

    Last edit: Trev 2019-10-15
  • stan cartwright

    stan cartwright - 2019-10-15

    Thanks Trev. I like mint but think gcb for linux is more difficult to install for a beginner than installing on win.
    I had no problem installing kodi and chromium on mint.
    mint recognised my epson dx4400 printer scanner and worked with no epson driver.
    I don't use the win cmd line box often but in linux it's normal for so many things.
    Mint boots same time as win 10 but mint works straight away while win seems to "do" stuff.
    chromium opens much faster than chrome on win 10...same machine,64 bit.
    my win 10 was free upgrade from win 7 32 bit. I upgraded win 10 to 64bit free but it ran slower.
    mint 64bit seem to run much faster than win 10 64bit.

     
  • stan cartwright

    stan cartwright - 2019-10-15

    You will need to be able to install and compile the source code for your Linux/BSD distribution.
    oh.

     
    • Trev

      Trev - 2019-10-15

      See te Help - there's a script to run to do this for you.

       
  • stan cartwright

    stan cartwright - 2019-11-11

    Finally!
    @Bed, I got gcb to install on mint 19.2.
    Now to work on the command line for gcb to flash hex a .gcb file to arduino.
    Great help @bed. I installed fbc to /usr/local/bin from another guide but everything else worked installing gcb.
    You are the main gcb on linux guru :)

     
  • stan cartwright

    stan cartwright - 2019-11-14

    This didn't work from first line

    SETTING UP THE TOOLS FOR COMPILE AND FLASH.
    First we need to find out where the Java tool IPECMD is:

    In Console enter find /opt -name ipecmd.jar

    find /opt -name ipecmd.jar
    It will give this:

    /opt/microchip/mplabx/v5.25/mplab_platform/mplab_ipe/ipecmd.jar as result.

    To be honest, we provide a script which already has the result already in it, but this Description wants to be version-independent. Just to be future save.

    But the next step is important and you must do this.

    Enter the following lines (use copy paste)

    sudo touch /usr/local/bin/gcb-flash.sh
    sudo chown $(ll .config/geany/filetype_extensions.conf|cut -d' ' -f 3) /usr/local/bin/gcb-flash.s
    This will generate an empty file which is editable as normal User, namly you.

    The Editor Geany is still running, yes? Please create a new file with the left most icon [+].

    Copy paste the following lines in it

    gcb-flash.sh

    by darkdau 21.Aug.2019

    to set the correct Path to ipecmd.jar execute the following line:

    find /opt -name ipecmd.jar

    this will print out one or more lines, choose the one you want use

    and edit the next line

    IPECMD="/opt/microchip/mplabx/v5.25/mplab_platform/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 -W -F"$1"
    #java -jar $IPECMD -TPPK3 -P$TARGET -M -W -OL -F"$1"
    else
    echo "$IPECMD was not found"
    fi
    Highlighting will appear after the save, so don't worry.

    This Script is responsible for flashing PIC it will not release the PIC from Reset after Flashing.

    That's why we now copy the file to an alternate name.

    Enter

    sudo cp /usr/local/bin/gcb-flash.sh /usr/local/bin/gcb-flash-release.sh

    sudo chown $(ll .config/geany/filetype_extensions.conf|cut -d' ' -f 3) /usr/local/bin/gcb-flash-release.sh

    ll /usr/local/bin/gcb*
    The output of ll should look like:

    ll /usr/local/bin/gcb
    -rwxr-xr-x 1 bed root 894 Aug 21 14:05 /usr/local/bin/gcb-flash-release.sh

    -rwxr-xr-x 1 bed root 894 Aug 21 13:04 /usr/local/bin/gcb-flash.sh*
    edit the file gcb-flash-release.sh

    Activate the line with the IPECMD where the option OL is contained by deleting the #.
    Important: the other line where this option is not must be commented out, so insert the # here.
    Here is a screenshot to make it clearer.

    For all Command line switches of $IPECMD see file:///opt/microchip/mplabx/v5.25/docs/Readme%20for%20IPECMD.htm

    To be able to directly compile and flash with F8 and F9, the following entries are necessary.

    Navigate in Geany to Build->Set Build Commands.

    Please note that any * .gcb file is loaded and the tab is also active, because Geany has different tools for each file type. You may use any File out of /opt/GCBASIC/demos/

    for 1,2,3 enter

    1. /opt/GCBASIC/makehex.sh %d/%f

    2. /usr/local/bin/gcb-flash.sh %d/%e.hex

    3. /usr/local/bin/gcb-flash-release.sh %d/%e.hex

     
<< < 1 2 (Page 2 of 2)

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.