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: SimulationSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedComponent Version: simulavrxx

Add a New Comment (Rich MarkupRich 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

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 20 May 2013 02:18:14 PM UTCzfrdhStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup