Shop OBEX P1 Docs P2 Docs Learn Events
full_duplex_serial_ht demo is broken. — Parallax Forums

full_duplex_serial_ht demo is broken.

jazzedjazzed Posts: 11,803
edited 2013-03-10 18:01 in Propeller 1
The demo was never changed from the original .coguser1 section naming which is no longer used. It should be fixed or removed. For the time being it will be left out of the demo package.

Comments

  • David BetzDavid Betz Posts: 14,516
    edited 2012-09-04 10:50
    jazzed wrote: »
    The demo was never changed from the original .coguser1 section naming which is no longer used. It should be fixed or removed. For the time being it will be left out of the demo package.
    I'll look at it this evening.
  • jazzedjazzed Posts: 11,803
    edited 2012-09-04 11:31
    I was hoping Heater could fix it.
  • David BetzDavid Betz Posts: 14,516
    edited 2012-09-04 12:24
    jazzed wrote: »
    I was hoping Heater could fix it.
    Good plan. Let's get Heater to do it!! :-)
  • Heater.Heater. Posts: 21,230
    edited 2012-09-04 14:01
    Ah, OK guys there's a challenge. I'll see what I can do.
  • jazzedjazzed Posts: 11,803
    edited 2012-09-04 14:47
    Heater. wrote: »
    Ah, OK guys there's a challenge. I'll see what I can do.

    Thanks Heater. You still have repository commit access.
  • EnriqueEnrique Posts: 90
    edited 2012-09-07 05:55
    Could you guys get the demo working? I'd like to experiment with it.

    Enrique
  • hmaarrfkhmaarrfk Posts: 1
    edited 2013-02-14 15:54
    Bumb.

    I would like to try out using the propeller gcc toolchain and communicating via USB/Serial is a must :D so this seems like a logical demo to start with :D.
  • ersmithersmith Posts: 6,054
    edited 2013-02-14 16:47
    hmaarrfk wrote: »
    Bumb.

    I would like to try out using the propeller gcc toolchain and communicating via USB/Serial is a must :D so this seems like a logical demo to start with :D.

    Don't worry, serial works fine in PropGCC. The full_duplex_serial_ht demo shows how a low level full duplex serial driver can be implemented entirely in C running on a COG, but you don't need to use that to get serial working -- the C libraries have half duplex (SimpleSerial) and full duplex (FullDuplexSerial) drivers written in assembly language that you can call from C.
  • jazzedjazzed Posts: 11,803
    edited 2013-02-14 17:08
    Heater's program was an experiment he did to see if he could write it entirely in C.

    There are officially supported ways of using the serial port: https://sites.google.com/site/propellergcc/documentation/libraries#TOC-Stdio-Devices-Library

    Another alternative is a port of Chip's original full duplex serial code attached below FdSerial.zip.
  • James ShimerJames Shimer Posts: 2
    edited 2013-03-10 16:37
    jazzed wrote: »
    Heater's program was an experiment he did to see if he could write it entirely in C.

    There are officially supported ways of using the serial port: https://sites.google.com/site/propellergcc/documentation/libraries#TOC-Stdio-Devices-Library

    Another alternative is a port of Chip's original full duplex serial code attached below FdSerial.zip.

    Does the officially supported (full or simple) support turning off echo, configuring rxbuf size?
  • James ShimerJames Shimer Posts: 2
    edited 2013-03-10 17:59
    Answering my own question, found you have to set the cooked flag by accessing stdin globally

    stdin->_flag &= ~_IOCOOKED;
  • jazzedjazzed Posts: 11,803
    edited 2013-03-10 18:01
    Does the officially supported (full or simple) support turning off echo, configuring rxbuf size?

    Echo: yes. see http://propgcc.googlecode.com/hg/doc/Library.html#cooked

    Buffer size: not without changing the underlying PASM.
Sign In or Register to comment.