Shop OBEX P1 Docs P2 Docs Learn Events
SimpleIDE Spin Libraries ? — Parallax Forums

SimpleIDE Spin Libraries ?

ratronicratronic Posts: 1,451
edited 2014-07-26 07:58 in Propeller 1
I have just set up a new uSD card for the Pi B+. Everything I have had working in the past is working fine. I then installed SimpleIDE-0-9-45 on the Pi and it comes up with the

"Hello World" program in C like it did my last install. I then transfered a Spin folder called 'center' that is an unzipped archived Spin project file from my computer. Then I set the

compiler type to Spin and loaded the top Spin program from the folder. With the top Spin program displayed on the screen I then clicked 'Set Project to Current tab' and I could see the rest

of the objects in the folder in the 'Project Manager' window. After I clicked on 'Build Project' it started compiling and got past the top spin program but then comes up with the error -

'fullduplexserial.spin: error : Can not find/open file'. I looked in the /opt/parallax/spin folder and it is there and in the folder I'm compiling from. I know I'm getting brain dead in

my old age but I know I must have missed a step. The 'center' folder resides in /home/pi/. Can anybody help me out?


Here is how the SimpleIDE Properties is set -


SimpleIDE Properties - Spin Folders

Spin Compiler - /opt/parallax/spin/

Library Folder - /opt/parallax/spin/

Workspace Folder - /home/pi/SimpleIDE/

Comments

  • jazzedjazzed Posts: 11,803
    edited 2014-07-25 17:40
    Your properties look wrong. Can you take snap-shots of the gcc and spin settings to post here?

    Also, don't compile in /opt/parralax/spin unless you are root . Compile in /home/pi/SimpleIDE
  • ratronicratronic Posts: 1,451
    edited 2014-07-25 19:00
    Thanks for looking Steve. I can't seem to be able to get a screen shot (using scrot) of the SimpleIDE properties. When I use PuTTY on my main computer the scrot command comes back with an error - lack of Linux skills. But I have been trying since I posted and

    the Spin compiler is located in /opt/parallax/bin/openspin - not as I put in post #1. The rest is the same as in post#1. Also I can build and load the Propeller with a simple (no other objects) Spin program.

    Edit: I have tried to compile with the center folder located in /home/pi/SimpleIDE/ and tried setting the workspace folder to /home/pi/SimpleIDE/center/.



    The Compiler Type is set to Spin and the GCC folders are set as below

    SimpleIDE Properties - GCC Folders

    GCC Compiler - /opt/parallax/bin/propeller-elf-gcc

    Library folder - /home/pi/SimpleIDE/Learn/Simple Libraries

    workspace Folder - /home/pi/SimpleIDE/
  • jazzedjazzed Posts: 11,803
    edited 2014-07-25 19:24
    I would have answered earlier, but I've been tied up all day.

    Ok, so I guess the Spin Library Folder is indeed /opt/parallax/spin/

    One gotcha may be that Linux is case sensitive. Make sure the case of fullduplexserial.spin in your Spin program matches what's on the drive ... if I recall correctly, the spelling is FullDuplexSerial.spin ? No?
  • ratronicratronic Posts: 1,451
    edited 2014-07-25 19:56
    I looked in the /opt/parallax/spin/ directory and found the case spelling to be as you said, so with a glimmer of hope I opened my program and changed the OBJ section to the proper case matching for FullDuplexSerial.spin and saved it. But it still can't find

    fullduplexserial. The 'center' file I posted above loads with the Prop tool. I will start having to pay attention with case matching with SimpleIDE objects(everything!). I have placed the 'center' folder in the/home/pi/SimpleIDE/ directory and left the Workspace folder set to

    the same and also with /home/pi/SimpleIDE/center/. Which way is the proper way - my guess would be to leave the Workspace folder set to /home/pi/SimpleIDE/ ?
  • jazzedjazzed Posts: 11,803
    edited 2014-07-25 21:08
    I'm not sure about /home/pi/SimpleIDE/ ... as long as the folder exists I suppose it's fine for SPIN. The GCC Compiler workspace must point to the folder that has My Projects, Learn, etc... which is usually something like /home/steve/Documents/SimpleIDE .

    Please don't confuse SimpleIDE with the compiler. SimpleIDE is just an editor and compile manager. The compiler in this case is openspin.

    I added your code in my Linux Mint SimpleIDE and fixed the case of the objects and was able to build with no problems.
    obj
      fds : "FullDuplexSerial"
      dyn : "DynaComV4"
    
  • ratronicratronic Posts: 1,451
    edited 2014-07-26 07:58
    Thanks for spending the time on this and all of your help Steve. This morning I tried a simple Spin program with FullDuplexSerial and it works. I was kinda of hoping I could transfer

    my older written Spin programs to the Pi. But thanks to you I now know what to correct to get them working on the Pi. Thanks again - Dave
Sign In or Register to comment.