From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.66.163 with SMTP id g3mr25875096pat.3.1395671794795; Mon, 24 Mar 2014 07:36:34 -0700 (PDT) X-Received: by 10.182.111.170 with SMTP id ij10mr21617obb.18.1395671794375; Mon, 24 Mar 2014 07:36:34 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!ur14no13184786igb.0!news-out.google.com!bw18ni21563qab.1!nntp.google.com!l13no10749272iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 24 Mar 2014 07:36:34 -0700 (PDT) In-Reply-To: <20140317150811.6b6aa249@PC-8N-L> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=192.109.190.88; posting-account=mOyWBQoAAAD7S-NBmMUOr9hRClcL0vqR NNTP-Posting-Host: 192.109.190.88 References: <2528b8c4-93a8-4fb8-a6a5-192493d5d616@googlegroups.com> <20140316235424.674f5344@PC-8N-L> <20140317150811.6b6aa249@PC-8N-L> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <47f30185-bb29-448f-ab44-cfdf38573fba@googlegroups.com> Subject: Re: Interrupt-driven Usart not working in Ada, but in C working, why? From: rrr.eee.27@gmail.com Injection-Date: Mon, 24 Mar 2014 14:36:34 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:18948 Date: 2014-03-24T07:36:34-07:00 List-Id: On Monday, March 17, 2014 3:08:11 PM UTC+1, Oliver Kleinke wrote: > 00002f46 <__bad_interrupt>: > 2f46: 0c 94 00 00 jmp 0 ; 0x0 <__vectors> > So there you have your reset. > I guess you should follow Rolf's advice and try a newer gcc. No, you don't need a newer compiler, you need a better link script. Copy one of the existing linker scripts in your local work space and correct it there according to the data sheet. Alternatively you might try rebuildig the avr-libc (V1.8.0) which includes newer binutils and link scripts best regards Rolf