Shop OBEX P1 Docs P2 Docs Learn Events
Debugging Tools for Propeller — Parallax Forums

Debugging Tools for Propeller

LudisLudis Posts: 69
edited 2010-12-26 17:01 in Propeller 1
Of course i'm new. Got myself the propeller 40 pin chip and a professional development board. Also someone bought me the "process control" kit for the stamps, but i'm substiting my propeller chip in place of the stamp. Figured that would help me learn the spin code. Yep I know the PBASIC and Spin language are different.

So anyway, my question is in regards to debugging.

The Propeller Tool software doesn't seem to have a debugger. I'm looking to step through my code line by line and simulate the input pins and such and watch the states of the I/O pins change. I found the "Debug LITE for the Parallax Serial Terminal" in the threads. Is that my best option and does anyone know any other methods for debugging?

Thanks

Comments

  • LeonLeon Posts: 7,620
    edited 2010-12-26 12:36
    The Propeller doesn't have any on-chip debug support. There is something called ViewPort you can buy, which uses one of the cogs to debug applications:

    http://hannoware.com/viewport/

    There are free tools for debugging assembly language programs, such as Gear.
  • HShankoHShanko Posts: 402
    edited 2010-12-26 14:31
    There is also the Propeller Assembly Sourcecode Debugger (PASD) by Andy Schenk and Eric Moyer, © 2007 Insonix.

    It uses one cog. Your PASM code needs to be the first code if more than one exists. And remember to ccmpile and save the binary file for PASD.

    Very helpful to debug PASM, especially when first generating new PASM. Helps to find many bugs. (Of course, user's bugs are quite difficult in any case!)
  • Cluso99Cluso99 Posts: 18,069
    edited 2010-12-26 15:05
    Firstly, welcome to the fantastic world of the prop.

    There is also "Zero Footprint debugger" which I wrote - unfortunately it's a little complex to set up. It will debug both spin and pasm and uses a pc connection and PST (propeller serial terminal) or an equivalent. I also have a 1pin debugger which is just a single pin TV output (composite video) where you can insert simple output statements in your spin code (or pasm). Both are in the Obex.
  • devin122devin122 Posts: 8
    edited 2010-12-26 16:50
    There are free tools for debugging assembly language programs, such as Gear.

    Gear does spin programs as well, but it is SLOOOOOOOOW, but I'm working on that :smile:
  • MicrocontrolledMicrocontrolled Posts: 2,461
    edited 2010-12-26 17:01
    I've never heard of Gear before, of course, I've also never used a debugger, so I have nothing to miss. :-)
Sign In or Register to comment.