Question about DEBUG...
Robofreak
Posts: 93
Hello everyone!
I've recently downloaded Martin Hebel's BS2 function library, and tried to use his debug features, but they didn't work. When it works, does it automatically open a debug window? I just don't know...
Thanks for the support,
Austin Bowen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,
Robo-freak.com
"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com
Post Edited (Robofreak) : 12/10/2007 2:38:59 AM GMT
I've recently downloaded Martin Hebel's BS2 function library, and tried to use his debug features, but they didn't work. When it works, does it automatically open a debug window? I just don't know...
Thanks for the support,
Austin Bowen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,
Robo-freak.com
"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com
Post Edited (Robofreak) : 12/10/2007 2:38:59 AM GMT
Comments
2) There currently is no debug window and none is opened automatically. The debug routines simply communicate over the serial port used for programming the Propeller. You have to use a program like HyperTerm or propTerm, a program available here, or any other serial terminal emulator. There are plans to add a debugging window to the Propeller Tool, but that is not available yet.
OBJ
BS2 : "BS2_Functions"
VAR
BYTE X
PUB MAIN
X := 3
BS2.DEBUG_DEC(X)
That's pretty much it... But, now that I know about the programs you told me about, that's probably the problem.
Oh, and could you tell me spacifically where to find PropTerm please?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,
Robo-freak.com
"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com
Post Edited (Robofreak) : 12/9/2007 9:00:56 PM GMT
Go to that and look for the one called: Graham Stabler's Good Thread Index
Go to that and you'll see a section called "Programming Tools" and you'll see an entry for propTerminal.
Also, it's not the best practice to end a program so quickly. With nothing following sending data, the Cog will shut down. It may not affect BS2_Functions, but it can cause problems at times sending data. It's a better practice to keep your cog alive at the end with a single 'repeat'
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
SelmaWare Solutions - StampPlot GUI for controllers, XBee and Propeller Application Boards
Southern Illinois University Carbondale, Electronic Systems Technologies
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,
Robo-freak.com
"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com
Best practice is to post correctly and as much of your code as possible so people can give informed answers. Copy and paste and use the "code" formatting buttons to keep it looking nice.
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
SelmaWare Solutions - StampPlot GUI for controllers, XBee and Propeller Application Boards
Southern Illinois University Carbondale, Electronic Systems Technologies
OBJ
· BS2 : "BS2_Functions"
VAR
· BYTE X
CON
· _CLKMODE = XTAL1 + PLL16X
· _XINFREQ = 5_000_000
PUB MAIN
· BS2.START(31, 30)
· X := 3
· BS2.DEBUG_DEC(X)
· REPEAT
Well, that's what I know to do. This uses an external 5MHz crystal, times 16 speed to get 80MHz. It starts up BS2, makes "X" equal 3, and debugs that. Then it repeats infinitely to keep the cog alive. That was pretty much my test program. That'll work, right?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,
Robo-freak.com
"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com