Shop OBEX P1 Docs P2 Docs Learn Events
propeller debug — Parallax Forums

propeller debug

ivorivor Posts: 2
edited 2007-01-13 12:13 in Propeller 1
i have just started looking at the propellor chip and have a basic understanding of
how it works.

my question is how do you de-bug your code?
······· can you put in breakpoints to the cog code?
······· how do you examine registers etc?

··· can someone give me an overview
···
··········· thank you

Comments

  • bambinobambino Posts: 789
    edited 2007-01-12 16:29
    Look in the object exchange.

    You will find a couple objects like "Simple Debug" or "PC_Debug".

    These use the FullDuplex Serial driver to enable a com to something like HyperTerm for some setups. If your setup has a problem with that use the debug window in the stamp editor.

    And Yes, you can sort of pause execution by issueing some of the GetChar like commands in the debug objects that wait for you to enter something in the terminal window before resuming code.
  • Mike GreenMike Green Posts: 23,101
    edited 2007-01-13 01:47
    You can also use TV or VGA output and keyboard input for debugging (see the tv_text object and the keyboard object which work with the Demo Board). At one point, I was working on a VGA output program and added a TV output for debugging information. Works great as long as you have an extra cog and 4 extra I/O pins.
  • lairdtlairdt Posts: 36
    edited 2007-01-13 04:16
    Serial LCD for debug - one I/O pin.
  • ivorivor Posts: 2
    edited 2007-01-13 12:13
    to mike green, lairdt

    thank you. i have gota demo board so i will try that or serial lcd.
    i think i have got he idea. its just a different way of thinking.

    ivor
Sign In or Register to comment.