Follow-up Comment #4, bug #40586 (project simulavr):

Well, code in atmega128.cpp isn't involved here, other than by defining seven
I/O ports. The next step back in the backtrace (see below) is rwmem.h, which
is a C++ template and as such beyond my C++ skills. I can only guess how the
pieces fall together. The code tries to set single pins to values lie 'A' or
'F' which somehow makes me feel like there's something seriously confused.

The backtrace:
Breakpoint 1, HWPort::SetPin (this=0x15cd6f0, val=68 'D') at hwport.cpp:159
159     void HWPort::SetPin(unsigned char val) {
(gdb) bt
#0  HWPort::SetPin (this=0x15cd6f0, val=68 'D') at hwport.cpp:159
#1  0x000000000045533d in IOReg<HWPort>::set (this=<optimized out>,
val=<optimized out>) at rwmem.h:273
#2  0x0000000000478fa6 in RWMemoryMember::operator= (this=0x15cda48, val=68
'D') at rwmem.cpp:69
#3  0x00000000004332d4 in AvrDevice::SetIOReg (this=<optimized out>,
addr=<optimized out>, val=<optimized out>)
    at avrdevice.cpp:451
#4  0x000000000043a6c1 in avr_op_OUT::operator() (this=0x6c37e0) at
decoder.cpp:1178
#5  0x0000000000433e9f in AvrDevice::Step (this=0x6bc790,
untilCoreStepFinished=@0x7fffffffd9ef: false, 
    nextStepIn_ns=0x7fffffffd998) at avrdevice.cpp:331
#6  0x000000000048071f in SystemClock::Step (this=this@entry=0x6b9420
<SystemClock::Instance()::obj>, 
    untilCoreStepFinished=@0x7fffffffd9ef: false) at systemclock.cpp:154
#7  0x0000000000480910 in SystemClock::Endless (this=0x6b9420
<SystemClock::Instance()::obj>) at systemclock.cpp:217
#8  0x0000000000406a42 in main (argc=<optimized out>, argv=<optimized out>) at
cmd/main.cpp:454


    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Simulavr-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/simulavr-devel

Reply via email to