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: Markus Hitter
Subject: Re: [Simulavr-devel] Support for atmega2560?
Date: Fri, 06 Mar 2015 13:27:35 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Am 05.03.2015 um 16:19 schrieb ThomasK:
> if your code doesn't exceed 128k or need higher addresses (maybe
> bootloader block or so) it's ok

My impression is, 1284p implementation works up to 64 kB, only. Running the 
very same code compiled for ATmega644 works, when compiling and running for 
ATmega1284P I get such warnings:

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

On real hardware both work fine, binary size is about 18 kB.

For supporting the p variants at all I added this patch:

https://github.com/Traumflug/simulavr/commit/69d944dd83e3103b80772b532f6b6ad94f740df0


Markus

-- 
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. (FH) Markus Hitter
http://www.jump-ing.de/



reply via email to

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