Raspberry Pi For Propeller Development?
TylerSkyler
Posts: 72
Hello, I have finally have gotten my rpi and I'm looking to (hopefully) use it so I can program and prototype with the propeller while I travel(Im working on a case and battery powered screen) and I would like to know if there is a way to compile and download propeller programs to the propeller on the Arm linux (I'm using Raspian "Wheezy")that the rpi uses? Maybe someone can point me in the direction of something that will work, but not expecting a full blown IDE like the ardunio has already .
Thanks,
Tyler
Thanks,
Tyler
Comments
It seems to me if you could get a version of WINE (http://www.winehq.org/) , VirtualBOX (https://www.virtualbox.org/), or similar compiled for ARM that would run in Raspbian (or whatever Linux flavor you like on your Pi), then you could run Propeller tool on your Pi. I use WINE with Ubuntu to run some Windows apps and it works great. I'm not sure if the Pi has enough memory to handle running an emulator and an application at the same time though. If you could get Propeller Tool for Raspbian that would be even better.
Here is a thread on running Propeller Tool in Linux:
http://forums.parallax.com/showthread.php?140791-Got-Propeller-Tool-working-under-Linux&highlight=Propeller+Tool+Linux
Thanks.
A better option would probably be PZST. If that doesn't work, you may be able to run bst under Qemu-user.
I wouldn't hold my breath waiting for the PropTool, BST, PZST, SimpleIDE or any full IDE to run on RPi...it might even be IMPOSSIBLE (there, I've said it!! )
If you use QtonPi for your OS on your Pi, it should take care of the QT libraries, correct?
Thanks,
Tyler
Downloaded the open source SPIN compiler to my RasPi, unzipped it, typed make and there it was ... the spin compiler.
Test:
Copied my snake archive to the RasPi and compiled it with spin .... just a second later I had the snake.binary
copied that back to the PC and used the propeller tool to load it into Propeller RAM ... WOW ... it works.
So, now we only need to have a uploader running on the RasPi.
As an editor I'd simply use FTE - did not have a closer look, but hopefully the syntax highlighting in FTE is configurable.
http://www.parallax.com/tabid/828/Default.aspx
is needed to get the tools to get the sources of the propeller gcc from google.
hg clone https://code.google.com/p/propgcc/
is needed to download all sources.
No success so far with compiling the loader ... download with hg took ages on the RasPi ;o)
But I also tried to connect the Prop to the RasPi and it worked.
I installed a terminal software with
sudo apt-get install gtkterm
and connection to the propeller worked fine and at least the quickstart board seems to run stable without additional power supply.
If you're in the US you can buy them from Newark Electronics. They have them in stock.
http://www.newark.com/raspberry-pi/raspbrry-pcba/raspberry-pi-model-b-board-only/dp/83T1943?ref=lookahead
I tried commenting out all lines with BSTC, but somehow the make knows that there are modules missing and stops build. My guess is, that all those spin-files need to be compiled for the GCC usecase. If we only want to upload *.binary or *.eeprom files all those modules won't be used, right?
The rest of the build seems to be working fine, as I have the *.o files in the obj directory. Some ideas?
The Spin compiler I already compiled stops working because the *.spin-files include #ifdef statements.
Fixed that and I now have the *.binary files.
Unfortunately the *.dat files can't be generated by the spin compiler due to missing implementation of the -c flag.
Hmm ... maybe I should try with empty *.dat files ;o)
.....
Maybe it's better to have a look at the loader-code and extract the things needed to do a simple *.binary/eeprom upload.
Indeed.
Try this in propgcc/loader/src:
-pN usage: -p0 ID, -p1 program RAM, -p2 program EEPROM (no reset), -p3 program EEPROM and reset
But while waiting for the HG clone on my netbook I had a look on the loader.pdf. How can the loader upload a *.binary? All examples I found work with *elf-files.
Thanks jazzed! That's the trick!
So, everything we need to prog the prop is available on the RasPi! This is going to be fun to combine those two beauties and make something cool.
Great.
Quickstart board?
Initially just compile on the PC and use the RPi to load the binary to the Prop as MagIo2 has done.
Email says that my Raspberry Pi has been shipped, so I can be the test dummy, and write up all the notes.
I imagine I'll be starting at, "So I got my Raspberry Pi, now what?"
Sounds Great! I'll try out the methods discussed in this forum today (hopefully) and post my results.
Thanks for the Help,
Tyler
With spin you do the compile of a *.spin-file (actually this is like compile top in the propeller tool).
Example:
spin Snake.spin
output: Snake.binary
With pload you upload the *.binary to the propeller. As explained by jazzed, -p1 loads into RAM, -p2 loads into EEPROM
pload /dev/ttyUSB0 Snake.binary -p1
Have fun!
It just means that your Quickstart generated extra bytes during the setup portion of the load process before the propeller boot code set P30 to output.
The message can be ignored.
Thanks! I like medit as an editor for code and it supports plugins written in Python and C, so I think mabye writing a plugin that takes the currently open file and calls the compile and load execs would be very cool. I'll look into programming a plugin no guarantees though
Thanks,
Tyler