Shop OBEX P1 Docs P2 Docs Learn Events
Try the SX/B 2.0 Public Beta NOW!! 2.00.31 April 8, 2010 - Page 2 — Parallax Forums

Try the SX/B 2.0 Public Beta NOW!! 2.00.31 April 8, 2010

2

Comments

  • JonnyMacJonnyMac Posts: 8,943
    edited 2009-02-25 16:44
    Here's what I do: I started with the 1.51.03 files and appended _1 to the names like this:

    SXB_1.EXE
    RESERVED_1.TXT
    INVALID_1.TXT

    Then I installed the 2.xx files and appended _2 to the files:

    SXB_2.EXE
    RESERVED_2.TXT
    INVALID_2.TXT

    Then I created a couple batch files in the compiler folder

    SXB1.BAT

    COPY SXB_1.EXT SXB.EXE
    COPY RESERVED_1.TXT RESERVED.TXT
    COPY INVALID_1.TXT INVALID.TXT

    SXB2.BAT

    COPY SXB_2.EXT SXB.EXE
    COPY RESERVED_2.TXT RESERVED.TXT
    COPY INVALID_2.TXT INVALID.TXT

    I created shortcuts to these batch files on my desktop so I can easily switch back-and-forth between 1.51.03 and 2.xx. Note that you should shutdown the IDE before running a batch file.
  • Alex41Alex41 Posts: 112
    edited 2009-02-25 16:56
    Thanks for the tips guys, I figured it did overwrite 1.51, just wanted to be sure before·I screwed it upfreaked.gif

    Alex



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    If at first you don't succeed, then skydiving is not for you.
  • eagletalontimeagletalontim Posts: 1,399
    edited 2009-02-28 04:09
    Is there a downloadable help file for the new compiler? I noticed there are a few more features and I would love to know how to make them work. Since I am so new to the SX/B, I practically live in the Help section tongue.gif

    I also noticed that larger arrays can be used in the SX28.....how much larger?
  • JonnyMacJonnyMac Posts: 8,943
    edited 2009-02-28 05:16
    There's a "What's New" file with the compiler -- we're working on the help file now (things have been changing during the public beta so we're going to give it a few more weeks -- the PDF has what you need).
  • Chicago MikeChicago Mike Posts: 88
    edited 2009-04-21 03:04
    So I'm missing something stupid. Followed the upgrade process as posted in the first part of the thread, and thought I would just try, in an existing subroutine, to delare a local variable to try it out:

    l_test VAR BYTE

    when I try to compile I get:
    Line 85 Error39 Pass1: CANNOT CREATE LOCAL VARIABLE, STACK NOT DECLARED.

    I didn't see anywhere in the PDF to delare the stack outside of the SUB prior to use.

    Incidently, is it an oversite in the PDF -- I"m thinking it is -- Local variables will work in subroutines, and functions correct? The PDF doesn't mention use in functions.

    Excited to try this out! As always, thanks!
  • JonnyMacJonnyMac Posts: 8,943
    edited 2009-04-21 03:50
    You declare the stack (16 bytes for SX28, any size for SX52) in the device declarations section:

    DEVICE          SX28, OSCHS2, BOR42
    FREQ            50_000_000
    STACK           16
    


    You can, of course, use locals in subroutines and functions. Keep in mind, though, that using locals adds a lot of overhead.
  • Chicago MikeChicago Mike Posts: 88
    edited 2009-04-21 13:46
    Excellent. Thanks! Can I limit my stack size on a SX28. I'm only planning on using a maximum of 4 bytes in any given subroutine. Can I do a STACK 4 on a SX28. Is 16 max or fixed?
  • BeanBean Posts: 8,129
    edited 2009-04-21 14:28
    Mike,
    On the SX28 16 is the MAXIMUM stack size. You can set it to anything lower.
    Make sure you make it large enough to handle if one subroutine calls another subroutine.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There is a fine line between arrogance and confidence. Make sure you don't cross it...

    ·
  • SamTheManSamTheMan Posts: 43
    edited 2009-05-11 12:27
    problem was fixed....
    thank you Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    Post Edited (SamTheMan) : 6/24/2009 1:08:14 PM GMT
  • 5ms?5ms? Posts: 21
    edited 2009-06-24 00:23
    Hi SamTheMan,
    Maybe this

    tmpW1 VAR Word====================================


    5ms
  • BeanBean Posts: 8,129
    edited 2009-06-24 11:24
    What version of the compiler are you using ?

    I get a bunch of errors, but it does not crash the compiler 2.00.26.

    attachment.php?attachmentid=61805

    Your ID string is too long (8 characters max)
    TRIS_IO is not defined
    Ioport is not defined
    LCDIN in not declared
    __PARAM1.high I assume you mean __PARAM1.7 ???
    LCDRW is not defined
    SUB LCDINIT: should NOT have a colon on the end
    Sio is not defined

    Bean.




    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There is a fine line between arrogance and confidence. Make sure you don't cross it...



    Post Edited (Bean (Hitt Consulting)) : 6/24/2009 11:31:27 AM GMT
    690 x 276 - 135K
  • SamTheManSamTheMan Posts: 43
    edited 2009-06-24 13:01
    Dear Bean,

    you already fixed this problem and the program no longer CRASH
    (This was an old issue since May 11, 2009)


    thank you
    Sam

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • BeanBean Posts: 8,129
    edited 2009-06-24 13:37
    Sam,
    Sorry....My bad....I didn't look at the date.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There is a fine line between arrogance and confidence. Make sure you don't cross it...

    ·
  • 5ms?5ms? Posts: 21
    edited 2009-06-24 14:31
    Hi SamTheMan, Bean,
    I'm Sorry,
    Bean it's My bad....
    I didn't check the date.
    again Sorry.
    5ms
  • CastrovinciCastrovinci Posts: 26
    edited 2009-08-04 00:29
    bean, I thought I had the newest version after downloading and installing, but when I click the about box my version still shows 3.3.0 I follow the instructions above, but I dont have that version you list. Do you have the actual link to the old 3.92 version and then I can apply your patch or can i just apply the patch to any version? I searched high and low and can't find that version.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • JonnyMacJonnyMac Posts: 8,943
    edited 2009-08-04 01:46
    If you read Bean's post you'll find: "Unzip the attached file. Put the files in your C:\Program Files\Parallax Inc\SX-Key v3.2.92\Compilers\SXB directory (overwritting the existing files)."

    Now, your compiler version number may differ (3.3.0) but there will still be a \Compilers\SXB folder under that; this is where you need to unzip the the new compiler files.

    PJMonty gave more detail than I did for displaying the SX/B version number. I usually hit Ctrl + L and look at the top of the list file.
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2009-08-07 16:44
    JonnyMac--

    Thank you for the detailed installation instructions. I printed them and followed them! The new files (SXB.exe, INVALID.TXT, ·RESERVED.TXT) are now in my directory called . . .

    C:\Program Files\Parallax Inc\SX-Key v3.2.92\Compilers\SXB

    However, I wonder if I still screwed up? When I double-click the desktop icon "SX-Key Editor v3.2.92h BETA" which points to "C:\Program Files\Parallax Inc\SX-Key v3.2.92\SXKey.exe" the IDE appears fine. When I click on "Help/About" "IDE Ver. 3.2.92h BETA" appears. Then, I click on that to cause "SX Ver: 2.00.30" to appear. Next, I "Okay" out of that and perform a "File/Exit".

    But, when I re-load the IDE and perform another "Help/About", it is back to "IDE Ver. 3.2.92h BETA".

    Wonder what I am doing wrong?

    Thanks.

    --Bill

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
  • JonnyMacJonnyMac Posts: 8,943
    edited 2009-08-07 19:34
    When you bring up the About dialog it defaults to the IDE version # -- you have to click through it to see the other elements (SASM and SX/B).
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2009-08-07 19:37
    JonnyMac--

    Got'cha. I think.

    I suppose I could test to see if it knows anything about "TASK?"

    --Bill

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
  • JonnyMacJonnyMac Posts: 8,943
    edited 2009-08-07 21:10
    Believe me, you don't want to use TASKs -- they add ENORMOUS overhead to an SX/B program., so much so that you can do almost nothing else with the ISR. Avoid them. You're better off creating your own scheduler which is not tough to do (though that should be discussed in a thread outside this one).
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-08-07 21:29
    There is an alternative TASK implementation, see last post in this thread:
    http://forums.parallax.com/showthread.php?p=784673

    It provides macros to replace the built-in TASK code.
    This alternative TASK scheduler only uses about 53 clockticks inside
    the interrupt no matter how many tasks, so plenty of cycles left to do other things.

    It would be easy to replace the·built-in code with with this alternative code,
    but that is for Bean and Parallax to decide. It would not effect the SX/B syntax
    in any way as the TASK scheduler is completely hidden from a user point of
    view.

    regards peter
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2009-08-07 21:34
    JonnyMac and Peter--

    Forgive me for being obtuse when I mentioned "TASKS." I have no intention of using them. I just thought it might be a good test to see if I had indeed upgraded the compiler.

    I am sure there is a better way. If so, would you let me know?

    Thanks!

    --Bill



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-08-07 21:44
    Just do a list view with any SXB program.
    The topline shows the SXB version.

    regards peter
  • JonnyMacJonnyMac Posts: 8,943
    edited 2009-08-07 22:34
    Hit [noparse][[/noparse]Ctrl]+[noparse][[/noparse]L] to display the list file -- SX/B version is, as Peter points out, right on the top line.
    1280 x 1024 - 360K
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2009-08-07 23:19
    Peter and JonnyMac--

    Simple.

    I'll do it and report back. But, it's date night and the girl that buys me all this stuff wants to be wined and dined!

    Thank you very much for all your help!

    Oh! I can't get networked Props out of my mind, now!!!

    --Bill

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2009-08-10 13:44
    JonnyMac and Peter--

    It worked perfectly. I simply did not know where to look to see if it HAD worked. Thank you for the help, as always.

    --Bill

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
  • ZootZoot Posts: 2,227
    edited 2009-09-30 00:28
    Bean -- will there ever be a "final" release for SX/B 2.0? Given that there still 100,000s of potential chips, I am hoping there will be.

    Last I recall, you and Peter Verkaik had done a bit of wrestling with an obscure version of 2.00.31 which preserved the setting of C during Word addition/substraction. Can't find the thread now though.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST

    1uffakind.com/robots/povBitMapBuilder.php
    1uffakind.com/robots/resistorLadder.php
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-09-30 06:49
    Zoot,
    Is this the thread:
    http://forums.parallax.com/showthread.php?p=825162

    regards peter
  • ZootZoot Posts: 2,227
    edited 2009-10-05 13:31
    Yes, that's it. Are you using this version Peter?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST

    1uffakind.com/robots/povBitMapBuilder.php
    1uffakind.com/robots/resistorLadder.php
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-10-05 14:40
    Yes I am as it is the most recent version.

    regards peter
Sign In or Register to comment.