simulavr-devel
[Top][All Lists]
Advanced

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

[Simulavr-devel] [bug #40586] example/feedback does not work


From: Markus Hitter
Subject: [Simulavr-devel] [bug #40586] example/feedback does not work
Date: Fri, 15 Nov 2013 01:18:37 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0

URL:
  <http://savannah.nongnu.org/bugs/?40586>

                 Summary: example/feedback does not work
                 Project: Simulavr: an AVR simulator
            Submitted by: hitterm
            Submitted on: Fr 15 Nov 2013 01:18:37 GMT
                Category: Simulation
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: simulavr

    _______________________________________________________

Details:

Trying to get a grip on how to use SimulAVR, I tried with the "feedback"
example. First of all, please find two patches attached, which (0001-*)
simplifies the Makefile and (0002-*) adds instructions on how to run the
example. Well, the latter is what I found out so far, at least something
visible happens.

Running the simulator with the given firmware gives me no less than 910 lines
similar to these:

$ ../../src/simulavr -d atmega128 -f feedback.elf
WARNING: file hwport.cpp: line 165: Writing of 'PORTF.PIN' (with 101) is not
supported.
WARNING: file hwport.cpp: line 165: Writing of 'PORTF.PIN' (with 113) is not
supported.
WARNING: file hwport.cpp: line 165: Writing of 'PORTF.PIN' (with 117) is not
supported.
[...]

I tracked this down to commit 3f6a6882065 (Dec 2009), which introduced a "PIN
toggle PORT". About all chips, except the ATtiny2313, ignore this feature /
use the default value, which means false. Setting the default to true in
src/hwport.cpp makes all the warnings go away.

To be honest, I have no idea what "toggle port" means and why the default
apparently forbids to use a port. Given the numbers which are attempted to be
written, "feedback" tries to write out it's texts here.

Regardless of the default here, "feedback" doesn't do anything close to what
the README says. A connection is reported to be established, any keypress
other than a plain return results in an exception:

$ telnet localhost 7777
Trying 127.0.0.1...
New Connection on Simulation Feedback Server established!
Socket: sock6  from Address 127.0.0.1  and port 46995
Connected to localhost.
Escape character is '^]'.
adc0 0 adc1 0 
__ack X     <== hitting Enter here
__ack X 2
invalid command name "2"
    while executing
"2"
    ("eval" body line 1)
    invoked from within
"eval $x"
    (object "::guiMaster_sock6" method "::Master::ReadFromSimulavr" body line
34)
    invoked from within
"::guiMaster_sock6 ReadFromSimulavr"

After such an exeception, the connection is entirely unresponsive.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fr 15 Nov 2013 01:18:37 GMT  Name:
0001-example-feedback-no-python-involved-here.patch  Size: 701B   By: hitterm

<http://savannah.nongnu.org/bugs/download.php?file_id=29622>
-------------------------------------------------------
Date: Fr 15 Nov 2013 01:18:37 GMT  Name:
0002-example-feedback-tell-our-fellow-users-on-how-to-run.patch  Size: 1kB  
By: hitterm

<http://savannah.nongnu.org/bugs/download.php?file_id=29623>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?40586>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

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