[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] section .vectors [0000000e -> 00000027] overlaps sect
From: |
Janne Matti Heikkinen |
Subject: |
Re: [avr-gcc-list] section .vectors [0000000e -> 00000027] overlaps section .data ... |
Date: |
Sat, 10 Aug 2002 02:07:33 +0300 |
On Fri, 2 Aug 2002, Joerg Wunsch wrote:
> Works there, too:
> address@hidden 54% avr-gcc -v -o demo -Os -Wall -g -mmcu=at90s8515 demo.c
> Reading specs from /usr/local/lib/gcc-lib/avr/3.2/specs
I edited this specs file by hand to get rid of that error...
> /usr/local/lib/gcc-lib/avr/3.2/../../../../avr/bin/ld -m avr2 -o demo
> /usr/local/lib/gcc-lib/avr/3.2/../../../../avr/lib/crts8515.o
> -L/usr/local/lib/gcc-lib/avr/3.2
> -L/usr/local/lib/gcc-lib/avr/3.2/../../../../avr/lib
> /var/tmp//cclNYPyS.o -lgcc -lc -lgcc
>From *link: portion I changed following:
%{mmcu=at90s8515:-m avr85xx}
to this:
%{mmcu=at90s8515:-m avr2}
And now I don't have to use "-Wl,-m,avr2" option anymore. But
somehow I get the feeling that this might not be the right
way to fix this... :)
Janne Heikkinen
avr-gcc-list at http://avr1.org
by mail15.speakeasy.net (qmail-ldap-1.03) with SMTP
for <address@hidden>; 9 Aug 2002 22:22:04 -0000
Message-ID: <address@hidden>
From: "Mike Tsao" <address@hidden>
To: <address@hidden>
Subject: [avr-gcc-list] SPI flash programmer [OT]
Date: Fri, 9 Aug 2002 15:22:04 -0700
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Precedence: bulk
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0
List-Help: <mailto:address@hidden>
List-Post: <mailto:address@hidden>
List-Subscribe: <http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list>,
<mailto:address@hidden>
List-Id: avr-gcc mailing list <avr-gcc-list.avr.jpk.co.nz>
List-Unsubscribe: <http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list>,
<mailto:address@hidden>
List-Archive: <http://avr.jpk.co.nz/pipermail/avr-gcc-list/>
Sorry for the slightly off-topic post.
I have 32 Atmel AT25256 SPI EEPROM 8-pin DIP chips. I also have 32 32KB
binary images. I want to get the images onto the EEPROMs. I don't have the
time to wire anything up or write any software, but I am willing to spend
money to buy something off-the-shelf. But I need it really, really quick (by
August 16). I live in California (USA).
I have an STK500 if that helps. Also, I believe the AT25* series is
pin-compatible with the Microchip 25LC series.
I am sure that SI-Prog and PonyProg together would do what I want, but I
can't for the life of me figure out how to order the hardware from the
Italian web site or determine whether it'll arrive by the time I need it
(again, by August 16). Since I assume it would ship from Italy I doubt it.
Any suggestions? If anyone in the U.S. has built something that would handle
this, may I buy/borrow it from you and pay you to FedEx it to me?
--
Mike Tsao
http://www.sowbug.com/tqw/
avr-gcc-list at http://avr1.org
Organization: interface systems GmbH, Dresden
X-Phone: +49-351-31809-14
X-Fax: +49-351-3361187
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E
References: <address@hidden>
From: address@hidden (Joerg Wunsch)
Subject: Re: [avr-gcc-list] calls of run-time library during interrupts
X-Original-Newsgroups: local.avr.gcc
To: address@hidden
Content-Type: text/plain; charset=us-ascii
Precedence: bulk
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0
List-Help: <mailto:address@hidden>
List-Post: <mailto:address@hidden>
List-Subscribe: <http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list>,
<mailto:address@hidden>
List-Id: avr-gcc mailing list <avr-gcc-list.avr.jpk.co.nz>
List-Unsubscribe: <http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list>,
<mailto:address@hidden>
List-Archive: <http://avr.jpk.co.nz/pipermail/avr-gcc-list/>
"Roland Zitzke" <address@hidden> wrote:
> I wonder if the call to __divmodhi4
> causes the problem?
Looking at the source, it clobbers r21 through r27. They are supposed
to be saved during an interrupt routine:
.global __vector_16
.type __vector_16,@function
__vector_16:
/* prologue: frame size=0 */
push __zero_reg__
push __tmp_reg__
in __tmp_reg__,__SREG__
push __tmp_reg__
clr __zero_reg__
push r18
push r19
push r20
push r21
push r22
push r23
push r24
push r25
push r26
push r27
/* prologue end (size=15) */
lds r24,volume_pwm_0
clr r25
mul r18,r24
movw r20,r0
mul r18,r25
add r21,r0
mul r19,r24
add r21,r0
clr r1
movw r24,r20
ldi r22,lo8(100)
ldi r23,hi8(100)
call __divmodhi4
sts (blah)+1,r23
sts blah,r22
/* epilogue: frame size=0 */
pop r27
pop r26
pop r25
pop r24
pop r23
pop r22
pop r21
pop r20
pop r19
pop r18
pop __tmp_reg__
out __SREG__,__tmp_reg__
pop __tmp_reg__
pop __zero_reg__
reti
Can you verify this is also the case for you?
Do you perhaps re-enable interrupts within your interrupt handler?
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/
avr-gcc-list at http://avr1.org
Precedence: bulk
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0
List-Help: <mailto:address@hidden>
List-Post: <mailto:address@hidden>
List-Subscribe: <http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list>,
<mailto:address@hidden>
List-Id: avr-gcc mailing list <avr-gcc-list.avr.jpk.co.nz>
List-Unsubscribe: <http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list>,
<mailto:address@hidden>
List-Archive: <http://avr.jpk.co.nz/pipermail/avr-gcc-list/>
> >Hi all, hi Theo,
> >
> >i have made the "set next instruction(set PC)" and setting registers
> >available in
> >avarice 1.5 yesterday. Can anyone bring that changes up into
> >downloadarea?
>
> Scott Finneran is the maintainer of avarice. Haven't heard from him in a
> while though...
I know, but I was not able to send him a message through his avarice website
and got no reply from my last mail :-( (Asking for the now fixed bugs...)
What's todo?
Bye
Klaus
What was happend with the subject of my mail???? Warning: Scramblers around
us! :-)
>
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
avr-gcc-list at http://avr1.org
Re: [avr-gcc-list] section .vectors [0000000e -> 00000027] overlaps section .data ..., Janne Matti Heikkinen, 2002/08/31