simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] Help with New Example


From: Joel Sherrill
Subject: Re: [Simulavr-devel] Help with New Example
Date: Sun, 29 Mar 2009 12:06:00 -0500
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

Knut Schwichtenberg wrote:
Joel Sherrill wrote:
Great.  Now you are as far as I am.  Did the "simfeedback.tcl" show
up in an xterm and print messages which look like it is getting the
events but no data from the UART?
Something like this? :-)

New Connection on Simulation Feedback Server established!
Socket: sock4  from Address 127.0.0.1  and port 36017
FDBK RECV: --->create UpdateControl dummy dummy <---
FDBK CREATE: UpdateControl dummy ::guiMaster_sock4 dummy dummy
FDBK RECV: --->create Net txD0 .x <---
FDBK CREATE: Net txD0 ::guiMaster_sock4 txD0 .x
FDBK RECV: --->create Net rxD0 .x <---
FDBK CREATE: Net rxD0 ::guiMaster_sock4 rxD0 .x
FDBK RECV: --->create SerialRx serialRx0 .x<---
FDBK CREATE: SerialRx serialRx0 ::guiMaster_sock4 serialRx0 .x
FDBK RECV: --->create SerialTx serialTx0 .x<---
FDBK CREATE: SerialTx serialTx0 ::guiMaster_sock4 serialTx0 .x
FDBK RECV: --->set rxD0 h<---
FDBK SET: rxD0 ChangeValue h
FDBK RECV: --->set txD0 h<---
FDBK SET: txD0 ChangeValue h
...

The old checkdebug was attaching to the avr program.  Not
the simulator itself.  The new simulavr.tcl should be able to
do that but doesn't start the gdb in another window yet.
It will get there eventually.
??? working with simulavr.tcl is a three window job:
1. / Original window
Where you start the simulavr.tcl, shows the special port print-outs.

2. simfeedback.tcl
The FDBK-messages as above

3. AVR GDB feedback
gdb window

Is this as you expect it or works your script only as you programmed it? ;-)

That's what I get also.  But shouldn't I see characters that
are written to the UART in the feedback window?

I agree I need to document this but I am thrilled you can use
it and you see the potential. Even bigger smile.  My goal is that
this is a way to avoid having a lot of duplicated Tcl and users
can build custom things on it easily.

Would it make sense to have commands like "atmega128_addUart0"?
In a second trial the -V was not necessary. So starting it with a "make dogdb"
prepared three windows and let the program wait at the beginning of the reset
vector. With a gdb cont-command the game starts.

Fabulous.  I hadn't even tried that yet.  Just followed the pattern
from previous examples.

--joel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]