[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] BUG: SIG_COMPARATOR on at90s4433 is not working, vec
From: |
Theodore A. Roth |
Subject: |
Re: [avr-gcc-list] BUG: SIG_COMPARATOR on at90s4433 is not working, vector table to short |
Date: |
Wed, 3 Mar 2004 10:20:19 -0800 (PST) |
On Wed, 3 Mar 2004, Klaus Rudolph wrote:
> Hi all,
>
> I tried to compile an c-prog for at443 but got wrong output.
> The vector for the analogcomparator is lost.
>
> For at8515 the vector table is OK.
>
> I have installed actual avr-libc-1.0.2.
>
> Can you reproduce this problem, or maybe fix it :-)
> The vector table for 4433 is simply to short. How can I fix it?
> the crt4433.o file hold an to sort vector list as I saw with objdump....
I can't reproduce the problem. Here's the vector table for a simple
program for 4433:
00000000 <__vectors>:
0: 0d c0 rjmp .+26 ; 0x1c
2: 42 c0 rjmp .+132 ; 0x88
4: 24 c0 rjmp .+72 ; 0x4e
6: 23 c0 rjmp .+70 ; 0x4e
8: 22 c0 rjmp .+68 ; 0x4e
a: 21 c0 rjmp .+66 ; 0x4e
c: 20 c0 rjmp .+64 ; 0x4e
e: 1f c0 rjmp .+62 ; 0x4e
10: 1e c0 rjmp .+60 ; 0x4e
12: 1d c0 rjmp .+58 ; 0x4e
14: 1c c0 rjmp .+56 ; 0x4e
16: 1b c0 rjmp .+54 ; 0x4e
18: 1a c0 rjmp .+52 ; 0x4e
1a: 5b c0 rjmp .+182 ; 0xd2
And here's the signal handler:
000000d2 <__vector_13>:
SIGNAL (SIG_COMPARATOR)
{
d2: 1f 92 push r1
d4: 0f 92 push r0
d6: 0f b6 in r0, 0x3f ; 63
d8: 0f 92 push r0
da: 11 24 eor r1, r1
dc: 8f 93 push r24
de: 9f 93 push r25
e0: af 93 push r26
e2: bf 93 push r27
irq_cnt++;
[snip]
Looks OK to me.
Using:
avr-libc current CVS dev branch.
gcc 3.3.1
binutils 2.14 20030612
Ted Roth
_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list