full_duplex_serial_ht demo is broken.
jazzed
Posts: 11,803
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
Thanks Heater. You still have repository commit access.
Enrique
I would like to try out using the propeller gcc toolchain and communicating via USB/Serial is a must so this seems like a logical demo to start with .
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.
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?
stdin->_flag &= ~_IOCOOKED;
Echo: yes. see http://propgcc.googlecode.com/hg/doc/Library.html#cooked
Buffer size: not without changing the underlying PASM.