Just got Prop QuickStart...install BST...totally lost on what to do next...help!
PoundSign2
Posts: 129
Hello friends,
Today I purchased a Parallax Propeller QuickStart (RevA) w/ P8X32A. Saw some videos on YouTube about it and thought it would be a great new adventure aside from Arduino and ATmel chips. With that said I went to the store and grabbed one of these, although RadioShack marked it up 100% from Parallax website, and when I got home to get started in programming, you know download compiler, IDE, etc. However I am really lost with using Brad's SPIN Tool. When I load the program I get this...
There doesn't appear to be any example code, and using Google/YouTube I cannot locate any help in programming using BST. Can the community please help point me in the right direction so I can use this fine Microcontroller? I feel like I am missing something. :blank:
- OS Ubuntu 13.04 64-bit
Today I purchased a Parallax Propeller QuickStart (RevA) w/ P8X32A. Saw some videos on YouTube about it and thought it would be a great new adventure aside from Arduino and ATmel chips. With that said I went to the store and grabbed one of these, although RadioShack marked it up 100% from Parallax website, and when I got home to get started in programming, you know download compiler, IDE, etc. However I am really lost with using Brad's SPIN Tool. When I load the program I get this...
There doesn't appear to be any example code, and using Google/YouTube I cannot locate any help in programming using BST. Can the community please help point me in the right direction so I can use this fine Microcontroller? I feel like I am missing something. :blank:
- OS Ubuntu 13.04 64-bit
Comments
http://www.parallax.com/downloads/propeller-tool-software
If you put BST inside the folder with the extracted Propeller tool files then you can load the examples into BST
Are there any tutorials on how to program in/using SPIN? I should note that I also did copy some code from the book, "PROGRAMMING AND CUSTOMIZING THE MULTICORE PROPELLER(TM) MICROCONTROLLER" and then I uploaded that code to my P8X32A and now have an LED blinking. While I'm sure I could figure out how to program it thoroughly, in due time, a tutorial would be most appreciated.
Having trouble getting SimpleIDE to run. I downloaded the zip, unzip, and there doesn't appear to be any executable file. Do I have to do something inside terminal, such as unzip via terminal? Any help is appreciated.
SimpleIDE is the way to go.
Have you started from these instructions: http://learn.parallax.com/propeller-c-set-simpleide ?
Get the linux down load package https://propside.googlecode.com/files/SimpleIDE-0-9-40.r2.i686.debian-linux.tar.bz2
In a terminal window change to the directory were it was downloaded and unpack it with the command: That should give you a new directory full of SimpleIDE stuff SimpleIDE-0-9-40
Change to that directory and run the setup script: You may need to do that as the root user, I forget, use:
That will have installed the compilers and stuff to /opt/parallax
and given you an Simple IDE executable in the current directory. Run that:
Have fun.
I guess you will need more help to be getting on in Spin with SimpleIDE if that is what you want.
I ran into an issue after running the
What happens is I get No such file or Directory exist when I try to run the setup.sh file, even as root it makes no difference. Any additional helpers?
Also, why would you want to program this MCU in C as opposed to the SPIN language? I guess I'm having a hard time visualizing how you call eight cogs at a time.
I have a newer version so adapt the file and directory names according to what you have.
Note: I have written "tar -xvjf..." above. I just tried it without the hyphen though and it worked.
If you want to see what files you have use the ls command.
SimpleIDE does support Spin, but it is not really advertised as much as the C capabilities, I have done both on that IDE.
Ray
It's very good to have C available for the Propeller because it is the language that the bulk of the worlds embedded and MCU programmers use. Many of them don't want the hassle of having to use a different language. There is lot's of existing code in C. And so on.
Don't forget that all those millions of Arduino programmers work in C. Well, C++ actually but never mind.
For raw beginners that are new to programming and/or the Propeller I might suggest it's better to start with Spin. It's a much simpler language and development system, tailored for the Propeller and there are tons of ready made "objects" in the OBEX.
One never "calls eight cogs at a time". One starts a COG running some function in your code. That function will normally be and endless loop that never finishes. Say reading I/O pins or performing serial communications. When that little "sub program" or task is up and running it communicates with your main program, or other sub tasks, by reading and writing data to memory that they both share. Say, the state of those I/O pins or the bytes received over a serial line.
This is basically the same in both C and Spin.
Heater, etal.
The current Linux release 2 package that Parallax uploaded doesn't work like that.
I'll be talking with Jeff about this tomorrow. I'm sorry if this has caused trouble.
I don't see any instructions about how the Linux package is supposed to be used.
I just tried the r2.
After unpacking it there is no setup script or anything.
There is a SimpleIDE in the bin directory, let's try that:
Is there ant way to install this or is it just totally borked?
What was wrong with the old way?
Then you can work on other projects while investigating features via Forth. Bst can and does load up Forth rather easily if you can open the actual .spin file and compile it.
Hi PoundSign2! Glad you decided to try the Propeller!! The thing about Brad's BST is it's pretty minimalistic in how it looks, but acts similar to what you'd expect in PropTool. Both used for spin. There are some bugs in BST since it's no longer supported, but for my old mac, it does what I need it to do most of the time.
Here's some basic information:
http://tymkrs.tumblr.com/post/23832530904/setting-up-brads-bst-on-macs-part-i
http://tymkrs.tumblr.com/post/23866564799/setting-up-brads-bst-on-macs-part-ii
And for working with it in general, if you look through the titles here in the archives, you'll find a lot of code, code analysis, etc.
http://tymkrs.tumblr.com/archive
I've found that whatever Spin code you can put into Proptool, you can put into Brad's BST. So I interchange which spin compiler in my posts a lot. Lately, I've been on a c kick, but if you look a few months back in the archives, you'll be able to find some simple spin code along with my step by step. There's also learn.parallax.com which is a GREAT resource for not only copy pasting code to make it work, but also explanations so you can learn language syntax.
And then if you're interested in learning some Spin, check out http://firstspin.tv - I essentially document the process from zero experience programming to doing multi-cog projects and even board design.
I tried and got same error. No joy on getting it to install correctly.
As far as I can tell the latest release of SimpleIDE for Linux on the Parallax download page is broken and the is no way to install it.
Jazzed, above is the author of SimpleIDE and he does not know what happened so we are a bit stuck today.
The internal oscillator is obviously not as reliable as external crystal (5mHz on all prop boards I know of) but:
- Internal slow oscillator ( RCSLOW, 20kHz )
- Internal fast oscillator ( RCFAST, 12MHz )
In terms of the crystal, what I usually do in the CON section is:And if memory serves correctly, to use RCFast/RCSlow (the internal oscillators), you'd write something like _clkmode = RCFAST
A couple of key points....
A. Internal oscillator versus external oscillator
Just about everything Parallax provides comes with a 5mhz crystal and code examples at 80mhz.
So it seems that getting started with that format is easiest. You will learn to recognize the compiler directives for these as they are usually in the first few lines of code.
The internal oscillator does exist, but in most cases you really want a crystal to allow your asynchonous serial i/o to be more stable. Internal oscillators can wander more due to temperature changes. It can be handy in some extremely minimal or low power projects that don't require asychonous communication, but I suggest to skip it for now. Learn how to handle all your timing at 80Mhz before going to something slower.
B. While Simple IDE is important if you plan to use C and many of the latest code examples, the Propeller fundamentally relies on Spin. So having some basic understanding of how to compile and load .spin files via the Prop Tool or bst can be very handy. You even need a .spin file to load PASM.
+++++++
There are a lot of learning paths for the Propeller with different choices of language. When just getting started, it may help to work with a choice you know... such as C. But never expect to entirely ignore Spin and PASM if you want to get the most out of Propeller projects.
At risk of making myself unpopular around here I have posted packages of SimpleIDE that actually work. See this forum post:
http://forums.parallax.com/showthread.php/150441-SimpIe-IDE-for-Debian-%28x86%29-and-Raspbian-%28Raspberry-Pi%29?p=1208981#post1208981
Any questions, do ask.
Hey thanks a bunch for that! I'm in the middle of redoing my OSes at the moment so when I get Ubuntu up and running again I'll be sure to download it and try it out. Thanks again.
One last thing that I could use some extra clarity on: Does the crystal need to be 5MHz or can I use, say for example, my 35MHz crystal? Will this add any benefit? Does the PLL always need to be x16?
Faster is possible, a bit, 35MHz is right out. Do see the Propeller Manual.