simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] Support for atmega2560?


From: ThomasK
Subject: Re: [Simulavr-devel] Support for atmega2560?
Date: Sun, 08 Mar 2015 11:08:10 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Markus,

WARNING: file rwmem.cpp: line 231: Invalid write access to IO[0x90]=0x1, 
PC=0x3ba6
WARNING: file rwmem.cpp: line 231: Invalid write access to IO[0x91]=0x9, 
PC=0x3bac
WARNING: file rwmem.cpp: line 231: Invalid write access to IO[0x71]=0x0, 
PC=0x3bb0
You assume here these addresses are reported correctly. However, the 1284 needs 
16 bit addresses while the 644 gets away with 15 bit ones. What if the 16 bit 
ones are assumed to be 15 bit?

If you look to datasheet for 1284 *and* 644, then you'll see, that IO address 0x190, 0x191 and 0x171 are reserved, eg. not assigned to a peripheral unit. But 0x90 is TCCR3A, 0x91 TCCR3B and 0x71 TIMSK3. (all 3 are not/not right assigned in simulavr code - this is really a bug!) So I don't think, that this is a problem of wrong masking out higher bits that bit7. *Maybe* it's a decoding problem, but then it would be good, to know, which memonic (eg. machine code) bring this messages. So, for me it's unclear, why it should work on 644, but not on 1284.

cu, Thomas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]