EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Using Terminal in Codewarrior - no serial port

Started by blewis999 April 26, 2006
We are using CW and a 9sdg128B and need to I/O to a serial port... but
have no phsyical serial port on the board. It seems like it should be
possible to use Terminal component in the Debugger, but it isn't
obvious to me how to do so. The doc set says this component relates to
the Abatron BDI... whatever that is.

Has anyone any advice on how to do this please, or can it even be
done? We use the P&E USB multilink rev b; it looks like the pseudo
terminal I/O uses 5 memory locations that is said to be 0x200, but we
have I/O maps at that space. There is a header file for Terminal.h
that does file and serial I/O but with no explanation. Do we have to
write a driver to call these psuedo terminal functions or is it
simplier then that?

All we want to do is get and put chars to/from the terminal but don't
have the physical hardware. We have CW professional can can generate
the project again with whatever is needed... if we can figure out what
is needed.

Thanks

Bob Lewis
Bob
Try running CW using the calculator example. It uses the terminal.c
subroutines, plus the terminal window in the simulator. You can see how
interfacing with a comm port is possible, without real hardware. You
can take these subroutines and include them in your program to create a
serial interface (getchr, putchr, printf...), then test with
hyperterminal when you build your hardware.
S. Prince
CSUN
Dr Stewart Prince wrote:
> Bob
> Try running CW using the calculator example.

Stewart

Would you be able to point me to the example, I can't seem to find it.
Thanks for the advice.

Bob

The 2024 Embedded Online Conference