bugSimulavr: an AVR simulator - Bugs: bug #26045, Example spi: spsr is read only!

 
 

bug #26045: Example spi: spsr is read only!

Submitted by:  Knut Schwichtenberg <kschwi>
Submitted on:  Sun 29 Mar 2009 05:03:40 PM UTC  
 
Category: SimulationSeverity: 3 - Normal
Item Group: NoneStatus: Ready For Test
Privacy: PublicAssigned to: None
Open/Closed: ClosedComponent Version: simulavrxx

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 19 Nov 2011 03:06:53 PM UTC, comment #1:

In current source [1] the function HWSpi::SetSPSR() does distinguish between "mega" version of SPI peripheral (which has writable SPI2X bit) and maybe a tiny version (where all bits are read-only). It seems to be fixed by Onno Kortmann in commit [2].

Can you verify the current code works as requested?
What argument do you use for `--device'?

[1] http://git.savannah.gnu.org/cgit/simulavr.git/tree/src/hwspi.cpp#n106
[2] http://git.savannah.gnu.org/cgit/simulavr.git/commit/?id=8bd0a902d371e2359e96de498e702083927032a9

Petr Hluzin <petrh>
Project Member
Sun 29 Mar 2009 05:03:40 PM UTC, original submission:

Bits 1 to 7 of this byte are read only. Only bit 0 is R/W. This message is confusing and should be removed in cases were at least one bit is writable.

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 petrh (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
    Sat 19 Nov 2011 03:06:53 PM UTCpetrhStatusNone=>Ready For Test
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1