Shop OBEX P1 Docs P2 Docs Learn Events
DEBUG on P2 — Parallax Forums

DEBUG on P2

JimFouch2JimFouch2 Posts: 26
edited 2020-12-18 14:58 in Propeller 2
Not sure if I'm doing something wrong, but can't seem to get the DEBUG functions to work on Prop Tool 2.4.1

When I try to run this sample program...
'#ifndef __P2__
'#error this demo is for P2 only
'#endif

'
' blink in Spin
'
con
  _clkfreq = 160_000_000
  pin = 56
  delay = _clkfreq / 4

pub demo() | when
  when := getct() + delay
  repeat
    pintoggle(pin)
    ' if debug is enabled, print the next cycle
    debug(udec_long(when))
    waitct(when)
    when += delay

When I press Control+F10 to load & Run in Ram I get a message box stating there is no Propeller 1 is found.

It does find the P2 and programs it but the code seems to stop where the debug statement is.

Not sure if I'm misunderstanding how debuging works on the P2.
332 x 147 - 8K
280 x 162 - 7K
450 x 450 - 177K

Comments

Sign In or Register to comment.