comp.lang.ada
 help / color / mirror / Atom feed
From: "Rego, P." <pvrego@gmail.com>
Subject: Re: Interrupt-driven Usart not working in Ada, but in C working, why?
Date: Sun, 16 Mar 2014 17:32:26 -0700 (PDT)
Date: 2014-03-16T17:32:26-07:00	[thread overview]
Message-ID: <48d5e835-8246-4873-aaed-2e24284880bb@googlegroups.com> (raw)
In-Reply-To: <20140317000916.1189e0e5@PC-8N-L>

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.

  reply	other threads:[~2014-03-17  0:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-16 20:37 Interrupt-driven Usart not working in Ada, but in C working, why? Rego, P.
2014-03-16 22:54 ` Oliver Kleinke
2014-03-17  0:21   ` Rego, P.
2014-03-17 14:08     ` Oliver Kleinke
2014-03-24 14:36       ` rrr.eee.27
2014-03-16 23:09 ` Oliver Kleinke
2014-03-17  0:32   ` Rego, P. [this message]
2014-03-17 12:17 ` rrr.eee.27
2014-03-17 20:28   ` Rego, P.
2014-03-18 14:08     ` Oliver Kleinke
2014-03-21  2:52       ` Rego, P.
2014-03-24 14:28         ` rrr.eee.27
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox