You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spin2 SCOPE & LOGIC debug options not working on MacOS #93
On MacOS (15.2 and earlier): Executing example DEBUG programs for the SCOPE & LOGIC options from the Parallax Spin2 Documentation results in no display of debug windows, an issue dialog and log data (see below for log & code example).
I'm not sure if these debug options are supported in flexprop, but I do see tcl code "debug_scope.tcl" in flexprop sources (Is this a Windows-only option?). Other debug options do work (PLOT, TERM)...
Possibly a Mac TCL problem?
invalid command name "::DebugWin::ScopeCmd"
invalid command name "::DebugWin::ScopeCmd"
while executing
"$debugcmd($cmd) $w $args"
(procedure "::DebugWin::RunCmd" line 26)
invoked from within
"::DebugWin::RunCmd [string range $line 1 end]"
(procedure "term_newline" line 14)
invoked from within
"term_newline"
("
" arm line 17)
invoked from within
"switch "$c" {
"\x1a" {
# ctrl-z
term_insert $c
}
"\r" {
set cur_saw_cr 1
if { "$kind" eq "ansi" } {
# (cr,) Go to..."
(procedure "term_recv" line 42)
invoked from within
"term_recv $c"
(procedure "::TkTerm::Terminal_Data" line 10)
invoked from within
"::TkTerm::Terminal_Data "
Code examples:
''
'' SCOPE debug example (from Propeller spin2 docs)
''
CON _clkfreq = 100_000_000
PUB go() | a, af, b, bf
debug(`SCOPE MyScope)
debug(`MyScope 'FreqA' -1000 1000 100 136 15 MAGENTA)
debug(`MyScope 'FreqB' -1000 1000 100 20 15 ORANGE)
debug(`MyScope TRIGGER 0 HOLDOFF 2)
repeat
a := qsin(1000, af++, 200)
b := qsin(1000, bf++, 99)
debug(`MyScope `(a,b))
waitus(200)
Unfortunately the SCOPE and LOGIC debug windows are not implemented yet (on any platform). There's some stub code where I started to work on them, but I was never able to finish.
Activity
totalspectrum commentedon Dec 17, 2024
Unfortunately the SCOPE and LOGIC debug windows are not implemented yet (on any platform). There's some stub code where I started to work on them, but I was never able to finish.