Hi all,
Has anybody tried to use ucSim's ability to redirect simulated micro's
UART serial interfaces on Windows?
I've been trying to get ucSim working with redirecting a UART to a named
pipe, by specifying the path to the pipe as a -S command line argument,
like so:
sstm8.exe -t STM8S208 -X 16M -S uart=1,in=\\.\pipe\ucsim,out=\\.\pipe\ucsim
I figured out that ucSim will not create the named pipe if it does not
already exist, but if I create one by external means (I am using an app
called IO Ninja to create a pipe server), then ucSim will indeed connect
to it - two connections are made, one for 'in', and one for 'out'.
However, ucSim seems to hang when I try this! All I get is these startup
messages:
uCsim 0.6-pre56, Copyright (C) 1997 Daniel Drotos.
uCsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
0> Warning: serial input interface connected to a non-terminal file.
Warning: serial output interface connected to a non-terminal file.
The console prompt does not return, and the console doesn't respond to
key presses or anything.
There is however some odd behaviour if I send some data through the 'in'
pipe connection to ucSim: it will show a prompt after some
seemingly-indeterminate number of bytes sent, but still does not respond
to key input. Also, if I have first tried to type anything in the ucSim
console, and then send data to the pipe, it makes what I typed appear,
but the console is still unresponsive.
It seems like the console is blocked, and piping data somehow
temporarily causes it to be unblocked.
Any ideas? Is this a bug in ucSim?
Regards,
Basil Hussain
P.S. By the way, I thought maybe the fact I was running ucSim through
ansicon (to get ANSI colour rendering on the Windows command prompt) was
affecting it, but doing so without gives same results. It is annoying
that ucSim has no way to run on Windows without making provisions to
handle ANSI colour. The "no-color" -b command line option does not help,
ucSim just spits out raw escape codes instead. Maybe I should file a
feature request ticket...
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user