Shop OBEX P1 Docs P2 Docs Learn Events
Debug with — Parallax Forums

Debug with

ArchiverArchiver Posts: 46,084
edited 2004-03-16 17:27 in General Discussion
Hi all,
I am using a BS2 to drive a servo after reading some data altitude
input.
My problem is:
I can't save debug inputs from the stamp with official debug program
to look at them further.
Has any one solved this problem or do know how to look at stamp's
debug outputs with microsoft hyperterminal which has save capacities

Thanks for your help
Guy

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-03-14 19:05
    You can copy text from the DEBUG window (highlight what you want, then
    press Ctrl-C) and paste it into Notepad to save. Remember that the
    DEBUG window is not intended to be a general-purpose terminal like
    Hyperterminal (it has control codes that don't work elsewhere).

    You can, of course, use Hyperterminal, but you'll have to avoid using
    formatting codes other than CR and LF. Set Hyperterminal for 9600-N81,
    no flow control and you can receive your DEBUG output.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office



    Original Message
    From: cozy20167 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=a6EizxxsUmP0A0nc9xxaclaw00aByOSHtRkGSyJeMwDNnhorUDZ8qReGq-Sob6go5j4nuYRE]cozy@l...[/url
    Sent: Sunday, March 14, 2004 6:36 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Debug with "save" option


    Hi all,
    I am using a BS2 to drive a servo after reading some data altitude
    input.
    My problem is:
    I can't save debug inputs from the stamp with official debug program
    to look at them further.
    Has any one solved this problem or do know how to look at stamp's
    debug outputs with microsoft hyperterminal which has save capacities

    Thanks for your help
    Guy
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-15 11:17
    Jon,
    I tried today the hyperterminal session you sent me with theese
    first lines of 2 programm
    ========================================
    '{$STAMP BS2}
    DEBUG" ",CR
    DEBUG"Program Version alihold 1.02 GT1.11", CR
    DEBUG"modif. de C. Caddy par prise de donn
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-15 13:40
    No, there is nothing you need to do with the BASIC Stamp to start communication
    -- DEBUG handles it. Make sure that you have the correct COM port selected in
    HyperTerminal (as I told you yesterday, it must be set to the same port as your
    BASIC Stamp programming port), and that your Debug Window is NOT open at the
    same time (when the Debug Window is open it has control of the COM port).

    -- Jon Williams


    Original Message
    From: cozy20167 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=Z_Pdkdj_gsY_Y-AmkW_5InpbcO0KeRsIJ9WayJk_Dd3sTPX96iMAdxqCylfYmSPkNFmCWUs1Tw]cozy@l...[/url
    Sent: Monday, March 15, 2004 5:18 AM
    To: basicstamps@yahoogroups.com
    Subject: RE: [noparse][[/noparse]basicstamps] Debug with "save" option


    Jon,
    I tried today the hyperterminal session you sent me with theese
    first lines of 2 programm ========================================
    '{$STAMP BS2}
    DEBUG" ",CR
    DEBUG"Program Version alihold 1.02 GT1.11", CR
    DEBUG"modif. de C. Caddy par prise de donn
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-15 15:25
    One question: Are you using the BOE?
    Hyperterminal raises DTS, which holds the
    BS2 in reset unless it is decoupled by 2
    capacitors -- which are in the BOE circuit.

    If you've 'rolled your own' holder board, you
    may have left these two capacitors out.

    --- In basicstamps@yahoogroups.com, "cozy20167" <cozy@l...> wrote:
    > Jon,
    > I tried today the hyperterminal session you sent me with theese
    > first lines of 2 programm
    > ========================================
    > '{$STAMP BS2}
    > DEBUG" ",CR
    > DEBUG"Program Version alihold 1.02 GT1.11", CR
    > DEBUG"modif. de C. Caddy par prise de donn
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-15 17:35
    Allan,
    I am using a parallax prototype board ( about 2"5 x 3")for Basic
    stamp2.it has socket for BS. Reset button and holes required to
    solder conponents
    It has no capacitance mounted on

    Do you think i need theese two capacitors ?
    Where should they be mounted or do you know any terminal programm i
    could use without capacitors mods
    Thanks
    Guy


    --- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
    wrote:
    > One question: Are you using the BOE?
    > Hyperterminal raises DTS, which holds the
    > BS2 in reset unless it is decoupled by 2
    > capacitors -- which are in the BOE circuit.
    >
    > If you've 'rolled your own' holder board, you
    > may have left these two capacitors out.
    >
    > --- In basicstamps@yahoogroups.com, "cozy20167" <cozy@l...> wrote:
    > > Jon,
    > > I tried today the hyperterminal session you sent me with theese
    > > first lines of 2 programm
    > > ========================================
    > > '{$STAMP BS2}
    > > DEBUG" ",CR
    > > DEBUG"Program Version alihold 1.02 GT1.11", CR
    > > DEBUG"modif. de C. Caddy par prise de donn
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-15 17:50
    Yes, if you go to
    http://www.parallax.com/detail.asp?product_id=28150
    and download the BOE rev C schematic.pdf, you'll see
    there are two 0.1 uF capacitors in the DTR (Pin 4)
    line. These are the de-coupling caps I was talking
    about.

    You can use the 'terminal' windows in the Stamp IDE
    without these caps.

    If you can control the serial port from another
    terminal program to set DTR OFF, then the stamp
    should run. There's NO way that I know of to
    convince Hyperterm to leave the DTR line alone.



    --- In basicstamps@yahoogroups.com, "cozy20167" <cozy@l...> wrote:
    > Allan,
    > I am using a parallax prototype board ( about 2"5 x 3")for Basic
    > stamp2.it has socket for BS. Reset button and holes required to
    > solder conponents
    > It has no capacitance mounted on
    >
    > Do you think i need theese two capacitors ?
    > Where should they be mounted or do you know any terminal programm i
    > could use without capacitors mods
    > Thanks
    > Guy
    >
    >
    > --- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
    > wrote:
    > > One question: Are you using the BOE?
    > > Hyperterminal raises DTS, which holds the
    > > BS2 in reset unless it is decoupled by 2
    > > capacitors -- which are in the BOE circuit.
    > >
    > > If you've 'rolled your own' holder board, you
    > > may have left these two capacitors out.
    > >
    > > --- In basicstamps@yahoogroups.com, "cozy20167" <cozy@l...> wrote:
    > > > Jon,
    > > > I tried today the hyperterminal session you sent me with theese
    > > > first lines of 2 programm
    > > > ========================================
    > > > '{$STAMP BS2}
    > > > DEBUG" ",CR
    > > > DEBUG"Program Version alihold 1.02 GT1.11", CR
    > > > DEBUG"modif. de C. Caddy par prise de donn
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-15 17:58
    Allan,
    seen them.
    Thanks a lot
    Guy

    --- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
    wrote:
    > Yes, if you go to
    > http://www.parallax.com/detail.asp?product_id=28150
    > and download the BOE rev C schematic.pdf, you'll see
    > there are two 0.1 uF capacitors in the DTR (Pin 4)
    > line. These are the de-coupling caps I was talking
    > about.
    >
    > You can use the 'terminal' windows in the Stamp IDE
    > without these caps.
    >
    > If you can control the serial port from another
    > terminal program to set DTR OFF, then the stamp
    > should run. There's NO way that I know of to
    > convince Hyperterm to leave the DTR line alone.
    >
    >
    >
    > --- In basicstamps@yahoogroups.com, "cozy20167" <cozy@l...> wrote:
    > > Allan,
    > > I am using a parallax prototype board ( about 2"5 x 3")for Basic
    > > stamp2.it has socket for BS. Reset button and holes required to
    > > solder conponents
    > > It has no capacitance mounted on
    > >
    > > Do you think i need theese two capacitors ?
    > > Where should they be mounted or do you know any terminal
    programm i
    > > could use without capacitors mods
    > > Thanks
    > > Guy
    > >
    > >
    > > --- In basicstamps@yahoogroups.com, "Allan Lane"
    <allan.lane@h...>
    > > wrote:
    > > > One question: Are you using the BOE?
    > > > Hyperterminal raises DTS, which holds the
    > > > BS2 in reset unless it is decoupled by 2
    > > > capacitors -- which are in the BOE circuit.
    > > >
    > > > If you've 'rolled your own' holder board, you
    > > > may have left these two capacitors out.
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-15 18:01
    Allan is right -- and an update to the original BASIC Stamp prototyping
    board will include the inline caps. It's not tough to add caps (0.1 uF)
    to your board, you'll just need to sever the direct connection and put
    one cap inline, then the other to Vss; like this:

    0.1
    DTR (DB9.4)
    ||----*
    ATN (pin 3 on BASIC Stamp module)
    |
    === 0.1
    |
    Vss

    Here's alink to one of our standard programming boards that shows the
    caps in place:

    http://www.parallax.com/dl/docs/prod/stamps/BS2pDemoCschem.pdf

    -- Jon Williams
    -- Parallax


    Original Message
    From: Allan Lane [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=MG1pSoSavOpAbKngbx9m1JnbMIP2CQFeLyjBp8f_kYC63hBkzq7GNdbwIaprqfQ--mp-clrrG_Z1Ob3H3HQqKjffWc63]allan.lane@h...[/url
    Sent: Monday, March 15, 2004 11:50 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: Debug with "save" option


    Yes, if you go to http://www.parallax.com/detail.asp?product_id=28150
    and download the BOE rev C schematic.pdf, you'll see
    there are two 0.1 uF capacitors in the DTR (Pin 4)
    line. These are the de-coupling caps I was talking
    about.

    You can use the 'terminal' windows in the Stamp IDE
    without these caps.

    If you can control the serial port from another
    terminal program to set DTR OFF, then the stamp
    should run. There's NO way that I know of to
    convince Hyperterm to leave the DTR line alone.



    --- In basicstamps@yahoogroups.com, "cozy20167" <cozy@l...> wrote:
    > Allan,
    > I am using a parallax prototype board ( about 2"5 x 3")for Basic
    > stamp2.it has socket for BS. Reset button and holes required to
    > solder conponents
    > It has no capacitance mounted on
    >
    > Do you think i need theese two capacitors ?
    > Where should they be mounted or do you know any terminal programm i
    > could use without capacitors mods
    > Thanks
    > Guy
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-16 17:27
    Allan, Jon,
    This worked fine. All is ok now
    Thanks
    Guy
    --- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
    wrote:
    > Yes, if you go to
    > http://www.parallax.com/detail.asp?product_id=28150
    > and download the BOE rev C schematic.pdf, you'll see
    > there are two 0.1 uF capacitors in the DTR (Pin 4)
    > line. These are the de-coupling caps I was talking
    > about.
    >
    > You can use the 'terminal' windows in the Stamp IDE
    > without these caps.
    >
    > If you can control the serial port from another
    > terminal program to set DTR OFF, then the stamp
    > should run. There's NO way that I know of to
    > convince Hyperterm to leave the DTR line alone.
    >
    >
    >
    > --- In basicstamps@yahoogroups.com, "cozy20167" <cozy@l...> wrote:
    > > Allan,
    > > I am using a parallax prototype board ( about 2"5 x 3")for Basic
    > > stamp2.it has socket for BS. Reset button and holes required to
    > > solder conponents
    > > It has no capacitance mounted on
    > >
    > > Do you think i need theese two capacitors ?
    > > Where should they be mounted or do you know any terminal
    programm i
    > > could use without capacitors mods
    > > Thanks
    > > Guy
    > >
    > >
    > > --- In basicstamps@yahoogroups.com, "Allan Lane"
    <allan.lane@h...>
    > > wrote:
    > > > One question: Are you using the BOE?
    > > > Hyperterminal raises DTS, which holds the
    > > > BS2 in reset unless it is decoupled by 2
    > > > capacitors -- which are in the BOE circuit.
    > > >
    > > > If you've 'rolled your own' holder board, you
    > > > may have left these two capacitors out.
    > > >
    > > > --- In basicstamps@yahoogroups.com, "cozy20167" <cozy@l...>
    wrote:
    > > > > Jon,
    > > > > I tried today the hyperterminal session you sent me with
    theese
    > > > > first lines of 2 programm
    > > > > ========================================
    > > > > '{$STAMP BS2}
    > > > > DEBUG" ",CR
    > > > > DEBUG"Program Version alihold 1.02 GT1.11", CR
    > > > > DEBUG"modif. de C. Caddy par prise de donn
Sign In or Register to comment.