Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » AVR-GCC
  • » [avr-gcc-list] Unable to install interrupt vector for attiny2313 [RSS Feed]

#1 Sept. 26, 2005 05:45:56

choo k.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Unable to install interrupt vector for attiny2313


Dear All,       I tried to
compile a simple code using SIGNAL API for Attiny2313 target, but I always
hit the following warning:main.c:14: warning: `SIG_OVERFLOW1' appears to be a
misspelled signal handler The full message is as follow:avr-gcc (GCC) 3.4.3Copyright (C) 2004 Free
Software Foundation, Inc.This is free software; see the source for copying
conditions.  There is NOwarranty; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.Compiling: main.cavr-gcc -c
-mmcu=attiny2313 -I. -gdwarf-2 -DF_CPU=1000000UL
-I../../../../Apps/WinAVR/avr/include  -Os -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-adhlns=main.lst  -std=gnu99 -MD -MP -MF .dep/main.o.d main.c -o main.o main.c:14: warning: `SIG_OVERFLOW1' appears to be a
misspelled signal handler Linking: main.elfavr-gcc -mmcu=attiny2313 -I. -gdwarf-2
-DF_CPU=1000000UL -I../../../../Apps/WinAVR/avr/include  -Os
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall
-Wstrict-prototypes -Wa,-adhlns=main.o  -std=gnu99 -MD -MP -MF
.dep/main.elf.d main.o --output main.elf
-Wl,-Map=main.map,--cref    -lm  I am using latest version of winavr fromhttp://sourceforge.net/forum/forum.php?forum_id=446217.The interrupt handler is as follow :SIGNAL ( SIG_OVERFLOW1 ){  //set PORTB.2 low PORTB ^= 0x1;     // reload counter    TCNT1 = 0xffff -
1000;     /* enable interrupts */    sei
();} The assembler listing is as follow:00000000 <__vectors>:   0: 12
c0      
 rjmp .+36      ; 0x26  
2: 2a c0      
 rjmp .+84      ; 0x58  
4: 29 c0      
 rjmp .+82      ; 0x58  
6: 28 c0      
 rjmp .+80      ; 0x58  
8: 27 c0      
 rjmp .+78      ; 0x58  
a: 26 c0      
 rjmp .+76      ; 0x58  
c: 25 c0      
 rjmp .+74      ; 0x58  
e: 24 c0      
 rjmp .+72      ; 0x58  10: 23
c0      
 rjmp .+70      ; 0x58  12: 22
c0      
 rjmp .+68      ; 0x58  14: 21
c0      
 rjmp .+66      ; 0x58  16: 20
c0      
 rjmp .+64      ; 0x58  18: 1f
c0      
 rjmp .+62      ; 0x58  1a: 1e
c0      
 rjmp .+60      ; 0x58  1c: 1d
c0      
 rjmp .+58      ; 0x58  1e: 1c
c0      
 rjmp .+56      ; 0x58  20: 1b
c0      
 rjmp .+54      ; 0x58  22: 1a
c0      
 rjmp .+52      ; 0x58  24: 19
c0      
 rjmp .+50      ; 0x58  Apparently, the interrupt handler is not installed. The same code compiled
and worked properly for Atmega8. Please advise on how to get the interrupt to
work for attiny2313. Thanks in advance. regardskchoo  _______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#2 Sept. 26, 2005 07:43:45

Nils S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Unable to install interrupt vector for attiny2313


Hi,

it is a misspelled signal handler name! ;-)For the ATtiny2313 the interrupt handler is called SIG_TIMER1_OVF, seeinclude/avr/iotn2313.hRegards,
NilsDear All,I tried to compile a simple code using SIGNAL API for Attiny2313target, but I always hit the following warning:main.c:14: warning: `SIG_OVERFLOW1' appears to be a misspelled signalhandlerThe full message is as follow:avr-gcc (GCC) 3.4.3
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiling: main.cavr-gcc -c -mmcu=attiny2313 -I. -gdwarf-2 -DF_CPU=1000000UL-I../../../../Apps/WinAVR/avr/include -Os -funsigned-char-funsigned-bitfields -fpack-struct -fshort-enums -Wall-Wstrict-prototypes -Wa,-adhlns=main.lst -std=gnu99 -MD -MP -MF.dep/main.o.d main.c -o main.omain.c:14: warning: `SIG_OVERFLOW1' appears to be a misspelled signalhandlerLinking: main.elfavr-gcc -mmcu=attiny2313 -I. -gdwarf-2 -DF_CPU=1000000UL-I../../../../Apps/WinAVR/avr/include -Os -funsigned-char-funsigned-bitfields -fpack-struct -fshort-enums -Wall-Wstrict-prototypes -Wa,-adhlns=main.o -std=gnu99 -MD -MP -MF.dep/main.elf.d main.o --output main.elf -Wl,-Map=main.map,--cref -lmI am using latest version of winavr fromhttp://sourceforge.net/forum/forum.php?forum_id=446217.
The interrupt handler is as follow :
SIGNAL ( SIG_OVERFLOW1 )
{//set PORTB.2 lowPORTB ^= 0x1;// reload counterTCNT1 = 0xffff - 1000;/* enable interrupts */sei ();
}The assembler listing is as follow:00000000 <__vectors>:
0: 12 c0 rjmp .+36 ; 0x26
2: 2a c0 rjmp .+84 ; 0x58
4: 29 c0 rjmp .+82 ; 0x58
6: 28 c0 rjmp .+80 ; 0x58
8: 27 c0 rjmp .+78 ; 0x58
a: 26 c0 rjmp .+76 ; 0x58
c: 25 c0 rjmp .+74 ; 0x58
e: 24 c0 rjmp .+72 ; 0x58
10: 23 c0 rjmp .+70 ; 0x58
12: 22 c0 rjmp .+68 ; 0x58
14: 21 c0 rjmp .+66 ; 0x58
16: 20 c0 rjmp .+64 ; 0x58
18: 1f c0 rjmp .+62 ; 0x58
1a: 1e c0 rjmp .+60 ; 0x58
1c: 1d c0 rjmp .+58 ; 0x58
1e: 1c c0 rjmp .+56 ; 0x58
20: 1b c0 rjmp .+54 ; 0x58
22: 1a c0 rjmp .+52 ; 0x58
24: 19 c0 rjmp .+50 ; 0x58Apparently, the interrupt handler is not installed. The same codecompiled and worked properly for Atmega8. Please advise on how to getthe interrupt to work for attiny2313.Thanks in advance.regardskchoo_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#3 Sept. 26, 2005 08:18:50

Dmitry K.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Unable to install interrupt vector for attiny2313


On Monday 26 September 2005 13:50, choo kok seng wrote:
> Dear All,
> I tried to compile a simple code using SIGNAL API for Attiny2313
> target, but I always hit the following warning: main.c:14: warning:
> `SIG_OVERFLOW1' appears to be a misspelled signal handler


This is named 'SIG_TIMER1_OVF' for ATtiny2313.
Strange and ugly: most of signals from 'iotn2313.h' have names differs
from other 'io*.h'.

Regards.



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#4 Sept. 27, 2005 03:11:23

choo k.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Unable to install interrupt vector for attiny2313


 Dear All,       I tried to
compile a simple code using SIGNAL API for Attiny2313 target, but I always
hit the following warning:main.c:14: warning: `SIG_OVERFLOW1' appears to be a
misspelled signal handler The full message is as follow:avr-gcc (GCC) 3.4.3Copyright (C) 2004 Free
Software Foundation, Inc.This is free software; see the source for copying
conditions.  There is NOwarranty; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.Compiling: main.cavr-gcc -c
-mmcu=attiny2313 -I. -gdwarf-2 -DF_CPU=1000000UL
-I../../../../Apps/WinAVR/avr/include  -Os -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-adhlns=main.lst  -std=gnu99 -MD -MP -MF .dep/main.o.d main.c -o main.o main.c:14: warning: `SIG_OVERFLOW1' appears to be a
misspelled signal handler Linking: main.elfavr-gcc -mmcu=attiny2313 -I. -gdwarf-2
-DF_CPU=1000000UL -I../../../../Apps/WinAVR/avr/include  -Os
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall
-Wstrict-prototypes -Wa,-adhlns=main.o  -std=gnu99 -MD -MP -MF
.dep/main.elf.d main.o --output main.elf
-Wl,-Map=main.map,--cref    -lm  I am using latest version of winavr fromhttp://sourceforge.net/forum/forum.php?forum_id=446217.The interrupt handler is as follow :SIGNAL ( SIG_OVERFLOW1 ){  //set PORTB.2 low PORTB ^= 0x1;     // reload counter    TCNT1 = 0xffff -
1000;     /* enable interrupts */    sei
();} The assembler listing is as follow:00000000 <__vectors>:   0: 12
c0      
 rjmp .+36      ; 0x26  
2: 2a c0      
 rjmp .+84      ; 0x58  
4: 29 c0      
 rjmp .+82      ; 0x58  
6: 28 c0      
 rjmp .+80      ; 0x58  
8: 27 c0      
 rjmp .+78      ; 0x58  
a: 26 c0      
 rjmp .+76      ; 0x58  
c: 25 c0      
 rjmp .+74      ; 0x58  
e: 24 c0      
 rjmp .+72      ; 0x58  10: 23
c0      
 rjmp .+70      ; 0x58  12: 22
c0      
 rjmp .+68      ; 0x58  14: 21
c0      
 rjmp .+66      ; 0x58  16: 20
c0      
 rjmp .+64      ; 0x58  18: 1f
c0      
 rjmp .+62      ; 0x58  1a: 1e
c0      
 rjmp .+60      ; 0x58  1c: 1d
c0      
 rjmp .+58      ; 0x58  1e: 1c
c0      
 rjmp .+56      ; 0x58  20: 1b
c0      
 rjmp .+54      ; 0x58  22: 1a
c0      
 rjmp .+52      ; 0x58  24: 19
c0      
 rjmp .+50      ; 0x58  Apparently, the interrupt handler is not installed. The same code compiled
and worked properly for Atmega8. Please advise on how to get the interrupt to
work for attiny2313. Thanks in advance. regardskchoo  _______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#5 Sept. 29, 2005 11:08:41

choo k.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Unable to install interrupt vector for attiny2313


Thanks Steve, that works. regardskchoo----- Original Message -----From:Steve FranksTo:'choo kok seng';Avr-Gcc-List (E-mail)Sent:Thursday, September 29, 2005 1:33
AMSubject:RE: Unable to
install interrupt vector for attiny2313kchoo, Unfortunately, Atmel changes the names of things in their datasheets
from part to part.  In an effort to remain unambiguous, gccavr always
uses the exact names from the datasheet.  Therefore, when changing
devices, you will often need to changes port, device, or interrupt
names.  Look in the iotn2313.h header in .../winavr/avr/include/avr and
you will probably see something like SIG_OVRFLW1 defined instead of
SIG_OVERFLOW1.  Just use that one and you should have no
problems. Steve Steve FranksElectrical EngineerTucson Embedded
Systems(520) 575-7283 x171-----Original Message-----From:choo kok seng
[mailto:Sent:Monday, September 26, 2005 7:09
PMTo:avr-gcc-l***@*ongnu.orgSubject:
Unable to install interrupt vector for attiny2313 Dear All,       I tried to
compile a simple code using SIGNAL API for Attiny2313 target, but I
always hit the following warning:main.c:14: warning: `SIG_OVERFLOW1' appears to
be a misspelled signal handler The full message is as follow:avr-gcc (GCC) 3.4.3Copyright (C) 2004 Free
Software Foundation, Inc.This is free software; see the source for
copying conditions.  There is NOwarranty; not even for
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.Compiling: main.cavr-gcc -c
-mmcu=attiny2313 -I. -gdwarf-2 -DF_CPU=1000000UL
-I../../../../Apps/WinAVR/avr/include  -Os -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-adhlns=main.lst  -std=gnu99 -MD -MP -MF .dep/main.o.d main.c -o
main.o main.c:14: warning: `SIG_OVERFLOW1' appears to
be a misspelled signal handler Linking: main.elfavr-gcc -mmcu=attiny2313 -I. -gdwarf-2
-DF_CPU=1000000UL -I../../../../Apps/WinAVR/avr/include  -Os
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall
-Wstrict-prototypes -Wa,-adhlns=main.o  -std=gnu99 -MD -MP -MF
.dep/main.elf.d main.o --output main.elf
-Wl,-Map=main.map,--cref    -lm  I am using latest version of winavr fromhttp://sourceforge.net/forum/forum.php?forum_id=446217.The interrupt handler is as follow :SIGNAL ( SIG_OVERFLOW1 ){  //set PORTB.2 low PORTB ^= 0x1;     // reload counter    TCNT1 =
0xffff - 1000;     /* enable interrupts */    sei
();} The assembler listing is as follow:00000000 <__vectors>:   0: 12
c0      
 rjmp .+36      ; 0x26  
2: 2a c0      
 rjmp .+84      ; 0x58  
4: 29 c0      
 rjmp .+82      ; 0x58  
6: 28 c0      
 rjmp .+80      ; 0x58  
8: 27 c0      
 rjmp .+78      ; 0x58  
a: 26 c0      
 rjmp .+76      ; 0x58  
c: 25 c0      
 rjmp .+74      ; 0x58  
e: 24 c0      
 rjmp .+72      ; 0x58 
10: 23 c0      
 rjmp .+70      ; 0x58 
12: 22 c0      
 rjmp .+68      ; 0x58 
14: 21 c0      
 rjmp .+66      ; 0x58 
16: 20 c0      
 rjmp .+64      ; 0x58 
18: 1f c0      
 rjmp .+62      ; 0x58 
1a: 1e c0      
 rjmp .+60      ; 0x58 
1c: 1d c0      
 rjmp .+58      ; 0x58 
1e: 1c c0      
 rjmp .+56      ; 0x58 
20: 1b c0      
 rjmp .+54      ; 0x58 
22: 1a c0      
 rjmp .+52      ; 0x58 
24: 19 c0      
 rjmp .+50      ; 0x58  Apparently, the interrupt handler is not installed. The same code
compiled and worked properly for Atmega8. Please advise on how to get the
interrupt to work for attiny2313. Thanks in advance. regardskchoo  _______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#6 Dec. 23, 2017 10:25:15

Davidkneef
Registered: 2017-12-13
Posts: 1
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Unable to install interrupt vector for attiny2313

This post is being moderated

Offline

  • Root
  • » AVR-GCC
  • » [avr-gcc-list] Unable to install interrupt vector for attiny2313 [RSS Feed]

Board footer

Moderator control

Enjoy the 25th of May
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support