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.241.8 with SMTP id we8mr9184741pac.16.1395016346711; Sun, 16 Mar 2014 17:32:26 -0700 (PDT) X-Received: by 10.140.107.52 with SMTP id g49mr1678qgf.9.1395016346648; Sun, 16 Mar 2014 17:32:26 -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!l13no7265946iga.0!news-out.google.com!du2ni6058qab.0!nntp.google.com!hw13no5218537qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 16 Mar 2014 17:32:26 -0700 (PDT) In-Reply-To: <20140317000916.1189e0e5@PC-8N-L> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=192.99.8.96; posting-account=TRgI1QoAAABSsYi-ox3Pi6N-JEKKU0cu NNTP-Posting-Host: 192.99.8.96 References: <2528b8c4-93a8-4fb8-a6a5-192493d5d616@googlegroups.com> <20140317000916.1189e0e5@PC-8N-L> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <48d5e835-8246-4873-aaed-2e24284880bb@googlegroups.com> Subject: Re: Interrupt-driven Usart not working in Ada, but in C working, why? From: "Rego, P." Injection-Date: Mon, 17 Mar 2014 00:32:26 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:18826 Date: 2014-03-16T17:32:26-07:00 List-Id: On Sunday, March 16, 2014 8:09:16 PM UTC-3, Oliver Kleinke wrote: > > The problem is that when I send anything to the usart, the Ada > > application restarts (continuously). > This usually happens if you either blow the stack/heap or the PC > (program counter) overflows (reset/power on vector is at 0), e.g., if > the compiler optimizes away your main loop. I have a feeling that I did not blow the ram, mainly because the problem does not happen in a simpler board as ATmega328P (ATmega2560 has 8KB SRAM, while the last has only 2K). Also I am using -O for optimization.