Good IDE for Spin+PASM, maybe PropC
AwesomeCronk
Posts: 1,055
I recently reset my PC entirely, and have been looking to upgrade to a new IDE for P1. I must have Spin1/PASM, and Prop C would be a bonus. I use Windows 10.
Thanks!
Thanks!
Comments
Maybe this should even be added as an easily selectable option in FlexGUI.
Ray
If I could use spin code like that, and call prop c code from spin, and call spin code from prop c, then that would be nigh on perfect.
Mike
Be aware, you'll get to the "right" answer faster if you start with these kinds of requirements. "IDE" is the wrong question to be asking about at this level. Start by asking what tools support that feature (or one similar) and then find out what editors (IDEs) work (well) with that tool.
FlexGUI (https://github.com/totalspectrum/flexgui/releases/latest) can do that. FlexGUI is a very simple IDE that uses the fastspin compiler to compile PASM, BASIC, Spin, and C, for both P1 and P2. Note though that because it uses the fastspin compiler rather than PropGCC, only fairly simple C programs may be compiled. The "simple" libraries haven't been ported to FlexC yet, for example. Also, as an LMM compiler the code fastspin produces for Spin is larger than that produced by other Spin compilers (but also much, much faster).
https://forums.parallax.com/discussion/comment/1453190/#Comment_1453190 ... uses a Spin object in FlexBASIC
https://forums.parallax.com/discussion/comment/1453582/#Comment_1453582 ... uses own FlexC code in in FlexBASIC
https://forums.parallax.com/discussion/comment/1478735/#Comment_1478735 ... uses a function from FlexC's stdlib in FlexBASIC
https://forums.parallax.com/discussion/comment/1478765/#Comment_1478765 ... uses FlexC's stdio in FlexSPIN.
https://forums.parallax.com/discussion/comment/1479088/#Comment_1479088 ... uses own Spin code in FlexBASIC.
These examples are independent of the IDE. Just use FastSpin with whatever editor or IDE you want.
Edit: looked at that syntax, which is PRECISELY what I wanted! Thanks!
I'm also slowly working on SpinEdit, which is capable of using any of the P1 compilers (and also Fastspin for P2).
But, I only really use it for P2...
http://forums.parallax.com/discussion/169259/spinedit-editor-for-spin-spin2-and-fastbasic/p1
There are two separate issues: the compiler that translates source code to P1 (or P2) binary, and the editor/IDE that lets you enter code.
The fastspin compiler is the only one I'm aware of that lets you use multiple languages together that easily for the Propeller. But note that it is a different compiler from PropGCC, so while fastspin lets you use Spin, BASIC, PASM, and C, it doesn't have the same libraries as PropGCC.
You can use fastspin with any configurable IDE or editor -- all it needs is ASCII text.
There is a simple IDE called FlexGUI that comes with fastspin already integrated, and I would suggest you take a look at it:
https://github.com/totalspectrum/flexgui/releases/
The editor build in to FlexGUI works with any language, but it does not have any special features like syntax highlighting -- it's just a plain basic editor. There are simple buttons for compile and run and to switch between P1 and P2.
There is no indication what order the dependencies need to be installed in and the other open source projects are lacking in useful installation instructions.
Thank You.
welcome to the forum, again.
You wish is understandable, but it is not really easy to get changes to say GCC upstream and included into the official release of GCC.
So PropGcc got stuck on gcc 4.x somewhere and Parallax stopped changing anything since they are using it for BlocklyProp and their whole educational work.
Same goes for repositories of Linux distributions, they simply do not take everything you want them to offer.
This is part of the reason people tend to build stuff by themselves on Linux.
The IDE's you are looking for are SimpleIDE (C/C++) and PropellerIDE (SPIN) they run on Linux. OpenSpin (spin bytecode compiler) also can be build for Linux, same goes for the newer Stuff for P1/P2.
But all of this are forum user created programs, not Parallax and they, for sure, get nothing upstream into the Debian or other Linux repos.
Parallax itself just provides Software for Windows (And Chromebooks online)
So you are pretty much on your own there.
Mike
Unpacked the contents of the zip file into path 'C:/Program Files (x86)/Parallax Inc/FlexGUI'.
Ran FlexGUI.
Attempted to close FlexGUI.
Received error log in attached .txt file
Killed FLexGUI via Command Prompt.
Tried to open .spin files with FlexGUI and got a whole slew of issues.
Help please.
Even if you are admin, Win10 sometimes won't let you do it...
Try making a C:\FlexGUI folder and put it there...
Yep. I created a folder called C:\MyPrograms and install IDEs and other tools there -- including the original Propeller Tool. This gives me access to the libraries folder which isn't available [without a lot of gyrations] when installed in Program Files (x86)
Can’t open spin files in FlexGUI from the file explorer.
Can’t compile.
Can you give us some clues as to what's going on? What did you try to do? What error messages you're getting, or any alert boxes?
(1) Unzip FlexGUI to C:\Parallax\flexgui
(2) Double click on C:\Parallax\flexgui\flexgui.exe
(3) The FlexGUI window opens up. I can see a command bar that has "Compile for P2a" "Run Binary" and similar buttons, and a message that says "Use Commands>Configure Commands... to switch to P1".
(4) So I go to the Commands menu and select Configure Commands...". I get an "Executable Paths" dialog box with a button that says "P1 defaults". I click on that and then "OK".
(5) Now I go to the "File" menu and select "Open File". A file selector comes up. I navigate to Parallax\flexgui\samples and select "hello.spin" then "OK". The hello.spin file is loaded into the tab.
(6) Now I hit the "Compile & Run on P1" button. Some messages appear in the "Compiler Output" window at the bottom indicating that the program has been compiled, and a Windows Firewall message appears about proploader.exe. I click "OK" on that (proploader wants to look for networked P1s, but I don't have any so it doesn't matter). Then a "Propeller Output" window pops up with "Hello, world!" being printed in it over and over.
I'm not sure how to set it up so that you can click a source file using the file explorer. Normally you would right-click on a source file with the appropriate extension, such as c, spin or spin2. You would then click on "Properties" and then under the "Opens with" item click "Change". You would then need to click "More apps" and then click "Look for another app on this PC". Once you locate flexgui.exe you would then click on this. I tried this, but it complains that it can't find a usable init.tcl file. And then it complains that it can't find flexgui.tcl. So apparently a TCL file is needed if you want to be able to start flexgui by clicking on a source file.
Using P1 defaults, this is the error that FlexGUI tells me when I click 'Compile & Run on P1':