public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/47696] New: [AVR] Compilation for atmega2560 produces incomplete interrupt vector table (USART2,3)
@ 2011-02-11 14:54 jlacerte at curvesystems dot com
2011-02-12 18:36 ` [Bug target/47696] " anitha.boyapati at atmel dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: jlacerte at curvesystems dot com @ 2011-02-11 14:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47696
Summary: [AVR] Compilation for atmega2560 produces incomplete
interrupt vector table (USART2,3)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jlacerte@curvesystems.com
avr-gcc -v
Using built-in specs.
COLLECT_GCC=avr-gcc
COLLECT_LTO_WRAPPER=/home/joseph/local/avr/libexec/gcc/avr/4.5.2/lto-wrapper
Target: avr
Configured with: ../configure --prefix=/home/joseph/local/avr --target=avr
--enable-languages=c --disable-nls --disable-libssp --with-dwarf2
Thread model: single
gcc version 4.5.2 (GCC)
Produced vector table (dump by stk500v2 bootloader):
[...]
49 - 0060 = 94 0C 00 87 jmp 000087 >00010E TIMER5 COMPB
50 - 0062 = 94 0C 00 87 jmp 000087 >00010E TIMER5 COMPC
51 - 0064 = 94 0C 00 87 jmp 000087 >00010E TIMER5 OVF
52 - 0066 = 24 11 BE 1F USART2 RX
53 - 0068 = EF CF E2 D1 rjmp 2FCF >00606E USART2 UDRE
54 - 006A = BF DE BF CD USART2 TX
55 - 006C = E0 00 BF 0C rjmp 2000 >0040D8 USART3 RX
56 - 006E = E0 12 E0 A0 rjmp 2012 >004100 USART3 UDRE
57 - 0070 = E0 B2 EF E4 rjmp 20B2 >004244 USART3 TX
Bootloader>
changing file gcc/config/avr/avr-devices.c line #190 from:
{ "atmega2560", ARCH_AVR6, "__AVR_ATmega2560__", 0, 0x0200,
"m2561" },
To:
{ "atmega2560", ARCH_AVR6, "__AVR_ATmega2560__", 0, 0x0200,
"m2560" },
seems to solve the problem:
[...]
49 - 0060 = 94 0C 00 93 jmp 000093 >000126 TIMER5 COMPB
50 - 0062 = 94 0C 00 93 jmp 000093 >000126 TIMER5 COMPC
51 - 0064 = 94 0C 00 93 jmp 000093 >000126 TIMER5 OVF
52 - 0066 = 94 0C 02 4D jmp 00024D >00049A USART2 RX
53 - 0068 = 94 0C 00 93 jmp 000093 >000126 USART2 UDRE
54 - 006A = 94 0C 00 93 jmp 000093 >000126 USART2 TX
55 - 006C = 94 0C 00 93 jmp 000093 >000126 USART3 RX
56 - 006E = 94 0C 00 93 jmp 000093 >000126 USART3 UDRE
57 - 0070 = 94 0C 00 93 jmp 000093 >000126 USART3 TX
Bootloader>
Please review this section, I have limited understanding of the
compilation/linking mechanism.
Thanks,
JL
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/47696] [AVR] Compilation for atmega2560 produces incomplete interrupt vector table (USART2,3)
2011-02-11 14:54 [Bug other/47696] New: [AVR] Compilation for atmega2560 produces incomplete interrupt vector table (USART2,3) jlacerte at curvesystems dot com
@ 2011-02-12 18:36 ` anitha.boyapati at atmel dot com
2011-02-14 14:54 ` choudary.omar at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: anitha.boyapati at atmel dot com @ 2011-02-12 18:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47696
Anitha Boyapati <anitha.boyapati at atmel dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anitha.boyapati at atmel
| |dot com
--- Comment #1 from Anitha Boyapati <anitha.boyapati at atmel dot com> 2011-02-12 18:32:28 UTC ---
(In reply to comment #0)
> changing file gcc/config/avr/avr-devices.c line #190 from:
> { "atmega2560", ARCH_AVR6, "__AVR_ATmega2560__", 0, 0x0200,
> "m2561" },
>
> To:
> { "atmega2560", ARCH_AVR6, "__AVR_ATmega2560__", 0, 0x0200,
> "m2560" },
>
> seems to solve the problem:
The fix is correct. The last column points to corresponding library. I presume
this is a typo.
Thanks for the analysis!
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/47696] [AVR] Compilation for atmega2560 produces incomplete interrupt vector table (USART2,3)
2011-02-11 14:54 [Bug other/47696] New: [AVR] Compilation for atmega2560 produces incomplete interrupt vector table (USART2,3) jlacerte at curvesystems dot com
2011-02-12 18:36 ` [Bug target/47696] " anitha.boyapati at atmel dot com
@ 2011-02-14 14:54 ` choudary.omar at gmail dot com
2011-02-14 15:51 ` aesok at gcc dot gnu.org
2011-02-14 15:54 ` aesok at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: choudary.omar at gmail dot com @ 2011-02-14 14:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47696
--- Comment #2 from Omar Choudary <choudary.omar at gmail dot com> 2011-02-14 14:51:48 UTC ---
Created attachment 23337
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23337
Patch based on the proposed solution. Seems to fix the problem.
Just a patch based on the solution described.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/47696] [AVR] Compilation for atmega2560 produces incomplete interrupt vector table (USART2,3)
2011-02-11 14:54 [Bug other/47696] New: [AVR] Compilation for atmega2560 produces incomplete interrupt vector table (USART2,3) jlacerte at curvesystems dot com
2011-02-12 18:36 ` [Bug target/47696] " anitha.boyapati at atmel dot com
2011-02-14 14:54 ` choudary.omar at gmail dot com
@ 2011-02-14 15:51 ` aesok at gcc dot gnu.org
2011-02-14 15:54 ` aesok at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: aesok at gcc dot gnu.org @ 2011-02-14 15:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47696
--- Comment #3 from aesok at gcc dot gnu.org 2011-02-14 15:49:39 UTC ---
Author: aesok
Date: Mon Feb 14 15:49:35 2011
New Revision: 170137
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170137
Log:
PR target/47696
* config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
description.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/avr/avr-devices.c
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/47696] [AVR] Compilation for atmega2560 produces incomplete interrupt vector table (USART2,3)
2011-02-11 14:54 [Bug other/47696] New: [AVR] Compilation for atmega2560 produces incomplete interrupt vector table (USART2,3) jlacerte at curvesystems dot com
` (2 preceding siblings ...)
2011-02-14 15:51 ` aesok at gcc dot gnu.org
@ 2011-02-14 15:54 ` aesok at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: aesok at gcc dot gnu.org @ 2011-02-14 15:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47696
aesok at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |aesok at gcc dot gnu.org
Resolution| |FIXED
Target Milestone|--- |4.6.0
--- Comment #4 from aesok at gcc dot gnu.org 2011-02-14 15:51:18 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-02-14 15:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-11 14:54 [Bug other/47696] New: [AVR] Compilation for atmega2560 produces incomplete interrupt vector table (USART2,3) jlacerte at curvesystems dot com
2011-02-12 18:36 ` [Bug target/47696] " anitha.boyapati at atmel dot com
2011-02-14 14:54 ` choudary.omar at gmail dot com
2011-02-14 15:51 ` aesok at gcc dot gnu.org
2011-02-14 15:54 ` aesok at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).