Is Simple IDE what I need.
spinbob
Posts: 27
Kind of new here so I'm a little confused about some of the tools. Can someone tell me if I'm on the right track.
I currently have a few objects written in spin that I need to use. ( I did not write these)
I am a C programmer so I download SimpleIDE and got it to work on my hardware with a simple C file.
Questions:
How do I get this to output an object file or .eeprom or any kind of dowloadable?
Will SimpleIDE allow me to compile up spin files and C files together?
Should I be using some other App. instead.
Thanks
I currently have a few objects written in spin that I need to use. ( I did not write these)
I am a C programmer so I download SimpleIDE and got it to work on my hardware with a simple C file.
Questions:
How do I get this to output an object file or .eeprom or any kind of dowloadable?
Will SimpleIDE allow me to compile up spin files and C files together?
Should I be using some other App. instead.
Thanks
Comments
At this time, you can't mix and match spin and C files in one project: you have to go with one or the other. There is a handy tool called spin2cpp that does a pretty good job of converting spin files to C++ (or C) files.
SimpleIDE will take care of automatically building and downloading the executable. FYI, that's a ".elf" file type.
At this time, SimpleIDE is only for C/C++ projects. Jazzed is soon to make a branch that can handle Spin, but it's not here yet. In the meantime, you need to use Proptool or BST for Spin files.
SimpleIDE downloads code to RAM, EEPROM (and other memory types) on a board.
If you want a separate file, there are steps to make it with the included propeller-load program.
SimpleIDE will mix PASM from a Spin file in a C program to run in a COG.
It will not mix Spin code and C code into a program.
It is theoretically possible to run Spin code side-by-side in a separate COG, but SimpleIDE will not do that.
There is a Spin to C converter (spin2cpp) that can be used, but it is not integrated in SimpleIDE.
@SRLM, SimpleIDE can compile Spin programs, but not the same way as Propeller-Tool.
And yes, another program is comming that will work like Propeller-Tool.
The spin2cpp program can make Spin source into C/C++ source. You can add C, C++, Spin, and other tabs to a SimpleIDE C or C++ project.
The most typical use of Spin within a SimpleIDE C or C++ project however is simply for re-using the Spin file's PASM COG code.
I put in this:
C:\spin_v103>spin2cpp myprog.spin
I get this:
Myprog.spin:133: syntax error
I moved functions around and the error stays the same. This compiles OK with spin.
Any ideas?