Shop OBEX P1 Docs P2 Docs Learn Events
simulator or debugger recommendation ??? — Parallax Forums

simulator or debugger recommendation ???

fkyfky Posts: 15
edited 2009-10-24 19:53 in Propeller 1
Hi,

Can anyone recommend a simulator or debugger which they have good experience?

Thanks

Comments

  • AleAle Posts: 2,363
    edited 2009-10-23 05:34
    propeller.wikispaces.com/Debuggers+and+Emulators

    I Always recommend mine (ppropsim), but is less than perfect :-(. But I always try to address the users' problems wink.gif (use the version from this post http://forums.parallax.com/showthread.php?p=847590, if you want)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Visit some of my articles at Propeller Wiki:
    MATH on the propeller propeller.wikispaces.com/MATH
    pPropQL: propeller.wikispaces.com/pPropQL
    pPropQL020: propeller.wikispaces.com/pPropQL020
    OMU for the pPropQL/020 propeller.wikispaces.com/OMU
  • fkyfky Posts: 15
    edited 2009-10-23 09:34
    Hi Ale,

    I have downloaded the file, extract it but how do I run it?

    Thanks
  • AleAle Posts: 2,363
    edited 2009-10-23 10:50
    From ReleaseNotes.txt:
    pPropellerSim v1.0.0 - Release notes
    
    This is the full contents of the NetBeans IDE (v6.1) pPropellerSim Project.
    
    Included are:
    
    - Full sources (./src)
    - Addtional libaries required to run the project (./dist/lib)
    - Ready to run, compiled sources (./dist)
    - Documentation and changelog (./src/doc)
    
    NOTE: Be sure to read the documentation (src/doc/readme.txt) before using due to 
    extensive changes
    
    This project can be accessed at sourceforge.net/projects/ppropellersim
    
    To run:
    
    cd dist
    java -jar pPropellerSim
    
    You can create a launcher under Xfce, Genome, KDE, etc, just type in the command
    field "java -jar <path/to/dist/>pPropellerSim.jar", without quotes, most of the 
    times. Don't forget to have jre v1.5 (or jdk1.5), and java in your PATH.
    
    A small script can be created under MacOS X to launch.
    
    For Bugs/Comments, please use the project pages at SourceForge.net
    or contact me at ale500@users.sourceforge.net
    
    NOTES:
    ------
    
    The HUB dissasembly view has bugs and it is incomplete. 
    The interpreter is loaded when a .binary file is loaded and it is executed
    in COG 0 using the breakpoint on execute feature. This can be changed i.e. the 
    automatic execution of spin commands using the interpreter and this interpreter 
    can be executed one step at a time.
    
    
    Have fun
    
    Pacito.Sys
    
    
    

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Visit some of my articles at Propeller Wiki:
    MATH on the propeller propeller.wikispaces.com/MATH
    pPropQL: propeller.wikispaces.com/pPropQL
    pPropQL020: propeller.wikispaces.com/pPropQL020
    OMU for the pPropQL/020 propeller.wikispaces.com/OMU
  • Cluso99Cluso99 Posts: 18,069
    edited 2009-10-23 22:05
    Debuggers: I wrote a debugger. PASD is another. Hanno has another (professional version with demo available?). Jazzed also has one. See link (tools)·in my signature for some of these.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Links to other interesting threads:

    · Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
    · Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
    · Prop Tools under Development or Completed (Index)
    · Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
    · Search the Propeller forums·(uses advanced Google search)
    My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
  • HannoHanno Posts: 1,130
    edited 2009-10-23 23:02
    Howdy!
    Lots of debuggers available now- all have free trials, so try them out! My signature has a review of my ViewPort...
    Hanno

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Co-author of the official Propeller Guide- available at Amazon
    Developer of ViewPort, the premier visual debugger for the Propeller (read the review here, thread here),
    12Blocks, the block-based programming environment (thread here)
    and PropScope, the multi-function USB oscilloscope/function generator/logic analyzer
  • SRLMSRLM Posts: 5,045
    edited 2009-10-24 01:44
    I have found PASD to be easy to use for PASM debugging.
  • Bob AndersonBob Anderson Posts: 122
    edited 2009-10-24 19:53
    My comments are limited to degging tools for assembly code running in a cog.· For debugging Spin code, there are numerous packages including a commercial package (viewPort) that appears to full featured, but I have not personally used any of them.

    I'll second that last post about PASD.· If you have a chip (like a PropStick), this is an excellent and easy way to go.· All you need is a·PropStick and·the Propeller Tool.· PASD.exe (Windows) provides the GUI.· And PASD comes with a comprehensive, easy to read manual that is about 16 pages long.··To use PASD, you have to·add 12 longs at the beginning your assembly code.· If you don't have that much room left, then you have to use a different approach.· Fortunately there is a zero-footprint debugger (but I haven't tried it).· You can find that somewhere in the threads.

    Another way to go if you have a chip available to run on: simply imbed print statements in the assembly code.··"Simple Debug" will do this if you only need to deal with a single cog.· If you need to·work·with serial in and out from multiple cogs, go to the Object Exchange and look up "MultiPortSerialTerminal (with C# client)".· This is a tool that I wrote so that I could debug multiple cogs at once through a single serial connection.· Again, all you need is a PropStick and the C# client.· It uses pins 30 and 31 --- the same pins that are used to load the PropStick.

    If you don't have a Propeller to run on, then of course you have to use an emulator.· When using an emulator, remember that it may not emulate correctly all aspects of all instructions.·· If you're using garden variety main stream instructions, it will probably be fine, but be careful.· As far as I know, there is no validation suite available to certify all aspects of all instructions for any emulator.· I have done some work with validating a few instructions (CMPSX, REV, SUBS, SUBSX, SUBX, and CMPX).· This work was undertaken because the GEAR simulator had trouble with SUBS.··"mirror" fixed SUBS but noted that the fix affected some·related instructions and asked for validation tests for those as well.

    The two assembly code emulators that I know about are GEAR (Windows) and pPropellerSim (Mac).· (pPropellorSim is written in Java and might be useable in a Windows environment.· Your mileage may vary.)
Sign In or Register to comment.