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.
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
I also noticed that larger arrays can be used in the SX28.....how much larger?
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).
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.
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?
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...
I get a bunch of errors, but it does not crash the compiler 2.00.26.
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
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.
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.
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 . . .
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".
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).
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.
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?
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
Comments
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.
Alex
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If at first you don't succeed, then skydiving is not for you.
I also noticed that larger arrays can be used in the SX28.....how much larger?
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!
You can, of course, use locals in subroutines and functions. Keep in mind, though, that using locals adds a lot of overhead.
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...
·
thank you Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (SamTheMan) : 6/24/2009 1:08:14 PM GMT
Maybe this
tmpW1 VAR Word====================================
5ms
I get a bunch of errors, but it does not crash the compiler 2.00.26.
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
you already fixed this problem and the program no longer CRASH
(This was an old issue since May 11, 2009)
thank you
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...
·
I'm Sorry,
Bean it's My bad....
I didn't check the date.
again Sorry.
5ms
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
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.
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.
Got'cha. I think.
I suppose I could test to see if it knows anything about "TASK?"
--Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.
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
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.
The topline shows the SXB version.
regards peter
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.
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.
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
Is this the thread:
http://forums.parallax.com/showthread.php?p=825162
regards peter
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
regards peter