Shop OBEX P1 Docs P2 Docs Learn Events
Can we program the Propeller 1 without using the default IDE's? — Parallax Forums

Can we program the Propeller 1 without using the default IDE's?

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.

Comments

  • I don't think any of the Propeller IDEs recognize changes to source in open files, so it's best that you write the code in your favorite text editor, load it into a compatible IDE, then download it. You didn't say what language you're using; if Spin/PASM, you may be able to connect BSTC and BSTL to your editor.
  • yetiyeti Posts: 818
    edited 2015-11-24 14:02
    https://github.com/parallaxinc/OpenSpin can be used without IDE and
    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.
  • Heater.Heater. Posts: 21,230
    Certainly you can.

    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.
  • Thanks for the suggestions everyone!

    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.
  • Wait...I see OpenSPIN works with PASM.

    Thanks!
  • Hi cbmeeks,

    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/
  • That looks awesome but I don't see a way to run PASM with it.
  • Heater.Heater. Posts: 21,230
    cbmeeks,

    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.

  • DavidZemonDavidZemon Posts: 2,973
    edited 2015-11-24 15:20
    cbmeeks wrote: »
    That looks awesome but I don't see a way to run PASM with it.

    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.
  • cbmeeks wrote: »
    I'm on a Mac, BTW.

    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.
  • I'm certainly willing to help.

    Feel free to send me an PM. I'd be happy to test anything out or maybe help with creating an easier Mac installer.
  • Heater.Heater. Posts: 21,230
    If you want to write PASM on the Mac all the tools listed here will work. Apart from PropWare it seems.
Sign In or Register to comment.