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

 
 

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

Submitter:  Knut Schwichtenberg <kschwi>
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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

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.

Erroranalysis:
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:
   
   
Comment:
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.13-3230.
    Corresponding source code