Shop OBEX P1 Docs P2 Docs Learn Events
Confused about SimpleIDE and Spin, getting binary error when trying to upload — Parallax Forums

Confused about SimpleIDE and Spin, getting binary error when trying to upload

tuffstufftuffstuff Posts: 24
edited 2014-12-27 14:06 in Propeller 1
HI, I'm comming back to a project I stopped working on a year ago. Then, I had to work in a windows environment to upload to my Activity Board. Now it appears that SimpleIDE supports Spin and I can work in my prefered enviroment, Linux.

I've run into a couple of problems:

1. Starting a new spin project is not straight forward. I can't just open up my Spin file into the IDE. I need to start a c project, then change the .side file and the .c extention, then copy my old code over. Starting a new spin project I get a "Blank Simple Project was not found" error.

2. Once I have the spin code loaded into the ide, when trying to load to my board I get the following error:
openspin -I /opt/parallax/spin/ MidiParse.spin
/opt/parallax/bin/openspin error ... (1)

propeller-load -S1 -Dreset=dtr -e -r MidiParse.binary -p /dev/ttyUSB0Propeller Version 1 on /dev/ttyUSB0
error: failed to open 'MidiParse.binary'
error: load failed

Am I misusing SimpleIDE? Does it not support Spin? If so, what's the trick to getting this to work? What am I doing wrong?

Any help is appreciated.

Thanks!

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2014-12-27 12:22
    Use PropellerIDE instead. It's the tool that's designed for Spin.

    -Phil
  • dgatelydgately Posts: 1,630
    edited 2014-12-27 12:41
    1. To work with Spn, create a new file, change the compiler to spin, save the file with a .spin extension, click on the gear icon to set that file as the top spin file of the project, then save the project to create its .side file (the project file). Then try to compile.

    2. Seems that your properties are not set correctly for a spin project. Be sure to set the spin compiler path, the spin libraries directory as well as the loader directory. It's best to use a separate workspace directory for spin, as well (not the same as your C workspace)...

    Always mention what versions of SimpleIDE & your OS are in these threads to aid those who are trying to help you.

    EDIT: SimpleIDE has project support with its .side file and project-based features! As much as I like PropellerIDE, I think SimpleIDE still has some great features that PropellerIDE does not... Both are great development tools to have available for Spin coders!

    dgately
  • tuffstufftuffstuff Posts: 24
    edited 2014-12-27 12:44
    Hmm... no 32 bit. I'll dig around and see if I can find something that will work. Thanks for the tip.
  • tuffstufftuffstuff Posts: 24
    edited 2014-12-27 12:58
    Looks like I was able to compile PropellerIDE from the git repo. Haven't tried to upload yet though. Good to know that SimpleIDE works for Spin. I wasn't sure based on my first impression.

    Question: For SimpleIDE, is the spin compiler just the openspin binary?

    For SimpleIDE I think the three paths are set correctly. I may not have set up my project correctly though. I'll look into that and get back.

    Thanks again for all the help!
  • jazzedjazzed Posts: 11,803
    edited 2014-12-27 14:06
    tuffstuff wrote: »
    Question: For SimpleIDE, is the spin compiler just the openspin binary?

    Yes.

    There is a 32 bit Linux SimpleIDE package for Mint/Debian/Ubuntu here http://learn.parallax.com/propeller-c-set-simpleide/linux .
Sign In or Register to comment.