[Top][All Lists]

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

Re: [avr-libc-dev] Testsuite (Was: How attached are people ...)

From: Joerg Wunsch
Subject: Re: [avr-libc-dev] Testsuite (Was: How attached are people ...)
Date: Tue, 6 Dec 2016 23:56:50 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

As Joerg Wunsch wrote:

> This yields a few new simulation errors:
> Simulate: avr/eeprom-1.c attiny2313 ... *** simulate failed: 70
> Simulate: avr/eeprom-2.c attiny2313 ... *** simulate failed: 46
> Simulate: avr/eeprom-3.c attiny2313 ... *** simulate failed: 64
> Not sure what's wrong here ...

It's a problem with the simulator.  In short, CPU registers are 
accessed through their SRAM addresses and X+ addressing, but R27 (XH) 
is not initialized so contains semi-random values.  For an ATtiny2313, 
this doesn't matter as it only implements 8-bit SRAM addressing, but 
the simulator thinks SRAM outside the address space is being accessed, 
and refuses to load the values.
cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

Never trust an operating system you don't have sources for. ;-)

reply via email to

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