Skip to content

Spin2 SCOPE & LOGIC debug options not working on MacOS #93

Open

Description

@dgately

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)
''
'' LOGIC debug example (from Propeller spin2 docs)
''
CON _clkfreq	= 10_000_000

PUB go() | i

  debug(`LOGIC MyLogic SAMPLES 32 'Low' 3 'Mid' 2 'High')
  debug(`MyLogic TRIGGER $07 $04 HOLDOFF 2)

  repeat
    debug(`MyLogic `(i & 63))
    i++
    waitms(25)

Activity

  1. totalspectrum commented on Dec 17, 2024

    @totalspectrum
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions