Shop OBEX P1 Docs P2 Docs Learn Events
PASD Help — Parallax Forums

PASD Help

pjvpjv Posts: 1,903
edited 2009-08-22 18:05 in Propeller 1
Hi All;

I've received some good pointers to more assembly "how-to" documentation, and reccommendations for assembly debuggers.

So I have downloaded the PASD debugger V0.3 -latest I believe, but I don't read much German- and in trying that out, I get an error thrown at step 7 in the users manual.... Press F2....· The error window states 'no data- Assembly code with Debug Kernel loaded in propeller chip?

And as far as I can tell, the demo program provided has the proper call for the kernel and the debugger for the other cog.

Don't know if I'm doing something wrong.

Help??

Cheers,

Peter (pjv)

Comments

  • CounterRotatingPropsCounterRotatingProps Posts: 1,132
    edited 2009-08-20 23:29
    Peter, the recent version I have (PASD_03) has a manual in PDF that's in English:

    6)In PASD, Select “Com Port” from the “COM” menu
    and specify your COM port.

    7) Make sure that the Propeller IDE is still open, and that
    the “PASD_AsmDebugDemo spin” window in the
    Propeller IDE is the currently active window. Press
    <F2> (or alternatively select “Get Asm Code” from
    the “File” menu)
    The main PASD window will update to show the
    source code for the module being debugged
    (PASD_AsmDebugDemo.spin).

    8) Note that the current line ($00C) is highlighted in blue.
    This is the first line which will be run when execution
    in started.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • jazzedjazzed Posts: 11,803
    edited 2009-08-20 23:48
    I'm a fan of PASD, really. You should read this post as it will help you avoid problems.
    http://forums.parallax.com/showthread.php?p=816524

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --Steve


    Propalyzer: Propeller PC Logic Analyzer
    http://forums.parallax.com/showthread.php?p=788230
  • CounterRotatingPropsCounterRotatingProps Posts: 1,132
    edited 2009-08-21 00:04
    Steve,

    thanks for that link - I'd forgotten about it. I'm learning PASD now too ... it really is a nice piece of code, eh?

    - H

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • SRLMSRLM Posts: 5,045
    edited 2009-08-21 01:15
    You have to do four things:

    a) in the object with the assembly code, include the PASDebug object.
    b) ..., start the PASDebug object
    c) ..., include (and start at) the 12 long in cog debugger code
    d) not run any terminal applications.

    Once you have all that going, download the object and make sure that it's runnable (the start method is called and all that), then follow the steps CRP posted.

    You can just google PASD and propeller and get the most recent version of the website.

    A bug that I've noticed is that after a long day of debugging, the labels start to drift from their associated values and addresses. The solution is simply to restart PASD. All in all, a good program.
  • AribaAriba Posts: 2,690
    edited 2009-08-21 02:31
    @Steve (Jazzed)

    Use 'Save Settings' in the File Menu to store the ComPort. This also saves the Window positions and sizes.

    The other limits of your list are mostly correct (and I think there are even more limits). But some annotations:
    - The ORG is an Assembly directive and produces no data in memory, so I never set a label there.
    - The 'on top' windows can be minimized if they annoy. They are automatically minimized/restored when the Main window of PASD is minimized/restored.

    Andy
  • pjvpjv Posts: 1,903
    edited 2009-08-21 03:44
    Hey All;

    Thanks for all the comments, but I believe I did all properly as explained and used the provided demo program, but I get the error message. So now I don't know what the issue is.

    @Counter R P; Just a little clarification: my reference to German language was to be sure I got the latest version... I was able to read their pdf just fine..... excellent English.

    I'll try some more tomorrow. When I get it working, I believe it will be a good tool.

    Thanks all.

    And Jazzed, that was an interesting link you sent me to.... interesting to see people's approaches to debugging. I too am a hardware guy, flash lots of leds but with a scope attached. Speaking of which, Potatohead was wishing for a scope, and I'll send him one (a working well-used multi-channel Tektronix with no probes if he'll pay the shipping and any customs duties from Canada). Years ago I sent one to Paul Baker, and he had no duty issues at all.

    Cheers,

    Peter (pjv)
  • w8anw8an Posts: 176
    edited 2009-08-21 04:16
    How about a bank of toggle switches to set debug parameters to go along with the debug output LEDs?
    It could be arranged to look like this:

    altair.jpg

    tongue.gif
    ..Steve
  • jazzedjazzed Posts: 11,803
    edited 2009-08-21 04:26
    Hey! I had to do that in school with fewer LEDs [noparse]:)[/noparse] Can you imagine toggling-switching a bootstrap program ? Punch-cards were not much better. This was all *after* learning basic on a VIC-20 and a Sinclair Z80 [noparse]:)[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --Steve


    Propalyzer: Propeller PC Logic Analyzer
    http://forums.parallax.com/showthread.php?p=788230
  • w8anw8an Posts: 176
    edited 2009-08-21 04:51
    Not only can I imagine it, I remember doing it to boot the 8" hard drive (10MB) into MP/M using this one:

    ithaca.jpg

    I still have it in the basement. Wonder if she still works?

    ..Steve
  • Cluso99Cluso99 Posts: 18,069
    edited 2009-08-22 06:31
  • pjvpjv Posts: 1,903
    edited 2009-08-22 18:05
    Hey All;

    Got it running..... had not dealt with the com port properly. Still notice a few oddities, but will work through them to understand them better.

    Very helpful, and much appreciated. A hearty THANKS to its creator, as well as those who nudged me to the link. As most of my needs are high speed assembler will be my principal programming method.

    Thanks again!........ surely more questions to follow.

    Cheers,

    Peter (pjv)
Sign In or Register to comment.