[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Simulavr-devel] Simulation of the interactive, UART using firmware
Re: [Simulavr-devel] Simulation of the interactive, UART using firmware with pysimulavr
Sun, 07 Nov 2010 14:57:26 +0100
Thunderbird 18.104.22.168 (X11/20100623)
My AVR code intensively uses the UART interface.
Unfortunately it also sends smetimes the double quote character
("), which caused the Tcl/Tk GUI to crash.
Your problem with double qoute is connected with tcl itself. It tries to
interpret this double quote and then things go wrong. But, of course,
it's also possible, that there are some bugs. The tcl/tk part of
simulavrxx isn't maintained now. So, nobody seems to use it (expect you
:-) ) and we have no feedback about it nor somebody, who keeps it running.
Additionally I wanted to have more tight integration between my code
and the simulavr, and therefore I have decided to use pysimulavr.
That's better. ;-) I use it too. (ok, if I had time ...)
My first finding was, that I'm unable to access periferials
defined in serialtx and serialrx from pysimulavr, but I've worked around
Hm ... you can do that. But ... I have put all the stuff in ui directory
out of pysimulavr.i. The reason - see before - it's not really
maintained and it was written to support tcl/tk, not python. So, for you
locally its ok, if it works as you want. But my opinion is, that this
would not be a good idea to integrate it in python interface.
serialtx and serialrx are the counterpart to uart modul in simulator. I
have made this completely in python as I tried to run amforth on
simulator. If you like, then I can look for the code and send some parts
to you as example, how to do that without serialtx and serialrx. I
think, this would be too a example, how to connect some external stuff
to simulation with pysimulavr.