BST - Debugging with the serial window?
adri
Posts: 34
Hi
I'm running BST on mac and would like to send values of certain variables back to the BST serial terminal.
If I hadn't broken my EEE PC last night I'd be doing it using the Prop Tool and Parallax Serial Terminal.
Is it much the same using BST?
TIA
Adri
I'm running BST on mac and would like to send values of certain variables back to the BST serial terminal.
If I hadn't broken my EEE PC last night I'd be doing it using the Prop Tool and Parallax Serial Terminal.
Is it much the same using BST?
TIA
Adri
Comments
it has a terminal included, and it auto switches off and on when you upload code to the propeller.
Moreover you can save as txt the terminal contents.
Massimo
Sorry for so many questions but it's been a good while since I propped.
TIA
Adri
I like the "parallax serial terminal" object.
in you code:
Under "object" include
in your main object start the serial cog, setting the speed
the send data to the teminal:
Strings, numbers or chars:
I downloaded the "Parallax Serial Terminal" from obex
Messing with the education kit code apart from sitching a LED I think this should output "variable value: " to the terminal but it doesn't.
OBJ
dbg : "parallax serial terminal"
PUB LedOnOff
dbg.start(57600)
dbg.str(string("variable value: "))
dira[16] := 1
repeat
outa[16] := 1
waitcnt(clkfreq/4 + cnt)
outa[16] := 0
waitcnt(clkfreq/4*3 + cnt)
Works for me. Make sure that
Thanks to all.
Adri
I find the bst terminal window very iseful for debugging programs.
However, I am still unable to send control characters, e.g. ^T, ^V, etc.
Sorry for disturbing you again, do you have this feature in your add-on list for bst?
Thanks++
Carlo