Shop OBEX P1 Docs P2 Docs Learn Events
How do I get DEBUG to work for SPIN2? — Parallax Forums

How do I get DEBUG to work for SPIN2?

I have an P2EVAL board and run the P2 at 150 MHz. I use PNut (v34s) on a Win-10 PC to write and run SPIN2 programs. So far, programs compile and run. The Spin2 Language Documentation explains...
Debugging is initiated by adding the Ctrl key to the usual F10 to 'run' or F11 to 'program'.
That does nothing on my computer. I have tried to run the simple example below from the SPIN2 documentation, but see nothing. I press and hold CRTL and then press and release F10. I do get an error message for the debug line, though:
Expected an instruction or variable.
CON
_clkfreq = 150_000_000
PUB go() | i
   repeat i from 0 to 9
     debug(udec(i))

Again from the SPIN2 documentation:
This compiles your application with all the DEBUG statements, adds the debugger to the download, and then brings up the DEBUG Output window which begins receiving messages at the start of your application.

Again nothing happens. I want to "watch" a 32-bit value as a program executes and have hit a brick wall with the simplest of examples. How do I get DEBUG to operate (properly)? Thanks. --Jon

Comments

Sign In or Register to comment.