Can we program the Propeller 1 without using the default IDE's?
cbmeeks
Posts: 634
in Propeller 1
I prefer to work with IntelliJ or Sublime Text.
IntelliJ is probably too bloated for Propeller work but is there a way I can just use Sublime Text (or any text editor) and still program/run the Propeller 1?
With Arduino, I can tell it I use an external editor and I just switch over to Arduino when I want to upload or use the serial monitor.
Is there a way I can do the same for Propeller? I'm on a Mac, BTW.
Thanks.
IntelliJ is probably too bloated for Propeller work but is there a way I can just use Sublime Text (or any text editor) and still program/run the Propeller 1?
With Arduino, I can tell it I use an external editor and I just switch over to Arduino when I want to upload or use the serial monitor.
Is there a way I can do the same for Propeller? I'm on a Mac, BTW.
Thanks.
Comments
https://github.com/dbetz/p1load can download the code into the Propeller and act as serial terminal.
https://github.com/parallaxinc/propgcc has compilers and propeller-loader with tetminal too.
Catalina-C is an other C compiler and HomeSpun an other Spin compiler and other propeller-loaders exist too...
So for Spin, C and C++ you can use commandline based development (make and friends) or an IDE of your choice.
For Spin use the opensource Spin compiler from Parallax: https://github.com/parallaxinc/OpenSpin
Or use Michael Parks HomeSpun compiler: https://github.com/ZiCog/HomeSpun
Or the compiler that comes with BST, BSTC: http://www.fnarfbargle.com/bst.html
There is a loader on the BST page and many other loaders can be found with a bit of googling.
If you want to use C/C++ the prop-gcc is for you: https://github.com/parallaxinc/propgcc
I imagine you can script many text editors to run the compile and load step when you save an edited file. If not I would just write a little file watcher script for the command line to do that.
I should have mentioned I mostly program in PASM with only minimal SPIN (mainly to launch new COGS, set params, etc.).
Will any of these work with PASM?
Sublime Text actually has a way to create a build system so you can script it to run compilers. I do this with 6502 development.
Thanks.
Thanks!
You really want to check out PropWare. It was made just for you.
http://david.zemon.name/PropWare
and CLion
https://www.jetbrains.com/clion/
Perhaps you need Cliff Biffle's propeller assembler PROPASM https://github.com/cbiffle/propasm
That is pure PASM source input, no Spin at all. It generates a few Spin byte codes to get the PASM started. I used it as the assembler for my attempt at a high level language compiler for the Prop.
PROPASM is written in Java. Sigh, ah well.
Still, for the sake of a couple of lines of Spin in your source OpenSpin will work fine.
There are a few different ways to write assembly and use it with PropWare.
1) Assembly only file - generally uses .S or .s extension. See an example from libpropeller
2) Inline assembly - with or without FCache. See lots of examples in PropWare.
3) Extracting the assembly section of a Spin file for use in a PropGCC application using "SPIN2DAT" language in PropWare. I don't have a "simple" example of this, but if it intrigues you I can create one. Here's a complex example that makes use of it.
It's important to recognize that, when you ask about "ways to run PASM" you are only asking about the build system. As such, none of the three options I present in this post are unique to PropWare - but they are particularly easy to accomplish because I already did the hard work of wiring everything into CMake correctly.
Oh crud.... I just noticed this part. I've had only one person test PropWare on a Mac (that I know of) and I was not able to get it working on his system. If you're willing to work with me though, I'd very much like to give it another shot.
Feel free to send me an PM. I'd be happy to test anything out or maybe help with creating an easier Mac installer.