From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27066 invoked by alias); 11 Feb 2011 14:44:41 -0000 Received: (qmail 27058 invoked by uid 22791); 11 Feb 2011 14:44:39 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_RJ X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Feb 2011 14:44:33 +0000 From: "jlacerte at curvesystems dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/47696] New: [AVR] Compilation for atmega2560 produces incomplete interrupt vector table (USART2,3) X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jlacerte at curvesystems dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 11 Feb 2011 14:54:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg01411.txt.bz2 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