bugSimulavr: an AVR simulator - Bugs: bug #26171, INTERNAL ERROR: device would be...


bug #26171: INTERNAL ERROR: device would be twice in cycle list.

Submitted by:  Knut Schwichtenberg <kschwi>
Submitted on:  Mon 13 Apr 2009 05:53:47 PM UTC  
Category:  Simulation Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Component Version:  simulavrxx

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 20 May 2013 02:18:14 PM UTC, comment #2:

Actual code contains no HWMegaSpi class. So I believe the problem is also gone :-)

I will close this entry to clean up the bug tracker.

If there is still a problem with the spi, feel free to create a new bug entry.

Klaus Rudolph <zfrdh>
Project Administrator
Tue 14 Apr 2009 05:41:02 PM UTC, comment #1:

After the off-list reply from Klaus it works like I expected it. Each simulated hardware component should only be added to the CycleList if activated, not during initialization. Therefore please comment-out the statement "core->AddToCycleList(this);" in the constructor HWMegaSpi::HWMegaSpi.

Knut Schwichtenberg <kschwi>
Mon 13 Apr 2009 05:53:47 PM UTC, original submission:

While activationg the SPI subsystem by setting the SPE bit in the SPCR register the error message above is created.

This happens while the method HWSpi::SetSpcr calls
core->AddToCycleList(this); if the SPE bit changes from 0 to 1.

It looks like an error in the constructor HWMegaSpi::HWMegaSpi. The constructor HWSpi::HWSpi is identical to HWMegaSpi::HWMegaSpi. The HWSpi::HWSpi does not call core->AddToCycleList(this);. There this call is commented out! An Off-list request to Klaus is pending.

Knut Schwichtenberg <kschwi>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by zfrdh (Posted a comment)
  • -email is unavailable- added by kschwi (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-05-20 zfrdh StatusNone => Fixed
        Open/ClosedOpen => Closed

    Back to the top

    Powered by Savane 3.3