Shop OBEX P1 Docs P2 Docs Learn Events
newbie BS2/Linux question — Parallax Forums

newbie BS2/Linux question

Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
edited 2009-02-04 07:33 in BASIC Stamp
So I'm sitting here with a BS2 & Professional Development Board w/Ubuntu.
{I'm a Propeller head normally}

I'm using ZiC's PBASIC Compiler and have the following code working perfectly.
'{$STAMP.BS2}
LOOP:
    DEBUG "Hello World!"
    HIGH 14
    PAUSE 1000
    LOW 14
    PAUSE 1000
    GOTO LOOP




I'm curious why the following example did not work from Wamv?

'What's a Microcontroller - LedOnOff.bs2
'Turn an LED on and off. Repeat 1 time per second indefinitely.
'{$STAMP BS2}
'{$PBASIC 2.5}
DEBUG "The LED connected to Pin 14 is blinking!"

DO
   HIGH 14
   PAUSE 500
   LOW 14
   PAUSE 500
LOOP




It looks like I don't have the right file being loaded at program launch.
(I'm selecting tokenizer.so at the message I can't load the library message.)
Or it simple doesn't support the line '{$PBASIC 2.5}

Pretty straightforward stuff so far, even with my non-standard Linux setup.
I can see why you guys are addicted to this thing. [noparse]:)[/noparse]

Where should I go from here to have PBASIC 2.5 properly supported? Different tokenizer?

Thanks
OBC

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?

Check out: Protoboard Introduction , Propeller Cookbook 1.4 & Software Index
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card connected? - PropDOS

Comments

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-02-03 16:25
    Wow.. Four days without response.. I have a feeling I'm the only one running the BS2 under Linux. [noparse]:)[/noparse]

    Perhaps I will need to dig a bit and write up a solution to this issue when I figure it out.

    Additional question that "might" help my quest...

    Is PBASIC 2.5 a recent upgrade to the language? If so, how recent?

    Thanks guys!
    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Check out: Protoboard Introduction , Propeller Cookbook 1.4 & Software Index
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card connected? - PropDOS

    Post Edited (Oldbitcollector) : 2/3/2009 4:43:05 PM GMT
  • dandreaedandreae Posts: 1,375
    edited 2009-02-03 16:37
    Hi OBC,

    PBASIC 2.5 is a enhanced version of 2.0 where we added additional commands for practical functionality.· We added it about 6 to 7 years ago.·

    Regarding the Linux issue, I honestly have no experience with it.· I do know that there was a member listed in the "Completed Projects" forum that developed a Linux based editor for the BASIC Stamp under a different version of Linux.·

    Dave



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Parallax Tech Support·
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-02-03 16:39
    Is it possible that this editor (from the Downloads section) could be older than that?

    I'll take a look at "Completed Projects" and see if I can run it down. Thanks for the tip!

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Check out: Protoboard Introduction , Propeller Cookbook 1.4 & Software Index
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card connected? - PropDOS
  • dandreaedandreae Posts: 1,375
    edited 2009-02-03 16:42
    Check this link out:

    http://www.linuxforums.org/forum/linux-programming-scripting/115217-basic-stamp-microcontroller.html



    Dave

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Parallax Tech Support·
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-02-03 16:47
    Thanks Dave,

    That conversation seems recent enough.. I'm betting since I have communication, it
    must be the tokenizer file itself. I'll first try the file from that package and see if I'm
    suddenly able to use the existing editor, if not follow the whole instruction and report back.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Check out: Protoboard Introduction , Propeller Cookbook 1.4 & Software Index
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card connected? - PropDOS
  • Adrian SchneiderAdrian Schneider Posts: 92
    edited 2009-02-04 07:33
    The tokenizer version 1.23 and up (there is no later version as far as I know) supports PBasic 2.5. Currently not
    supported is the latest Basic Stamp BS2px (the special px-commands only, other programs are working however
    but the baudrates are different: programming at 19200, debugging at 38400).
Sign In or Register to comment.