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.
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 :)
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
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
/opt/GCBASIC/makehex.sh %d/%f
/usr/local/bin/gcb-flash.sh %d/%e.hex
/usr/local/bin/gcb-flash-release.sh %d/%e.hex
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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
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.
You will need to be able to install and compile the source code for your Linux/BSD distribution.
oh.
See te Help - there's a script to run to do this for you.
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 :)
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
/opt/GCBASIC/makehex.sh %d/%f
/usr/local/bin/gcb-flash.sh %d/%e.hex
/usr/local/bin/gcb-flash-release.sh %d/%e.hex