Debugging Question
Blake Koch
Posts: 39
in Propeller 1
Does the "PST Debug LITE" Object still exist? If so where can I find it?
Thanks Blake
Thanks Blake
Comments
http://forums.parallax.com/discussion/112608/pe-kit-tools-debug-lite-for-the-parallax-serial-terminal
It's in the zip file.
I just downloaded the "PST Debug Lite" Object
I'm working on page 91,92 of this book
I had a error message after compiling this code that required me to Change the books code.
From
debug.Style(debug#COMMA_DELIMITED)
debug.Start(115200)
To
debug.Start(debug#(COMMAS)
To clear the error code. After doing so the example on page 87 Step1 and step2 worked perfect with just the debug.start(debug#COMMAS) name change.
However in step 3 Page 91,92
I have entered the text exactly as I see it written on page 91,92 when I try to run it nothing works right. the number on serial display are all over the place and the numbers do not add up.
(SEE CODE IN LOWER MESSAGE)
and what I get out the other end is just numbers all over the place. nothing lines up.
Can anyone help me with what am I doing wrong?
Thanks Blake
If you look at the list of small icons above the editing area, one of them is a C. If you click on that you will get [ code][ /code] (without the space after the [ and before the C or /.
I place the cursor between the ] and the [ and hit enter a couple of times. Then you can just cut and paste your code from the proptool (or whatever IDE you use) between them. That way the we will be able to see the indentation and be able to help better.
Tom
Ok that's cool. Thanks for the help.
I have attached a copy of the version of "PST debug Lite.spin" that is used in the book.
Note that you have to go back to using:
When I run the program below with this version I get a printout that looks like the one on page 92.
Try cutting and pasting the code in the yellow box into the prop tool.
You will have to download the attached spin file. Go to where you currently have your version of PST debug lite.spin and rename that file (just add an x after lite). Then save the attached version of PST debug lite.spin to that folder.
Hope this helps
I switched to Parallax Serial Terminal.spin and used a less elegant formatting technique to get the data to appear the way I wanted it.
Sorry for not helping with the PST Lite but hopefully the example below will be useful.
You had an indentation problem in the "TimerMS" method.
The above code outputs the following text.
And thanks for the indent info I saw that after I posted it.
Blake
The go method initializes three local variables (MINUTES, SECONDS, MILLISECONDS
Q1) Is longmove and debugV.Vars the only place these variables used? I do not see them come up anywhere else in either Object.
Q2) How does longmove migrate all three variables (m,s,ms) into all three new variables (minutes, seconds, milliseconds) when it Specifies one variable ( @m to copy to @minutes, 3 long of @m)?
Thanks again.
After load cell programming (1000 samples per second 12 bit data) I also like Serial plotter from Arduino IDE (compatible with propeller after some tricks) for data visualisation and Realterm to validate low level binary data to meet custom protocol specifications.
ASM for advanced guys? That another story. I'd prefer PASD. It works fine with latest propeller tool on windows 7.
Since the three variables are consecutive, they all three get moved together. The variables in both locations need to be consecutive in order to use longmove this way.
I assume the method "Vars" assumes the variables are consecutive.
Blake
So it is moving 3 longs that start at @m. When declaring vars, spin locates them consecutively in the order declared.
Tom
Blake
The links on that page result in "Page not found"
Any other ideas as to where it might be?
Thanks Mike
Welcome to the forum! Not a good first experience.
I'll alert the webmaster to fix the links.
For the time being, I can offer this attachment.
https://www.parallax.com/product/32305