Shop OBEX P1 Docs P2 Docs Learn Events
Prop to BS2 Debug — Parallax Forums

Prop to BS2 Debug

ProcessingData...ProcessingData... Posts: 208
edited 2009-04-08 21:29 in Propeller 1
I have been trying to make the prop demo board·talk to my computer through the debug terminal. At first I tried doing it straight through the USB. This Did Not Work. All·I ever got it to display was a·rectangle block. I then tried sending the letter "a" followed by a·decimal 1, through the basic stamp. It didn't do·much for a while, but after i left it, it displayed a "p". Can someone tell me how to·display text on the Basic Stamp Editor Debug Terminal, preferrably through the USB port on the demo board?·confused.gif

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Basic Stamp,···· Propeller,·· · SX,·· FUN!


START:·
>Proccessing Data. . . .··
>Task Complete. . .·.
>Saving Data. . . .
>Entering SLEEP Mode. . . .
>Signing OFF


·

Comments

  • edited 2009-04-07 03:30
    I think this might be what you are looking for: PE Kit Tools: Propeller <-> PC Terminal Communication

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Andy Lindsay

    Education Department
    Parallax, Inc.
  • StefanL38StefanL38 Posts: 2,292
    edited 2009-04-07 05:12
    Hello,

    please atach your code with the attachment-manager of the forumsoftware

    without the code it is really hard to say where the bug is

    best regards

    Stefan
  • ProcessingData...ProcessingData... Posts: 208
    edited 2009-04-07 22:29
    @Andy
    I tried it using the basic stamp debug terminal, and it displayed strange characters, But at least it did somthing!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Basic Stamp,···· Propeller,·· · SX,·· FUN!


    START:·
    >Proccessing Data. . . .··
    >Task Complete. . .·.
    >Saving Data. . . .
    >Entering SLEEP Mode. . . .
    >Signing OFF


    ·
  • edited 2009-04-07 22:35
    You need to set the baud rate to the correct value. The example application code is transmitting at 115200 bps.

    Also, the Parallax Serial Terminal is the Debug Terminal, but adjusted for use with the Propeller. Download it and try it with the application. Follow the instructions in the post step-by-step, and it should work well for you.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Andy Lindsay

    Education Department
    Parallax, Inc.
  • StefanL38StefanL38 Posts: 2,292
    edited 2009-04-07 22:38
    Hello ProcessingData,

    could you please "process your Data" and attach your code to a posting

    best regards

    Stefan
  • ProcessingData...ProcessingData... Posts: 208
    edited 2009-04-07 22:43
    Thanks andy, I just got it to work. Will it still work at 9600 baud?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Basic Stamp,···· Propeller,·· · SX,·· FUN!


    START:·
    >Proccessing Data. . . .··
    >Task Complete. . .·.
    >Saving Data. . . .
    >Entering SLEEP Mode. . . .
    >Signing OFF


    ·
  • ProcessingData...ProcessingData... Posts: 208
    edited 2009-04-07 22:53
    @stefenL38
    My code isn't much. Just trying to test sending the letter 'a' somthing like:
    OBJ
    ser : "SimpleDebug"
    Pub Serial
    ser.start(9600)
    ser.putc("a")

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Basic Stamp,···· Propeller,·· · SX,·· FUN!


    START:·
    >Proccessing Data. . . .··
    >Task Complete. . .·.
    >Saving Data. . . .
    >Entering SLEEP Mode. . . .
    >Signing OFF


    ·
  • StefanL38StefanL38 Posts: 2,292
    edited 2009-04-07 23:25
    Hello ProcessngData,

    ha got you (maybe) - as you refused to post your COMPLETE code

    did you include the following lines in your code ?

    CON
      _clkmode = xtal1 + pll16x
      _xinfreq = 5_000_000
    
    



    if NOT you might be working in a clockmode that isn't accurate enough for serial transmission

    a small program does NOT mean everything is working in every case
    (it might be too small)

    best regards

    Stefan
  • ProcessingData...ProcessingData... Posts: 208
    edited 2009-04-08 21:29
    I did include those lines, stefanL38, but really, i just was using the code above. However, if you want to know what i'm doing, i'm experimenting with servo control.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Basic Stamp,···· Propeller,·· · SX,·· FUN!


    START:·
    >Proccessing Data. . . .··
    >Task Complete. . .·.
    >Saving Data. . . .
    >Entering SLEEP Mode. . . .
    >Signing OFF


    ·
Sign In or Register to comment.