I use Gedit as IDE for PIC programming in Ubuntu, there are other IDEs, but Gedit is simple and let me do what i want.
Gedit has a lot of plugins and is possible to run external scripts or add customized plugins.
To work with GcBasic i use the "external Tools" plugin for compiling and upload .hex file to PIC, just add a new external tool with the command to run the action you want, for example:
For comiling GcBasic file:
/path/to/gcbasic -NP $GEDIT_CURRENT_DOCUMENT_PATH
For upload .hex with PicKit2:
pk2cmd -P -x -m -f$GEDIT_CURRENT_DOCUMENT_PATH
To have syntax highlighting of GcBasic and asm code i wrote the needed files: gcbasic.lang and asmpic.lang, you can downloand from here:
Open the "GcBasic" folder and then the "GcBasic.lang" folder, there you will find the .lang files and a "readme.txt" with english how-to, or "instrucciones.txt" for spanish.
Any sugestion or cuestion please let me know.
Greetings.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I wrote a plugin for Gedit to add some tool-bar and menú items that allow us to compile, upload and download .hex files, etc.
There is a bottom panel to show messages and a config dialog to select, configure, and add compilers, programmers and PICs.
It has configurations by default to Gpasm, GcBasic and PicKit2.
It's very useful instaling the browser side-panel and some other plugings and tools.
Just unpack and run instalar.sh , or copy the files manually to:
/home/user/.gnome2/gedit/plugins/
Then open Gedit and activate "Pic-IDE" plugin.
By now it's just in spanish, but i think it could be translated in a future. Anyway this is just a first version, i still need some work to be a definitive release.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok... some errors found, but the most important is that configure window doesn't work if wxpyton is not instaled... i'm actually re-writing the plugin and will use gtk instead of wx.
Anyway if someone wants to play with it just install "python-wxgtk2.8":
sudo apt-get install python-wxgtk2.8
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
interesting, because I am using ubuntu on my home PC. I will try your add-ons.
on windows I am using just simply Programmer's notepad. compiling with batch files. Remember: all asm files should be tested with MPLAB simulator. Only after succesfuul simulation (and if neceserry additional conding in asm) code could be compiled and uploades. this is because I regularly have random error with IF statemets.
Probaby some IF statemet are to complex for GCBASIC core and ASM optimiser.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here is the next version, the code is divided in some smaller files and added one button for eah compiler step, in case the compiler works in several steps or with/without linker, is possible to run just one step.
The plugin is in spanish... i'm not sure how should i do to the plugin can be translated to local languages... any help will be apreciated.
I use Gedit as IDE for PIC programming in Ubuntu, there are other IDEs, but Gedit is simple and let me do what i want.
Gedit has a lot of plugins and is possible to run external scripts or add customized plugins.
To work with GcBasic i use the "external Tools" plugin for compiling and upload .hex file to PIC, just add a new external tool with the command to run the action you want, for example:
For comiling GcBasic file:
/path/to/gcbasic -NP $GEDIT_CURRENT_DOCUMENT_PATH
For upload .hex with PicKit2:
pk2cmd -P -x -m -f$GEDIT_CURRENT_DOCUMENT_PATH
To have syntax highlighting of GcBasic and asm code i wrote the needed files: gcbasic.lang and asmpic.lang, you can downloand from here:
http://pic-linux.foroactivo.net/Descargas-h1.htm
Open the "GcBasic" folder and then the "GcBasic.lang" folder, there you will find the .lang files and a "readme.txt" with english how-to, or "instrucciones.txt" for spanish.
Any sugestion or cuestion please let me know.
Greetings.
Hi again...
I wrote a plugin for Gedit to add some tool-bar and menú items that allow us to compile, upload and download .hex files, etc.
There is a bottom panel to show messages and a config dialog to select, configure, and add compilers, programmers and PICs.
It has configurations by default to Gpasm, GcBasic and PicKit2.
It's very useful instaling the browser side-panel and some other plugings and tools.
You can see some screenshots and comments (spanish) here:
http://pic-linux.foroactivo.net/gedit-f27/gedit_pic-ide-plugin-para-convertir-gedit-en-una-ide-para-pic-t149.htm#458
And download files from here (GEDIT/Gedit_Pic-IDE/Gedit_Pic-IDE.tar.gz):
http://pic-linux.foroactivo.net/Descargas-h1.htm
Just unpack and run instalar.sh , or copy the files manually to:
/home/user/.gnome2/gedit/plugins/
Then open Gedit and activate "Pic-IDE" plugin.
By now it's just in spanish, but i think it could be translated in a future. Anyway this is just a first version, i still need some work to be a definitive release.
Ok... some errors found, but the most important is that configure window doesn't work if wxpyton is not instaled... i'm actually re-writing the plugin and will use gtk instead of wx.
Anyway if someone wants to play with it just install "python-wxgtk2.8":
sudo apt-get install python-wxgtk2.8
interesting, because I am using ubuntu on my home PC. I will try your add-ons.
on windows I am using just simply Programmer's notepad. compiling with batch files. Remember: all asm files should be tested with MPLAB simulator. Only after succesfuul simulation (and if neceserry additional conding in asm) code could be compiled and uploades. this is because I regularly have random error with IF statemets.
Probaby some IF statemet are to complex for GCBASIC core and ASM optimiser.
Ok.. any feed-back will be apreciated.
Now the plugin are is in a new versión... the config window is in the side-panel of Gedit instead of an external wxwindow: http://pic-linux.foroactivo.net/users/22/13/11/album/pantal22.png then is no needed installing wxpython.
And it still will have some changes, you can follow the evolution in spanish here:
http://pic-linux.foroactivo.net/gedit-f27/gedit_pic-ide-plugin-para-convertir-gedit-en-una-ide-para-pic-t149.htm#458
But any cuestion or error please let me know.
Sorry .... i forgot, for the new pluing to work is needed activating the "external tools" plugin.
Here is the next version, the code is divided in some smaller files and added one button for eah compiler step, in case the compiler works in several steps or with/without linker, is possible to run just one step.
The plugin is in spanish... i'm not sure how should i do to the plugin can be translated to local languages... any help will be apreciated.
Download here: http://www.box.net/shared/g5pc5ejizc