Shop OBEX P1 Docs P2 Docs Learn Events
No stamp or not a bs2 — Parallax Forums

No stamp or not a bs2

AdrienAdrien Posts: 3
edited 2008-12-29 09:02 in BASIC Stamp
Hi everybody.

First, i'm not a native speaker, then sorry for my mistakes!

I'vo got a basicstamp bs2 with a Board of Education Development Board (Serial Version).
My computer got a recognized usb/serial adaptator on linux ubuntu 8.04.

I use Minicom with those params:

Baudrate 9600 8N2
No data controle

stampbc work fine, but after compiling, i've got one error: "No stamp or not a bs2"

I also tried 9600 8N1 with no succeed

Could anyone help me?
Thanks smile.gif

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2008-12-28 14:58
    I wonder if you are using the appropriate Stamp Directive.

    The first line in your program should be: ' {$STAMP BS2}
    The second line should be: ' {$PBASIC 2.5}
  • AdrienAdrien Posts: 3
    edited 2008-12-28 15:56
    My programs is ok, i already test it with a computer able to communicate with the bs2.


    stty < /dev/ttyUSB0 display:

    speed 9600 baud; line = 0;
    -brkint -imaxbel

    Post Edited (Adrien) : 12/28/2008 4:06:16 PM GMT
  • Mike GreenMike Green Posts: 23,101
    edited 2008-12-28 16:01
    Not all USB to Serial Adapters will work for programming a Stamp. Can you test your adapter on another computer, perhaps one running Windows?
  • AdrienAdrien Posts: 3
    edited 2008-12-28 16:20
    Work on windows with the same computer, same adaptator, and same usb port used...

    But windows...
  • Adrian SchneiderAdrian Schneider Posts: 92
    edited 2008-12-29 09:02
    did you check the other parameters of your serial interface? The setup I used was:

    9600 raw -echo -hupcl


    Full parameter value lisitng:

    device: /dev/ttyS0
    speed 9600 baud; line = 0;
    min = 1; time = 0;
    -brkint -icrnl -imaxbel
    -opost
    -isig -icanon -echo
    speed 9600 baud; rows 0; columns 0; line = 0;
    intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
    eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
    lnext = ^V; flush = ^O; min = 1; time = 0;
    -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
    -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon
    -ixoff -iuclc -ixany -imaxbel
    -opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
    ff0
    -isig -icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
    echoctl echoke


    regards
    adrian
Sign In or Register to comment.