Shop OBEX P1 Docs P2 Docs Learn Events
problems when trying to work with bst under ubuntu 12.04 — Parallax Forums

problems when trying to work with bst under ubuntu 12.04

StefanL38StefanL38 Posts: 2,292
edited 2012-10-17 04:12 in Propeller 1
Hi,

a friend of mine who has no internet access at the moment wants to run bst under the following Linux system

Ubuntu 12.04 Kernel version: 3.2.0-32

Operating System Architecture: 32bit
CPU Architecture: 64bit
CPU Cores: 2
CPU Speed: 2,3Ghz
L2 Cache: 512Kb
RAM: 2GB
Motherboard: MSI

Graphic Card: Nvidia mit 512MB VRAM

bst Version 0.19.3

He encounters problems that bst is working only after several reboots of the OS.
If the focus changes from bst to another app bst doesn't work any more.

Anybody any ideas what went wrong?
Or can somebody post questions what more details about the system are nescessary before narrowing down the problem can start?

best regards
Stefan
«1

Comments

  • Igor_RastIgor_Rast Posts: 357
    edited 2012-10-16 05:52
    I would say try the Propeller GCC. Works great .
    had some troble with it also in the beginning getting it to work , but definitly works well on the propeller
  • StefanL38StefanL38 Posts: 2,292
    edited 2012-10-16 05:55
    Hi Igor,

    thanks for pointing on propeller-gcc. But this work is part of a project where most participants code in SPIN under windows.
    So propeller-gcc is not an option.

    So please SPIN-coders working with bst: what should be checked?
    best regards
    Stefan
  • Heater.Heater. Posts: 21,230
    edited 2012-10-16 06:02
    Try out SimpleIDE. It supports both Spin and C languages. It's open source and cross-platform. Be sure to get version 0.8.1 or newer. https://sites.google.com/site/propellergcc/documentation/simpleide

    I hate to say this but it looks like it's time to forget about BST. It seems to be no longer supported and we have note heard from its author, BradC, for a long time.
    Kind of sad because BST has server me very well for a long time, I would of passed by the Propeller if I had no Linux support back in the day.
  • BlackPHPBlackPHP Posts: 11
    edited 2012-10-16 06:16
    Hello,
    thanks for the replaying, i'm that friend of who stefan was talking about :)
    So...
    I already tried SimpleIDE but I can only write SPIN code in it but can't compile and/or send my code into the propeller chip...
  • Igor_RastIgor_Rast Posts: 357
    edited 2012-10-16 06:47
    I am running the Propeller GCC under linux ubuntu 12.04 LTS
    works fine , composing spin, compiling , everything the normal propeller programmer can do ,. and more

    make sure you start the program with sudo privileges

    o sorry I mis understood that most work under windows ,

    why not the propeller programmer
  • Heater.Heater. Posts: 21,230
    edited 2012-10-16 07:06
    Strange. I have use the SimpleIDE to load Propellers on Debian, both on Intel and ARM architectures without a hitch.
    Won't run on my Ubuntu machine as the Qt library versions are old on there. It's old because I gave up trying to use Ubuntu in face of all the things that they keep breaking.
  • BlackPHPBlackPHP Posts: 11
    edited 2012-10-16 07:13
    @IGor
    that DOESN'T have to work on windows... it only have to work in ubuntu…I will try to run it with sudo...
    @Heater
    so... i could try to update the qt libs....

    EDIT: by trying with sudo seems to work....
    but if i try to compile even the simpliest script i get the following error:
    propeller-elf-gcc -o a.out -Os -mlmm -I . -fno-exceptions n1.spin/
    opt/parallax/lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld:n1.spin: file format not recognized; treating as linker script
    /opt/parallax/lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld:n1.spin:2: syntax error
    collect2: ld returned 1 exit status
    Done. Build Failed!
  • Igor_RastIgor_Rast Posts: 357
    edited 2012-10-16 07:27
    @BlackPHP

    have you installed both the simple ide and the binary packages. I a am using version 0.8.5 . mabe you need to update to this one , because i couldent get it to load the spin files before I had this version binary files . so seach the latest version. test that one

    Schermafdruk van 2012-10-16 16:27:53.jpg
    Schermafdruk van 2012-10-16 16:28:13.jpg
  • BlackPHPBlackPHP Posts: 11
    edited 2012-10-16 07:42
    sorry Igor... I didn't find the version 0.8.5 anywhere... can you please send me a link?
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2012-10-16 07:44
    I just loaded BST on a similar machine - 64bit, but Quad and 32bit Ubuntu 12.04 with Nvidia card at 2.4Mhz. My motherboard is Gigabyte.

    It seems to work fine. All I did was to download the BST image (the most recent version), unzipped it into my Desktop, and clicked on it to use it.

    All the updates are current of my machine. I was a bit concerned about the issue of Parallax fonts that need to be migrated. But it seems to work without having to do anything extra.

    Could it be that he has a BIOS issue?. I am also running Version BST 0.19.3

    Also BST has some special features that I am not sure Simple IDE has also acquired. In particular one can use an @@@ in PASM.

    The real problem with support is that this was developed independently and Parallax now has its own alternative in Simple IDE. It would be easy for Parallax to trouble-shoot Simple IDE, but they have no real access to resolve BST problems.
  • BlackPHPBlackPHP Posts: 11
    edited 2012-10-16 07:49
    well... it doesn't work for me...
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2012-10-16 08:01
    @BlackPHP
    Sorry about that, at least I have tried to parallel the problem. It seems to be specific to your motherboard. That's why I mentioned BIOS. Possibly an upgrade would resolve the problem.

    Of course, you could dump the image and try to reinstall again from a fresh download. It may have been corrupted.

    If you run an MD5 checksum, I will run the same for mine and see if they are the same.

    161b55c858111fe916d64eeba3c8829a bst.linux <=== This should match, it it does NOT, get another copy of bst.linux.

    Use Terminal in the same directory as bst.linux and type 'md5sum bst.linux' to get the calculation
  • BlackPHPBlackPHP Posts: 11
    edited 2012-10-16 08:04
    @Loopy sorry, I didn't wont to be rude... I just saied that it doesn't work :)
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2012-10-16 08:16
    BlackPHP wrote: »
    Hello,
    thanks for the replaying, i'm that friend of who stefan was talking about :)
    So...
    I already tried SimpleIDE but I can only write SPIN code in it but can't compile and/or send my code into the propeller chip...

    If you are having problems with BOTH Bst and Simple.IDE, it may be that your computer is not configured right or the Ubuntu is somehow in need of repair.

    Are you operating as a Super User or just a regular User? I did not use SUDO or login as a super user. And do you have any special protection scheme in the Linux, such as special partition protection?
  • Igor_RastIgor_Rast Posts: 357
    edited 2012-10-16 08:20
    Here you go ,found in the Propgcc categorie tread

    google code repository found here
    here is where you wil be finding the llatest version

    after unpacking .
    open terminal ( Ctrl + ALT + T )
    go to download directory ( cd /opt/parallax/) this is the case with me or where you downloaded/extracted it to
    after that make yourself sudo user and setup ( sudo ./setup ${username} ) change username with your own username that has rights on your computer
    after that set the user ( sudo ./setup username ) again change username to yours
    and then ( sudo ./simpleide & )

    that should load the program correctly

    let me know if it worked out
  • Heater.Heater. Posts: 21,230
    edited 2012-10-16 08:38
    BlackPHP.

    That error message shows "propeller-elf-gcc -o a.out -Os -mlmm -I . -fno-exceptions n1.spin/" which means it is trying to compile a spin file with the C compiler.

    Have you got Compiler Type set to "SPIN"? (Actually on SimpleIDE v0.85 I cannot try to build a Spin file with GCC as it automatically switches the compiler to SPIN when you hit the build button.

    Now here is a potential problem: SimpleIDE uses BSTC as the spin compiler, so if BST is not working on your machine then BSTC may not either.
  • jazzedjazzed Posts: 11,803
    edited 2012-10-16 08:47
    Heater. wrote: »
    Now here is a potential problem: SimpleIDE uses BSTC as the spin compiler, so if BST is not working on your machine then BSTC may not either.

    Roy's compiler works fine. https://code.google.com/p/open-source-spin-compiler/

    And yes, the SimpleIDE "compiler type" should be set to spin for compiling spin programs.
  • Heater.Heater. Posts: 21,230
    edited 2012-10-16 08:53
    Ah, never noticed that, if you have Roys Spin compiler in /opt/parallax/bin/spin then SimpleIDE uses that instead of BST.
  • StefanL38StefanL38 Posts: 2,292
    edited 2012-10-16 09:19
    HI,

    now I'm interested too. I downloaded SimpleIDE two weeks ago.
    Now I lokked up the version it is 0.7.2

    Whre can I download the newest version?
    Is there a version of simpleIDE "setup up everything that is available"?
    I mean a setupfile that installs BST, Rons Spin-compiler and whatever else has reached a stable status at one mouseclick?

    If this does not exist: is there somewhere an instructional that shows how I can do this by hand?
    best regards
    Stefan
  • Igor_RastIgor_Rast Posts: 357
    edited 2012-10-16 09:28
    Update to 0.8.5.
  • StefanL38StefanL38 Posts: 2,292
    edited 2012-10-16 09:38
    @Igor I have understood that version 0.8.5 does these things. I also asked for where can I download it?
    I've found it myself in the meantime
    https://propside.googlecode.com/files/Simple-IDE_0-8-5_setup.zip

    @heater: what do you exactly mean with path "/opt/parallax/bin/spin"

    If I look up the subsirectories of SimpleIDE and propgcc I cannot find such a path.
    I only have
    C:\Programme\SimpleIDE\bin
    C:\Programme\SimpleIDE\translations

    That's all.

    Guess to people that are common with gcc this is clear I'm completely new
    to gcc so could you please explain it to me?

    best regards
    Stefan
  • Igor_RastIgor_Rast Posts: 357
    edited 2012-10-16 10:05
    StefanL38 wrote: »
    @Igor I have understood that version 0.8.5 does these things. I also asked for where can I download it?
    I've found it myself in the meantime
    https://propside.googlecode.com/files/Simple-IDE_0-8-5_setup.zip

    I mentiond it in a later post , anyway you got the right one

    anyway , you need to download and extract the files found here extract/download them to /opt/ide directory if you don,t have the directory creat it .
    after extracting follow the steps metion in my second post
  • Heater.Heater. Posts: 21,230
    edited 2012-10-16 10:40
    Stepan,
    Sorry, the reference to a path of /opt/parallax... is for users of Linux.
    As you mention C: I assume you are on some version of MSDOS/Windows. Can't help there I'm afraid having not ever used Windows seriously.
  • StefanL38StefanL38 Posts: 2,292
    edited 2012-10-16 10:41
    Igor,

    please keep in mind to SimpleIDE and GCC im a COMPLETE NEWBEE! and I'm working with Windows-XP

    you are always very short in your explanations. If you want the things to go very fast (by short postings) things slow down

    Now I have to ask what is the complete path starting at
    "C:\Programme\SimpleIDE" ?

    or does the path start at
    "C:\propgcc" ?

    the link that you provided in a former post shows a list of several zips, tars etc.
    what do you mean by writing
    anyway , you need to download and extract the files found here extract/download them to /opt/ide directory if you don,t have the directory creat it .

    the windows setup files installs simple IDE but the path "/opt/ide" is not there.

    So how does the setup and creating the directories work together?

    Or do your hints only apply to Linux??

    best regards
    Stefan
  • StefanL38StefanL38 Posts: 2,292
    edited 2012-10-16 10:45
    Hi heater!

    our postings crossed over between writing.

    Wow! You really kept yourself away from windoze??!!
    Cool!

    I don't really like windoze but the days where I enjoyed playing around for hours
    with apps and OS-options until I understand it in detail are gone for me.

    Today I'm just want the OS to run.

    best regards
    Stefan
  • Igor_RastIgor_Rast Posts: 357
    edited 2012-10-16 10:51
    O , sorry StefanL38. you were asking about ubuntu , thout you were using an ubuntu system .
    I am using ubuntu so the commands that I told you won,t work yes . excuse me for that

    if ure using windows and you want to program the propeller chip I suggest u use the propeller tool , ( don know why you haven't tried it , or cant use it by any reason )

    found here
    download the Propeller/Spin tool software v1.3.2 install and run ,
    should work right ahead.
  • BlackPHPBlackPHP Posts: 11
    edited 2012-10-16 11:02
    Heater. wrote: »
    BlackPHP.

    That error message shows "propeller-elf-gcc -o a.out -Os -mlmm -I . -fno-exceptions n1.spin/" which means it is trying to compile a spin file with the C compiler.

    Have you got Compiler Type set to "SPIN"? (Actually on SimpleIDE v0.85 I cannot try to build a Spin file with GCC as it automatically switches the compiler to SPIN when you hit the build button.

    Now here is a potential problem: SimpleIDE uses BSTC as the spin compiler, so if BST is not working on your machine then BSTC may not either.

    well the main problem is this... the simpleide shows only C and C++...
    jazzed wrote: »
    Roy's compiler works fine. https://code.google.com/p/open-source-spin-compiler/

    And yes, the SimpleIDE "compiler type" should be set to spin for compiling spin programs.
    it only shows c and c++ :-/
    I will try to download the SimpleIDE version 0.85 hope it works for me :-/

    EDIT: thanks guys, by downloading the version 0.85 from code.google.com everything works GREAT
    thanks :)
  • jazzedjazzed Posts: 11,803
    edited 2012-10-16 11:05
    StephanL,

    The installer shows you where SimpleIDE, Propeller GCC, and SPIN tools are installed. It also asks for a default workspace. The documentation for SimpleIDE is here https://sites.google.com/site/propellergcc/documentation/simpleide It shows these paths - you can also click the wrench to check or change them. The SimpleIDE UserGuide.pdf is here in case the link above doesn't allow you to download it.

    The user guide is a little out of date, but functions the same essentially as described in the doc. To use spin or any other file, you must create a project. Just hit the COG button when you have the top spin file showing in the editor. We want some version of SimpleIDE to act more like the Propeller-Tool at some point.

    Versions before 0-8-1 do not provide spin support.
  • Igor_RastIgor_Rast Posts: 357
    edited 2012-10-16 11:12
    I think the version 0.8.5 does pretty much all that the propeller tool does,
    i espacialy like the load to ram button that opens up the serial terminal directly when its done . so you don,t have to go and clikc ther enable disable ( you know the drill) super

    one thing im missing in the simple ide
    the hiracie trie
    when you pres Ctrl + H in the propeller tool , there apeas a tree so you can see the flow better of the program ,
    with the simpleide this feature is missing , so you have to be carefull wit extra spaces making the code not work
    overall . its a good stable version , (for me till now then )
  • BlackPHPBlackPHP Posts: 11
    edited 2012-10-16 11:21
    jazzed wrote: »
    Versions before 0-8-1 do not provide spin support.
    oh so that was the error... :-/
    Igor_Rast wrote: »
    I think the version 0.8.5 does pretty much all that the propeller tool does,
    i espacialy like the load to ram button that opens up the serial terminal directly when its done . so you don,t have to go and clikc ther enable disable ( you know the drill) super
    yes... it's quite annoying opening the termianl every time
Sign In or Register to comment.